Datasets:
input stringlengths 6 11.4M | output stringlengths 6 4.94M |
|---|---|
function scriptChildModified(R)local p=animNames[R.Name]if p~=nil then configureAnimationSet(R.Name,p)end end script.ChildAdded:connect(scriptChildModified)script.ChildRemoved:connect(scriptChildModified)for R,p in pairs(animNames)do configureAnimationSet(R,p)end | -- Setup animation objects
function scriptChildModified(child)
local fileList = animNames[child.Name]
if fileList ~= nil then
configureAnimationSet(child.Name, fileList)
end
end
script.ChildAdded:connect(scriptChildModified)
script.ChildRemoved:connect(scriptChildModified)
for name, fileList in pairs(animNames) ... |
local function R(R)if armsvisible then local p=not R for R,s in ipairs(armparts)do s.LocalTransparencyModifier=armtransparency s.CanCollide=false s.CastShadow=p end end end | -- loop through all the arm parts and make them visible in first person
local function visiblearms(bool)
if armsvisible then
local castshadow = not bool
for i, part in ipairs(armparts) do
part.LocalTransparencyModifier = armtransparency
part.CanCollide = false
part.CastShadow = castshadow
end
end
end
|
Tune.Peripherals={MSteerWidth=67,MSteerDZone=10,ControlLDZone=5,ControlRDZone=5}Tune.Controls={ToggleTCS=Enum.KeyCode.KeypadEquals;ToggleABS=Enum.KeyCode.KeypadZero,ToggleTransMode=Enum.KeyCode.KeypadEight;ToggleMouseDrive=Enum.KeyCode.F1;Throttle=Enum.KeyCode.Up,Brake=Enum.KeyCode.Down,SteerLeft=Enum.KeyCode.Left,Stee... | --[[[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... |
Tune.Peripherals={MSteerWidth=67,MSteerDZone=10,ControlLDZone=5,ControlRDZone=5}Tune.Controls={ToggleABS=Enum.KeyCode.Y;ToggleTransMode=Enum.KeyCode.M,Throttle=Enum.KeyCode.Up;Brake=Enum.KeyCode.Down;SteerLeft=Enum.KeyCode.Left,SteerRight=Enum.KeyCode.Right,Throttle2=Enum.KeyCode.W,Brake2=Enum.KeyCode.S,SteerLeft2=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... |
local R={}if _Tune.Config=="\070\087\068"or _Tune.Config=="\065\087\068"then for p,s in pairs(car.Wheels:GetChildren())do if s.Name=="\070\076"or s.Name=="\070\082"or s.Name=="\070"then table.insert(R,s)end end end if _Tune.Config=="\082\087\068"or _Tune.Config=="\065\087\068"then for p,s in pairs(car.Wheels:GetChildre... | --[[Drivetrain Initialize]]
local Drive = {}
--Power Front Wheels
if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
for i, v in pairs(car.Wheels:GetChildren()) do
if v.Name == "FL" or v.Name == "FR" or v.Name == "F" then
table.insert(Drive, v)
end
end
end
--Power Rear Wheels
if _Tune.Config == "RWD" or... |
function Flip()if(car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y>.1 or FlipDB then FlipWait=tick()else if tick()-FlipWait>=3 then FlipDB=true local R=car.DriveSeat.Flip R.maxTorque=Vector3.new(10000,0,10000)R.P=3000 R.D=500 wait(1)R.maxTorque=Vector3.new(0,0,0)R.P=0 R.D=0 FlipDB=false end end end | --[[Flip]]
function Flip()
--Detect Orientation
if (car.DriveSeat.CFrame * CFrame.Angles(math.pi / 2, 0, 0)).lookVector.y > 0.1 or FlipDB then
FlipWait = tick()
--Apply Flip
else
if tick() - FlipWait >= 3 then
FlipDB = true
local gyro = car.DriveSeat.Flip
gyro.maxTorque = Vector3.new(10000, 0, 10000... |
function Path.Destroy(R)for R,p in ipairs(R._events)do p:Destroy()end R._events=nil if rawget(R,"\095\118\105\115\117\097\108\087\097\121\112\111\105\110\116\115")then R._visualWaypoints=destroyVisualWaypoints(R._visualWaypoints)end R._path:Destroy()setmetatable(R,nil)for p,s in pairs(R)do R[p]=nil end end function Pat... | --[[ NON-STATIC METHODS ]]
--
function Path:Destroy()
for _, event in ipairs(self._events) do
event:Destroy()
end
self._events = nil
if rawget(self, "_visualWaypoints") then
self._visualWaypoints = destroyVisualWaypoints(self._visualWaypoints)
end
self._path:Destroy()
setmetatable(self, nil)
for k, _ in pai... |
Tune.FCamber=-1 Tune.RCamber=-1 Tune.FToe=0 Tune.RToe=0 | --[[Wheel Alignment]]
--[Don't physically apply alignment to wheels]
--[Values are in degrees]
Tune.FCamber = -1
Tune.RCamber = -1
Tune.FToe = 0
Tune.RToe = 0
|
local function R()local R=script.Parent.Values.SteerC.Value if _MSteer then local R=math.max(1,(mouse.ViewSizeX*_Tune.Peripherals.MSteerWidth)/200)local p=_Tune.Peripherals.MSteerDZone/100 local s=(mouse.X-mouse.ViewSizeX/2)/R if math.abs(s)<=p then _GSteerT=0 else _GSteerT=(math.max(math.min(math.abs(s)-p,1-p),0)/(1-p... | --[[Steering]]
local function Steering()
local SteerLocal = script.Parent.Values.SteerC.Value
--Mouse Steer
if _MSteer then
local msWidth = math.max(1, mouse.ViewSizeX * _Tune.Peripherals.MSteerWidth / 200)
local mdZone = _Tune.Peripherals.MSteerDZone / 100
local mST = ((mouse.X - mouse.ViewSizeX / 2) / msWid... |
function Prone()L_87_: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_127_=4 L_126_=.025 L_47_=true L_67_=.01 L_66_=-0.05 L_68_=.05 P... | --// Stances
function Prone()
L_87_: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_127_ = 4
L_126_ = 0.025
L_47_ = true
L_67_ = 0.01
L_66_ = -0.05
L_68_ = 0.05
Proned2 =... |
local z=script.Parent.Config local p=script.Parent.ScoreBlock local R=z.UploadScore local W=z.RemoteScore local s=z.LocalScoreUpdate R.Refresh.Value=SCORE_UPDATE W.Score.Value=NAME_OF_STAT W.Original.Value=PLAYER_SAVE W.DataStore.Value=DATA_STORE s.Refresh.Value=PLAYER_UPDATE R.Disabled=false R.Parent=game.ServerScript... | -- Stuff (do not edit below)
local configModel = script.Parent.Config
local scoreBlock = script.Parent.ScoreBlock
local uS = configModel.UploadScore
local rS = configModel.RemoteScore
local lSU = configModel.LocalScoreUpdate
uS.Refresh.Value = SCORE_UPDATE
rS.Score.Value = NAME_OF_STAT
rS.Original.Value = PLAYER_SAV... |
local function z(z,p)while not z:FindFirstChild(p)do z.ChildAdded:wait()end return z[p]end | --------------------- TEMPLATE ASSAULT RIFLE WEAPON ---------------------------
-- Waits for the child of the specified parent
local function WaitForChild(parent, childName)
while not parent:FindFirstChild(childName) do
parent.ChildAdded:wait()
end
return parent[childName]
end
|
local z=TweenInfo.new(.25,Enum.EasingStyle.Quad,Enum.EasingDirection.In,0,false,0)local p=Vehicle:WaitForChild("\082\101\109\111\116\101\115")local R=p:WaitForChild("\083\101\116\084\104\114\111\116\116\108\101")local W=nil local s=true local k=true local m=1.75 local V=0 local Q=false local t=0 local L=0 local Z=1 | -- tween engine sound volume when we start driving
local engineStartTween = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0, false, 0)
local Remotes = Vehicle:WaitForChild("Remotes")
local SetThrottleRemote = Remotes:WaitForChild("SetThrottle")
local SetThrottleConnection = nil
local EngineSound... |
TracerTransparency=0 TracerLightEmission=1 TracerTextureLength=.1 TracerLifetime=.05 TracerFaceCamera=true TracerColor=BrickColor.new("\087\104\105\116\101") | --// Tracer Vars
TracerTransparency = 0
TracerLightEmission = 1
TracerTextureLength = 0.1
TracerLifetime = 0.05
TracerFaceCamera = true
TracerColor = BrickColor.new("White")
|
local z=2.718281828459 local function p(p,R,W,s,k,m,V)if R==0 then return W elseif p<.99999999 then local Q=(1-p*p)^.5 local t=(W-k)+((2*p)/R)*m local L=((p/Q)*(W-k)+s/(Q*R))+(((2*p)*p-1)/(Q*R))*m local Z=math.cos((Q*R)*V)local e=math.sin((Q*R)*V)local x=z^((p*R)*V)return(((Z/x)*t+(e/x)*L)+k)+(V-(2*p)/R)*m,(((R*(Z*Q-p*... | --[[
A simplistic spring implementation.
]]
local e = 2.718281828459045
local function posvel(d, s, p0, v0, p1, v1, x)
if s == 0 then
return p0
elseif d < 1 - 1e-8 then
local h = (1 - d * d) ^ 0.5
local c1 = (p0 - p1 + 2 * d / s * v1)
local c2 = d / h * (p0 - p1) + v0 / (h * s) + (2 * d * d - 1) / (h * s) ... |
function wait_time(z)local p=tick()local R=(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat repeat R:Wait()until tick()-p>=z return tick()-p end | -- a better alternative implementation for the wait function
function wait_time(duration)
local start = tick()
local Heartbeat = game:GetService("RunService").Heartbeat
repeat
Heartbeat:Wait()
until (tick() - start) >= duration
return (tick() - start)
end
|
local z=6.1/#themeColors local p=pages.custom["\065\066 \084\104\101\109\101\083\101\108\101\099\116\105\111\110"]local R=true local function W(z,R)if z==nil then for p,W in pairs(themeColors)do if W[1]==main.pdata.Theme then z=W[1]R=W[2]break end end end if z then local W={}for z,p in pairs(main.gui:GetDescendants())d... | -- << CUSTOM >>
-- Theme
local ratio = 6.1 / #themeColors
local themeFrame = pages.custom["AB ThemeSelection"]
local themeDe = true
local function updateThemeSelection(themeName, themeColor)
if themeName == nil then
for i, v in pairs(themeColors) do
if v[1] == main.pdata.Theme then
themeName = v[1]
themeC... |
local z={}local p={}local R={} | --Library
local DataStoreCache = {}
local DataStore2 = {}
local combinedDataStoreInfo = {}
|
(serverMain:WaitForChild("\080\108\121\114")).Value=Player local z=Spring.new(V3())z.s=S.momentumSettings.Speed z.d=S.momentumSettings.Damper local p=Spring.new(V3())p.s=S.recoilSettings.springSpeed p.d=S.recoilSettings.springDamper local R=Spring.new(V3())R.s=35 R.d=.5 local W=Spring.new(V3(crossOffset+(baseSpread+cur... | --------------------------------------------------------------------------------------
--------------------[ GUN SETUP ]-----------------------------------------------------
--------------------------------------------------------------------------------------
serverMain:WaitForChild("Plyr").Value = Player
local gunM... |
module.ChatOnWithTopBarOff=false module.ScreenGuiDisplayOrder=6 module.ShowFriendJoinNotification=true | -- Make the chat work when the top bar is off
module.ChatOnWithTopBarOff = false
module.ScreenGuiDisplayOrder = 6 -- The DisplayOrder value for the ScreenGui containing the chat.
module.ShowFriendJoinNotification = true -- Show a notification in the chat when a players friend joins the game.
|
local z=game:GetService("\068\097\116\097\083\116\111\114\101\083\101\114\118\105\099\101")local p={}p.__index=p function p.Get(z)local p,R=pcall(function()return((z.orderedDataStore:GetSortedAsync(false,1)):GetCurrentPage())[1]end)if not p then return false,R end if R then local p=R local W=p.value z.dataStore2:Debug(... | --[[
berezaa's method of saving data (from the dev forum):
What I do and this might seem a little over-the-top but it's fine as long as you're not using datastores excessively elsewhere is have a datastore and an ordereddatastore for each player. When you perform a save, add a key (can be anything) with the value of... |
This=script.Parent Elevator=This.Parent.Parent.Parent CustomLabel=require(This.Parent.Parent.Parent.CustomLabel)Characters=require(script.Characters)CustomText=CustomLabel.CUSTOMFLOORLABEL;(Elevator:WaitForChild("\070\108\111\111\114")).Changed:connect(function(z)ChangeFloor(tostring(z))end)function ChangeFloor(z)if Cu... | ---------------------------------------------------
This = script.Parent
Elevator = This.Parent.Parent.Parent
CustomLabel = require(This.Parent.Parent.Parent.CustomLabel)
Characters = require(script.Characters)
CustomText = CustomLabel["CUSTOMFLOORLABEL"]
Elevator:WaitForChild("Floor").Changed:connect(function(floor... |
local function z(z)while z:FindFirstChild("\099\114\101\097\116\111\114")do z.creator:Destroy()end local p=CreatorTag:Clone()DebrisService:AddItem(p,1.5)p.Parent=z end | -- Removes any old creator tags and applies a new one to the target
local function ApplyTags(target)
while target:FindFirstChild("creator") do
target.creator:Destroy()
end
local creatorTagClone = CreatorTag:Clone()
DebrisService:AddItem(creatorTagClone, 1.5)
creatorTagClone.Parent = target
end
|
function keyDown(z)local p=string.lower(z)if p==S.Keys.lowerStance and S.canChangeStance then if not Running then if Stance==0 then if S.stanceSettings.Stances.Crouch then Crouch()elseif S.stanceSettings.Stances.Prone then Prone()end elseif Stance==1 then if S.stanceSettings.Stances.Prone then Prone()end end elseif S.d... | --------------------[ KEYBOARD FUNCTIONS ]--------------------------------------------
function keyDown(K)
local Key = string.lower(K)
if Key == S.Keys.lowerStance and S.canChangeStance then
if not Running then
if Stance == 0 then
if S.stanceSettings.Stances.Crouch then
Crouch()
elseif S.stanceSet... |
local z=true local p=Player:GetMouse()local R=false local W=nil local s=5 local k=1 | --Variables--
local Enabled = true
local mouse = Player:GetMouse()
local ButtonDown = false
local Key = nil
local cooldown = 5
local Debounce = 1
|
function UnDigify(z)if z<1 or z>61 then return""elseif z==1 then return"\049"elseif z==2 then return"\033"elseif z==3 then return"\050"elseif z==4 then return"\064"elseif z==5 then return"\051"elseif z==6 then return"\052"elseif z==7 then return"\036"elseif z==8 then return"\053"elseif z==9 then return"\037"elseif z==1... | ----------------------------------
------------FUNCTIONS-------------
----------------------------------
function UnDigify(digit)
if digit < 1 or digit > 61 then
return ""
elseif digit == 1 then
return "1"
elseif digit == 2 then
return "!"
elseif digit == 3 then
return "2"
elseif digit == 4 then
return ... |
Tune.Config="\082\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 = "RWD" --"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... |
local function z()return"\075\101\121\098\111\097\114\100"end | --[[
Returns the platform / user input of the client.
]]
local function getClientPlatform()
-- TODO: Get input, and return Keyboard, Controller, or Touch
return "Keyboard"
end
|
for z,p in pairs(DROPS:GetChildren())do HandleDrop(p)end local z=0 RunService.Stepped:connect(function(p,R)z=z+R for p,R in pairs(drops)do local W=p.Position-CAMERA.CFrame.p if math.abs(W.X)<UPDATE_RANGE and(math.abs(W.Y)<UPDATE_RANGE and math.abs(W.Z)<UPDATE_RANGE)then local W=z+(p.Position.X+p.Position.Z)*.2 local s=... | -- initiate
for _, drop in pairs(DROPS:GetChildren()) do
HandleDrop(drop)
end
local t = 0
RunService.Stepped:connect(function(_, deltaTime)
t = t + deltaTime
for drop, dropInfo in pairs(drops) do
local offset = drop.Position - CAMERA.CFrame.p
if
math.abs(offset.X) < UPDATE_RANGE
and math.abs(offset.Y) ... |
Tune.SteerInner=58 Tune.SteerOuter=58 Tune.SteerSpeed=.5 Tune.ReturnSpeed=.5 Tune.SteerDecay=325 Tune.MinSteer=10 Tune.MSteerExp=1 Tune.SteerD=1000 Tune.SteerMaxTorque=5000 Tune.SteerP=3500 | --[[Steering]]
Tune.SteerInner = 58 -- Inner wheel steering angle (in degrees)
Tune.SteerOuter = 58 -- Outer wheel steering angle (in degrees)
Tune.SteerSpeed = 0.5 -- Steering increment per tick (in degrees)
Tune.ReturnSpeed = 0.5 -- Steering increment per tick (in degrees)
Tune.SteerDecay = 325 -- Speed of gradient c... |
Tune.TransModes={"\065\117\116\111";"\083\101\109\105","\077\097\110\117\097\108"}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", "Semi", "Manual" } --[[
[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 mo... |
script.Parent.Parent.Values.RPM.Changed:connect(function()local z=0 z=totalPSI*20 BOVact=math.floor(z)end)script.Parent.Parent.Values.RPM.Changed:connect(function()wait(.1)local z=0 z=totalPSI*20 BOVact2=math.floor(z)end)script.Parent.Parent.Values.RPM.Changed:connect(function()if BOVact>BOVact2 then if BOV.IsPlaying==... | --BOV--
script.Parent.Parent.Values.RPM.Changed:connect(function()
local t = 0
t = (totalPSI * 20)
BOVact = math.floor(t)
end)
script.Parent.Parent.Values.RPM.Changed:connect(function()
wait(0.1)
local t2 = 0
t2 = (totalPSI * 20)
BOVact2 = math.floor(t2)
end)
script.Parent.Parent.Values.RPM.Changed:connect(funct... |
function IconController.setGameTheme(z)IconController.gameTheme=z local p=IconController.getIcons()for p,R in pairs(p)do R:setTheme(z)end end function IconController.setDisplayOrder(z)z=tonumber(z)or TopbarPlusGui.DisplayOrder TopbarPlusGui.DisplayOrder=z end IconController.setDisplayOrder(10)function IconController.ge... | -- METHODS
function IconController.setGameTheme(theme)
IconController.gameTheme = theme
local icons = IconController.getIcons()
for _, icon in pairs(icons) do
icon:setTheme(theme)
end
end
function IconController.setDisplayOrder(value)
value = tonumber(value) or TopbarPlusGui.DisplayOrder
TopbarPlusGui.DisplayO... |
local z=true function onClicked()if z==true then z=false One()elseif z==false then z=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)
|
CameraGo=true FirstPersonOnly=false TPSMouseIcon=1415957732 | --// Dev Vars
CameraGo = true -- No touchy
FirstPersonOnly = false -- SET THIS TO FALSE TO ENABLE THIRD PERSON, TRUE FOR FIRST PERSON ONLY
TPSMouseIcon = 1415957732 -- Image used as the third person reticle
|
local z=23 local p=16 | --RUNNING SCRIPT--
-------------------------------
local RunSpeed = 23 -- Change this to the speed you want the player to go
local AfterSpeed = 16 -- Best if you leave this alone. This is the speed the player will be after pressing shift.
|
SteeringAngle=40 SteerSpeed=.05 TiresFront=2 TiresRear=2 DownforceF=0 DownforceR=0 BrakeBias=72 BrakePower=80 TC=false ABS=true | --//Handling//--
SteeringAngle = 40 --{Steering angle in degrees}
SteerSpeed = 0.05 --{.01 being slow, 1 being almost instantly}
TiresFront = 2 --{1 = eco, 2 = road, 3 = sport}
TiresRear = 2 --{1 = eco, 2 = road, 3 = sport}
DownforceF = 0 --{[0-5] Provides downforce to the front at the cost of drag}
DownforceR = 0 --{[... |
Tune.FBrakeForce=300 Tune.RBrakeForce=250 Tune.PBrakeForce=500 Tune.LinkedBrakes=true Tune.BrakesRatio=60 | --[[Brakes]]
--
Tune.FBrakeForce = 300 -- Front brake force
Tune.RBrakeForce = 250 -- Rear brake force
Tune.PBrakeForce = 500 -- Parking brake force
Tune.LinkedBrakes = true -- Links brakes up, uses both brakes while braking
Tune.BrakesRatio = 60 -- The ratio of the brakes (0 = rear brake; 100 = front brake)
|
function TaskScheduler.CreateScheduler(p,z)local R={}local W={}local s=true local k,m local V local Q={}local t local function L()local p=tick()local R=p-V<1 and math.floor(z*(p-V))or z for z=#Q,1,-1 do Q[z+1]=Q[z]>=p-1 and Q[z]or nil end Q[1]=p if#Q>=R then if#W>0 then W[1]()table.remove(W,1)else t()end end end t=func... | --[[
param targetFps Task scheduler won't run a task if it'd make the FPS drop below this amount
(WARNING) this only holds true if it is used properly. If you try to complete 10 union operations
at once in a single task then of course your FPS is going to drop -- queue the union operations
up one at... |
Queue._gameMode=Conf.default_game_mode Queue._destinationId=Conf.modes[Queue._gameMode].gameplay_place Queue._timeoutEnabled=true | -----------------------
Queue._gameMode = Conf.default_game_mode
Queue._destinationId = Conf.modes[Queue._gameMode].gameplay_place
Queue._timeoutEnabled = true
|
WalkAnimEnabled=true SwayEnabled=true TacticalModeEnabled=false | --// Extras
WalkAnimEnabled = true -- Set to false to disable walking animation, true to enable
SwayEnabled = true -- Set to false to disable sway, true to enable
TacticalModeEnabled = false -- SET THIS TO TRUE TO TURN ON TACTICAL MODEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
|
local z=nil;(coroutine.wrap(function()z=require(game.ReplicatedStorage:WaitForChild("\082\101\115\111\117\114\099\101\115"))end))()local p={New=function(p,R,W,s)R=R or Color3.new(.2,.2,.2)W=W or Enum.Font.FredokaOne s=s or Enum.FontSize.Size18 z.StarterGui:SetCore("\067\104\097\116\077\097\107\101\083\121\115\116\101\1... | -- Decompiled with the Synapse X Luau decompiler.
local u1 = nil
coroutine.wrap(function()
u1 = require(game.ReplicatedStorage:WaitForChild("Resources"))
end)()
local v1 = {
New = function(p1, p2, p3, p4)
p2 = p2 or Color3.new(0.2, 0.2, 0.2)
p3 = p3 or Enum.Font.FredokaOne
p4 = p4 or Enum.FontSize.Size18
u1.... |
local function z(z)if z==nil then z={}end return function(p)local R={}for z,p in pairs(z)do R[z]=p end if type(p)=="\116\097\098\108\101"then for z,p in pairs(p)do R[z]=p end end return R end end return{fields=z} | -- Compiled with roblox-ts v1.3.3
local function fields(defaults)
if defaults == nil then
defaults = {}
end
return function(input)
local _object = {}
for _k, _v in pairs(defaults) do
_object[_k] = _v
end
if type(input) == "table" then
for _k, _v in pairs(input) do
_object[_k] = _v
end
end
... |
Tune.WeightScaling=.02 Tune.LegacyScaling=.1 return Tune | --[[Weight Scaling]]
--[Cubic stud : pounds ratio]
--[STANDARDIZED: Don't touch unless needed]
Tune.WeightScaling = 1 / 50 --Default = 1/50 (1 cubic stud = 50 lbs)
Tune.LegacyScaling = 1 / 10 --Default = 1/10 (1 cubic stud = 10 lbs) [PGS OFF]
return Tune
|
local z=script.Settings local p=z.Speed local R=z.Enabled local W=z.Loop local s=z.Debug local k=script.Parent:WaitForChild("\072\117\109\097\110\111\105\100")if s.Value==true then if k then print("\083\117\099\099\101\115\115")else print("\078\111 \072\117\109\097\110\111\105\100")end end local m=k:LoadAnimation(scrip... | --Variables--
local set = script.Settings
local sp = set.Speed
local enabled = set.Enabled
local loop = set.Loop
local debug_ = set.Debug
local hum = script.Parent:WaitForChild("Humanoid")
if debug_.Value == true then
if hum then
print("Success")
else
print("No Humanoid")
end
end
local humanim = hum:LoadAnimatio... |
R6TorsoTuckIn=.5 R6RightArmTuckIn=.2 R6LeftArmTuckIn=.2 | --Tuck in
R6TorsoTuckIn = 0.5
R6RightArmTuckIn = 0.2
R6LeftArmTuckIn = 0.2
|
ChargedShotEnabled=false ChargingTime=1 | -- ====================
-- CHARGED SHOT
-- Make a gun charging before firing. Useful for a gun like "Railgun" or "Laser Cannon"
-- ====================
ChargedShotEnabled = false
ChargingTime = 1
|
local z={}local p=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local R=TweenInfo.new(2,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)function z.OPEN(z)if not z then return end for W=1,2,1 do(p:Create(z["\068\111\111\114"..W].PrimaryPart,R,{CFrame=z["\068\111\111\114"..(W.."\071\111\097\108")].C... | --This module is for any client FX related to the DoubleDoor
local DoorFX = {}
local tweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
function DoorFX.OPEN(door)
if not door then
return
end
for i = 1, 2 do
tweenService
:Cr... |
function ServiceBag.Init(z)assert(not z._initializing,"\065\108\114\101\097\100\121 \105\110\105\116\105\097\108\105\122\105\110\103")assert(z._serviceTypesToInitializeSet,"\065\108\114\101\097\100\121 \105\110\105\116\105\097\108\105\122\101\100")z._initializing=true while next(z._serviceTypesToInitializeSet)do local ... | --[=[
Initializes the service bag and ensures recursive initialization
can occur
]=]
function ServiceBag:Init()
assert(not self._initializing, "Already initializing")
assert(self._serviceTypesToInitializeSet, "Already initialized")
self._initializing = true
while next(self._serviceTypesToInitializeSet) do
loca... |
Tune.TransModes={"\065\117\116\111";"\083\101\109\105","\077\097\110\117\097\108"}Tune.AutoShiftMode="\083\112\101\101\100"Tune.AutoUpThresh=-200 Tune.AutoDownThresh=1400 Tune.FinalDrive=4.5 Tune.Ratios={3.7;0,3.53,2.04,1.38,1.03;.81,.64}Tune.FDMult=1.5 | --[[Transmission]]
Tune.TransModes = { "Auto", "Semi", "Manual" } --[[
[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 mo... |
Tune.Weight=3000 Tune.WeightBSize={6;3.5,14}Tune.WeightDist=50 Tune.CGHeight=.8 Tune.WBVisible=false Tune.FWheelDensity=.1 Tune.RWheelDensity=.1 Tune.FWLgcyDensity=1 Tune.RWLgcyDensity=1 Tune.AxleSize=2 Tune.AxleDensity=.1 | --[[Weight and CG]]
Tune.Weight = 3000 -- Total weight (in pounds)
Tune.WeightBSize = { -- Size of weight brick (dimmensions in studs ; larger = more stable)
--[[Width]]
6,
--[[Height]]
3.5,
--[[Length]]
14,
}
Tune.WeightDist = 50 -- Weight distribution (0 - on rear wheels, 100 - on front wheels, can be <0 or >10... |
Tune.Horsepower=script.Tune_HorsePower.Value Tune.IdleRPM=700 Tune.PeakRPM=6000 Tune.Redline=6700 Tune.EqPoint=5500 Tune.PeakSharpness=7.5 Tune.CurveMult=.16 Tune.InclineComp=4.7 Tune.RevAccel=150 Tune.RevDecay=75 Tune.RevBounce=500 Tune.IdleThrottle=3 Tune.ClutchTol=500 | --[[Engine]]
--Torque Curve
Tune.Horsepower = script.Tune_HorsePower.Value -- [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.EqPoi... |
CanToggleMouse={allowed=true;activationkey=Enum.KeyCode.F}CanViewBody=true Sensitivity=.6 Smoothness=.05 FieldOfView=80 HeadOffset=CFrame.new(0,.7,0)local z=game.Workspace.CurrentCamera local p=players.LocalPlayer local R=p:GetMouse()R.Icon="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\1... | -- you can mess with these settings
CanToggleMouse = { allowed = true, activationkey = Enum.KeyCode.F } -- lets you move your mouse around in firstperson
CanViewBody = true -- whether you see your body
Sensitivity = 0.6 -- anything higher would make looking up and down harder; recommend anything between 0~1
Smoothness ... |
function NpcModule.Walk(z,p,R,W)local s=NpcModule.GetPath(z,p,R)local k=z:FindFirstChild("\072\117\109\097\110\111\105\100")if s~=false then if k then for z,p in pairs(s:GetWaypoints())do k:MoveTo(p.Position)k.MoveToFinished:Wait()end end end if W~=nil then return end end | -- Module 3
function NpcModule.Walk(Npc, Pos, PathParams, Return)
local Path = NpcModule.GetPath(Npc, Pos, PathParams)
local Humanoid = Npc:FindFirstChild("Humanoid")
if Path ~= false then
if Humanoid then
for I, Waypoint in pairs(Path:GetWaypoints()) do
Humanoid:MoveTo(Waypoint.Position)
Humanoid.Move... |
local z=game:GetService("\080\108\097\121\101\114\115")local p=game:GetService("\086\082\083\101\114\118\105\099\101")local R=require(script.Parent:WaitForChild("\067\097\109\101\114\097\073\110\112\117\116"))local W=require(script.Parent:WaitForChild("\067\097\109\101\114\097\085\116\105\108\115")) | --[[ Services ]]
--
local PlayersService = game:GetService("Players")
local VRService = game:GetService("VRService")
local CameraInput = require(script.Parent:WaitForChild("CameraInput"))
local Util = require(script.Parent:WaitForChild("CameraUtils"))
|
local z=game.Players.LocalPlayer local p=z.Character or z.CharacterAdded:wait()local R=p:WaitForChild("\072\117\109\097\110\111\105\100")local W=z:WaitForChild("\080\108\097\121\101\114\071\117\105") | -- Local player
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
local humanoid = character:WaitForChild("Humanoid")
local PlayerGui = player:WaitForChild("PlayerGui")
|
function onRunning(z)if z>0 then pose="\082\117\110\110\105\110\103"else pose="\083\116\097\110\100\105\110\103"end end function onDied()pose="\068\101\097\100"end function onJumping()pose="\074\117\109\112\105\110\103"end function onClimbing()pose="\067\108\105\109\098\105\110\103"end function onGettingUp()pose="\071\... | -- functions
function onRunning(speed)
if speed > 0 then
pose = "Running"
else
pose = "Standing"
end
end
function onDied()
pose = "Dead"
end
function onJumping()
pose = "Jumping"
end
function onClimbing()
pose = "Climbing"
end
function onGettingUp()
pose = "GettingUp"
end
function onFreeFall()
pose = ... |
local z=main.gui.MainFrame.Pages.Settings local p={custom=z.Custom}local R=main.settings.ThemeColors or{{"\082\101\100",Color3.fromRGB(150,0,0)};{"\079\114\097\110\103\101",Color3.fromRGB(150,75,0)},{"\066\114\111\119\110";Color3.fromRGB(120,80,30)},{"\089\101\108\108\111\119",Color3.fromRGB(130,120,0)},{"\071\114\101\... | -- << VARIABLES >>
local frame = main.gui.MainFrame.Pages.Settings
local pages = {
custom = frame.Custom,
}
local themeColors = main.settings.ThemeColors
or {
{ "Red", Color3.fromRGB(150, 0, 0) },
{ "Orange", Color3.fromRGB(150, 75, 0) },
{ "Brown", Color3.fromRGB(120, 80, 30) },
{ "Yellow", Color3.fromRGB(13... |
ScrollingFrame=NewGui("\083\099\114\111\108\108\105\110\103\070\114\097\109\101","\083\099\114\111\108\108\105\110\103\070\114\097\109\101")ScrollingFrame.Selectable=false ScrollingFrame.CanvasSize=UDim2.new(0,0,0,0)ScrollingFrame.Parent=InventoryFrame UIGridFrame=NewGui("\070\114\097\109\101","\085\073\071\114\105\100... | -- Make the ScrollingFrame, which holds the rest of the Slots (however many)
ScrollingFrame = NewGui("ScrollingFrame", "ScrollingFrame")
ScrollingFrame.Selectable = false
ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
ScrollingFrame.Parent = InventoryFrame
UIGridFrame = NewGui("Frame", "UIGridFrame")
UIGridFrame.Se... |
local function z(z)if RecentAppEnabled==true then local p=false if home:FindFirstChild(z)then if side.RecentApps:FindFirstChild(z)then p=true end side.Status:TweenPosition(UDim2.new(.094,0,.638,0),"\073\110\079\117\116","\081\117\105\110\116",.5,true)side.B1:TweenPosition(UDim2.new(.024,0,.593,0),"\073\110\079\117\116"... | --Functions (Needed to organize)
local function AddRecentApp(App)
if RecentAppEnabled == true then
local sameapp = false
if home:FindFirstChild(App) then
if side.RecentApps:FindFirstChild(App) then
sameapp = true
end
side.Status:TweenPosition(UDim2.new(0.094, 0, 0.638, 0), "InOut", "Quint", 0.5, true)... |
function Component.render(z)local p=z[InternalData]local R=componentMissingRenderMessage:format(tostring(p.componentClass))error(R,0)end | --[[
Returns a snapshot of this component given the current props and state. Must
be overridden by consumers of Roact and should be a pure function with
regards to props and state.
TODO (#199): Accept props and state as arguments.
]]
function Component:render()
local internalData = self[InternalData]
local mess... |
local z="\066\097\115\101\070\114\097\109\101"local p="\066\097\115\101\077\101\115\115\097\103\101"local R="\085\112\100\097\116\101\084\101\120\116\070\117\110\099\116\105\111\110"local W="\071\101\116\072\101\105\103\104\116\070\117\110\099\116\105\111\110"local s="\070\097\100\101\073\110\070\117\110\099\116\105\11... | ---Creator function return object keys
local KEY_BASE_FRAME = "BaseFrame"
local KEY_BASE_MESSAGE = "BaseMessage"
local KEY_UPDATE_TEXT_FUNC = "UpdateTextFunction"
local KEY_GET_HEIGHT = "GetHeightFunction"
local KEY_FADE_IN = "FadeInFunction"
local KEY_FADE_OUT = "FadeOutFunction"
local KEY_UPDATE_ANIMATION = "UpdateAn... |
DualWeldEnabled=false AltFire=false MagCartridge=false MaxCount=200 RemoveOldAtMax=false MaxRotationSpeed=360 Drag=1 Gravity=Vector2.new(0,1000)Ejection=true Shockwave=true Velocity=50 XMin=-4 XMax=-2 YMin=-6 YMax=-5 DropAllRemainingBullets=false DropVelocity=10 DropXMin=-5 DropXMax=5 DropYMin=-0.1 DropYMax=0 | -- ====================
-- MISCELLANEOUS
-- Etc. settings for the gun
-- ====================
DualWeldEnabled = false --Enable the user to hold two guns instead one. In order to make this setting work, you must clone its PrimaryHandle and name it like SecondaryHandle. NOTE: Enabling "CustomGripEnabled" won't make this... |
return function(z,p)if p then setfenv(1,p)end local R=service.PlayerGui local W=service.Players.LocalPlayer local s=client.UI.Prepare(script.Parent.Parent)local k=s.Window local m=z.Message local V=z.Color local Q=client.UI.Get("\079\117\116\112\117\116")if Q then for z,p in pairs(Q)do local R=p.Object if R and R.Paren... | --// All global vars will be wiped/replaced except script
return function(data, env)
if env then
setfenv(1, env)
end
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
loca... |
local z={}local p={}local R={}local W={}local s={} | --------------------------------------------------------------
-- You DO NOT need to add yourself to any of these lists!!! --
--------------------------------------------------------------
local Owners = {} -- Can set SuperAdmins, & use all the commands
local SuperAdmins = {} -- Can set permanent admins, & shutdown th... |
Tune.LoadDelay=.1 Tune.AutoStart=true Tune.AutoFlip=true | --[[Misc]]
Tune.LoadDelay = 0.1 -- Delay before initializing chassis (in seconds)
Tune.AutoStart = true -- Set to false if using manual ignition plugin
Tune.AutoFlip = true -- Set to false if using manual flip plugin
|
local function z()if(car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y>.1 or FlipDB then FlipWait=tick()else if tick()-FlipWait>=3 then FlipDB=true local z=car.DriveSeat.Flip z.maxTorque=Vector3.new(10000,0,10000)z.P=3000 z.D=500 wait(1)z.maxTorque=Vector3.new(0,0,0)z.P=0 z.D=0 FlipDB=false end end end | --[[Flip]]
local function Flip()
--Detect Orientation
if (car.DriveSeat.CFrame * CFrame.Angles(math.pi / 2, 0, 0)).lookVector.y > 0.1 or FlipDB then
FlipWait = tick()
--Apply Flip
else
if tick() - FlipWait >= 3 then
FlipDB = true
local gyro = car.DriveSeat.Flip
gyro.maxTorque = Vector3.new(10000, 0,... |
local function z(z,p)local R,W=getAsset(p)if R then local p=Datastore:GetData(z)if R.onPurchased then R.onPurchased(z)end if W=="\080\097\115\115\101\115"and p then local z=p.Gamepasses or{}table.insert(z,R.Id)p.Gamepasses=z end end end MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(p,R,W)if W and p... | -- listeners
local function onProductPurchased(player, id)
local product, class = getAsset(id)
if product then
local data = Datastore:GetData(player)
if product.onPurchased then
product.onPurchased(player)
end
if class == "Passes" and data then
local gamepasses = data.Gamepasses or {}
table.insert(... |
local z=false local p={{units="\075\077\047\072",scaling=.9144,maxSpeed=370;spInc=40},{units="\075\077\047\072",scaling=.9144,maxSpeed=370;spInc=40},{units="\083\080\083",scaling=1,maxSpeed=400,spInc=40}} | --[[
___ _______ _
/ _ |____/ ___/ / ___ ____ ___ (_)__
/ __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
/_/ |_| \___/_//_/\_,_/___/___/_/___/
SecondLogic @ Inspare
]]
local autoscaling = false --Estimates top speed
local UNITS = { --Click on speed to change units
--First unit is... |
local function z(z,p)if z.Character and z.Character:FindFirstChild("\084\111\114\115\111")then local p=z.Character:FindFirstChild("\084\111\114\115\111")local R=p.Position-stove.Door.Position if R.magnitude<clickDistance then if open then ovenMotor.DesiredAngle=0 open=false else ovenMotor.DesiredAngle=math.pi/2 open=tr... | -- Handle event fire
local function toggleDoor(player, door)
-- Check distance to the character's Torso. If too far, don't do anything
if player.Character and player.Character:FindFirstChild("Torso") then
local torso = player.Character:FindFirstChild("Torso")
local toTorso = torso.Position - stove.Door.Position
... |
function ActionManager.BindGameActions(p,z)for z,p in pairs(z)do bind:FireClient(p,"\065\099\116\105\111\110\049",Enum.UserInputType.MouseButton1,Enum.KeyCode.ButtonR2)end end function ActionManager.UnbindGameActions(p,z)for z,p in pairs(z)do unbind:FireClient(p,"\065\099\116\105\111\110\049")end end | -- ========================================
-- ActionManager
-- ========================================
-- Bind/Unbind actions
function ActionManager:BindGameActions(players)
for i, player in pairs(players) do
bind:FireClient(player, "Action1", Enum.UserInputType.MouseButton1, Enum.KeyCode.ButtonR2)
end
end
funct... |
local function z(z,p,R,W,s,k)if not R then return end for z,m in pairs(serverWorkerModule.getAllOtherPlayers(z))do playSoundEffectEvent:FireClient(m,p,R,W,s,k)end end | --[[------------------------------------- REMOTE FUNCTIONS ------------------------------]]
--
local function validateAndSendSoundRequest(requestingPly, parent, soundObj, vol, pit, timePos)
if not soundObj then
return
end
for _, v in pairs(serverWorkerModule.getAllOtherPlayers(requestingPly)) do
playSoundEffect... |
local function z(z,p,R)local W=Instance.new(z)if p then W.Value=p end W.Changed:connect(R)R(W.Value)return W end local p=z("\067\111\108\111\114\051\086\097\108\117\101",RAIN_DEFAULT_COLOR,function(z)local p=ColorSequence.new(z)Emitter.RainStraight.Color=p Emitter.RainTopDown.Color=p for z,R in pairs(splashAttachments)... | -- Shorthand for creating a tweenable "variable" using value object
local function makeProperty(valueObjectClass, defaultValue, setter)
local valueObject = Instance.new(valueObjectClass)
if defaultValue then
valueObject.Value = defaultValue
end
valueObject.Changed:connect(setter)
setter(valueObject.Value)
retur... |
local z=false local p={"\080\108\097\121\101\114\115";"\080\108\097\121\101\114\115"} | -- Settings
local allow_duplicates = false
local allow_team = {
"Players",
"Players",
}
|
local A=true local function r(r)if not A then return end if r.Name=="\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116"then local t=game.Players:FindFirstChild(r.Parent.Name)if t then A=false staticCorrupt.Transparency=0 imageLableCorrupt.ImageTransparency=0 wait(4)staticCorrupt.Transparency=1 imageLable... | --not sure
--local function PlaySound()
-- game.SoundSerivce.SealOrb:Play()
--end
--
local triggerEnabled = true
local function touched(otherPart)
if not triggerEnabled then
return
end
if otherPart.Name == "HumanoidRootPart" then
local player = game.Players:FindFirstChild(otherPart.Parent.Name)
if player the... |
function onRunning(A)if isSeated then return end if A>0 then pose="\082\117\110\110\105\110\103"else pose="\083\116\097\110\100\105\110\103"end end function onDied()pose="\068\101\097\100"end function onJumping()isSeated=false pose="\074\117\109\112\105\110\103"end function onClimbing()pose="\067\108\105\109\098\105\11... | -- functions
function onRunning(speed)
if isSeated then
return
end
if speed > 0 then
pose = "Running"
else
pose = "Standing"
end
end
function onDied()
pose = "Dead"
end
function onJumping()
isSeated = false
pose = "Jumping"
end
function onClimbing()
pose = "Climbing"
end
function onGettingUp()
pos... |
function DPad.Enable(A)DPadFrame.Visible=true end function DPad.Disable(A)DPadFrame.Visible=false OnInputEnded()end function DPad.Create(r,A)if DPadFrame then DPadFrame:Destroy()DPadFrame=nil end local t=UDim2.new(0,10,1,-230)DPadFrame=Instance.new("\070\114\097\109\101")DPadFrame.Name="\068\080\097\100\070\114\097\109... | --[[ Public API ]]
--
function DPad:Enable()
DPadFrame.Visible = true
end
function DPad:Disable()
DPadFrame.Visible = false
OnInputEnded()
end
function DPad:Create(parentFrame)
if DPadFrame then
DPadFrame:Destroy()
DPadFrame = nil
end
local position = UDim2.new(0, 10, 1, -230)
DPadFrame = Instance.new("Fr... |
script.Parent:WaitForChild("\065-\067\104\097\115\115\105\115 \073\110\116\101\114\102\097\099\101")script.Parent:WaitForChild("\080\108\117\103\105\110\115")script.Parent:WaitForChild("\082\069\065\068\077\069")local A=script.Parent.Parent local r=require(script.Parent)wait(r.LoadDelay)local t=r.WeightScaling if not w... | --[[Initialize]]
script.Parent:WaitForChild("A-Chassis Interface")
script.Parent:WaitForChild("Plugins")
script.Parent:WaitForChild("README")
local car = script.Parent.Parent
local _Tune = require(script.Parent)
wait(_Tune.LoadDelay)
--Weight Scaling
local weightScaling = _Tune.WeightScaling
if not workspace:PGSIsE... |
function httpGet(A)return game:HttpGet(A,true)end | -- Functions
function httpGet(url)
return game:HttpGet(url, true)
end
|
(game:GetService("\080\108\097\121\101\114\115")).LocalPlayer.Chatted:connect(function(A)local r=""if string.sub(A,1,3)=="\047\101 "then r=string.sub(A,4)elseif string.sub(A,1,7)=="\047\101\109\111\116\101 "then r=string.sub(A,8)end if pose=="\083\116\097\110\100\105\110\103"and emoteNames[r]~=nil then playAnimation(r,... | -- setup emote chat hook
game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
local emote = ""
if string.sub(msg, 1, 3) == "/e " then
emote = string.sub(msg, 4)
elseif string.sub(msg, 1, 7) == "/emote " then
emote = string.sub(msg, 8)
end
if pose == "Standing" and emoteNames[emote] ~= nil then... |
function Receive(A,r,...)local t={...}if A==User and r=="\112\108\097\121"then Connector:FireAllClients("\112\108\097\121",User,t[1],Settings.SoundSource.Position,Settings.PianoSoundRange,Settings.PianoSounds,t[2],Settings.IsCustom)HighlightPianoKey(t[1]>61 and 61 or t[1]<1 and 1 or t[1],t[3])elseif A==User and r=="\09... | ----------------------------------
------------FUNCTIONS-------------
----------------------------------
function Receive(player, action, ...)
local args = { ... }
if player == User and action == "play" then
Connector:FireAllClients(
"play",
User,
args[1],
Settings.SoundSource.Position,
Settings.Pia... |
local function A(A)for r,t in ipairs(Teams:GetTeams())do if t.TeamColor==A then return t end end return nil end | -- Local Functions
local function GetTeamFromColor(teamColor)
for _, team in ipairs(Teams:GetTeams()) do
if team.TeamColor == teamColor then
return team
end
end
return nil
end
|
WindShake:SetDefaultSettings(WindShakeSettings)WindShake:Init()for A,r in pairs(game.Workspace:GetDescendants())do if r:IsA("\066\097\115\101\080\097\114\116")then if table.find(ShakableObjects,r.Name)then WindShake:AddObjectShake(r,WindShakeSettings)end end end game.Workspace.DescendantAdded:Connect(function(A)if tabl... | -- / Wind Shake / --
WindShake:SetDefaultSettings(WindShakeSettings)
WindShake:Init()
for _, ShakeObject in pairs(game.Workspace:GetDescendants()) do
if ShakeObject:IsA("BasePart") then
if table.find(ShakableObjects, ShakeObject.Name) then
WindShake:AddObjectShake(ShakeObject, WindShakeSettings)
end
end
end
... |
Tune.Config="\082\087\068"Tune.FDiffSlipThres=50 Tune.FDiffLockThres=0 Tune.RDiffSlipThres=100 Tune.RDiffLockThres=0 Tune.CDiffSlipThres=1 Tune.CDiffLockThres=0 Tune.TCSEnabled=false Tune.TCSThreshold=20 Tune.TCSGradient=20 Tune.TCSLimit=10 | --[[Drivetrain]]
Tune.Config = "RWD" --"FWD" , "RWD" , "AWD"
--Differential Settings
Tune.FDiffSlipThres = 50 -- 1 - 100% (Max threshold of applying full lock determined by deviation from avg speed)
Tune.FDiffLockThres = 0 -- 0 - 100% (0 - Bias toward slower wheel, 100 - Bias toward faster wheel)
Tune.RDiffSlipT... |
function Subscription.Disconnect(A)A:Destroy()end return Subscription | --[=[
Alias for [Subscription.Destroy].
]=]
function Subscription:Disconnect()
self:Destroy()
end
return Subscription
|
function GoTo(A)Path:ComputeAsync(NPC.HumanoidRootPart.Position,A)if Path.Status==Enum.PathStatus.NoPath then else local A=Path:GetWaypoints()for A,r in ipairs(A)do NPC.Humanoid:MoveTo(r.Position)if r.Action==Enum.PathWaypointAction.Jump then NPC.Humanoid.Jump=true end end end end | --pathfind
function GoTo(Target)
Path:ComputeAsync(NPC.HumanoidRootPart.Position, Target)
if Path.Status == Enum.PathStatus.NoPath then
else
local WayPoints = Path:GetWaypoints()
for _, WayPoint in ipairs(WayPoints) do
NPC.Humanoid:MoveTo(WayPoint.Position)
if WayPoint.Action == Enum.PathWaypointAction.Ju... |
local A=1.5 local r=.2 local t=.2 | -- idle bob settings
local speed = 1.5
local intensity = 0.2
local smoothness = 0.2
|
camera.Changed:connect(function()local A=(game.Lighting:GetSunDirection()-camera.CoordinateFrame.lookVector).magnitude local r=camera:GetPartsObscuringTarget({camera.CoordinateFrame;game.Lighting:GetSunDirection()*10000},{(camera.CoordinateFrame.p-player.Character.Head.Position).magnitude<1 and player.Character or nil}... | ----------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Events
-----------------------------------------------------------------------------------------------------------------------------------------------------... |
local A={}A.__index=A local function r()local A=Instance.new("\070\114\097\109\101")A.Selectable=false A.Size=UDim2.new(1,0,1,0)A.BackgroundTransparency=1 local r=Instance.new("\083\099\114\111\108\108\105\110\103\070\114\097\109\101")r.Selectable=ChatSettings.GamepadNavigationEnabled r.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... |
if year==2007 then script.Parent.ClickToChat.TextColor3=Color3.new(0,0,0)script.Parent.ChatBar.BackgroundColor3=Color3.new(1.0,1.0,1.0)end local A={ChatColors={BrickColor.new("\066\114\105\103\104\116 \114\101\100"),BrickColor.new("\066\114\105\103\104\116 \098\108\117\101"),BrickColor.new("\069\097\114\116\104 \103\11... | --Code
if year == 2007 then
script.Parent.ClickToChat.TextColor3 = Color3.new(0, 0, 0)
script.Parent.ChatBar.BackgroundColor3 = Color3.new(255 / 255, 255 / 255, 255 / 255)
end
local Chat = {
ChatColors = {
BrickColor.new("Bright red"),
BrickColor.new("Bright blue"),
BrickColor.new("Earth green"),
BrickColo... |
local A=game:GetService("\083\116\097\114\116\101\114\071\117\105")A:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false) | --Much efficient way to hide the backpack without causing lag
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
|
local A=PointsService:GetPoints()PointsChanged(A)PointsService.PointsChanged:Connect(PointsChanged) | -- Get points and listen for changes:
local initialPoints = PointsService:GetPoints()
PointsChanged(initialPoints)
PointsService.PointsChanged:Connect(PointsChanged)
|
if backfire==true then mouse.KeyDown:connect(function(A)if A==camkey and enabled==false then local A=car.Body.Exhaust:GetChildren()for A,r in pairs(A)do if r.Name=="\066\097\099\107\102\105\114\101\049"or r.Name=="\066\097\099\107\102\105\114\101\050"then local A=script.soundeffect:Clone()local t=script.soundeffect:Clo... | --------------------------------------------------------------------
if backfire == true then
mouse.KeyDown:connect(function(key)
if key == camkey and enabled == false then
local children = car.Body.Exhaust:GetChildren()
for index, child in pairs(children) do
if child.Name == "Backfire1" or child.Name == ... |
Auto=false MuzzleOffset=Vector3.new(0,.625,1.25)BaseDamage=20 FireRate=.15 ReloadTime=2 AmmoPerClip=17 Spread=1.25 HeadshotEnabled=true HeadshotDamageMultiplier=4 MouseIconID="\051\049\054\050\055\057\051\048\052"HitSoundIDs={186809061;186809249,186809250,186809252}IdleAnimationID=94331086 IdleAnimationSpeed=1 FireAnim... | -- ====================
-- BASIC
-- A basic settings for the gun
-- ====================
Auto = false
MuzzleOffset = Vector3.new(0, 0.625, 1.25)
BaseDamage = 20
FireRate = 0.15 --In second
ReloadTime = 2 --In second
AmmoPerClip = 17 --Put "math.huge" to make this gun has infinite ammo and never reload
Spread = 1.25 --... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 16