input stringlengths 6 11.4M | output stringlengths 6 4.94M |
|---|---|
SniperEnabled=false FieldOfView=12.5 MouseSensitive=.05 SpreadRedution=1 | -- ====================
-- SNIPER
-- Enable user to use scope
-- ====================
SniperEnabled = false
FieldOfView = 12.5
MouseSensitive = 0.05 --In percent
SpreadRedution = 1 --In percent.
|
Tune.LoadDelay=.1 Tune.AutoStart=false Tune.AutoFlip=true | --[[Misc]]
Tune.LoadDelay = 0.1 -- Delay before initializing chassis (in seconds)
Tune.AutoStart = false -- Set to false if using manual ignition plugin
Tune.AutoFlip = true -- Set to false if using manual flip plugin
|
Tune.SusEnabled=true Tune.FSusDamping=500 Tune.FSusStiffness=9000 Tune.FSusLength=2 Tune.FSusMaxExt=.3 Tune.FSusMaxComp=.1 Tune.FSusAngle=80 Tune.FWsBoneLen=5 Tune.FWsBoneAngle=0 Tune.FAnchorOffset={-0.4,-0.5;0}Tune.RSusDamping=500 Tune.RSusStiffness=9000 Tune.RSusLength=2 Tune.RSusMaxExt=.3 Tune.RSusMaxComp=.1 Tune.RS... | --[[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.FSusLength = 2 -- Suspension length (in studs)
Tune.FSusMaxExt = 0.3 -- Max Extensi... |
function Promise.prototype.finallyReturn(a,...)local I,X=pack(...)return a:_finally(debug.traceback(nil,2),function()return unpack(X,1,I)end)end | --[=[
Attaches a `finally` handler to this Promise that discards the resolved value and returns the given value from it.
```lua
promise:finallyReturn("some", "values")
```
This is sugar for
```lua
promise:finally(function()
return "some", "values"
end)
```
@param ... any -- Values to return from the... |
while wait()do local a=GetTorso(hroot.Position)if a~=nil and human.Health>0 then vars.Wandering.Value=false vars.Chasing.Value=true local function I(a)local I=3 if I>#a then I=3 end if a[I]==nil and I<#a then repeat I=I+1 wait()until a[I]~=nil return Vector3.new(1,0,0)+a[I]else I=3 return a[I]end end path=pfs:FindPathA... | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
while wait() do
local nrstt = GetTorso(hroot.Position)
if nrstt ~= nil and human.Health > 0 then -- if player detected
vars.Wandering.Value = false
vars.Chasing.Value = true
local function checkw(t)
local ci = 3
if ci > #t then... |
L_108_.OnClientEvent:connect(function(a,I,X,u,M,U,w)if a and not L_15_ then MakeFakeArms()L_42_=L_2_.PlayerGui.MainGui L_26_=L_42_:WaitForChild("\079\116\104\101\114\115")L_27_=L_26_:WaitForChild("\075\105\108\108")L_28_=(L_42_:WaitForChild("\071\097\109\101\071\117\105")):WaitForChild("\065\109\109\111\070\114\097\109... | --// Connections
L_108_.OnClientEvent:connect(
function(L_191_arg1, L_192_arg2, L_193_arg3, L_194_arg4, L_195_arg5, L_196_arg6, L_197_arg7)
if L_191_arg1 and not L_15_ then
MakeFakeArms()
L_42_ = L_2_.PlayerGui.MainGui
L_26_ = L_42_:WaitForChild("Others")
L_27_ = L_26_:WaitForChild("Kill")
L_28_ = L_... |
VipDoor.Touched:connect(OnTouched)while true do RemoveOldTouches()wait(.033333333333333)end | --------------------
--| Script Logic |--
--------------------
VipDoor.Touched:connect(OnTouched)
while true do
RemoveOldTouches()
wait(1 / 30)
end
|
local a=_Tune.Controls local I=Instance.new("\070\111\108\100\101\114",script.Parent)I.Name="\067\111\110\116\114\111\108\115"for X,u in pairs(a)do local M=Instance.new("\083\116\114\105\110\103\086\097\108\117\101",I)M.Name=X M.Value=u.Name M.Changed:connect(function()if X=="\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... |
Tune.ABSEnabled=true Tune.ABSThreshold=20 Tune.FBrakeForce=15000 Tune.RBrakeForce=15000 Tune.PBrakeForce=50000 Tune.FLgcyBForce=15000 Tune.RLgcyBForce=10000 Tune.LgcyPBForce=25000 | --[[Brakes]]
Tune.ABSEnabled = true -- Implements ABS
Tune.ABSThreshold = 20 -- Slip speed allowed before ABS starts working (in SPS)
Tune.FBrakeForce = 15000 -- Front brake force
Tune.RBrakeForce = 15000 -- Rear brake force
Tune.PBrakeForce = 50000 -- Handbrake force
Tune.FLgcyBForce = 15000 -- Front brake force [PG... |
function BrioUtils.first(a,...)for a,I in pairs(a)do if Brio.isBrio(I)then if I:IsDead()then return Brio.DEAD end end end local I=Maid.new()local X=Brio.new(...)for a,u in pairs(a)do if Brio.isBrio(u)then I:GiveTask((u:GetDiedSignal()):Connect(function()X:Kill()end))end end I:GiveTask((X:GetDiedSignal()):Connect(functi... | --[=[
Returns a brio that dies whenever the first Brio in the list
dies. The value of the Brio is the `...` value.
@param brios {Brio<T>}
@param ... U
@return Brio<U>
]=]
function BrioUtils.first(brios, ...)
for _, brio in pairs(brios) do
if Brio.isBrio(brio) then
if brio:IsDead() then
return Brio.DEAD
... |
local function a(a,I)script.BeepSound:Play()INFO_GUI.Visible=true INFO_GUI.Position=UDim2.new(.5,0,.15,0)INFO_GUI.InfoLabel.TextTransparency=1 INFO_GUI.InfoLabel.TextStrokeTransparency=1 INFO_GUI.InfoLabel.Text=a INFO_GUI.BackgroundLabel.Size=UDim2.new(0,0,1,0)if I then if script:FindFirstChild(I.."\083\111\117\110\100... | -- functions
local function Display(text, sound)
script.BeepSound:Play()
INFO_GUI.Visible = true
INFO_GUI.Position = UDim2.new(0.5, 0, 0.15, 0)
INFO_GUI.InfoLabel.TextTransparency = 1
INFO_GUI.InfoLabel.TextStrokeTransparency = 1
INFO_GUI.InfoLabel.Text = text
INFO_GUI.BackgroundLabel.Size = UDim2.new(0, 0, 1... |
local a=2 local I=85 local X=5 local u=1.5 local M=2 | --Wheelie tune
local WheelieD = 2
local WheelieTq = 85
local WheelieP = 5
local WheelieMultiplier = 1.5
local WheelieDivider = 2
|
function onClicked()R.Function1.Disabled=true R.Function2.Disabled=false R.BrickColor=BrickColor.new("\073\110\115\116\105\116\117\116\105\111\110\097\108 \119\104\105\116\101")N.One1.BrickColor=BrickColor.new("\082\101\097\108\108\121 \098\108\097\099\107")N.One2.BrickColor=BrickColor.new("\082\101\097\108\108\121 \09... | -------------------------
function onClicked()
R.Function1.Disabled = true
R.Function2.Disabled = false
R.BrickColor = BrickColor.new("Institutional white")
N.One1.BrickColor = BrickColor.new("Really black")
N.One2.BrickColor = BrickColor.new("Really black")
N.One4.BrickColor = BrickColor.new("Really black")
N.O... |
Humanoid.Died:connect(onDied)Humanoid.Running:connect(onRunning)Humanoid.Jumping:connect(onJumping)Humanoid.Climbing:connect(onClimbing)Humanoid.GettingUp:connect(onGettingUp)Humanoid.FreeFalling:connect(onFreeFall)Humanoid.FallingDown:connect(onFallingDown)Humanoid.Seated:connect(onSeated)Humanoid.PlatformStanding:con... | -- connect events
Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)
Hum... |
for a,I in pairs(siren:GetChildren())do if I:IsA("\073\109\097\103\101\066\117\116\116\111\110")and I.Name~="\104\101\097\100\101\114"then if string.match(I.Name,"\037\108\043")=="\115\114"then I.MouseButton1Click:connect(function()script.Parent.siren.Value=tonumber(string.match(I.Name,"\037\100"))if script.Parent.sire... | -----------------------------------------------------------------------------------------------
for _, i in pairs(siren:GetChildren()) do
if i:IsA("ImageButton") and i.Name ~= "header" then
if string.match(i.Name, "%l+") == "sr" then
i.MouseButton1Click:connect(function()
script.Parent.siren.Value = tonumber(... |
function Promise.new(a)local I={_source=debug.traceback(),_type="\080\114\111\109\105\115\101";_status=Promise.Status.Started,_value=nil,_unhandledRejection=false,_queuedResolve={};_queuedReject={}}setmetatable(I,Promise)local function X(...)I:_resolve(...)end local function u(...)I:_reject(...)end local M,U=wpcall(a,X... | --[[
Constructs a new Promise with the given initializing callback.
This is generally only called when directly wrapping a non-promise API into
a promise-based version.
The callback will receive 'resolve' and 'reject' methods, used to start
invoking the promise chain.
For example:
local function get(url)
... |
local a=5 local I=16 | --WalkSpeedsHere!
local WalkSpeedWhileCrouching = 5
local CurrentWalkSpeed = 16
|
script.Parent.MouseButton1Down:Connect(function()script.Parent.Parent.Parent.AlienAnimationREAL.Fired:Fire()end) | -- Decompiled with the Synapse X Luau decompiler.
script.Parent.MouseButton1Down:Connect(function()
script.Parent.Parent.Parent.AlienAnimationREAL.Fired:Fire()
end)
|
function ZoneController.getZones()local a={}for I,X in pairs(registeredZones)do table.insert(a,I)end return a end | -- PUBLIC FUNCTIONS
function ZoneController.getZones()
local registeredZonesArray = {}
for zone, _ in pairs(registeredZones) do
table.insert(registeredZonesArray, zone)
end
return registeredZonesArray
end
|
local a=20 local I=3 local X=Enum.EasingStyle.Quad local u=Enum.EasingDirection.InOut local M=0 local U=false local w=0 | --CONFIG VARIABLES
local tweenTime = 20
local closeWaitTime = 3
local easingStyle = Enum.EasingStyle.Quad
local easingDirection = Enum.EasingDirection.InOut
local repeats = 0
local reverse = false
local delayTime = 0
|
self.RightLowReady=CFrame.new(-0.9,1.25,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))self.LeftLowReady=CFrame.new(1,1,-0.6)*CFrame.Angles(math.rad(-45),math.rad(15),math.rad(-25))self.RightElbowLowReady=CFrame.new(0,-0.45,-0.25)*CFrame.Angles(math.rad(-80),math.rad(0),math.rad(0))self.LeftElbowLowReady=CFrame.n... | ------//Low Ready Animations
self.RightLowReady = CFrame.new(-0.9, 1.25, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
self.LeftLowReady = CFrame.new(1, 1, -0.6) * CFrame.Angles(math.rad(-45), math.rad(15), math.rad(-25))
self.RightElbowLowReady = CFrame.new(0, -0.45, -0.25) * CFrame.Angles(math.rad(-80), ... |
Humanoid.Died:connect(onDied)Humanoid.Running:connect(onRunning)Humanoid.Jumping:connect(onJumping)Humanoid.Climbing:connect(onClimbing)Humanoid.GettingUp:connect(onGettingUp)Humanoid.FreeFalling:connect(onFreeFall)Humanoid.FallingDown:connect(onFallingDown)Humanoid.Seated:connect(onSeated) | -- connect events
Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)
|
local a={}a.Version=script.Parent.Version.Value a.Services={}a.Util=script.Parent.Util local I=Instance.new("\070\111\108\100\101\114")I.Name="\083\101\114\118\105\099\101\115"local X=require(a.Util.Promise)local u=require(a.Util.Signal)local M=require(a.Util.Loader)local U=require(a.Util.Ser)local w=require(a.Util.Rem... | --[[
Knit.CreateService(service): Service
Knit.AddServices(folder): Service[]
Knit.AddServicesDeep(folder): Service[]
Knit.Start(): Promise<void>
Knit.OnStart(): Promise<void>
--]]
local KnitServer = {}
KnitServer.Version = script.Parent.Version.Value
KnitServer.Services = {}
KnitServer.Util = script.Parent.Ut... |
local a=function(a,I)local X=a:FindFirstChild(I)while X==nil do a.ChildAdded:wait()X=a:FindFirstChild(I)if X then break end end return X end local I={neckC1=nil,rshoC0=nil;lshoC0=nil,rhipC0=nil,lhipC0=nil}local X=function(X,u)local M=a(u,"\084\111\114\115\111")local U=a(M,"\078\101\099\107")local w=a(M,"\082\105\103\10... | --Don't modify this script unless you really know what you're doing.
local WaitFor = function(parent, child_name)
local found = parent:FindFirstChild(child_name)
while found == nil do
parent.ChildAdded:wait()
found = parent:FindFirstChild(child_name)
if found then
break
end
end
return found
end
local l... |
function updatechar()for a,I in pairs(character:GetChildren())do if CanViewBody then if I.Name=="\072\101\097\100"then I.LocalTransparencyModifier=1 I.CanCollide=false I.face.LocalTransparencyModifier=1 end else if I:IsA("\080\097\114\116")or I:IsA("\085\110\105\111\110\079\112\101\114\097\116\105\111\110")or I:IsA("\0... | ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
function updatechar()
for _, v in pairs(character:GetChildren()) do
if CanViewBody then
if v.Name == "Head" then
v.LocalTransparencyModifier = 1
v.CanCollide = false
v.face.LocalTransparencyM... |
module.ChatWindowBackgroundFadeOutTime=3.5 module.ChatWindowTextFadeOutTime=30 module.ChatDefaultFadeDuration=.8 module.ChatShouldFadeInFromNewInformation=false module.ChatAnimationFPS=20.0 | ---[[ Fade Out and In Settings ]]
module.ChatWindowBackgroundFadeOutTime = 3.5 --Chat background will fade out after this many seconds.
module.ChatWindowTextFadeOutTime = 30 --Chat text will fade out after this many seconds.
module.ChatDefaultFadeDuration = 0.8
module.ChatShouldFadeInFromNewInformation = false
module.C... |
function waitForChild(g,N)local f=g:findFirstChild(N)if f then return f end while true do f=g.ChildAdded:wait()if f.Name==N then return f end end end | --This local script will run only for the player whos character it is in. It's changes to the sounds will replicate as they are changes to the character.
-- util
function waitForChild(parent, childName)
local child = parent:findFirstChild(childName)
if child then
return child
end
while true do
child = parent.C... |
function Option.UnwrapOrElse(N,g)if N:IsSome()then return N:Unwrap()else return g()end end | --[=[
@param defaultFn () -> any
@return value: any
If the option holds a value, returns the value. Otherwise, returns the
result of the `defaultFn` function.
]=]
function Option:UnwrapOrElse(defaultFn)
if self:IsSome() then
return self:Unwrap()
else
return defaultFn()
end
end
|
player.CharacterAdded:Connect(function()task.wait(1)if currentSound.IsPlaying then currentSound:Stop()end end) | -- Small bug fix where the sound would start playing after the player joined
player.CharacterAdded:Connect(function()
task.wait(1)
if currentSound.IsPlaying then
currentSound:Stop()
end
end)
|
local g=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local N=game:GetService("\082\117\110\083\101\114\118\105\099\101")local f=game:GetService("\068\097\116\097\083\116\111\114\101\083\101\114\118\105\099\101")local j=game:GetService("\077\097\114\107\101\116\112\108\097\099\1... | -- services
local Rep = game:GetService("ReplicatedStorage")
local Run = game:GetService("RunService")
local DS = game:GetService("DataStoreService")
local MS = game:GetService("MarketplaceService")
local Debris = game:GetService("Debris")
local Physics = game:GetService("PhysicsService")
local CS = game:GetService("Co... |
local g={}local N={}for N=65,90,1 do table.insert(g,N)end for N=97,122,1 do table.insert(g,N)end for N=48,57,1 do table.insert(g,N)end table.insert(g,43)table.insert(g,47)for g,f in ipairs(g)do N[f]=g end local f={ClassName="\066\097\115\101\054\052";__tostring=function(g)return g.ClassName end}f.__index=f local j=bit3... | --[[
local base64 = Base64.new()
Example:
local myEncodedWord = base64:Encode("Hello")
print(myEncodedWord)
-- outputs: SGVsbG8=
print(base64:Decode(myEncodedWord))
-- outputs: Hello
--]]
local Alphabet = {}
local Indexes = {}
for Index = 65, 90 do
table.insert(Alphabet, Index)
end -- A-Z
for I... |
Signal.Fired=function(g)g=string.lower(g)local N=GetEvent(g)return N.Event end | --- On Fire
Signal.Fired = function(eventName)
--- Variables
eventName = string.lower(eventName)
--- Get/create event
local event = GetEvent(eventName)
--
return event.Event
end
|
function Promise.prototype.done(N,g)assert(g==nil or type(g)=="\102\117\110\099\116\105\111\110"or g.__call~=nill,string.format(ERROR_NON_FUNCTION,"\080\114\111\109\105\115\101\058\100\111\110\101"))return N:_finally(debug.traceback(nil,2),g,true)end | --[[
Similar to finally, except rejections are propagated through it.
]]
function Promise.prototype:done(finallyHandler)
assert(
finallyHandler == nil or type(finallyHandler) == "function" or finallyHandler.__call ~= nill,
string.format(ERROR_NON_FUNCTION, "Promise:done")
)
return self:_finally(debug.traceback(... |
function BaseCamera.GetCameraToSubjectDistance(g)return g.currentSubjectDistance end | -- Nominal distance, set by dollying in and out with the mouse wheel or equivalent, not measured distance
function BaseCamera:GetCameraToSubjectDistance()
return self.currentSubjectDistance
end
|
local g="\080\117\114\101 \087\104\105\116\101"local N="\080\117\114\101 \087\104\105\116\101"local f="\080\117\114\101 \087\104\105\116\101"local j="\079\069\077 \087\104\105\116\101"local P="\068\097\114\107 \079\114\097\110\103\101"local r="\068\097\114\107 \079\114\097\110\103\101"local T="\080\117\114\101 \087\104... | -- COLOR SETTINGS
--[[
COLOR PRESETS:
Headlights
- OEM White
- Xenon
- Pure White
- Brilliant Blue
- Light Green
- Golden Yellow
- Bubu's Purple
- Yellow
Indicators
- Light Orange
- Dark Orange
- Yellow
- Red
For custom color use Color3.fromRGB(R, G, B). You can get your RGB code from ... |
local g=plr:WaitForChild("\083\101\116\116\105\110\103\115")for N,f in pairs(script:GetChildren())do f.Parent=g end | -- Add everything to settings
local settings = plr:WaitForChild("Settings")
for _, i in pairs(script:GetChildren()) do
i.Parent = settings
end
|
local g=_Tune.Peripherals for N,f in pairs(g)do local j=Instance.new("\073\110\116\086\097\108\117\101",Controls)j.Name=N j.Value=f j.Changed:connect(function()j.Value=math.min(100,math.max(0,j.Value))g[N]=j.Value end)end | --Deadzone Adjust
local _PPH = _Tune.Peripherals
for i, v in pairs(_PPH) do
local a = Instance.new("IntValue", Controls)
a.Name = i
a.Value = v
a.Changed:connect(function()
a.Value = math.min(100, math.max(0, a.Value))
_PPH[i] = a.Value
end)
end
|
FireSelectKey=Enum.KeyCode.V CycleSightKey=Enum.KeyCode.T LaserKey=Enum.KeyCode.G LightKey=Enum.KeyCode.B InteractKey=Enum.KeyCode.E AlternateAimKey=Enum.KeyCode.Z InspectionKey=Enum.KeyCode.H AttachmentKey=Enum.KeyCode.LeftControl | --// KeyBindings
FireSelectKey = Enum.KeyCode.V
CycleSightKey = Enum.KeyCode.T
LaserKey = Enum.KeyCode.G
LightKey = Enum.KeyCode.B
InteractKey = Enum.KeyCode.E
AlternateAimKey = Enum.KeyCode.Z
InspectionKey = Enum.KeyCode.H
AttachmentKey = Enum.KeyCode.LeftControl
|
local function g()local g=MyPlayer.Character if Tool.Enabled and(g and(g:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")and g.Humanoid.Health>0))then Tool.Enabled=false local g=MouseLoc:InvokeClient(MyPlayer)local N=Rocket:Clone()DebrisService:AddItem(N,30)N.BrickColor=MyPlayer.TeamColor local f=(ToolHandle.C... | -----------------
--| Functions |--
-----------------
local function OnActivated()
local myModel = MyPlayer.Character
if Tool.Enabled and myModel and myModel:FindFirstChildOfClass("Humanoid") and myModel.Humanoid.Health > 0 then
Tool.Enabled = false
local Pos = MouseLoc:InvokeClient(MyPlayer)
-- Create a clone... |
function CreateArms()local g={}for N=0,1,1 do local f=Instance.new("\077\111\100\101\108")f.Name="\065\114\109\077\111\100\101\108"local j=Instance.new("\080\097\114\116")j.BrickColor=S.FakeArmRealBodyColor and(N==0 and LArm.BrickColor or RArm.BrickColor)or S.FakeArmColor j.Transparency=S.FakeArmTransparency j.Name="\0... | --------------------[ ARM CREATION FUNCTION ]-----------------------------------------
function CreateArms()
local Arms = {}
for i = 0, 1 do
local ArmModel = Instance.new("Model")
ArmModel.Name = "ArmModel"
local Arm = Instance.new("Part")
Arm.BrickColor = (S.FakeArmRealBodyColor and (i == 0 and LArm.BrickC... |
local function g(g)local N={}for f,j in ipairs(g)do local P=visualWaypoint:Clone()P.Position=j.Position P.Parent=workspace P.Color=j==g[#g]and Color3.fromRGB(0,255,0)or j.Action==Enum.PathWaypointAction.Jump and Color3.fromRGB(255,0,0)or Color3.fromRGB(255,139,0)table.insert(N,P)end return N end | --Create visual waypoints
local function createVisualWaypoints(waypoints)
local visualWaypoints = {}
for _, waypoint in ipairs(waypoints) do
local visualWaypointClone = visualWaypoint:Clone()
visualWaypointClone.Position = waypoint.Position
visualWaypointClone.Parent = workspace
visualWaypointClone.Color = (w... |
local g=Game:GetService("\080\108\097\121\101\114\115")local N=Game:GetService("\068\101\098\114\105\115")local f=script.Parent local j=f:WaitForChild("\072\097\110\100\108\101")local P=j:WaitForChild("\070\105\114\101")local r=j:WaitForChild("\082\101\108\111\097\100")local T=script:WaitForChild("\072\105\116\070\097\... | -----------------
--| Variables |--
-----------------
local PlayersService = Game:GetService("Players")
local DebrisService = Game:GetService("Debris")
local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local FireSound = Handle:WaitForChild("Fire")
local ReloadSound = Handle:WaitForChild("Reload")... |
function CameraUtils.Clamp(g,N,f)return math.min(math.max(f,g),N)end | -- Note, arguments do not match the new math.clamp
-- Eventually we will replace these calls with math.clamp, but right now
-- this is safer as math.clamp is not tolerant of min>max
function CameraUtils.Clamp(low, high, val)
return math.min(math.max(val, low), high)
end
|
Tune.Clutch=false Tune.TransModes={"\065\117\116\111"}Tune.ClutchType="\065\117\116\111"Tune.ClutchMode="\083\112\101\101\100"Tune.Stall=true Tune.ClutchEngage=25 Tune.TQLock=false Tune.RPMEngage=5300 Tune.SpeedEngage=15 Tune.ClutchRPMMult=1.0 Tune.QuickShifter=true Tune.QuickShiftTime=.25 Tune.AutoShiftMode="\083\112\... | --[[Transmission]]
--
Tune.Clutch = false -- Implements a realistic clutch.
Tune.TransModes = { "Auto" } --[[
[Modes]
"Manual" ; Traditional clutch operated manual transmission
"DCT" ; Dual clutch transmission, where clutch is operated automatically
"Auto" ; Automatic transmission that shifts for you
>I... |
XR15RightLegLeftLean=0 YR15RightLegLeftLean=-0.2 ZR15RightLegLeftLean=.3 R15RightKneeLeftLean=-0.3 XR15RightArmLeftLean=.5 YR15RightArmLeftLean=-0.3 ZR15RightArmLeftLean=.2 R15RightElbowLeftLean=.2 XR15LeftLegLeftLean=.5 YR15LeftLegLeftLean=.35 ZR15LeftLegLeftLean=.55 R15LeftKneeLeftLean=-0.1 XR15LeftArmLeftLean=-0.5 Y... | --Left lean
XR15RightLegLeftLean = 0
YR15RightLegLeftLean = -0.2
ZR15RightLegLeftLean = 0.3
R15RightKneeLeftLean = -0.3
XR15RightArmLeftLean = 0.5
YR15RightArmLeftLean = -0.3
ZR15RightArmLeftLean = 0.2
R15RightElbowLeftLean = 0.2
XR15LeftLegLeftLean = 0.5
YR15LeftLegLeftLean = 0.35
ZR15LeftLegLeftLean = 0.55
R15LeftK... |
local g=ServerScriptService:FindFirstChild("\077\111\100\117\108\101\083\099\114\105\112\116\115")local N=g:FindFirstChild("\082\097\099\101\077\111\100\117\108\101\115")local f=ReplicatedStorage:FindFirstChild("\077\111\100\117\108\101\083\099\114\105\112\116\115")local j=require(N:FindFirstChild("\071\097\109\101\083... | -- Module Scripts
local ModuleScripts = ServerScriptService:FindFirstChild("ModuleScripts")
local RaceModules = ModuleScripts:FindFirstChild("RaceModules")
local ReplicatedModuleScripts = ReplicatedStorage:FindFirstChild("ModuleScripts")
local GameSettings = require(RaceModules:FindFirstChild("GameSettings"))
local Lea... |
local g=nil local N=nil local f=nil local j=nil local P=nil local r=false local T=false local w=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101") | --// Delcarables
local newRope = nil
local newDir = nil
local new = nil
local newAtt0 = nil
local newAtt1 = nil
local isHeld = false
local active = false
local TS = game:GetService("TweenService")
|
local g="\078\111\110\101"local N=0 local f=0 local j=.3 local P=.1 local r=.3 local T=.75 | -- declarations
local toolAnim = "None"
local toolAnimTime = 0
local jumpAnimTime = 0
local jumpAnimDuration = 0.3
local toolTransitionTime = 0.1
local fallTransitionTime = 0.3
local jumpMaxLimbVelocity = 0.75
|
local g=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local N=game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")local f=game:GetService("\080\108\097\121\101\114\115")local j=g.AvatarEditor local P=require(j.Shared.Util.Spring)local r=req... | --[[
]]
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Marketplace = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local AvatarEditor = ReplicatedStorage.AvatarEditor
local Spring = require(AvatarEditor.Shared.Util.Spring)
local Maid = require(AvatarEditor.S... |
local g=5 local N=90 local f=10 local j=1.5 local P=1 | --Wheelie tune
local WheelieD = 5
local WheelieTq = 90
local WheelieP = 10
local WheelieMultiplier = 1.5
local WheelieDivider = 1
|
local g=script.Parent local N=10 local f=g.Handle:WaitForChild("\067\111\105\108\083\111\117\110\100")function MakeSmoke(g,f)smoke=Instance.new("\083\109\111\107\101")smoke.Enabled=g.Velocity.magnitude>N smoke.RiseVelocity=2 smoke.Opacity=.25 smoke.Size=.5 smoke.Parent=g f.Running:connect(function(g)if smoke and smoke~... | -- model by CatLeoYT XD --
local Tool = script.Parent
local speedforsmoke = 10
local CoilSound = Tool.Handle:WaitForChild("CoilSound")
function MakeSmoke(HRP, Human)
smoke = Instance.new("Smoke")
smoke.Enabled = HRP.Velocity.magnitude > speedforsmoke
smoke.RiseVelocity = 2
smoke.Opacity = 0.25
smoke.Size = 0.5... |
OverheatSpeed=.2 CoolingEfficiency=.05 RunningTemp=85 Fan=true FanTemp=100 FanTempAlpha=90 FanSpeed=.03 FanVolume=.2 BlowupTemp=130 GUI=true | --Tune
OverheatSpeed = 0.2 --How fast the car will overheat
CoolingEfficiency = 0.05 --How fast the car will cool down
RunningTemp = 85 --In degrees
Fan = true --Cooling fan
FanTemp = 100 --At what temperature the cooling fan will activate
FanTempAlpha = 90 --At what temperature the cooling fan will deactivate
FanSpee... |
bike.RearSection.RearSwingArmHinge.Size=Vector3.new(_Tune.HingeSize,_Tune.HingeSize,_Tune.HingeSize)bike.RearSection.RearSwingArmHinge.CustomPhysicalProperties=PhysicalProperties.new(_Tune.HingeDensity,0,0,100,100)if _Tune.RBricksVisible or _Tune.Debug then bike.RearSection.RearSwingArmHinge.Transparency=.75 else bike.... | --Suspension Hinges
bike.RearSection.RearSwingArmHinge.Size = Vector3.new(_Tune.HingeSize, _Tune.HingeSize, _Tune.HingeSize)
bike.RearSection.RearSwingArmHinge.CustomPhysicalProperties = PhysicalProperties.new(_Tune.HingeDensity, 0, 0, 100, 100)
if _Tune.RBricksVisible or _Tune.Debug then
bike.RearSection.RearSwingArm... |
local g=Personagem:WaitForChild("\072\117\109\097\110\111\105\100")local N=Personagem:WaitForChild("\072\101\097\100")local f=Personagem:WaitForChild("\084\111\114\115\111")local j=Personagem:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local P=j:WaitForChild("\082\111\111\116\074\111... | --// Char Parts
local Humanoid = Personagem:WaitForChild("Humanoid")
local Head = Personagem:WaitForChild("Head")
local Torso = Personagem:WaitForChild("Torso")
local HumanoidRootPart = Personagem:WaitForChild("HumanoidRootPart")
local RootJoint = HumanoidRootPart:WaitForChild("RootJoint")
local Neck = Torso:WaitForChi... |
local g=script.Parent local N=g.FireFly:Clone()g.ChildRemoved:connect(function()if g:FindFirstChild("\067\101\110\116\101\114")then local f=N:Clone()f.Position=g.Center.CenterPart.Position f.Parent=g end end) | -- Spawn a new firefly from the center when one flew too far
local Model = script.Parent
local Fly = Model.FireFly:Clone() -- Clone a fly from the start
Model.ChildRemoved:connect(function() -- When a fly got removed when he flew too far, paste a clone to spawn a new one
if Model:FindFirstChild("Center") then
loc... |
Tune.Horsepower=140 Tune.IdleRPM=700 Tune.PeakRPM=6980 Tune.Redline=8000 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 = 140 -- [TORQUE CURVE VISUAL]
Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf
Tune.PeakRPM = 6980 -- Use sliders to manipulate values
Tune.Redline = 8000 -- Copy and paste slider values into the respective tune values
Tune.EqPoint = 5500
Tune.PeakSharpn... |
function Option.__eq(N,g)if Option.Is(g)then if N:IsSome()and g:IsSome()then return N:Unwrap()==g:Unwrap()elseif N:IsNone()and g:IsNone()then return true end end return false end | --[=[
@return boolean
@param opt Option
Metamethod to check equality between two options. Returns `true` if both
options hold the same value _or_ both options are None.
```lua
local o1 = Option.Some(32)
local o2 = Option.Some(32)
local o3 = Option.Some(64)
local o4 = Option.None
local o5 = Option.None
print... |
function t.numberConstrained(g,N)assert(t.number(g)and t.number(N))local f=t.numberMin(g)local j=t.numberMax(N)return function(g)local N,P=f(g)if not N then return false,P or""end local r,T=j(g)if not r then return false,T 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... |
Tune.TransModes={"\065\117\116\111"}Tune.AutoShiftMode="\083\112\101\101\100"Tune.AutoUpThresh=-200 Tune.AutoDownThresh=1400 Tune.FinalDrive=4.06 Tune.Ratios={3.7,0,3.53,2.04,1.38,1.03,.81;.64}Tune.FDMult=1.5 | --[[Transmission]]
Tune.TransModes = { "Auto" } --[[
[Modes]
"Auto" : Automatic shifting
"Semi" : Clutchless manual shifting, dual clutch transmission
"Manual" : Manual shifting with clutch
>Include within brackets
eg: {"Semi"} or {"Auto", "Manual"}
>First mode is default mode ]]
... |
Tune.Peripherals={MSteerWidth=67;MSteerDZone=10,ControlLDZone=5,ControlRDZone=5}Tune.Controls={ToggleTCS=Enum.KeyCode.T,ToggleABS=Enum.KeyCode.Y,ToggleTransMode=Enum.KeyCode.M,ToggleMouseDrive=Enum.KeyCode.R;Throttle=Enum.KeyCode.Up,Brake=Enum.KeyCode.Down,SteerLeft=Enum.KeyCode.Left;SteerRight=Enum.KeyCode.Right;Throt... | --[[[Default Controls]]
--Peripheral Deadzones
Tune.Peripherals = {
MSteerWidth = 67, -- Mouse steering control width (0 - 100% of screen width)
MSteerDZone = 10, -- Mouse steering deadzone (0 - 100%)
ControlLDZone = 5, -- Controller steering L-deadzone (0 - 100%)
ControlRDZone = 5, -- Controller steering R-deadzo... |
function module.CreateRanks(g)(coroutine.wrap(function()local g=main.signals.RetrieveRanksInfo:InvokeServer()local N=g.PermRanks local f=g.Ranks local j=g.Permissions local P={}local r={}for g,N in pairs(f)do local f=N[1]local j=N[2]table.insert(r,1,{f;j,{}})end for g,N in pairs(r)do P[N[1]]=g end for g,f in pairs(j)do... | ---------------------------------------------------
function module:CreateRanks()
coroutine.wrap(function()
local ranksInfo = main.signals.RetrieveRanksInfo:InvokeServer()
local permRanksInfo = ranksInfo.PermRanks
local ranksToSort = ranksInfo.Ranks
local permissions = ranksInfo.Permissions
--Organise ranks... |
local g=_Tune.FWheelDensity local N=_Tune.RWheelDensity local f=_WHEELTUNE.FFrictionWeight local j=_WHEELTUNE.RFrictionWeight local P=_WHEELTUNE.FElasticity local r=_WHEELTUNE.RElasticity local T=_WHEELTUNE.FElastWeight local w=_WHEELTUNE.RElastWeight if not workspace:PGSIsEnabled()then g=_Tune.FWLgcyDensity N=_Tune.RW... | --Wheels Array
local fDensity = _Tune.FWheelDensity
local rDensity = _Tune.RWheelDensity
local fFwght = _WHEELTUNE.FFrictionWeight
local rFwght = _WHEELTUNE.RFrictionWeight
local fElast = _WHEELTUNE.FElasticity
local rElast = _WHEELTUNE.RElasticity
local fEwght = _WHEELTUNE.FElastWeight
local rEwght = _WHEELTUNE.RElast... |
local a=game:GetService("\068\101\098\114\105\115")while vehicle:FindFirstChild("\083\116\097\109\112\101\114\070\108\111\111\114")or vehicle:FindFirstChild("\083\116\097\109\112\101\114\070\108\111\111\114\050")do vehicle.ChildRemoved:wait()end local R=(vehicle:GetModelSize()).magnitude | ----------------------------------------------
local debris = game:GetService("Debris")
while vehicle:FindFirstChild("StamperFloor") or vehicle:FindFirstChild("StamperFloor2") do
vehicle.ChildRemoved:wait()
end
local vehicleSize = vehicle:GetModelSize().magnitude
|
Knockback=0 Lifesteal=0 FlamingBullet=false DualEnabled=false Piercing=0 | -- ====================
-- MISCELLANEOUS
-- Etc. settings for the gun
-- ====================
Knockback = 0 --Setting above 0 will enabling the gun to push enemy back. NOTE: If "ExplosiveEnabled" is enabled, this setting is not work
Lifesteal = 0 --In percent - Setting above 0 will allow user to steal enemy's health b... |
if script.Activate.Value then activate()end | -- Activate it on start.
if script.Activate.Value then
activate()
end
|
function OnUnequipped()Handle.UnequipSound:Play()Handle.EquipSound:Stop()Handle.EquipSound2:Stop()LeftButtonDown=false flare.MuzzleFlash.Enabled=false Reloading=false MyCharacter=nil MyHumanoid=nil MyTorso=nil MyPlayer=nil MyMouse=nil if OnFireConnection then OnFireConnection:disconnect()end if OnReloadConnection then ... | -- Unequip logic here
function OnUnequipped()
Handle.UnequipSound:Play()
Handle.EquipSound:Stop()
Handle.EquipSound2:Stop()
LeftButtonDown = false
flare.MuzzleFlash.Enabled = false
Reloading = false
MyCharacter = nil
MyHumanoid = nil
MyTorso = nil
MyPlayer = nil
MyMouse = nil
if OnFireConnection then
OnFi... |
Play_Video_Event.OnClientEvent:Connect(function()print("\112\108\097\121\105\110\103 \118\105\100\101\111 \115\111\111\110")wait(1)game.Workspace.Sound:Play()local a=0 local R=0 for y,k in pairs(Loaded_Vid)do R+=1 local z=tostring(R)for R=1,chunk_size,1 do a+=1 local y=0 local I=0 local D=tostring(a)local Y=k[z][D]for ... | -- white and black
--Play_Video_Event.Event:Connect(function()
-- print("playing video soon")
-- wait(1)
-- game.Workspace.Sound:Play()
-- local frames = 0
-- local chunks = 0
-- for _,v in pairs(Loaded_Vid) do
-- chunks += 1
-- local chunk = tostring(chunks)
-- local pixel = 0
-- for f = 1 , chunk_size do
-- fra... |
local a={}if game.Workspace:FindFirstChild("\066\097\115\101\080\108\097\116\101")then game.Workspace.BasePlate:Destroy()end local R=Instance.new("\077\111\100\101\108")R.Name="\084\114\097\099\107\115"R.Parent=game.Workspace function packagePathModels()local a=require(script.PathPackager)while true do local R=game.Wor... | -- Initialization
local lastActivePath = {}
if game.Workspace:FindFirstChild("BasePlate") then
game.Workspace.BasePlate:Destroy()
end
local tracksModel = Instance.new("Model")
tracksModel.Name = "Tracks"
tracksModel.Parent = game.Workspace
function packagePathModels()
local pathPackager = require(script.PathPackag... |
module.WindowDraggable=false module.WindowResizable=false module.ShowChannelsBar=false module.GamepadNavigationEnabled=false module.AllowMeCommand=false module.ShowUserOwnFilteredMessage=true | ---[[ Chat Behaviour Settings ]]
module.WindowDraggable = false
module.WindowResizable = false
module.ShowChannelsBar = false
module.GamepadNavigationEnabled = false
module.AllowMeCommand = false -- Me Command will only be effective when this set to true
module.ShowUserOwnFilteredMessage = true --Show a user the filter... |
local a={}local function R(R,y,k)if R and y then local y,z=FindCharacterAncestor(R.Parent)if y then local a=CreatorTag.Value if a and not a.Neutral then local R=PlayersService:GetPlayerFromCharacter(y)if R and(R~=a and R.TeamColor==Rocket.BrickColor)then return end end end if z and z.Health>0 then if not IsInTable(a,z)... | -- Customized explosive effect that doesn't affect teammates and only breaks joints on dead parts
local TaggedHumanoids = {}
local function OnExplosionHit(hitPart, hitDistance, blastCenter)
if hitPart and hitDistance then
local character, humanoid = FindCharacterAncestor(hitPart.Parent)
if character then
local... |
local a=Instance.new("\080\097\114\116")a.Size=Vector3.new(.3,.3,.3)a.Anchored=true a.CanCollide=false a.Material=Enum.Material.Neon a.Shape=Enum.PartType.Ball | --Used to visualize waypoints
local visualWaypoint = Instance.new("Part")
visualWaypoint.Size = Vector3.new(0.3, 0.3, 0.3)
visualWaypoint.Anchored = true
visualWaypoint.CanCollide = false
visualWaypoint.Material = Enum.Material.Neon
visualWaypoint.Shape = Enum.PartType.Ball
|
settings.Permissions={} | --// Use the below table to set command permissions; Commented commands are included for example purposes
settings.Permissions = {
-- "ff:HeadAdmins"; --// Changes :ff to HeadAdmins and higher (HeadAdmins = Level 300 by default)
-- "kill:300"; --// Changes :kill to level 300 and higher (Level 300 = HeadAdmins by defa... |
function Icon.mimic(a)local R=a.."\077\105\109\105\099"local y=IconController.getIcon(R)if y then return y end y=Icon.new()y:setName(R)if a=="\067\104\097\116"then y:setOrder(-1)y:setImage("\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\047\117\105\047\084\111\112\066\097\114\047\099\104\0... | -- This is the same as Icon.new(), except it adds additional behaviour for certain specified names designed to mimic core icons, such as 'Chat'
function Icon.mimic(coreIconToMimic)
local iconName = coreIconToMimic .. "Mimic"
local icon = IconController.getIcon(iconName)
if icon then
return icon
end
icon = Icon.n... |
CanSelectFire=false BurstEnabled=false SemiEnabled=true AutoEnabled=false BoltAction=false ExplosiveEnabled=false | --// Firemode Settings
CanSelectFire = false
BurstEnabled = false
SemiEnabled = true
AutoEnabled = false
BoltAction = false
ExplosiveEnabled = false
|
local a=game:GetService("\068\101\098\114\105\115")a:AddItem(script.Parent,24) | -- this script removes its parent from the workspace after 24 seconds
local Debris = game:GetService("Debris")
Debris:AddItem(script.Parent, 24)
|
local function a(a,R)if not R then local R=screenSpace.ScreenToWorld(a.Position.X,a.Position.Y,1)local y=game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(screenSpace.ScreenToWorld(a.Position.X,a.Position.Y,1))y=game.Workspace.CurrentCamera.CoordinateFrame.p-y local k=screenSpace.ScreenToWorld(a.Position.... | -- Function to bind to touch moved if player is on mobile
local function mobileFrame(touch, processed)
-- Check to see if the touch was on a UI element. If so, we don't want to update anything
if not processed then
-- Calculate touch position in world space. Uses Stravant's ScreenSpace Module script
-- to create ... |
Tune.Horsepower=231 Tune.IdleRPM=700 Tune.PeakRPM=5000 Tune.Redline=7000 Tune.EqPoint=5600 Tune.PeakSharpness=7.5 Tune.CurveMult=.16 Tune.InclineComp=2 Tune.RevAccel=150 Tune.RevDecay=75 Tune.RevBounce=500 Tune.IdleThrottle=3 Tune.ClutchTol=468 | --[[Engine]]
--Torque Curve
Tune.Horsepower = 231 -- [TORQUE CURVE VISUAL]
Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf
Tune.PeakRPM = 5000 -- Use sliders to manipulate values
Tune.Redline = 7000 -- Copy and paste slider values into the respective tune values
Tune.EqPoint = 5600
Tune.PeakSharpn... |
function ClickToMove.UpdateJump(a)if FFlagUserClickToMoveFollowPathRefactor then else a.isJumping=a.jumpRequested end end | -- Overrides Keyboard:UpdateJump() because jump is handled in OnRenderStepped
function ClickToMove:UpdateJump()
if FFlagUserClickToMoveFollowPathRefactor then
-- Nothing to do (handled in OnRenderStepped)
else
self.isJumping = self.jumpRequested
end
end
|
function Promise.prototype._unwrap(a)if a._status==Promise.Status.Started then error("\080\114\111\109\105\115\101 \104\097\115 \110\111\116 \114\101\115\111\108\118\101\100 \111\114 \114\101\106\101\099\116\101\100\046",2)end local R=a._status==Promise.Status.Resolved return R,unpack(a._values,1,a._valuesLength)end fu... | --[[
Intended for use in tests.
Similar to await(), but instead of yielding if the promise is unresolved,
_unwrap will throw. This indicates an assumption that a promise has
resolved.
]]
function Promise.prototype:_unwrap()
if self._status == Promise.Status.Started then
error("Promise has not resolved or reject... |
local a=game:GetService("\080\108\097\121\101\114\115")local R=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local y=game:GetService("\067\104\097\116")local k=game:GetService("\084\101\120\116\083\101\114\118\105\099\101") | --[[ SERVICES ]]
local PlayersService = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ChatService = game:GetService("Chat")
local TextService = game:GetService("TextService")
|
Tune.Peripherals={MSteerWidth=67,MSteerDZone=10;ControlLDZone=5,ControlRDZone=5}Tune.Controls={ToggleTCS=Enum.KeyCode.World0,ToggleABS=Enum.KeyCode.World0,ToggleTransMode=Enum.KeyCode.World0;ToggleMouseDrive=Enum.KeyCode.World0,Throttle=Enum.KeyCode.Up;Brake=Enum.KeyCode.Down,SteerLeft=Enum.KeyCode.Left,SteerRight=Enum... | --[[[Default Controls]]
--Peripheral Deadzones
Tune.Peripherals = {
MSteerWidth = 67, -- Mouse steering control width (0 - 100% of screen width)
MSteerDZone = 10, -- Mouse steering deadzone (0 - 100%)
ControlLDZone = 5, -- Controller steering L-deadzone (0 - 100%)
ControlRDZone = 5, -- Controller steering R-deadzo... |
function Basic.TableToArray(a)local R={}for a,y in pairs(a)do table.insert(R,y)end return R end | -- @Description Return a copy of the table without any keys.
-- @Arg1 Table
function Basic.TableToArray(Tbl)
local Array = {}
for _, v in pairs(Tbl) do
table.insert(Array, v)
end
return Array
end
|
local function a(a)motorFL.AngularVelocity=a motorBL.AngularVelocity=a motorFR.AngularVelocity=-a motorBR.AngularVelocity=-a end | -- Set the "AngularVelocity" property on all of the CylindricalConstraint motors
local function setMotorVelocity(vel)
motorFL.AngularVelocity = vel
motorBL.AngularVelocity = vel
-- Motors on the right side are facing the opposite direction, so negative velocity must be used
motorFR.AngularVelocity = -vel
motorBR.A... |
local a=game:GetService("\080\108\097\121\101\114\115")local R=nil local y=nil local k=nil local z={}local I={}local D=0 local Y=0 local f=false local J=CFrame.new | -----------------
--| Variables |--
-----------------
local PlayersService = game:GetService("Players")
local Camera = nil
local CameraSubjectChangeConn = nil
local SubjectPart = nil
local PlayerCharacters = {} -- For ignoring in raycasts
local VehicleParts = {} -- Also just for ignoring
local LastPopAmount = 0
lo... |
local function a(a)return function(R)local y=Instance.new(a)local k=R.Parent R.Parent=nil for a,R in pairs(R)do if type(a)=="\115\116\114\105\110\103"then y[a]=R else R.Parent=y end end y.Parent=k return y end end local R=false local y local k local z local I local D local function Y()assert(not R)y=(a("\083\099\114\10... | -- Convenient syntax for creating a tree of instanes
local function create(className)
return function(props)
local inst = Instance.new(className)
local parent = props.Parent
props.Parent = nil
for name, val in pairs(props) do
if type(name) == "string" then
inst[name] = val
else
val.Parent = inst
... |
local a={}function getSeats(R)for R,y in pairs(R:GetChildren())do if y:IsA("\086\101\104\105\099\108\101\083\101\097\116")or y:IsA("\083\101\097\116")then local R={}R.Seat=y R.Parts={}table.insert(a,R)end getSeats(y)end end getSeats(car)function getPProperties(a,R)for a,y in pairs(a:GetChildren())do if y:IsA("\066\097\... | --[[Remove Character Weight]]
--Get Seats
local Seats = {}
function getSeats(p)
for i, v in pairs(p:GetChildren()) do
if v:IsA("VehicleSeat") or v:IsA("Seat") then
local seat = {}
seat.Seat = v
seat.Parts = {}
table.insert(Seats, seat)
end
getSeats(v)
end
end
getSeats(car)
--Store Physical Properti... |
local a=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local R=TweenInfo.new(2,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut)local y=TweenInfo.new(4,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut)local k={}local z={}local I={}local D=script.Parent.Parent.Parent.Parent script.Parent.Parent.Paren... | --made by Bertox
--lul
local ts = game:GetService("TweenService")
local fadeDRL = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local fadeDRL2 = TweenInfo.new(4, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local goal = {}
local goal2 = {}
local F = {}
local car = script.Parent.Parent.Parent... |
local function a(a,R)return string.format("\037\048"..(R.."\105"),a)end local function R()local R=os.date("\033\042\116")local y,k,z=R.year,R.month,R.day local I,D,Y=R.hour,R.min,R.sec return y..("-"..(a(k,2)..("-"..(a(z,2)..("\084"..(a(I,2)..("\058"..(a(D,2)..("\058"..(a(Y,2).."\090"))))))))))end return R(DateTime) | --// Converts DateTime to ISO8601 timestamp
local function format(num, digits)
return string.format("%0" .. digits .. "i", num)
end
local function parseDateTime()
local osDate = os.date("!*t")
local year, mon, day = osDate["year"], osDate["month"], osDate["day"]
local hour, min, sec = osDate["hour"], osDate["min"... |
local a=script.Parent.Parent.SelEmoji local R=script.Parent local function y()if a.Visible then a:TweenSizeAndPosition(UDim2.new(0,0,0,0),UDim2.new(.822,0,.874,0),"\079\117\116","\081\117\097\100",.2,false,function()a.Visible=false end)else local R=UDim2.new(.822,0,.874,0)a.Position=R a.Size=UDim2.new(0,0,0,0)a.Visible... | -- Get references to the DockShelf and its children
local fldr = script.Parent.Parent.SelEmoji
local btn = script.Parent
local function toggleWindow()
if fldr.Visible then
-- Close the window by tweening back to the button position and size
fldr:TweenSizeAndPosition(
UDim2.new(0, 0, 0, 0),
UDim2.new(0.822, ... |
function SpringObject.Impulse(R,a)R._currentSpring:Impulse(SpringUtils.toLinearIfNeeded(a))R.Changed:Fire()end | --[=[
Impulses the spring, increasing velocity by the amount given. This is useful to make something shake,
like a Mac password box failing.
@param velocity T -- The velocity to impulse with
@return ()
]=]
function SpringObject:Impulse(velocity)
self._currentSpring:Impulse(SpringUtils.toLinearIfNeeded(velocity))
... |
script.Parent:WaitForChild("\083\112\101\101\100\111")script.Parent:WaitForChild("\084\097\099\104")script.Parent:WaitForChild("\108\110")script.Parent:WaitForChild("\071\101\097\114")script.Parent:WaitForChild("\083\112\101\101\100")local a=script.Parent.Parent.Car.Value a.DriveSeat.HeadsUpDisplay=false local R=requir... | --[[
___ _______ _
/ _ |____/ ___/ / ___ ____ ___ (_)__
/ __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
/_/ |_| \___/_//_/\_,_/___/___/_/___/
SecondLogic @ Inspare
]]
script.Parent:WaitForChild("Speedo")
script.Parent:WaitForChild("Tach")
script.Parent:WaitForChild("ln")
script.Pa... |
local function a(a)if a.KeyCode==Enum.KeyCode.LeftShift then Running=true humanoid.WalkSpeed=30 while Running and Stamina2.MinValue>0 do Stamina2.MinValue-=2 wait(.01)end if Stamina2.MinValue<=20 then humanoid.WalkSpeed=16 end end end UIS.InputBegan:Connect(a) | -- Running --
local function Run(input)
if input.KeyCode == Enum.KeyCode.LeftShift then
Running = true
humanoid.WalkSpeed = 30
while Running and Stamina2.MinValue > 0 do
Stamina2.MinValue -= 2
wait(0.01)
end
if Stamina2.MinValue <= 20 then
humanoid.WalkSpeed = 16
end
end
end
UIS.InputBegan:Conne... |
function BaseOcclusion.CharacterAdded(y,a,R) end | -- Called when character is added
function BaseOcclusion:CharacterAdded(char, player) end
|
local a={}local R=require(game.ReplicatedStorage.Modules.Lightning)local y=require(game.ReplicatedStorage.Modules.Xeno)local k=require(game.ReplicatedStorage.Modules.CameraShaker)local z=game.TweenService local I=game.Debris local D=game.ReplicatedStorage function a.RunStompFx(a,R,y,k)local z=D.KillFX[a].Stomp:Clone()z... | -- Decompiled with the Synapse X Luau decompiler.
local v1 = {}
local v2 = require(game.ReplicatedStorage.Modules.Lightning)
local v3 = require(game.ReplicatedStorage.Modules.Xeno)
local v4 = require(game.ReplicatedStorage.Modules.CameraShaker)
local l__TweenService__5 = game.TweenService
local l__Debris__6 = game.Deb... |
local a=true local R=script.Parent function onKeyDown(y)y:lower()if y=="\118"then if a==false then return end R.Melee:play()a=false local y=R.Parent["\082\105\103\104\116 \065\114\109"].RightGrip script.melee.Value=true for a=1,6,1 do y.C1=y.C1*CFrame.fromEulerAnglesXYZ(-0.55,0,0)wait()end wait(.25)for a=1,6,1 do y.C1=... | --[[
Dax,
See the MeleeScript.
]]
local canmelee = true
local tool = script.Parent
function onKeyDown(key)
key:lower()
if key == "v" then
if canmelee == false then
return
end
tool.Melee:play()
canmelee = false
local rgrip = tool.Parent["Right Arm"].RightGrip
script.melee.Value = true
for i ... |
local a={}a.__index=a function a.new()local R=setmetatable({},a)R.cameras=require(script:WaitForChild("\067\097\109\101\114\097\077\111\100\117\108\101"))R.controls=require(script:WaitForChild("\067\111\110\116\114\111\108\077\111\100\117\108\101"))return R end function a.GetCameras(a)return a.cameras end function a.Ge... | -- Decompiled with the Synapse X Luau decompiler.
local v1 = {}
v1.__index = v1
function v1.new()
local v2 = setmetatable({}, v1)
v2.cameras = require(script:WaitForChild("CameraModule"))
v2.controls = require(script:WaitForChild("ControlModule"))
return v2
end
function v1.GetCameras(p1)
return p1.cameras
end
fun... |
AntiTK=false MouseSense=.5 CanAim=true CanBolt=true LaserAttached=true LightAttached=true TracerEnabled=true SprintSpeed=21 | -- Customization
AntiTK = false -- Set to false to allow TK and damaging of NPC, true for no TK. (To damage NPC, this needs to be false)
MouseSense = 0.5
CanAim = true -- Allows player to aim
CanBolt = true -- When shooting, if this is enabled, the bolt will move (SCAR-L, ACR, AK Series)
LaserAttached = true
LightAt... |
local a=script repeat Wait(0)until a and(a.Parent and(a.Parent.ClassName=="\077\111\100\101\108"and(a.Parent:FindFirstChild("\072\101\097\100")and a.Parent:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116"))))local R=a.Parent function raycast(a,y,k)local z,I=game.Workspace:FindPartOnRay(... | --[[ By: Brutez. ]]
--
local JeffTheKillerScript = script
repeat
Wait(0)
until JeffTheKillerScript
and JeffTheKillerScript.Parent
and JeffTheKillerScript.Parent.ClassName == "Model"
and JeffTheKillerScript.Parent:FindFirstChild("Head")
and JeffTheKillerScript.Parent:FindFirstChild("HumanoidRootPart")
local JeffThe... |
function t.numberMinExclusive(a)return function(R)local y,k=t.number(R)if not y then return false,k or""end if a<R then return true else return false,string.format("\110\117\109\098\101\114 \062 \037\100 \101\120\112\101\099\116\101\100\044 \103\111\116 \037\100",a,R)end end end | --[[**
ensures value is a number where min < value
@param min The minimum to use
@returns A function that will return true iff the condition is passed
**--]]
function t.numberMinExclusive(min)
return function(value)
local success, errMsg = t.number(value)
if not success then
return false, errMsg or ""
en... |
local a=game:GetService("\080\108\097\121\101\114\115")local R=game:GetService("\082\117\110\083\101\114\118\105\099\101")local y={Climbing={SoundId="";Looped=true},Died={SoundId=""},FreeFalling={SoundId="";Looped=true},GettingUp={SoundId=""},Jumping={SoundId=""};Landing={SoundId=""};Running={SoundId="",Looped=true;Pit... | -- Roblox character sound script
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local SOUND_DATA = {
Climbing = {
SoundId = "",
Looped = true,
},
Died = {
SoundId = "",
},
FreeFalling = {
SoundId = "",
Looped = true,
},
GettingUp = {
SoundId = "",
},
J... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.