input stringlengths 6 11.4M | output stringlengths 6 4.94M |
|---|---|
game.Workspace.doorleft.l13.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorleft.l22.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorleft.l31.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorleft.l4... | --------LEFT DOOR --------
game.Workspace.doorleft.l13.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value)
game.Workspace.doorleft.l22.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value)
game.Workspace.doorleft.l31.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultligh... |
while true do while Humanoid.Health<Humanoid.MaxHealth do local A=wait(REGEN_STEP)local r=(A*REGEN_RATE)*Humanoid.MaxHealth Humanoid.Health=math.min(Humanoid.Health+r,Humanoid.MaxHealth)end Humanoid.HealthChanged:Wait()end | --------------------------------------------------------------------------------
while true do
while Humanoid.Health < Humanoid.MaxHealth do
local dt = wait(REGEN_STEP)
local dh = dt * REGEN_RATE * Humanoid.MaxHealth
Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
end
Humanoid.HealthChang... |
while(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat:wait()and(car:FindFirstChild("\068\114\105\118\101\083\101\097\116")and character.Humanoid.SeatPart==car.DriveSeat)do if IsGrounded()then if movement.Y~=0 then local A=(humanoidRootPart.CFrame.lookVector*movement.Y)*stats.Speed.Value humanoidR... | --spawn(function()
while
game:GetService("RunService").Heartbeat:wait()
and car:FindFirstChild("DriveSeat")
and character.Humanoid.SeatPart == car.DriveSeat
do
--game:GetService("RunService").RenderStepped:wait()
if IsGrounded() then
if movement.Y ~= 0 then
local velocity = humanoidRootPart.CFrame.lookVector ... |
local function A(A)local r=A.Name local t=gui:FindFirstChild(r)if t then if t.Visible==false then for A,r in ipairs(gui:GetChildren())do if r:IsA("\070\114\097\109\101")and r.Visible then end end local A=UDim2.new(.0,0,.978,0)t.Position=A t.Size=UDim2.new(1,0,.022,0)t.Visible=true t:TweenSizeAndPosition(UDim2.new(1,0,.... | -- Define the function to open or close the window with gene-alike effect
local function toggleWindow(button)
local windowName = button.Name
-- Find the corresponding frame in the AppManager using the window name
local window = gui:FindFirstChild(windowName)
if window then
if window.Visible == false then
-- C... |
RideHeightFront=1.4 RideHeightRear=1.4 StiffnessFront=3 StiffnessRear=4 AntiRollFront=2 AntiRollRear=3 CamberFront=-0.2 CamberRear=-1.3 | --//Suspension//--
RideHeightFront = 1.4 --{This value will increase the ride height for front}
RideHeightRear = 1.4 --{This value will increase the ride height for rear}
StiffnessFront = 3 --[0-10]{HIGHER STIFFNESS DECREASES SPAWNING STABILITY}
StiffnessRear = 4 --[0-10]{This value will increase the stiffness for rea... |
function Table.swapKeyValue(A)local r={}for A,t in pairs(A)do r[t]=A end return r end | --- Swaps keys with values, overwriting additional values if duplicated
-- @tparam table orig original table
-- @treturn table
function Table.swapKeyValue(orig)
local tab = {}
for key, val in pairs(orig) do
tab[val] = key
end
return tab
end
|
function ExternalEventConnection.render(A)return Roact.oneChild(A.props[Roact.Children])end function ExternalEventConnection.didMount(A)local r=A.props.event local t=A.props.callback A.connection=r:Connect(t)end function ExternalEventConnection.didUpdate(r,A)if r.props.event~=A.event or r.props.callback~=A.callback the... | --[[
Render the child component so that ExternalEventConnections can be nested like so:
Roact.createElement(ExternalEventConnection, {
event = UserInputService.InputBegan,
callback = inputBeganCallback,
}, {
Roact.createElement(ExternalEventConnection, {
event = UserInputService.InputEnded,
callb... |
function ClientRemoteSignal.Connect(r,A)if r._directConnect then return r._re.OnClientEvent:Connect(A)else return r._signal:Connect(A)end end | --[=[
@param fn (...: any) -> any
@return Connection
Connects a function to the remote signal. The function will be
called anytime the equivalent server-side RemoteSignal is
fired at this specific client that created this client signal.
]=]
function ClientRemoteSignal:Connect(fn)
if self._directConnect then
ret... |
Tune.SteerInner=45 Tune.SteerOuter=41 Tune.SteerSpeed=.05 Tune.ReturnSpeed=.1 Tune.SteerDecay=320 Tune.MinSteer=10 Tune.MSteerExp=1 Tune.SteerD=1000 Tune.SteerMaxTorque=50000 Tune.SteerP=100000 | --[[Steering]]
Tune.SteerInner = 45 -- Inner wheel steering angle (in degrees)
Tune.SteerOuter = 41 -- Outer wheel steering angle (in degrees)
Tune.SteerSpeed = 0.05 -- Steering increment per tick (in degrees)
Tune.ReturnSpeed = 0.1 -- Steering increment per tick (in degrees)
Tune.SteerDecay = 320 -- Speed of gradient ... |
FADE_TIME,FADE_TWNSTYLE,FADE_TWNDIRECTION=nil IND_TICK_TIME=nil L_BEAM_COLOR,L_BEAM_RANGE,L_BEAM_BRIGHTNESS=nil H_BEAM_COLOR,H_BEAM_RANGE,H_BEAM_BRIGHTNESS=nil T_LIGHT_RANGE,T_LIGHT_BRIGHTNESS=nil B_LIGHT_RANGE,B_LIGHT_BRIGHTNESS,B_LIGHT_FADE_TIME=nil | --Miscellaneous Settings
FADE_TIME, FADE_TWNSTYLE, FADE_TWNDIRECTION = nil
IND_TICK_TIME = nil
L_BEAM_COLOR, L_BEAM_RANGE, L_BEAM_BRIGHTNESS = nil
H_BEAM_COLOR, H_BEAM_RANGE, H_BEAM_BRIGHTNESS = nil
T_LIGHT_RANGE, T_LIGHT_BRIGHTNESS = nil
B_LIGHT_RANGE, B_LIGHT_BRIGHTNESS, B_LIGHT_FADE_TIME = nil
|
Tune.Horsepower=600 Tune.IdleRPM=700 Tune.PeakRPM=6000 Tune.Redline=6700 Tune.EqPoint=5500 Tune.PeakSharpness=7.5 Tune.CurveMult=.16 Tune.InclineComp=1.7 Tune.RevAccel=150 Tune.RevDecay=75 Tune.RevBounce=500 Tune.IdleThrottle=3 Tune.ClutchTol=500 | --[[Engine]]
--Torque Curve
Tune.Horsepower = 600 -- [TORQUE CURVE VISUAL]
Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf
Tune.PeakRPM = 6000 -- Use sliders to manipulate values
Tune.Redline = 6700 -- Copy and paste slider values into the respective tune values
Tune.EqPoint = 5500
Tune.PeakSharpn... |
function Handler.add(r,A)assert(typeof(A)~="\073\110\115\116\097\110\099\101","\077\097\107\101 \115\117\114\101 \121\111\117 \097\114\101 \105\110\105\116\105\097\108\105\122\105\110\103 \102\114\111\109 \116\104\101 \082\097\121\099\097\115\116 \109\111\100\117\108\101\044 \110\111\116 \102\114\111\109 \116\104\105\1... | --------
function Handler:add(hitboxObject)
assert(
typeof(hitboxObject) ~= "Instance",
"Make sure you are initializing from the Raycast module, not from this handler."
)
table.insert(ActiveHitboxes, hitboxObject)
end
function Handler:remove(object)
for i in ipairs(ActiveHitboxes) do
if ActiveHitboxes[i].obj... |
function Immutable.Append(A,...)local r={}local t=#A for t=1,t,1 do r[t]=A[t]end for A=1,select("\035",...),1 do r[t+A]=select(A,...)end return r end | --[[
Creates a new copy of the list with the given elements appended to it.
]]
function Immutable.Append(list, ...)
local new = {}
local len = #list
for key = 1, len do
new[key] = list[key]
end
for i = 1, select("#", ...) do
new[len + i] = select(i, ...)
end
return new
end
|
local A=script.Parent local r=true local t=game.ServerStorage.Floral A.Touched:Connect(function(B)if r==true then if B.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")then local h=game.Players:FindFirstChild(B.Parent.Name)if h then r=false A.BrickColor=BrickColor.new("\066\114\105\103\104\116 \114\101\100");(t... | --DO NOT CHANGE ANYTHING INSIDE OF THIS SCRIPT BESIDES WHAT YOU ARE TOLD TO UNLESS YOU KNOW WHAT YOU'RE DOING OR THE SCRIPT WILL NOT WORK!!
local hitPart = script.Parent
local debounce = true
local tool = game.ServerStorage.Floral -- Change "Sword" to the name of your tool, make sure your tool is in ServerStorage
hitP... |
debounce=true function onTouched(A)if A.Parent:findFirstChild("\072\117\109\097\110\111\105\100")~=nil and debounce==true then debounce=false h=Instance.new("\072\097\116")p=Instance.new("\080\097\114\116")h.Name="\050\048\048\054 \086\105\115\111\114"p.Parent=h p.Position=(A.Parent:findFirstChild("\072\101\097\100")).... | -- (Hat Giver Script - Loaded.)
debounce = true
function onTouched(hit)
if hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true then
debounce = false
h = Instance.new("Hat")
p = Instance.new("Part")
h.Name = "2006 Visor"
p.Parent = h
p.Position = hit.Parent:findFirstChild("Head").Position
... |
local A=game.Players.LocalPlayer local r=A:GetMouse()local t=script.Parent.Parent.Car.Value local B=require(t["\065-\067\104\097\115\115\105\115 \084\117\110\101"])local h=script.Parent local I=script.Parent.Parent.Values local G=script.Parent.Parent.IsOn h:WaitForChild("\083\112\101\101\100\111")h:WaitForChild("\084\0... | -----------------------------------------------------------------------------------------------
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local car = script.Parent.Parent.Car.Value
local _Tune = require(car["A-Chassis Tune"])
local gauges = script.Parent
local values = script.Parent.Par... |
for A,r in pairs(initData.Channels)do if r[1]==ChatSettings.GeneralChannelName then HandleChannelJoined(r[1],r[2],r[3],r[4],true,false)end end for A,r in pairs(initData.Channels)do if r[1]~=ChatSettings.GeneralChannelName then HandleChannelJoined(r[1],r[2],r[3],r[4],true,false)end end return moduleApiTable | -- Handle joining general channel first.
for i, channelData in pairs(initData.Channels) do
if channelData[1] == ChatSettings.GeneralChannelName then
HandleChannelJoined(channelData[1], channelData[2], channelData[3], channelData[4], true, false)
end
end
for i, channelData in pairs(initData.Channels) do
if channel... |
function Path.new(A,r,t)if not(A and(A:IsA("\077\111\100\101\108")and A.PrimaryPart))then output(error,"\080\097\116\104\102\105\110\100\105\110\103 \097\103\101\110\116 \109\117\115\116 \098\101 \097 \118\097\108\105\100 \077\111\100\101\108 \073\110\115\116\097\110\099\101 \119\105\116\104 \097 \115\101\116 \080\114\... | --[[ CONSTRUCTOR ]]
--
function Path.new(agent, agentParameters, override)
if not (agent and agent:IsA("Model") and agent.PrimaryPart) then
output(error, "Pathfinding agent must be a valid Model Instance with a set PrimaryPart.")
end
local self = setmetatable({
_settings = override or DEFAULT_SETTINGS,
_event... |
PlayersService.ChildRemoved:connect(OnPlayersChildRemoved)PlayersService.ChildAdded:connect(OnPlayersChildAdded)for A,r in pairs(PlayersService:GetPlayers())do OnPlayersChildAdded(r)end return PopperCam | -- Connect to all Players so we can ignore their Characters
PlayersService.ChildRemoved:connect(OnPlayersChildRemoved)
PlayersService.ChildAdded:connect(OnPlayersChildAdded)
for _, player in pairs(PlayersService:GetPlayers()) do
OnPlayersChildAdded(player)
end
return PopperCam
|
function ObservableSubscriptionTable.Observe(r,A)assert(A~=nil,"\066\097\100 \107\101\121")return Observable.new(function(t)if not r._subMap[A]then r._subMap[A]={t}else table.insert(r._subMap[A],t)end return function()if not r._subMap[A]then return end local B=r._subMap[A]local h=table.find(B,t)if not h then return end... | --[=[
Observes for the key
@param key TKey
@return Observable<TEmit>
]=]
function ObservableSubscriptionTable:Observe(key)
assert(key ~= nil, "Bad key")
return Observable.new(function(sub)
if not self._subMap[key] then
self._subMap[key] = { sub }
else
table.insert(self._subMap[key], sub)
end
return... |
local A=script.Parent A.Touched:Connect(function(A)local r=A.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if r then r:TakeDamage(r.MaxHealth)end end) | -- This script works with any part, feel free to move it into a different part if needed.
local parentPart = script.Parent
parentPart.Touched:Connect(function(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
if human then
human:TakeDamage(human.MaxHealth)
end
end)
|
function TranslationHelper.translateByKey(A,r)local t=""local B=false if foundPlayerTranslator then B=pcall(function()t=playerTranslator:FormatByKey(A,r)end)end if foundFallbackTranslator and not B then B=pcall(function()t=fallbackTranslator:FormatByKey(A,r)end)end if B then return t else return false end end return Tr... | -- Create a FormatByKey() function that uses a fallback translator if the first fails to load or return successfully
function TranslationHelper.translateByKey(key, arguments)
local translation = ""
local foundTranslation = false
-- First tries to translate for the player's language (if a translator was found)
if ... |
local A=require(script:WaitForChild("\075\101\121\098\111\097\114\100"))local r=require(script:WaitForChild("\071\097\109\101\112\097\100"))local t=require(script:WaitForChild("\068\121\110\097\109\105\099\084\104\117\109\098\115\116\105\099\107"))local B do local A,r=pcall(function()return(UserSettings()):IsUserFeatur... | -- Roblox User Input Control Modules - each returns a new() constructor function used to create controllers as needed
local Keyboard = require(script:WaitForChild("Keyboard"))
local Gamepad = require(script:WaitForChild("Gamepad"))
local DynamicThumbstick = require(script:WaitForChild("DynamicThumbstick"))
local FFlag... |
Selection=Core.Selection Support=Core.Support Security=Core.Security Support.ImportServices() | -- Import relevant references
Selection = Core.Selection
Support = Core.Support
Security = Core.Security
Support.ImportServices()
|
function OnUnequipped()LeftButtonDown=false Reloading=false MyCharacter=nil MyHumanoid=nil MyTorso=nil MyPlayer=nil if OnFireConnection then OnFireConnection:disconnect()end if OnReloadConnection then OnReloadConnection:disconnect()end if FlashHolder then FlashHolder=nil end if WeaponGui then WeaponGui.Parent=nil Weapo... | -- Unequip logic here
function OnUnequipped()
LeftButtonDown = false
Reloading = false
MyCharacter = nil
MyHumanoid = nil
MyTorso = nil
MyPlayer = nil
if OnFireConnection then
OnFireConnection:disconnect()
end
if OnReloadConnection then
OnReloadConnection:disconnect()
end
if FlashHolder then
FlashHolde... |
function luaK.getlabel(r,A)A.lasttarget=A.pc return A.pc end | ------------------------------------------------------------------------
-- returns current 'pc' and marks it as a jump target (to avoid wrong
-- optimizations with consecutive instructions not in the same basic block).
-- * used in multiple locations
-- * fs.lasttarget tested only by luaK:_nil() when optimizing OP_LOA... |
function Signal.new(A)local r=setmetatable({},Signal)if A then r.connectionsChanged=Signal.new()end r.connections={}r.totalConnections=0 r.waiting={}r.totalWaiting=0 return r end | -- CONSTRUCTOR
function Signal.new(createConnectionsChangedSignal)
local self = setmetatable({}, Signal)
if createConnectionsChangedSignal then
self.connectionsChanged = Signal.new()
end
self.connections = {}
self.totalConnections = 0
self.waiting = {}
self.totalWaiting = 0
return self
end
|
function RxLinkUtils.observeValidLinksBrio(A,r)assert(type(A)=="\115\116\114\105\110\103","\108\105\110\107\078\097\109\101 \115\104\111\117\108\100 \098\101 \'\115\116\114\105\110\103\'")assert(typeof(r)=="\073\110\115\116\097\110\099\101","\112\097\114\101\110\116 \115\104\111\117\108\100 \098\101 \'\073\110\115\116\... | -- Emits valid links in format Brio.new(link, linkValue)
function RxLinkUtils.observeValidLinksBrio(linkName, parent)
assert(type(linkName) == "string", "linkName should be 'string'")
assert(typeof(parent) == "Instance", "parent should be 'Instance'")
return RxInstanceUtils.observeChildrenBrio(parent):Pipe({
Rx.f... |
function VehicleLightsComponent.new(A)local r={model=A;state={headLights=false,brakeLights=false}}setmetatable(r,{__index=VehicleLightsComponent})r:setup()return r end | --[[
Creates a new controller associated with the specified vehicle.
]]
function VehicleLightsComponent.new(model)
local component = {
model = model,
state = {
headLights = false,
brakeLights = false,
},
}
setmetatable(component, { __index = VehicleLightsComponent })
component:setup()
return comp... |
for A,r in pairs(script.Parent.ShopFrame.ButtonsFrame:GetChildren())do if r:IsA("\084\101\120\116\066\117\116\116\111\110")then r.MouseButton1Click:Connect(function()r.Parent.Visible=false script.Parent.ShopFrame.Boxes.Weapon.Value=r.Name script.Parent.ShopFrame.Boxes.Visible=true end)end end | ---Buttons
for _, v in pairs(script.Parent.ShopFrame.ButtonsFrame:GetChildren()) do
if v:IsA("TextButton") then
v.MouseButton1Click:Connect(function()
v.Parent.Visible = false
script.Parent.ShopFrame.Boxes.Weapon.Value = v.Name
script.Parent.ShopFrame.Boxes.Visible = true
end)
end
end
|
local A={}A.__index=A function A.AddChannel(t,A,r)if t.ChatChannels[A:lower()]then error(string.format("\067\104\097\110\110\101\108 \037\113 \097\108\114\097\100\121 \101\120\105\115\116\115\046",A))end local function B(r,B)if B:lower()=="\047\108\101\097\118\101"then local B=t:GetChannel(A)local h=t:GetSpeaker(r)if B... | --////////////////////////////// Methods
--//////////////////////////////////////
local methods = {}
methods.__index = methods
function methods:AddChannel(channelName, autoJoin)
if self.ChatChannels[channelName:lower()] then
error(string.format("Channel %q alrady exists.", channelName))
end
local function Defaul... |
local A=_G.HDAdminMain local r={Phone=1;Tablet=.8,Computer=.6}local t={[A.gui.MainFrame]=.78;[A.gui.MenuTemplates.Template5]=.78;[A.gui.MenuTemplates.Template6]=.78,[A.gui.MenuTemplates.Template7]=.78;[A.gui.MenuTemplates.Template9]=.78,[A.gui.MenuTemplates.Template10]=1.17;[A.gui.MenuTemplates.Template11]=1.17,[A.gui.... | -- Decompiled with the Synapse X Luau decompiler.
local l__HDAdminMain__1 = _G.HDAdminMain
local u1 = {
Phone = 1,
Tablet = 0.8,
Computer = 0.6,
}
local u2 = {
[l__HDAdminMain__1.gui.MainFrame] = 0.78,
[l__HDAdminMain__1.gui.MenuTemplates.Template5] = 0.78,
[l__HDAdminMain__1.gui.MenuTemplates.Template6] = 0.78,... |
MarketplaceService=Game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")MarketplaceService.ProcessReceipt=function(A)players=game.Players:GetPlayers()currency="\083\116\097\103\101"done=0 for r=1,#players,1 do if players[r].userId==A.PlayerId then if A.ProductId==940704785 and done... | --skip stage product id: 940704785
MarketplaceService = Game:GetService("MarketplaceService")
MarketplaceService.ProcessReceipt = function(receiptInfo)
players = game.Players:GetPlayers()
currency = "Stage"
done = 0
for i = 1, #players do
if players[i].userId == receiptInfo.PlayerId then
if receiptInfo.Pr... |
function waitForChild(A,r)while not A:FindFirstChild(r)do A.ChildAdded:wait()end end local A=script.Parent local r=3 local t=CFrame.new()+Vector3.new(0,-1.1,.55)local B=CFrame.new()+Vector3.new(0,-1.1,-0.55)waitForChild(A,"\080\108\097\121\101\114\073\100\084\097\103")waitForChild(A,"\067\111\110\102\105\103\117\114\09... | -- useless comment here
function waitForChild(parent, child)
while not parent:FindFirstChild(child) do
parent.ChildAdded:wait()
end
end
local model = script.Parent
local doorOpenTime = 3
local weld1RelativePosition = CFrame.new() + Vector3.new(0, -1.1, 0.55)
local weld2RelativePosition = CFrame.new() + Vector3.n... |
Firerate=.083333333333333 FireMode=1 | --// Handling Settings
Firerate = 60 / 720 -- 60 = 1 Minute, 700 = Rounds per that 60 seconds. DO NOT TOUCH THE 60!
FireMode = 1 -- 1 = Semi, 2 = Auto, 3 = Burst, 4 = Bolt Action, 5 = Shot, 6 = Explosive
|
sp=script.Parent local A=sp:WaitForChild("\066\111\100\121\086\101\108\111\099\105\116\121")wait(.5+math.random())A.velocity=A.velocity*Vector3.new(1,0,1)for r=1,100,1 do A.velocity=A.velocity+Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*5 wait(.5+math.random())end sp:Destroy() | --Stickmasterluke
sp = script.Parent
local bv = sp:WaitForChild("BodyVelocity")
wait(0.5 + math.random())
bv.velocity = bv.velocity * Vector3.new(1, 0, 1)
for _ = 1, 100 do
bv.velocity = bv.velocity + Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5) * 5
wait(0.5 + math.random())
end
sp:D... |
for A,r in pairs(script.Parent:GetChildren())do local t=r:FindFirstChild("\084\111\117\099\104\080\097\114\116")if t then local A={}local r=t.Color local B=t.Particles t.Touched:Connect(function(h)local I=h.Parent local G=players:GetPlayerFromCharacter(I)if G and not A[G]then A[G]=true local h,R,v=hd:GetRank(G)local a=... | -- << MAIN >>
--Touch Pad
for a, b in pairs(script.Parent:GetChildren()) do
local touchPart = b:FindFirstChild("TouchPart")
if touchPart then
local touchDe = {}
local originalColor = touchPart.Color
local particles = touchPart.Particles
touchPart.Touched:Connect(function(hit)
local character = hit.Parent
... |
game.Workspace.doorright.l11.BrickColor=BrickColor.new(1023)game.Workspace.doorright.l23.BrickColor=BrickColor.new(1023)game.Workspace.doorright.l32.BrickColor=BrickColor.new(1023)game.Workspace.doorright.l53.BrickColor=BrickColor.new(1023)game.Workspace.doorright.l62.BrickColor=BrickColor.new(1023)game.Workspace.doorr... | --------RIGHT DOOR --------
game.Workspace.doorright.l11.BrickColor = BrickColor.new(1023)
game.Workspace.doorright.l23.BrickColor = BrickColor.new(1023)
game.Workspace.doorright.l32.BrickColor = BrickColor.new(1023)
game.Workspace.doorright.l53.BrickColor = BrickColor.new(1023)
game.Workspace.doorright.l62.BrickColor ... |
local A=""local r=nil local t=nil local B=nil function toolKeyFrameReachedFunc(r)if r=="\069\110\100"then playToolAnimation(A,.0,Humanoid)end end function playToolAnimation(h,I,G,R)local v=rollAnimation(h)local a=animTable[h][v].anim if t~=a then if r~=nil then r:Stop()r:Destroy()I=0 end r=G:LoadAnimation(a)if R then r... | -------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
local toolAnimName = ""
local toolAnimTrack = nil
local toolAnimInstance = nil
local currentToolAnimKeyframeHandler = nil
function too... |
i=true script.Parent[BoneModelName]:MoveTo(Vector3.new(0,10000,0));(script.Parent[BoneModelName]:Clone()).Parent=game.ServerStorage script.Parent.RemoteEvent.OnServerEvent:Connect(function(V,c,t,s)if i then i=false local V=(game.ServerStorage:WaitForChild(BoneModelName)):Clone()V.Parent=game.Workspace V.PrimaryPart=V.M... | --------------------)
i = true
script.Parent[BoneModelName]:MoveTo(Vector3.new(0, 10000, 0))
script.Parent[BoneModelName]:Clone().Parent = game.ServerStorage
script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr, X, Y, Z)
if i then
i = false
local zone = game.ServerStorage:WaitForChild(BoneModelName):Clone(... |
function t.numberConstrained(V,c)assert(t.number(V)and t.number(c))local s=t.numberMin(V)local h=t.numberMax(c)return function(V)local c,t=s(V)if not c then return false,t or""end local p,U=h(V)if not p then return false,U or""end return true end end | --[[**
ensures value is a number where min <= value <= max
@param min The minimum to use
@param max The maximum to use
@returns A function that will return true iff the condition is passed
**--]]
function t.numberConstrained(min, max)
assert(t.number(min) and t.number(max))
local minCheck = t.numberMin(min)
lo... |
local V L_103_:connect(function()if L_15_ then L_156_,L_157_=L_156_ or 0,L_157_ or 0 if L_159_==nil or L_158_==nil then L_159_=L_45_.C0 L_158_=L_45_.C1 end local V=math.sin((L_150_*L_152_)/2)*L_151_ local c=math.sin(L_150_*L_152_)*L_151_ local t=CFrame.new(V,c,.02)local s=math.sin((L_146_*L_149_)/2)*L_148_ local h=math... | --// Renders
local L_161_
L_103_:connect(function()
if L_15_ then
L_156_, L_157_ = L_156_ or 0, L_157_ or 0
if L_159_ == nil or L_158_ == nil then
L_159_ = L_45_.C0
L_158_ = L_45_.C1
end
local L_271_ = (math.sin(L_150_ * L_152_ / 2) * L_151_)
local L_272_ = (math.sin(L_150_ * L_152_) * L_151_)
loca... |
function Promise.defer(V)local c=debug.traceback(nil,2)local t t=Promise._new(c,function(t,s,h)task.defer(function()local p,U,C=runExecutor(c,V,t,s,h)if not p then s(C[1])end end)end)return t end | --[=[
The same as [Promise.new](/api/Promise#new), except execution begins after the next `Heartbeat` event.
This is a spiritual replacement for `spawn`, but it does not suffer from the same [issues](https://eryn.io/gist/3db84579866c099cdd5bb2ff37947cec) as `spawn`.
```lua
local function waitForChild(instance, ch... |
Tool=script.Parent Handle=Tool:WaitForChild("\072\097\110\100\108\101")Players=game:GetService("\080\108\097\121\101\114\115")RunService=game:GetService("\082\117\110\083\101\114\118\105\099\101")ContentProvider=game:GetService("\067\111\110\116\101\110\116\080\114\111\118\105\100\101\114")RbxUtility=LoadLibrary("\082\... | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
ContentProvider = game:GetService("ContentProvider")
RbxUtility = LoadLibrary("RbxUtility")
Create = RbxUtility.Create
Animations = {}
ServerControl = Tool:... |
Tune.SteerInner=36 Tune.SteerOuter=37 Tune.SteerSpeed=.05 Tune.ReturnSpeed=.1 Tune.SteerDecay=320 Tune.MinSteer=10 Tune.MSteerExp=1 Tune.SteerD=1000 Tune.SteerMaxTorque=50000 Tune.SteerP=100000 | --[[Steering]]
Tune.SteerInner = 36 -- Inner wheel steering angle (in degrees)
Tune.SteerOuter = 37 -- Outer wheel steering angle (in degrees)
Tune.SteerSpeed = 0.05 -- Steering increment per tick (in degrees)
Tune.ReturnSpeed = 0.1 -- Steering increment per tick (in degrees)
Tune.SteerDecay = 320 -- Speed of gradient ... |
(Elevator:WaitForChild("\068\105\114\101\099\116\105\111\110")).Changed:connect(function(V)if V==1 then This.Display.ARW1.U.Color=DisplayColor This.Display.ARW1.M.Color=DisplayColor This.Display.ARW1.D.Color=DisabledColor This.Display.ARW1.U.Material=Lit This.Display.ARW1.M.Material=Lit This.Display.ARW1.D.Material=Unl... | -- -- -- -- -- -- --
--DIRECTION SCROLL--
-- -- -- -- -- -- --
Elevator:WaitForChild("Direction").Changed:connect(function(val)
if val == 1 then
This.Display.ARW1.U.Color = DisplayColor
This.Display.ARW1.M.Color = DisplayColor
This.Display.ARW1.D.Color = DisabledColor
This.Display.ARW1.U.Material = Lit
This... |
local V={}V.__index=V local function c()local V=Instance.new("\070\114\097\109\101")V.Selectable=false V.Size=UDim2.new(1,0,1,0)V.BackgroundTransparency=1 local c=Instance.new("\083\099\114\111\108\108\105\110\103\070\114\097\109\101")c.Selectable=ChatSettings.GamepadNavigationEnabled c.Name="\083\099\114\111\108\108\1... | --////////////////////////////// Methods
--//////////////////////////////////////
local methods = {}
methods.__index = methods
local function CreateGuiObjects()
local BaseFrame = Instance.new("Frame")
BaseFrame.Selectable = false
BaseFrame.Size = UDim2.new(1, 0, 1, 0)
BaseFrame.BackgroundTransparency = 1
local S... |
function Signal.new(V)local c=setmetatable({},Signal)c._bindableEvent=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")if V then c.connectionsChanged=Signal.new()end return c end | -- CONSTRUCTOR
function Signal.new(trackConnectionsChanged)
local self = setmetatable({}, Signal)
self._bindableEvent = Instance.new("BindableEvent")
if trackConnectionsChanged then
self.connectionsChanged = Signal.new()
end
return self
end
|
local V=.2 local c=false local t=false local s=1 local function h(V,c,t)if t<c then t=c end return math.clamp(V,c,t)end local function p(V)return V==V and(V~=1/0 and V~=-1/0)end local function U(V)return p(V.x)and(p(V.y)and p(V.z))end | --[[ Gamepad Support ]]
--
local THUMBSTICK_DEADZONE = 0.2
local r3ButtonDown = false
local l3ButtonDown = false
local currentZoomSpeed = 1 -- Multiplier, so 1 == no zooming
local function clamp(value, minValue, maxValue)
if maxValue < minValue then
maxValue = minValue
end
return math.clamp(value, minValue, maxVa... |
Tune.Config="\070\087\068"Tune.FDiffSlipThres=50 Tune.FDiffLockThres=50 Tune.RDiffSlipThres=50 Tune.RDiffLockThres=50 Tune.CDiffSlipThres=50 Tune.CDiffLockThres=50 Tune.TCSEnabled=true Tune.TCSThreshold=20 Tune.TCSGradient=20 Tune.TCSLimit=10 | --[[Drivetrain]]
Tune.Config = "FWD" --"FWD" , "RWD" , "AWD"
--Differential Settings
Tune.FDiffSlipThres = 50 -- 1 - 100% (Max threshold of applying full lock determined by deviation from avg speed)
Tune.FDiffLockThres = 50 -- 0 - 100% (0 - Bias toward slower wheel, 100 - Bias toward faster wheel)
Tune.RDiffSlip... |
Tune.AutoShiftMode="\083\112\101\101\100"Tune.AutoUpThresh=-200 Tune.AutoDownThresh=1400 | --Automatic Settings
Tune.AutoShiftMode = "Speed" --[[
[Modes]
"Speed" : Shifts based on wheel speed
"RPM" : Shifts based on RPM ]]
Tune.AutoUpThresh = -200 --Automatic upshift point (relative to peak RPM, positive = Over-rev)
Tune.AutoDownThresh = 1400 --Automatic downshift point (relative to peak RP... |
local V={}function V.type(V)return function(c)local t=type(c)if t==V then return true else return false end end end function V.typeof(V)return function(c)local t=typeof(c)if t==V then return true else return false end end end | -- t: a runtime typechecker for Roblox
local t = {}
function t.type(typeName)
return function(value)
local valueType = type(value)
if valueType == typeName then
return true
else
return false
end
end
end
function t.typeof(typeName)
return function(value)
local valueType = typeof(value)
if valueTy... |
function CameraModule.Update(c,V)if c.activeCameraController then c.activeCameraController:UpdateMouseBehavior()local t,s=c.activeCameraController:Update(V)if not FFlagUserFlagEnableNewVRSystem then c.activeCameraController:ApplyVRTransform()end if c.activeOcclusionModule then t,s=c.activeOcclusionModule:Update(V,t,s)e... | --[[
Main RenderStep Update. The camera controller and occlusion module both have opportunities
to set and modify (respectively) the CFrame and Focus before it is set once on CurrentCamera.
The camera and occlusion modules should only return CFrames, not set the CFrame property of
CurrentCamera directly.
--]]
funct... |
if not RunService:IsRunning()then return function(V)return Promise.resolved(GetRemoteEvent(V))end elseif RunService:IsServer()then return function(V)return Promise.resolved(GetRemoteEvent(V))end else return function(V)assert(type(V)=="\115\116\114\105\110\103","\066\097\100 \110\097\109\101")local c=ReplicatedStorage:F... | --[=[
Like [GetRemoteEvent] but in promise form.
@function PromiseGetRemoteEvent
@within PromiseGetRemoteEvent
@param name string
@return Promise<RemoteEvent>
]=]
if not RunService:IsRunning() then
-- Handle testing
return function(name)
return Promise.resolved(GetRemoteEvent(name))
end
elseif RunService:IsS... |
Tune.RevAccel=150 Tune.RevDecay=75 Tune.RevBounce=500 Tune.IdleThrottle=3 Tune.ClutchTol=500 | --Misc
Tune.RevAccel = 150 -- RPM acceleration when clutch is off
Tune.RevDecay = 75 -- RPM decay when clutch is off
Tune.RevBounce = 500 -- RPM kickback from redline
Tune.IdleThrottle = 3 -- Percent throttle at idle
Tune.ClutchTol = 500 -- Clutch engagement threshold (higher = faster response)
|
local function V(V,c,t)assert(c<=t,"\115\116\097\114\116\073\110\100\101\120 \109\117\115\116 \098\101 \108\101\115\115 \116\104\097\110 \111\114 \101\113\117\097\108 \116\111 \101\110\100\073\110\100\101\120")local s={}local h=1 for c=1,math.min(#V,c-1),1 do s[h]=V[c]h=h+1 end for c=t+1,#V,1 do s[h]=V[c]h=h+1 end retu... | --[[
Remove the range from the list starting from the index.
]]
local function removeRange(list, startIndex, endIndex)
assert(startIndex <= endIndex, "startIndex must be less than or equal to endIndex")
local new = {}
local index = 1
for i = 1, math.min(#list, startIndex - 1) do
new[index] = list[i]
index = ... |
This=script.Parent Elevator=This.Parent.Parent.Parent.Parent.Parent Characters=require(script.Characters)CustomLabel=require(Elevator.CustomLabel)CustomText=CustomLabel.CUSTOMFLOORLABEL;(This.Parent.Parent.Parent.Parent.Parent:WaitForChild("\070\108\111\111\114")).Changed:connect(function(V)ChangeFloor(tostring(V))end)... | ---------------------------------------------------
This = script.Parent
Elevator = This.Parent.Parent.Parent.Parent.Parent
Characters = require(script.Characters)
CustomLabel = require(Elevator.CustomLabel)
CustomText = CustomLabel["CUSTOMFLOORLABEL"]
This.Parent.Parent.Parent.Parent.Parent:WaitForChild("Floor").Ch... |
gunrecoil=-0.5 camrecoil=.5 AimGunRecoil=-0.5 AimCamRecoil=.13 CamShake=.5 AimCamShake=.5 Kickback=1 AimKickback=.5 | --// Recoil Settings
gunrecoil = -0.5 -- How much the gun recoils backwards when not aiming
camrecoil = 0.5 -- How much the camera flicks when not aiming
AimGunRecoil = -0.5 -- How much the gun recoils backwards when aiming
AimCamRecoil = 0.13 -- How much the camera flicks when aiming
CamShake = 0.5 -- THIS IS NEW!!!!... |
function stopAllAnimations()local V=currentAnim if emoteNames[V]~=nil and emoteNames[V]==false then V="\105\100\108\101"end currentAnim=""currentAnimInstance=nil if currentAnimKeyframeHandler~=nil then currentAnimKeyframeHandler:disconnect()end if currentAnimTrack~=nil then currentAnimTrack:Stop()currentAnimTrack:Destr... | -- functions
function stopAllAnimations()
local oldAnim = currentAnim
-- return to idle if finishing an emote
if emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false then
oldAnim = "idle"
end
currentAnim = ""
currentAnimInstance = nil
if currentAnimKeyframeHandler ~= nil then
currentAnimKeyframeHan... |
function CameraUtils.map(V,c,t,s,h)return((V-c)*(h-s))/(t-c)+s end | -- map a value from one range to another
function CameraUtils.map(x, inMin, inMax, outMin, outMax)
return (x - inMin) * (outMax - outMin) / (inMax - inMin) + outMin
end
|
local V,c,t=true,false,{}local s={[58]={{72;71;61;59,41;30,56,58};V};[49]={{72,71,61;59,41,39,35,34;32,31,29;28,44;45;49},V};[16]={t,c},[19]={{72,71,61;59,41;30,56,58;20;19};V};[59]={{72,71,61;59},V};[63]={{72,71;61,59,41;30;56,58,23,62;63};V},[34]={{72,71;61,59,41;39,35,34},V},[21]={{72,71,61;59,41;30,56;58;20,21};V};... | --Precalculated paths
local t, f, n = true, false, {}
local r = {
[58] = { { 72, 71, 61, 59, 41, 30, 56, 58 }, t },
[49] = { { 72, 71, 61, 59, 41, 39, 35, 34, 32, 31, 29, 28, 44, 45, 49 }, t },
[16] = { n, f },
[19] = { { 72, 71, 61, 59, 41, 30, 56, 58, 20, 19 }, t },
[59] = { { 72, 71, 61, 59 }, t },
[63] = { { ... |
Trigger.MouseClick:Connect(function(V)if not Settings.OnCD then local c=V.Backpack local t=V.StarterGear for V,c in pairs(c:GetChildren())do if c then c:Destroy()end end for V,c in pairs(t:GetChildren())do if c then c:Destroy()end end local s=(Tools:FindFirstChild(Gun.Name)):Clone();(s:Clone()).Parent=c;(s:Clone()).Par... | --//Controller//--
Trigger.MouseClick:Connect(function(Player)
if not Settings.OnCD then
local Backpack = Player.Backpack
local StarterGear = Player.StarterGear
for _, Tool in pairs(Backpack:GetChildren()) do
if Tool then
Tool:Destroy()
end
end
for _, Tool in pairs(StarterGear:GetChildren()) do
... |
Tune.TransModes={"\083\101\109\105"}Tune.AutoShiftMode="\083\112\101\101\100"Tune.AutoUpThresh=-200 Tune.AutoDownThresh=2000 Tune.FinalDrive=3.84 Tune.Ratios={3.42,0;4.37;2.76;1.94,1.45;1.05,.85,.69}Tune.FDMult=1 | --[[Transmission]]
Tune.TransModes = { "Semi" } --"Auto", "Semi", or "Manual". Can have more than one; order from first to last
--Automatic Settings
Tune.AutoShiftMode = "Speed" --"Speed" or "RPM"
Tune.AutoUpThresh = -200 --Automatic upshift point (relative to peak RPM, positive = Over-rev)
Tune.AutoDownThresh = 2000 ... |
while true do R.BrickColor=BrickColor.new("\067\071\065 \098\114\111\119\110")wait(.3)R.BrickColor=BrickColor.new("\082\101\097\108\108\121 \098\108\097\099\107")wait(.3)end | -------------------------
while true do
R.BrickColor = BrickColor.new("CGA brown")
wait(0.3)
R.BrickColor = BrickColor.new("Really black")
wait(0.3)
end
|
Tune.Horsepower=1400 Tune.IdleRPM=600 Tune.PeakRPM=7000 Tune.Redline=8100 Tune.EqPoint=7000 Tune.PeakSharpness=9.4 Tune.CurveMult=0 Tune.InclineComp=1.7 Tune.RevAccel=450 Tune.RevDecay=75 Tune.RevBounce=500 Tune.IdleThrottle=3 Tune.ClutchTol=500 | --[[Engine]]
--Torque Curve
Tune.Horsepower = 1400
Tune.IdleRPM = 600
Tune.PeakRPM = 7000
Tune.Redline = 8100
Tune.EqPoint = 7000
Tune.PeakSharpness = 9.4
Tune.CurveMult = 0
--Incline Compensation
Tune.InclineComp = 1.7 -- Torque compensation multiplier for inclines (applies gradient from 0-90 degrees)
--Misc
Tune.Re... |
local V=game:GetService("\080\108\097\121\101\114\115")local c=game:GetService("\082\117\110\083\101\114\118\105\099\101")local t={Climbing={SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\102\111\111\116\115\116\101\112\115\095\112\108\097\115\116\105\099\0... | -- Roblox character sound script
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local SOUND_DATA = {
Climbing = {
SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3",
Looped = true,
},
Died = {
SoundId = "rbxasset://sounds/uuhhh.mp3",
},
FreeFalling = {
... |
function angleBetweenPoints(V,c)local t=V-c return-math.atan2(t.z,t.x)end function getCameraAngle(V)local c,t=V.CoordinateFrame,V.Focus return angleBetweenPoints(c.p,t.p)end | -- Helper functions
function angleBetweenPoints(p0, p1)
local p = p0 - p1
return -math.atan2(p.z, p.x)
end
function getCameraAngle(camera)
local cf, f = camera.CoordinateFrame, camera.Focus
return angleBetweenPoints(cf.p, f.p)
end
|
return function(V,c)if c then setfenv(1,c)end local t=client.UI.Prepare(script.Parent.Parent)local s=service.PlayerGui local h=t.Frame local p=t.Frame.Message local U=t.Frame.Title local C=V.gIndex local r=V.gTable local q=V.Title local u=V.Message local L=V.Scroll local D=V.Time if not V.Message or not V.Title then t:... | --// All global vars will be wiped/replaced except script
return function(data, env)
if env then
setfenv(1, env)
end
local gui = client.UI.Prepare(script.Parent.Parent) -- Change it to a TextLabel to avoid chat clearing
local playergui = service.PlayerGui
local frame = gui.Frame
local msg = gui.Frame.Message
... |
local V=(game:GetService("\082\117\110\083\101\114\118\105\099\101")):IsStudio();(game:GetService("\078\101\116\119\111\114\107\067\108\105\101\110\116")).ChildRemoved:Connect(function(c)if not V then warn("~\033 \080\076\065\089\069\082 \068\073\083\067\079\078\078\069\067\084\069\068\047\075\073\067\075\069\068\033 \... | --// Dump log on disconnect
local isStudio = game:GetService("RunService"):IsStudio()
game:GetService("NetworkClient").ChildRemoved:Connect(function(p)
if not isStudio then
warn("~! PLAYER DISCONNECTED/KICKED! DUMPING ADONIS CLIENT LOG!")
dumplog()
end
end)
local unique = {}
local origEnv = getfenv()
setfenv(1, ... |
local V=_Tune.Controls local c=Instance.new("\070\111\108\100\101\114",script.Parent)c.Name="\067\111\110\116\114\111\108\115"for t,s in pairs(V)do local h=Instance.new("\083\116\114\105\110\103\086\097\108\117\101",c)h.Name=t h.Value=s.Name h.Changed:connect(function()if t=="\077\111\117\115\101\084\104\114\111\116\11... | --[[Controls]]
local _CTRL = _Tune.Controls
local Controls = Instance.new("Folder", script.Parent)
Controls.Name = "Controls"
for i, v in pairs(_CTRL) do
local a = Instance.new("StringValue", Controls)
a.Name = i
a.Value = v.Name
a.Changed:connect(function()
if i == "MouseThrottle" or i == "MouseBrake" then
i... |
local V={}function module.ApplyBundle(s,c,t)local h=V[t]if not h then local c,s=pcall(function()return main.assetService:GetBundleDetailsAsync(t)end)if c and s then for s,p in next,s.Items do if p.Type=="\085\115\101\114\079\117\116\102\105\116"then c,h=pcall(function()return main.players:GetHumanoidDescriptionFromOutf... | --[[
for a,b in pairs(game.ServerScriptService.MainModule.Server.Morphs:GetDescendants()) do
if b:IsA("Decal") and b.Name ~= "face" and b.Parent.Name == "Head" then
print("CHANGED: ".. b.Name.." | "..b.Parent.Parent.Name)
b.Name = "face"
end
end
--]]
local bundleCache = {} -- cache HumanoidDescriptions retrieved... |
local V=script.Parent.Parent.Parent.Parent.Parent.DockShelf local c=script.Parent.Parent.Parent.Parent.Parent.WindowManager.CtxtMenu local t=c.About local s=script.Parent local h=script.Parent.Parent.Parent | -- Get references to the DockShelf and its children
local dockShelf = script.Parent.Parent.Parent.Parent.Parent.DockShelf
local shlf = script.Parent.Parent.Parent.Parent.Parent.WindowManager.CtxtMenu
local aFinderButton = shlf.About
local Minimalise = script.Parent
local window = script.Parent.Parent.Parent
|
local V=game:GetService("\083\111\117\110\100\083\101\114\118\105\099\101")local c=game:GetService("\082\117\110\083\101\114\118\105\099\101");(script:WaitForChild("\070\111\111\116\115\116\101\112\083\111\117\110\100\115")).Parent=V local t=V:WaitForChild("\070\111\111\116\115\116\101\112\083\111\117\110\100\115")loca... | --PUT THIS SCRIPT IN STARTERPACK, STOP DISLIKING IT BECAUSE YOU DIDN'T USE IT RIGHT
local sounds = game:GetService("SoundService")
local runtime = game:GetService("RunService")
script:WaitForChild("FootstepSounds").Parent = sounds
local materials = sounds:WaitForChild("FootstepSounds")
local plr = game.Players.LocalPl... |
Tune.SusEnabled=true Tune.FSusDamping=500 Tune.FSusStiffness=9000 Tune.FAntiRoll=50 Tune.FSusLength=1 Tune.FPreCompress=.3 Tune.FExtensionLim=.3 Tune.FCompressLim=.1 Tune.FSusAngle=80 Tune.FWsBoneLen=5 Tune.FWsBoneAngle=0 Tune.FAnchorOffset={-0.4;-0.5,0}Tune.RSusDamping=500 Tune.RSusStiffness=9000 Tune.FAntiRoll=50 Tun... | --[[Susupension]]
Tune.SusEnabled = true -- works only in with PGSPhysicsSolverEnabled, defaults to false when PGS is disabled
--Front Suspension
Tune.FSusDamping = 500 -- Spring Dampening
Tune.FSusStiffness = 9000 -- Spring Force
Tune.FAntiRoll = 50 -- Anti-Roll (Gyro Dampening)
Tune.FSusLength = 1 -- Suspension len... |
local V do local c,t=pcall(function()return(UserSettings()):IsUserFeatureEnabled("\085\115\101\114\067\097\109\101\114\097\071\097\109\101\112\097\100\090\111\111\109\070\105\120")end)V=c and t end | -- [[ Flags ]]
local FFlagUserCameraGamepadZoomFix
do
local success, result = pcall(function()
return UserSettings():IsUserFeatureEnabled("UserCameraGamepadZoomFix")
end)
FFlagUserCameraGamepadZoomFix = success and result
end
|
local V=Instance.new("\077\111\116\111\114",script.Parent.Parent.Misc.WPR.SS)V.MaxVelocity=.05 V.Part0=script.Parent.WPR V.Part1=V.Parent local c=Instance.new("\077\111\116\111\114",script.Parent.Parent.Misc.WPR2.SS)c.MaxVelocity=.05 c.Part0=script.Parent.WPR2 c.Part1=c.Parent | --//wipers
local wpr = Instance.new("Motor", script.Parent.Parent.Misc.WPR.SS)
wpr.MaxVelocity = 0.05
wpr.Part0 = script.Parent.WPR
wpr.Part1 = wpr.Parent
local wpr2 = Instance.new("Motor", script.Parent.Parent.Misc.WPR2.SS)
wpr2.MaxVelocity = 0.05
wpr2.Part0 = script.Parent.WPR2
wpr2.Part1 = wpr2.Parent
|
function Icon.bindEvent(t,V,c)local s=t[V]assert(s and(typeof(s)=="\116\097\098\108\101"and s.Connect),"\097\114\103\117\109\101\110\116\091\049\093 \109\117\115\116 \098\101 \097 \118\097\108\105\100 \116\111\112\098\097\114\112\108\117\115 \105\099\111\110 \101\118\101\110\116 \110\097\109\101\033")assert(typeof(c)==... | -- FEATURE METHODS
function Icon:bindEvent(iconEventName, eventFunction)
local event = self[iconEventName]
assert(
event and typeof(event) == "table" and event.Connect,
"argument[1] must be a valid topbarplus icon event name!"
)
assert(typeof(eventFunction) == "function", "argument[2] must be a function!")
sel... |
local V=true function onClicked()if V==true then V=false One()elseif V==false then V=true Two()end end script.Parent.MouseButton1Down:connect(onClicked) | -- Don't edit below unless you know what you're doing.
local O = true
function onClicked()
if O == true then
O = false
One()
elseif O == false then
O = true
Two()
end
end
script.Parent.MouseButton1Down:connect(onClicked)
|
local function V(V)return V:GetState()end | -- The script needs this to check the state to not update the Last Standing Y Position Variable.
local function getHumanoidState(h)
return h:GetState()
end
|
function module.new()local V=setmetatable({},methods)V.MessageIdCounter=0 V.ChatChannels={}V.Speakers={}V.FilterMessageFunctions=Util:NewSortedFunctionContainer()V.ProcessCommandsFunctions=Util:NewSortedFunctionContainer()V.eChannelAdded=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")V.eChannelRemo... | --///////////////////////// Constructors
--//////////////////////////////////////
function module.new()
local obj = setmetatable({}, methods)
obj.MessageIdCounter = 0
obj.ChatChannels = {}
obj.Speakers = {}
obj.FilterMessageFunctions = Util:NewSortedFunctionContainer()
obj.ProcessCommandsFunctions = Util:NewS... |
function FpsCamera.MountBaseCamera(c,V)local t=V.GetSubjectPosition c.GetBaseSubjectPosition=t if t then V.GetBaseSubjectPosition=t V.GetSubjectPosition=c.GetSubjectPosition else c:Warn("\077\111\117\110\116\066\097\115\101\067\097\109\101\114\097 - \067\111\117\108\100 \110\111\116 \102\105\110\100 \066\097\115\101\06... | -- Overloads BaseCamera:GetSubjectPosition() with
-- the GetSubjectPosition function of the FpsCamera.
function FpsCamera:MountBaseCamera(BaseCamera)
local base = BaseCamera.GetSubjectPosition
self.GetBaseSubjectPosition = base
if base then
BaseCamera.GetBaseSubjectPosition = base
BaseCamera.GetSubjectPosition... |
local V=Players.LocalPlayer local c=V.Character or V.CharacterAdded:wait()local t=c:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116",true)local s=game.Workspace.CurrentCamera | -- Make variables for the player and camera
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart", true)
local camera = game.Workspace.CurrentCamera
|
mouse.KeyUp:connect(function(V)if V=="\104"then veh.Lightbar.middle.Airhorn:Stop()veh.Lightbar.middle.Wail.Volume=8 veh.Lightbar.middle.Yelp.Volume=8 veh.Lightbar.middle.Priority.Volume=8 veh.Lightbar.HORN.Transparency=1 end end) | --// F key, HornOff
mouse.KeyUp:connect(function(key)
if key == "h" then
veh.Lightbar.middle.Airhorn:Stop()
veh.Lightbar.middle.Wail.Volume = 8
veh.Lightbar.middle.Yelp.Volume = 8
veh.Lightbar.middle.Priority.Volume = 8
veh.Lightbar.HORN.Transparency = 1
end
end)
|
r=game:service("\082\117\110\083\101\114\118\105\099\101")local V=1e+38 local c=1e+32 local t=1e+32 sword=script.Parent.Handle Tool=script.Parent local s=Instance.new("\083\111\117\110\100")s.SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\092\115\119\111\114\100\115\108\097\115\104\046\11... | -------- OMG HAX
r = game:service("RunService")
local damage = 99999999999999999999999999999999999999
local slash_damage = 99999999999999999999999999999999
local lunge_damage = 99999999999999999999999999999999
sword = script.Parent.Handle
Tool = script.Parent
local SlashSound = Instance.new("Sound")
SlashSound.Sou... |
local V="\078\111\110\101"local c=0 local t=0 local s=.31 local h=.1 local p=.2 | -- declarations
local toolAnim = "None"
local toolAnimTime = 0
local jumpAnimTime = 0
local jumpAnimDuration = 0.31
local toolTransitionTime = 0.1
local fallTransitionTime = 0.2
|
function checkTeams(V)return not(sameTeam(V)and not FriendlyFire)end function getKnife()local V=Handle:clone()V.Transparency=0 V.Hit.Pitch=math.random(90,110)/100 local c=Instance.new("\066\111\100\121\070\111\114\099\101")c.force=(Vector3.new(0,196.2,0)*V:GetMass())*.8 c.Parent=V local t=Tool.Projectile:Clone()t.Disab... | --use this to determine if you want this human to be harmed or not, returns boolean
function checkTeams(otherHuman)
return not (sameTeam(otherHuman) and not FriendlyFire)
end
function getKnife()
local knife = Handle:clone()
knife.Transparency = 0
knife.Hit.Pitch = math.random(90, 110) / 100
local lift = Instance... |
Tune.SteerD=100 Tune.SteerMaxTorque=4500 Tune.SteerP=1200 | --Steer Gyro Tuning
Tune.SteerD = 100 -- Steering Dampening
Tune.SteerMaxTorque = 4500 -- Steering Force
Tune.SteerP = 1200 -- Steering Aggressiveness
|
targetparts={}function updatecam()camupdater=runservice.RenderStepped:connect(function()workspace.CurrentCamera.CFrame=CFrame.new(Cam.CFrame.p,TARGET.CFrame.p)end)end function click()if mouse.Hit~=nil then for V,c in pairs(workspace:GetChildren())do if c:IsAncestorOf(mouse.Target)then if c.Name==TN[1]or TN[2]or TN[3]or... | ------------------------------
targetparts = {}
function updatecam()
camupdater = runservice.RenderStepped:connect(function()
workspace.CurrentCamera.CFrame = CFrame.new(Cam.CFrame.p, TARGET.CFrame.p)
end)
end
function click()
if mouse.Hit ~= nil then
for i, v in pairs(workspace:GetChildren()) do
if v:IsAn... |
function methods.InternalSendFilteredMessageWithFilterResult(t,V,c)local s=ShallowCopy(V)local h=s.FilterResult local p=t:GetPlayer()local U=""pcall(function()if s.IsFilterResult then if p then U=h:GetChatForUserAsync(p.UserId)else U=h:GetNonChatStringForBroadcastAsync()end else U=h end end)if#U>0 then s.Message=U s.Fi... | --// This method is to be used with the new filter API. This method takes the
--// TextFilterResult objects and converts them into the appropriate string
--// messages for each player.
function methods:InternalSendFilteredMessageWithFilterResult(inMessageObj, channelName)
local messageObj = ShallowCopy(inMessageObj)
... |
return function(V)local c=service.PlayerGui local t=service.Players.LocalPlayer local s=client.UI.Prepare(script.Parent.Parent)local h=s.Window local p=V.Message local U=V.Color local C=client.UI.Get("\079\117\116\112\117\116")if C then for V,c in pairs(C)do local t=c.Object if t and t.Parent then t.Window.Position=UDi... | --// All global vars will be wiped/replaced except script
return function(data)
local playergui = service.PlayerGui
local localplayer = service.Players.LocalPlayer
local scr = client.UI.Prepare(script.Parent.Parent)
local window = scr.Window
local msg = data.Message
local color = data.Color
local found = clien... |
spawn(function()while vars.Wandering.Value==false and human.Health>0 do vars.Chasing.Value=false vars.Wandering.Value=true local V,c=hroot.Position.x+math.random(-WanderX,WanderX),hroot.Position.z+math.random(-WanderZ,WanderZ)local function t(V)local c=3 if c>#V then c=3 end if V[c]==nil and c<#V then repeat c=c+1 wait... | -- wandering
spawn(function()
while vars.Wandering.Value == false and human.Health > 0 do
vars.Chasing.Value = false
vars.Wandering.Value = true
local desgx, desgz =
hroot.Position.x + math.random(-WanderX, WanderX), hroot.Position.z + math.random(-WanderZ, WanderZ)
local function checkw(t)
local ci = 3
... |
module.MinimumWindowSize=UDim2.new(.3,0,.25,0)module.MaximumWindowSize=UDim2.new(1,0,1,0)module.DefaultWindowPosition=UDim2.new(0,0,0,0)local V=24 module.DefaultWindowSizePhone=UDim2.new(.5,0,.5,V)module.DefaultWindowSizeTablet=UDim2.new(.4,0,.3,V)module.DefaultWindowSizeDesktop=UDim2.new(.3,0,.25,V) | ---[[ Window Settings ]]
module.MinimumWindowSize = UDim2.new(0.3, 0, 0.25, 0)
module.MaximumWindowSize = UDim2.new(1, 0, 1, 0) -- if you change this to be greater than full screen size, weird things start to happen with size/position bounds checking.
module.DefaultWindowPosition = UDim2.new(0, 0, 0, 0)
local extraOffs... |
local V=require(script.Parent.CameraShakeInstance)local c={Bump=function()local c=V.new(2.5,4,.1,.75)c.PositionInfluence=Vector3.new(.15,.15,.15)c.RotationInfluence=Vector3.new(1,1,1)return c end;Explosion=function()local c=V.new(5,10,0,.8)c.PositionInfluence=Vector3.new(.5,.5,.5)c.RotationInfluence=Vector3.new(1,1,1)r... | --[[
CameraShakePresets.Bump
CameraShakePresets.Explosion
CameraShakePresets.Earthquake
CameraShakePresets.BadTrip
CameraShakePresets.HandheldCamera
CameraShakePresets.Vibration
CameraShakePresets.RoughDriving
--]]
local CameraShakeInstance = require(script.Parent.CameraShakeInstance)
local CameraShakePres... |
Tune.RSusDamping=401 Tune.RSusStiffness=14000 Tune.FAntiRoll=18.82 Tune.RSusLength=2 Tune.RPreCompress=.3 Tune.RExtensionLim=.3 Tune.RCompressLim=.1 Tune.RSusAngle=54 Tune.RWsBoneLen=5 Tune.RWsBoneAngle=2 Tune.RAnchorOffset={-0.4,-0.5;0} | --Rear Suspension
Tune.RSusDamping = 401 -- Spring Dampening
Tune.RSusStiffness = 14000 -- Spring Force
Tune.FAntiRoll = 18.82 -- Anti-Roll (Gyro Dampening)
Tune.RSusLength = 2 -- Suspension length (in studs)
Tune.RPreCompress = 0.3 -- Pre-compression adds resting length force
Tune.RExtensionLim = 0.3 -- Max Extension... |
local a=.1 local I={enabled=true,walkingspeed=16;backwardsspeed=10,sidewaysspeed=15,diagonalspeed=16,runningspeed=25;runningFOV=85} | -- you can mess with these settings
local easingtime = 0.1 --0~1
local walkspeeds = {
enabled = true,
walkingspeed = 16,
backwardsspeed = 10,
sidewaysspeed = 15,
diagonalspeed = 16,
runningspeed = 25,
runningFOV = 85,
}
|
function Leap()wait(.25)script.Parent.GripForward=Vector3.new(0,0,1)script.Parent.GripPos=Vector3.new(-1,0,0)script.Parent.GripRight=Vector3.new(-1,0,0)script.Parent.GripUp=Vector3.new(0,1,0)wait(.75)script.Parent.GripForward=Vector3.new(-0.291,.485,.825)script.Parent.GripPos=Vector3.new(-1.5,0,0)script.Parent.GripRigh... | --[[function pm(x)
if game.Players:findFirstChild(script.Parent.Parent.Name)~=nil then
local bob=game.Players:findFirstChild(script.Parent.Parent.Name)
local mess=Instance.new("Message")
while bob:findFirstChild("Message")~=nil do bob.Message:remove() end
mess.Parent=bob
if x==1 then
mess.Text="I Chord"
... |
local a=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local I=a.AvatarEditor local X=require(I.Client.GuiLib.LazyLoader)local u=require(I.Shared.Util.Maid)local M=require(I.Shared.Util.Signal)local U=require(I.Shared.Util.Promise)local w=require(I.Shared.Settings)local v={}v.__i... | --[[
]]
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local AvatarEditor = ReplicatedStorage.AvatarEditor
local GuiLib = require(AvatarEditor.Client.GuiLib.LazyLoader)
local Maid = require(AvatarEditor.Shared.Util.Maid)
local Signal = require(AvatarEditor.Shared.Util.Signal)
local Promise = requir... |
function EquipAnim()AnimDebounce=false pcall(function()AnimData.EquipAnim({RArmWeld,LArmWeld;GunWeld,WeaponInHand,ViewModel})end)AnimDebounce=true end function IdleAnim()pcall(function()AnimData.IdleAnim({RArmWeld;LArmWeld,GunWeld,WeaponInHand;ViewModel})end)AnimDebounce=true end function SprintAnim()AnimDebounce=false... | ----------//Animation Loader\\----------
function EquipAnim()
AnimDebounce = false
pcall(function()
AnimData.EquipAnim({
RArmWeld,
LArmWeld,
GunWeld,
WeaponInHand,
ViewModel,
})
end)
AnimDebounce = true
end
function IdleAnim()
pcall(function()
AnimData.IdleAnim({
RArmWeld,
LArmWeld,
... |
function Prone()UpdateAmmo()L_104_:FireServer("\080\114\111\110\101");(L_14_:Create(L_3_:WaitForChild("\072\117\109\097\110\111\105\100"),TweenInfo.new(.3),{CameraOffset=Vector3.new(0,-3,0)})):Play();(L_3_:WaitForChild("\072\117\109\097\110\111\105\100")).WalkSpeed=4 L_144_=4 L_143_=.025 L_61_=true Proned2=Vector3.new(... | --// Stances
function Prone()
UpdateAmmo()
L_104_:FireServer("Prone")
L_14_:Create(L_3_:WaitForChild("Humanoid"), TweenInfo.new(0.3), {
CameraOffset = Vector3.new(0, -3, 0),
}):Play()
L_3_:WaitForChild("Humanoid").WalkSpeed = 4
L_144_ = 4
L_143_ = 0.025
L_61_ = true
Proned2 = Vector3.new(0, 0.5, 0.5)
L_... |
playAnimation("\105\100\108\101",.1,Humanoid)pose="\083\116\097\110\100\105\110\103"while Figure.Parent~=nil do local a,I=wait(.1)move(I)end | -- initialize to idle
playAnimation("idle", 0.1, Humanoid)
pose = "Standing"
while Figure.Parent ~= nil do
local _, time = wait(0.1)
move(time)
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.