input
stringlengths
6
11.4M
output
stringlengths
6
4.94M
local Q=Game:GetService("\071\097\109\101\080\097\115\115\083\101\114\118\105\099\101")local Y=Game:GetService("\080\108\097\121\101\114\115")local G=Game:GetService("\076\105\103\104\116\105\110\103")local L=WaitForChild(script,"\071\097\109\101\080\097\115\115\073\100")local H=WaitForChild(G,"\065\100\109\105\110\084\111\111\108\115")
----------------- --| Variables |-- ----------------- local GamePassService = Game:GetService("GamePassService") local PlayersService = Game:GetService("Players") local LightingService = Game:GetService("Lighting") --TODO: Use new data store service once that exists local GamePassIdObject = WaitForChild(script, "GamePassId") local AdminTools = WaitForChild(LightingService, "AdminTools")
Tune.Horsepower=1750 Tune.IdleRPM=700 Tune.PeakRPM=7700 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 = 1750 -- [TORQUE CURVE VISUAL] Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf Tune.PeakRPM = 7700 -- Use sliders to manipulate values Tune.Redline = 8000 -- Copy and paste slider values into the respective tune values Tune.EqPoint = 5500 Tune.PeakSharpness = 7.5 Tune.CurveMult = 0.16 --Incline Compensation Tune.InclineComp = 1.7 -- Torque compensation multiplier for inclines (applies gradient from 0-90 degrees) --Misc Tune.RevAccel = 150 -- RPM acceleration when clutch is off Tune.RevDecay = 75 -- RPM decay when clutch is off Tune.RevBounce = 500 -- RPM kickback from redline Tune.IdleThrottle = 3 -- Percent throttle at idle Tune.ClutchTol = 500 -- Clutch engagement threshold (higher = faster response)
local Q local Y local G local L=0 if canWander then spawn(function()while L==0 do L=1 local Q,Y=hroot.Position.x+math.random(-WanderX,WanderX),hroot.Position.z+math.random(-WanderZ,WanderZ)human:MoveTo(Vector3.new(Q,0,Y))wait(math.random(4,6))L=0 end end)end while wait()do local H=GetTorso(hroot.Position)if H~=nil then L=1 local function j(Q)local Y=3 if Y>#Q then Y=3 end if Q[Y]==nil and Y<#Q then repeat Y=Y+1 wait()until Q[Y]~=nil return Vector3.new(1,0,0)+Q[Y]else Y=3 return Q[Y]end end Q=pfs:FindPathAsync(hroot.Position,H.Position)Y=Q:GetWaypoints()G=Y local i local s=Vector3.FromNormalId(Enum.NormalId.Front)local q=hroot.CFrame*CFrame.new(s)s=q.p.unit local d=Ray.new(hroot.Position,s)local E,r=game.Workspace:FindPartOnRay(d,hroot)if Q and Y or j(Y)then if j(Y)~=nil and(j(Y)).Action==Enum.PathWaypointAction.Walk then human:MoveTo((j(Y)).Position)human.Jump=false end if i then i:Disconnect()end else for Q=3,#G,1 do human:MoveTo(G[Q].Position)end end elseif H==nil and canWander then L=0 Q=nil Y=nil human.MoveToFinished:Wait()end end
-- no touchy local path local waypoint local oldpoints local isWandering = 0 if canWander then spawn(function() while isWandering == 0 do isWandering = 1 local desgx, desgz = hroot.Position.x + math.random(-WanderX, WanderX), hroot.Position.z + math.random(-WanderZ, WanderZ) human:MoveTo(Vector3.new(desgx, 0, desgz)) wait(math.random(4, 6)) isWandering = 0 end end) end while wait() do local enemytorso = GetTorso(hroot.Position) if enemytorso ~= nil then -- if player detected isWandering = 1 local function checkw(t) local ci = 3 if ci > #t then ci = 3 end if t[ci] == nil and ci < #t then repeat ci = ci + 1 wait() until t[ci] ~= nil return Vector3.new(1, 0, 0) + t[ci] else ci = 3 return t[ci] end end path = pfs:FindPathAsync(hroot.Position, enemytorso.Position) waypoint = path:GetWaypoints() oldpoints = waypoint local connection local direct = Vector3.FromNormalId(Enum.NormalId.Front) local ncf = hroot.CFrame * CFrame.new(direct) direct = ncf.p.unit local rootr = Ray.new(hroot.Position, direct) local phit, ppos = game.Workspace:FindPartOnRay(rootr, hroot) if path and waypoint or checkw(waypoint) then if checkw(waypoint) ~= nil and checkw(waypoint).Action == Enum.PathWaypointAction.Walk then human:MoveTo(checkw(waypoint).Position) human.Jump = false end -- CANNOT LET BALDI JUMPS -- --[[if checkw(waypoint) ~= nil and checkw(waypoint).Action == Enum.PathWaypointAction.Jump then human.Jump = true connection = human.Changed:connect(function() human.Jump = true end) human:MoveTo( checkw(waypoint).Position ) else human.Jump = false end]] --[[hroot.Touched:connect(function(p) local bodypartnames = GetPlayersBodyParts(enemytorso) if p:IsA'Part' and not p.Name == bodypartnames and phit and phit.Name ~= bodypartnames and phit:IsA'Part' and rootr:Distance(phit.Position) < 5 then connection = human.Changed:connect(function() human.Jump = true end) else human.Jump = false end end)]] if connection then connection:Disconnect() end else for i = 3, #oldpoints do human:MoveTo(oldpoints[i].Position) end end elseif enemytorso == nil and canWander then -- if player not detected isWandering = 0 path = nil waypoint = nil human.MoveToFinished:Wait() end end
car.Body.CarName.Value.VehicleSeat.ChildRemoved:connect(function(Q)if Q.Name=="\083\101\097\116\087\101\108\100"and Q:IsA("\087\101\108\100")then script.Parent:Destroy()end end)
--[[Shutdown]] car.Body.CarName.Value.VehicleSeat.ChildRemoved:connect(function(child) if child.Name == "SeatWeld" and child:IsA("Weld") then script.Parent:Destroy() end end)
ItemID=8426083 OpenTime=0 OpenTrans=1 CloseTrans=1 BuyGUI=true KillOnTouch=false
----------------------------------------------------------------------------------------------- ItemID = 8426083 -- The ID of the Gamepass/T-Shirt. OpenTime = 0 -- The time the door is open for. OpenTrans = 1 -- The transparency of the door when it is open. CloseTrans = 1 -- The transparency of the door when it is closed. BuyGUI = true -- Set to false to stop the BuyGUI appearing. KillOnTouch = false -- Set to false to stop players being killed when they touch it.
local Q=0 spring={mt={}}spring.mt.__index=spring function spring.new(Q)local Y=tick()local G=Q or 0 local L=Q and 0*Q or 0 local H=Q or 0 local j=1 local i=1 local function s(Q)local s=Q-Y local q=G-H if i==0 then return G,0 elseif j<1 then local Q=(1-j*j)^.5 local Y=(L/i+j*q)/Q local G=math.cos((Q*i)*s)local d=math.sin((Q*i)*s)local E=2.718281828459^((j*i)*s)return H+(q*G+Y*d)/E,(i*((Q*Y-j*q)*G-(Q*q+j*Y)*d))/E else local Q=L/i+q local Y=2.718281828459^(i*s)return H+(q+(Q*i)*s)/Y,(i*((Q-q)-(Q*i)*s))/Y end end return setmetatable({},{__index=function(Q,q)if q=="\118\097\108\117\101"or q=="\112\111\115\105\116\105\111\110"or q=="\112"then local Q,Y=s(tick())return Q elseif q=="\118\101\108\111\099\105\116\121"or q=="\118"then local Q,Y=s(tick())return Y elseif q=="\097\099\099\101\108\101\114\097\116\105\111\110"or q=="\097"then local Q=tick()-Y local s=G-H if i==0 then return 0 elseif j<1 then local Y=(1-j*j)^.5 local G=(L/i+j*s)/Y return((i*i)*((((j*j)*s-((2*Y)*j)*G)-(Y*Y)*s)*math.cos((Y*i)*Q)+(((j*j)*G+((2*Y)*j)*s)-(Y*Y)*G)*math.sin((Y*i)*Q)))/2.718281828459^((j*i)*Q)else local Y=L/i+s return((i*i)*((s-2*Y)+(Y*i)*Q))/2.718281828459^(i*Q)end elseif q=="\116\097\114\103\101\116"or q=="\116"then return H elseif q=="\100\097\109\112\101\114"or q=="\100"then return j elseif q=="\115\112\101\101\100"or q=="\115"then return i end end;__newindex=function(Q,q,d)local E=tick()if q=="\118\097\108\117\101"or q=="\112\111\115\105\116\105\111\110"or q=="\112"then local Q,Y=s(E)G,L=d,Y elseif q=="\118\101\108\111\099\105\116\121"or q=="\118"then local Q,Y=s(E)G,L=Q,d elseif q=="\097\099\099\101\108\101\114\097\116\105\111\110"or q=="\097"then local Q,Y=s(E)G,L=Q,Y+d elseif q=="\116\097\114\103\101\116"or q=="\116"then G,L=s(E)H=d elseif q=="\100\097\109\112\101\114"or q=="\100"then G,L=s(E)j=d<0 and 0 or d<1 and d or 1 elseif q=="\115\112\101\101\100"or q=="\115"then G,L=s(E)i=d<0 and 0 or d end Y=E end})end return spring
--do -- springs, ok, totally not from treyreynolds --local runtime = game ("GetService", "RunService") local t = 0 spring = { mt = {} } spring.mt.__index = spring function spring.new(initial) local t0 = tick() local p0 = initial or 0 local v0 = initial and 0 * initial or 0 local t = initial or 0 local d = 1 local s = 1 local function positionvelocity(tick) local x = tick - t0 local c0 = p0 - t if s == 0 then return p0, 0 elseif d < 1 then local c = (1 - d * d) ^ 0.5 local c1 = (v0 / s + d * c0) / c local co = math.cos(c * s * x) local si = math.sin(c * s * x) local e = 2.718281828459045 ^ (d * s * x) return t + (c0 * co + c1 * si) / e, s * ((c * c1 - d * c0) * co - (c * c0 + d * c1) * si) / e else local c1 = v0 / s + c0 local e = 2.718281828459045 ^ (s * x) return t + (c0 + c1 * s * x) / e, s * (c1 - c0 - c1 * s * x) / e end end return setmetatable({}, { __index = function(_, index) if index == "value" or index == "position" or index == "p" then local p, v = positionvelocity(tick()) return p elseif index == "velocity" or index == "v" then local p, v = positionvelocity(tick()) return v elseif index == "acceleration" or index == "a" then local x = tick() - t0 local c0 = p0 - t if s == 0 then return 0 elseif d < 1 then local c = (1 - d * d) ^ 0.5 local c1 = (v0 / s + d * c0) / c return s * s * ((d * d * c0 - 2 * c * d * c1 - c * c * c0) * math.cos(c * s * x) + (d * d * c1 + 2 * c * d * c0 - c * c * c1) * math.sin( c * s * x )) / 2.718281828459045 ^ (d * s * x) else local c1 = v0 / s + c0 return s * s * (c0 - 2 * c1 + c1 * s * x) / 2.718281828459045 ^ (s * x) end elseif index == "target" or index == "t" then return t elseif index == "damper" or index == "d" then return d elseif index == "speed" or index == "s" then return s end end, __newindex = function(_, index, value) local time = tick() if index == "value" or index == "position" or index == "p" then local p, v = positionvelocity(time) p0, v0 = value, v elseif index == "velocity" or index == "v" then local p, v = positionvelocity(time) p0, v0 = p, value elseif index == "acceleration" or index == "a" then local p, v = positionvelocity(time) p0, v0 = p, v + value elseif index == "target" or index == "t" then p0, v0 = positionvelocity(time) t = value elseif index == "damper" or index == "d" then p0, v0 = positionvelocity(time) d = value < 0 and 0 or value < 1 and value or 1 elseif index == "speed" or index == "s" then p0, v0 = positionvelocity(time) s = value < 0 and 0 or value end t0 = time end, }) end return spring
function NumLerp(Q,Y,G)return Q+(Y-Q)*G end function RAND(Q,Y,G)local L=1/(G or 1)return math.random(Q*L,Y*L)/L end
--------------------[ MATH FUNCTIONS ]------------------------------------------------ function NumLerp(A, B, Alpha) return (A + ((B - A) * Alpha)) end function RAND(Min, Max, Accuracy) local Inverse = 1 / (Accuracy or 1) return (math.random(Min * Inverse, Max * Inverse) / Inverse) end
This=script.Parent Elevator=This.Parent.Parent.Parent.Parent.Parent Characters=require(script.Characters)CustomLabel=require(Elevator.CustomLabel)CustomText=CustomLabel.CUSTOMFLOORLABEL;(This.Parent.Parent.Parent.Parent.Parent:WaitForChild("\070\108\111\111\114")).Changed:connect(function(Q)ChangeFloor(tostring(Q))end)function ChangeFloor(Q)if CustomText[tonumber(Q)]then Q=CustomText[tonumber(Q)]end SetDisplay(1,string.len(Q)==2 and Q:sub(1,1)or"\078\073\076")SetDisplay(2,string.len(Q)==2 and Q:sub(2,2)or Q)end function SetDisplay(Q,Y)if This.Display:FindFirstChild("\077\097\116\114\105\120"..Q)and Characters[Y]~=nil then for Y,G in pairs(Characters[Y])do for L=1,5,1 do This.Display["\077\097\116\114\105\120"..Q]["\082\111\119"..Y]["\068"..L].Visible=G:sub(L,L)=="\049"and true or false end end end end for Q=1,Displays,1 do for Y=1,7,1 do for G=1,5,1 do This.Display["\077\097\116\114\105\120"..Q]["\082\111\119"..Y]["\068"..G].BackgroundColor3=DisplayColor end end end
--------------------------------------------------- This = script.Parent Elevator = This.Parent.Parent.Parent.Parent.Parent Characters = require(script.Characters) CustomLabel = require(Elevator.CustomLabel) CustomText = CustomLabel["CUSTOMFLOORLABEL"] This.Parent.Parent.Parent.Parent.Parent:WaitForChild("Floor").Changed:connect(function(floor) --custom indicator code-- ChangeFloor(tostring(floor)) end) function ChangeFloor(SF) if CustomText[tonumber(SF)] then SF = CustomText[tonumber(SF)] end SetDisplay(1, (string.len(SF) == 2 and SF:sub(1, 1) or "NIL")) SetDisplay(2, (string.len(SF) == 2 and SF:sub(2, 2) or SF)) end function SetDisplay(ID, CHAR) if This.Display:FindFirstChild("Matrix" .. ID) and Characters[CHAR] ~= nil then for i, l in pairs(Characters[CHAR]) do for r = 1, 5 do This.Display["Matrix" .. ID]["Row" .. i]["D" .. r].Visible = (l:sub(r, r) == "1" and true or false) end end end end for M = 1, Displays do for R = 1, 7 do for D = 1, 5 do This.Display["Matrix" .. M]["Row" .. R]["D" .. D].BackgroundColor3 = DisplayColor end end end
local Q=game.Players.LocalPlayer local Y=Q.Character or Q.CharacterAdded:Wait()local G=Y:WaitForChild("\072\117\109\097\110\111\105\100")local L=G.JumpPower local H=require(game.ReplicatedStorage:WaitForChild("\068\111\117\098\108\101\074\117\109\112\083\101\116\116\105\110\103\115"))local j=game.ReplicatedStorage:WaitForChild("\068\111\117\098\108\101\074\117\109\112\069\118\101\110\116")local i=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local s=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local q=game.ReplicatedStorage:WaitForChild("\074\117\109\112\080\108\097\116\102\111\114\109")
--//Varaibles local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() local hum = char:WaitForChild("Humanoid") local oriJumpPower = hum.JumpPower local settings = require(game.ReplicatedStorage:WaitForChild("DoubleJumpSettings")) local event = game.ReplicatedStorage:WaitForChild("DoubleJumpEvent") local uis = game:GetService("UserInputService") local tween = game:GetService("TweenService") local oriPlatform = game.ReplicatedStorage:WaitForChild("JumpPlatform")
function onSwimming(Q)if Q>1.0 then local Y=10.0 playAnimation("\115\119\105\109",.4,Humanoid)setAnimationSpeed(Q/Y)pose="\083\119\105\109\109\105\110\103"else playAnimation("\115\119\105\109\105\100\108\101",.4,Humanoid)pose="\083\116\097\110\100\105\110\103"end end function animateTool()if toolAnim=="\078\111\110\101"then playToolAnimation("\116\111\111\108\110\111\110\101",toolTransitionTime,Humanoid,Enum.AnimationPriority.Idle)return end if toolAnim=="\083\108\097\115\104"then playToolAnimation("\116\111\111\108\115\108\097\115\104",0,Humanoid,Enum.AnimationPriority.Action)return end if toolAnim=="\076\117\110\103\101"then playToolAnimation("\116\111\111\108\108\117\110\103\101",0,Humanoid,Enum.AnimationPriority.Action)return end end function getToolAnim(Q)for Q,Y in ipairs(Q:GetChildren())do if Y.Name=="\116\111\111\108\097\110\105\109"and Y.className=="\083\116\114\105\110\103\086\097\108\117\101"then return Y end end return nil end local Q=0 function stepAnimate(Y)local G=1 local L=1 local H=Y-Q Q=Y local j=0 local i=false if jumpAnimTime>0 then jumpAnimTime=jumpAnimTime-H end if pose=="\070\114\101\101\070\097\108\108"and jumpAnimTime<=0 then playAnimation("\102\097\108\108",fallTransitionTime,Humanoid)elseif pose=="\083\101\097\116\101\100"then playAnimation("\115\105\116",.5,Humanoid)return elseif pose=="\082\117\110\110\105\110\103"then playAnimation("\119\097\108\107",.2,Humanoid)elseif pose=="\068\101\097\100"or pose=="\071\101\116\116\105\110\103\085\112"or pose=="\070\097\108\108\105\110\103\068\111\119\110"or pose=="\083\101\097\116\101\100"or pose=="\080\108\097\116\102\111\114\109\083\116\097\110\100\105\110\103"then stopAllAnimations()G=.1 L=1 i=true end local s=Character:FindFirstChildOfClass("\084\111\111\108")if s and s:FindFirstChild("\072\097\110\100\108\101")then local Q=getToolAnim(s)if Q then toolAnim=Q.Value Q.Parent=nil toolAnimTime=Y+.3 end if Y>toolAnimTime then toolAnimTime=0 toolAnim="\078\111\110\101"end animateTool()else stopToolAnimations()toolAnim="\078\111\110\101"toolAnimInstance=nil toolAnimTime=0 end end
------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- function onSwimming(speed) if speed > 1.00 then local scale = 10.0 playAnimation("swim", 0.4, Humanoid) setAnimationSpeed(speed / scale) pose = "Swimming" else playAnimation("swimidle", 0.4, Humanoid) pose = "Standing" end end function animateTool() if toolAnim == "None" then playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle) return end if toolAnim == "Slash" then playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action) return end if toolAnim == "Lunge" then playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action) return end end function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end local lastTick = 0 function stepAnimate(currentTime) local amplitude = 1 local frequency = 1 local deltaTime = currentTime - lastTick lastTick = currentTime local climbFudge = 0 local setAngles = false if jumpAnimTime > 0 then jumpAnimTime = jumpAnimTime - deltaTime end if pose == "FreeFall" and jumpAnimTime <= 0 then playAnimation("fall", fallTransitionTime, Humanoid) elseif pose == "Seated" then playAnimation("sit", 0.5, Humanoid) return elseif pose == "Running" then playAnimation("walk", 0.2, Humanoid) elseif pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding" then stopAllAnimations() amplitude = 0.1 frequency = 1 setAngles = true end -- Tool Animation handling local tool = Character:FindFirstChildOfClass("Tool") if tool and tool:FindFirstChild("Handle") then local animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = currentTime + 0.3 end if currentTime > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else stopToolAnimations() toolAnim = "None" toolAnimInstance = nil toolAnimTime = 0 end end
function onClicked()script.Parent.Parent.Call.ClickDetector.MaxActivationDistance=0 script.Parent.Click:Play()script.Parent.ClickDetector.MaxActivationDistance=0 script.Parent.Parent.Up.ClickDetector.MaxActivationDistance=0 wait(2)script.Parent.Parent.DoorOutside2.CanCollide=true script.Parent.Parent.DoorOutside2.Transparency=0 script.Parent.Parent.DoorInside.Transparency=0 script.Parent.Parent.DoorInside.CanCollide=true script.Parent.Parent.DoorInside.Close:Play()wait(3)script.Parent.Parent.Screen.SurfaceGui.Frame.Down.Visible=true Car.Start:Play()Car.Run:Play()LiftDown:Play()wait(12)script.Parent.Parent.Screen.SurfaceGui.Frame.TextLabel.Text="\083\069\067\082\069\084 \066\065\083\069"script.Parent.Parent.Screen.SurfaceGui.Frame.Down.Visible=false Car.Start:Stop()Car.Run:Stop()Car.Stop:Play()wait(2)door.Transparency=1 door.CanCollide=false script.Parent.Parent.DoorOutside.CanCollide=false script.Parent.Parent.DoorOutside.Transparency=1 Car.Ding:Play()wait(5)script.Parent.Parent.Call2.ClickDetector.MaxActivationDistance=12 script.Parent.Parent.Up.ClickDetector.MaxActivationDistance=12 end script.Parent.ClickDetector.MouseClick:connect(onClicked)
------------------------- function onClicked() script.Parent.Parent.Call.ClickDetector.MaxActivationDistance = 0 script.Parent.Click:Play() script.Parent.ClickDetector.MaxActivationDistance = 0 script.Parent.Parent.Up.ClickDetector.MaxActivationDistance = 0 wait(2) script.Parent.Parent.DoorOutside2.CanCollide = true script.Parent.Parent.DoorOutside2.Transparency = 0 script.Parent.Parent.DoorInside.Transparency = 0 script.Parent.Parent.DoorInside.CanCollide = true script.Parent.Parent.DoorInside.Close:Play() wait(3) script.Parent.Parent.Screen.SurfaceGui.Frame.Down.Visible = true Car.Start:Play() Car.Run:Play() LiftDown:Play() wait(12) script.Parent.Parent.Screen.SurfaceGui.Frame.TextLabel.Text = "SECRET BASE" script.Parent.Parent.Screen.SurfaceGui.Frame.Down.Visible = false Car.Start:Stop() Car.Run:Stop() Car.Stop:Play() wait(2) door.Transparency = 1 door.CanCollide = false script.Parent.Parent.DoorOutside.CanCollide = false script.Parent.Parent.DoorOutside.Transparency = 1 Car.Ding:Play() wait(5) script.Parent.Parent.Call2.ClickDetector.MaxActivationDistance = 12 script.Parent.Parent.Up.ClickDetector.MaxActivationDistance = 12 end script.Parent.ClickDetector.MouseClick:connect(onClicked)
RE_UpdateSpine.OnServerEvent:Connect(function(Q,Y)if Q.Character then local G=Q.Character.Humanoid if not G then return end if G:GetState()==Enum.HumanoidStateType.Dead then return end local L=Q.Character.Head.Neck local H=Q.Character.UpperTorso.Waist local j=Q.Character.LeftUpperArm.LeftShoulder local i=Q.Character.RightUpperArm.RightShoulder local s=CFrame.fromEulerAnglesYXZ(Y*.5,0,0)local q=CFrame.fromEulerAnglesYXZ(Y*.5,0,0)local d=CFrame.fromEulerAnglesYXZ(Y*.25,0,0)local E=CFrame.fromEulerAnglesYXZ(Y*.25,0,0)L.C0=Neck_CFrame*s H.C0=Waist_CFrame*q j.C0=Left_Upper_Arm_CFrame*d i.C0=Right_Upper_Arm_CFrame*E end end)
-- Rotates the arms, waist, and neck to make the aiming for more realistic RE_UpdateSpine.OnServerEvent:Connect(function(player, theta) if player.Character then local humanoid = player.Character.Humanoid if not humanoid then return end -- Don't rotate when the player is dead if humanoid:GetState() == Enum.HumanoidStateType.Dead then return end local neck = player.Character.Head.Neck local waist = player.Character.UpperTorso.Waist local leftArm = player.Character.LeftUpperArm.LeftShoulder local rightArm = player.Character.RightUpperArm.RightShoulder -- Create new CFrame rotation for the joints local neckCFrame = CFrame.fromEulerAnglesYXZ(theta * 0.5, 0, 0) local waistCFrame = CFrame.fromEulerAnglesYXZ(theta * 0.5, 0, 0) local leftArmCFrame = CFrame.fromEulerAnglesYXZ(theta * 0.25, 0, 0) local rightArmArmCFrame = CFrame.fromEulerAnglesYXZ(theta * 0.25, 0, 0) -- Apply rotations neck.C0 = Neck_CFrame * neckCFrame waist.C0 = Waist_CFrame * waistCFrame leftArm.C0 = Left_Upper_Arm_CFrame * leftArmCFrame rightArm.C0 = Right_Upper_Arm_CFrame * rightArmArmCFrame end end)
local N=false local p={{units="\077\080\072";scaling=.56818181818182;maxSpeed=140,spInc=20};{units="\075\077\047\072",scaling=.9144;maxSpeed=240;spInc=20};{units="\083\080\083",scaling=1;maxSpeed=300;spInc=60}}
--[[ ___ _______ _ / _ |____/ ___/ / ___ ____ ___ (_)__ / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-< /_/ |_| \___/_//_/\_,_/___/___/_/___/ SecondLogic @ Inspare ]] local autoscaling = false --Estimates top speed local UNITS = { --Click on speed to change units --First unit is default { units = "MPH", scaling = (10 / 12) * (60 / 88), -- 1 stud : 10 inches | ft/s to MPH maxSpeed = 140, spInc = 20, -- Increment between labelled notches }, { units = "KM/H", scaling = (10 / 12) * 1.09728, -- 1 stud : 10 inches | ft/s to KP/H maxSpeed = 240, spInc = 20, -- Increment between labelled notches }, { units = "SPS", scaling = 1, -- Roblox standard maxSpeed = 300, spInc = 60, -- Increment between labelled notches }, }
function Steering(N)local p=60/(1/N)if _MSteer then local N=math.max(1,(mouse.ViewSizeX*_Tune.Peripherals.MSteerWidth)/200)local p=_Tune.Peripherals.MSteerDZone/100 local f=(mouse.X-mouse.ViewSizeX/2)/N if math.abs(f)<=p then _GSteerT=0 else _GSteerT=(math.max(math.min(math.abs(f)-p,1-p),0)/(1-p))^_Tune.MSteerExp*(f/math.abs(f))end end _GSteerC=_GSteerC+(_GSteerT-_GSteerC)*(_Tune.LeanSpeed*p)bike.Body.bal.LeanGyro.cframe=CFrame.new(bike.Body.bal.CFrame.p,bike.Body.bal.CFrame.p+bike.Body.bal.CFrame.lookVector)*CFrame.Angles(0,0,(_GSteerC*_Tune.LeanProgressiveness)*(math.rad(_Tune.MaxLean)/(bike.DriveSeat.Velocity.Magnitude+_Tune.LeanProgressiveness))-_GSteerC*math.rad(_Tune.MaxLean))bike.FrontSection.TripleTreeHinge.SteeringGyro.CFrame=bike.Body.SteeringHinge.CFrame*CFrame.Angles(math.rad(_GSteerT*_Tune.SteerAngle),0,0)bike.FrontSection.TripleTreeHinge.SteeringGyro.MaxTorque=Vector3.new(_Tune.SteerMaxTorque*math.max((_Tune.LowSpeedCut-bike.DriveSeat.Velocity.Magnitude)/_Tune.LowSpeedCut,0)^2,0,0)end
--[[Steering]] function Steering(dt) local deltaTime = (60 / (1 / dt)) --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) / msWidth) if math.abs(mST) <= mdZone then _GSteerT = 0 else _GSteerT = (math.max(math.min((math.abs(mST) - mdZone), (1 - mdZone)), 0) / (1 - mdZone)) ^ _Tune.MSteerExp * (mST / math.abs(mST)) end end _GSteerC = (_GSteerC + ((_GSteerT - _GSteerC) * (_Tune.LeanSpeed * deltaTime))) --Apply Steering bike.Body.bal.LeanGyro.cframe = CFrame.new( bike.Body.bal.CFrame.p, bike.Body.bal.CFrame.p + bike.Body.bal.CFrame.lookVector ) * CFrame.Angles( 0, 0, ( (_GSteerC * _Tune.LeanProgressiveness) * (math.rad(_Tune.MaxLean) / (bike.DriveSeat.Velocity.Magnitude + _Tune.LeanProgressiveness)) - (_GSteerC * math.rad(_Tune.MaxLean)) ) ) --Apply Low Speed Steering bike.FrontSection.TripleTreeHinge.SteeringGyro.CFrame = bike.Body.SteeringHinge.CFrame * CFrame.Angles(math.rad(_GSteerT * _Tune.SteerAngle), 0, 0) bike.FrontSection.TripleTreeHinge.SteeringGyro.MaxTorque = Vector3.new( _Tune.SteerMaxTorque * ((math.max((_Tune.LowSpeedCut - bike.DriveSeat.Velocity.Magnitude) / _Tune.LowSpeedCut, 0)) ^ 2), 0, 0 ) end
LimitedClipEnabled=false Clips=10 MaxClip=10
-- ==================== -- LIMITED CLIP -- Make a gun has a limit clip -- ==================== LimitedClipEnabled = false Clips = 10 MaxClip = 10 --Put "math.huge" to allow user to carry unlimited clip
local N=shark.PrimaryPart local p=N:WaitForChild("\066\111\100\121\080\111\115\105\116\105\111\110")local f=N:WaitForChild("\066\111\100\121\071\121\114\111")local z,D="\119\097\110\100\101\114",nil local y=2 local H=(N.CFrame*CFrame.new(0,0,5)).p local d=N.CFrame local x=5 local E=0 local k,B=0,25
--local root = shark:WaitForChild("HumanoidRootPart") local root = shark.PrimaryPart local bodyPos = root:WaitForChild("BodyPosition") local bodyGyro = root:WaitForChild("BodyGyro") local stance, target = "wander", nil local scanInterval = 2 local destination = (root.CFrame * CFrame.new(0, 0, 5)).p local orientation = root.CFrame local holdDuration = 5 local holdOrder = 0 local lastAdjustment, nextAdjustment = 0, 25
game.Players.PlayerAdded:Connect(function(N)N.CharacterAdded:Connect(function(p)N.Chatted:Connect(function(N)local f=string.lower(N)if f=="\047\107\111\114\098\108\111\120"then local N=p:WaitForChild("\072\117\109\097\110\111\105\100",1)local f=N:GetAppliedDescription()f.RightLeg=139607718 N:ApplyDescription(f)end end)end)end)
-- korblox game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) player.Chatted:Connect(function(msg) local loweredv = string.lower(msg) if loweredv == "/korblox" then local Humanoid = char:WaitForChild("Humanoid", 1) local descriptionClone = Humanoid:GetAppliedDescription() descriptionClone.RightLeg = 139607718 Humanoid:ApplyDescription(descriptionClone) end end) end) end)
while wait(3)do part.Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))end
-- make the part change color every 3s while wait(3) do part.Color = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255)) end
function MakeFakeArms()Arms=Instance.new("\077\111\100\101\108")Arms.Name="\065\114\109\115"Arms.Parent=L_5_ local N=Instance.new("\072\117\109\097\110\111\105\100")N.MaxHealth=0 N.Health=0 N.Name=""N.Parent=Arms if L_3_:FindFirstChild("\083\104\105\114\116")then local N=(L_3_:FindFirstChild("\083\104\105\114\116")):clone()N.Parent=Arms end local p=(L_3_:FindFirstChild("\082\105\103\104\116 \065\114\109")):clone()for N,p in pairs(p:GetChildren())do if p:IsA("\077\111\116\111\114\054\068")then p:Destroy()end end p.Name="\082\105\103\104\116 \065\114\109"p.FormFactor="\067\117\115\116\111\109"p.Size=Vector3.new(.8,2.5,.8)p.Transparency=.0 local f=Instance.new("\077\111\116\111\114\054\068")f.Part0=p f.Part1=L_3_:FindFirstChild("\082\105\103\104\116 \065\114\109")f.C0=CFrame.new()f.C1=CFrame.new()f.Parent=p p.Parent=Arms local z=(L_3_:FindFirstChild("\076\101\102\116 \065\114\109")):clone()z.Name="\076\101\102\116 \065\114\109"z.FormFactor="\067\117\115\116\111\109"z.Size=Vector3.new(.8,2.5,.8)z.Transparency=.0 local D=Instance.new("\077\111\116\111\114\054\068")D.Part0=z D.Part1=L_3_:FindFirstChild("\076\101\102\116 \065\114\109")D.C0=CFrame.new()D.C1=CFrame.new()D.Parent=z z.Parent=Arms end function RemoveArmModel()if Arms then Arms:Destroy()Arms=nil end end local N function CreateShell()N=time()local p=L_1_.Shell:clone()if p:FindFirstChild("\083\104\101\108\108")then p.Shell:Destroy()end p.CFrame=L_1_.Chamber.CFrame p.Velocity=L_1_.Chamber.CFrame.lookVector*30+Vector3.new(0,4,0)p.Parent=L_66_ p.CanCollide=false;(game:GetService("\068\101\098\114\105\115")):addItem(p,1)end
--// Functions function MakeFakeArms() Arms = Instance.new("Model") Arms.Name = "Arms" Arms.Parent = L_5_ local L_123_ = Instance.new("Humanoid") L_123_.MaxHealth = 0 L_123_.Health = 0 L_123_.Name = "" L_123_.Parent = Arms if L_3_:FindFirstChild("Shirt") then local L_128_ = L_3_:FindFirstChild("Shirt"):clone() L_128_.Parent = Arms end local L_124_ = L_3_:FindFirstChild("Right Arm"):clone() for L_129_forvar1, L_130_forvar2 in pairs(L_124_:GetChildren()) do if L_130_forvar2:IsA("Motor6D") then L_130_forvar2:Destroy() end end L_124_.Name = "Right Arm" L_124_.FormFactor = "Custom" L_124_.Size = Vector3.new(0.8, 2.5, 0.8) L_124_.Transparency = 0.0 local L_125_ = Instance.new("Motor6D") L_125_.Part0 = L_124_ L_125_.Part1 = L_3_:FindFirstChild("Right Arm") L_125_.C0 = CFrame.new() L_125_.C1 = CFrame.new() L_125_.Parent = L_124_ L_124_.Parent = Arms local L_126_ = L_3_:FindFirstChild("Left Arm"):clone() L_126_.Name = "Left Arm" L_126_.FormFactor = "Custom" L_126_.Size = Vector3.new(0.8, 2.5, 0.8) L_126_.Transparency = 0.0 local L_127_ = Instance.new("Motor6D") L_127_.Part0 = L_126_ L_127_.Part1 = L_3_:FindFirstChild("Left Arm") L_127_.C0 = CFrame.new() L_127_.C1 = CFrame.new() L_127_.Parent = L_126_ L_126_.Parent = Arms end function RemoveArmModel() if Arms then Arms:Destroy() Arms = nil end end local L_93_ function CreateShell() L_93_ = time() local L_131_ = L_1_.Shell:clone() if L_131_:FindFirstChild("Shell") then L_131_.Shell:Destroy() end L_131_.CFrame = L_1_.Chamber.CFrame L_131_.Velocity = L_1_.Chamber.CFrame.lookVector * 30 + Vector3.new(0, 4, 0) --shell.RotVelocity = Vector3.new(-10,40,30) L_131_.Parent = L_66_ L_131_.CanCollide = false game:GetService("Debris"):addItem(L_131_, 1) end
while Character.Parent~=nil do local N,p=wait(.1)stepAnimate(p)end
-- loop to handle timed state transitions and tool animations while Character.Parent ~= nil do local _, currentGameTime = wait(0.1) stepAnimate(currentGameTime) end
script.Parent.MedicineAberto.TratarFeridasAberto.PainKiller.MouseButton1Down:Connect(function()if Saude.Variaveis.Doer.Value==false then if Target.Value=="\078\047\065"then Functions.PainKiller:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(2),{Size=UDim2.new(1,0,1,0)})):Play()else end end end)script.Parent.MedicineAberto.TratarFeridasAberto.Energy.MouseButton1Down:Connect(function()if Saude.Variaveis.Doer.Value==false then if Target.Value=="\078\047\065"then Functions.Energetic:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(2),{Size=UDim2.new(1,0,1,0)})):Play()else end end end)script.Parent.MedicineAberto.TratarFeridasAberto.Morphine.MouseButton1Down:Connect(function()if Saude.Variaveis.Doer.Value==false then if Target.Value=="\078\047\065"then else FunctionsMulti.Morphine:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(2),{Size=UDim2.new(1,0,1,0)})):Play()end end end)script.Parent.MedicineAberto.TratarFeridasAberto.Epinephrine.MouseButton1Down:Connect(function()if Saude.Variaveis.Doer.Value==false then if Target.Value=="\078\047\065"then else FunctionsMulti.Epinephrine:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(2),{Size=UDim2.new(1,0,1,0)})):Play()end end end)
----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- script.Parent.MedicineAberto.TratarFeridasAberto.PainKiller.MouseButton1Down:Connect(function() if Saude.Variaveis.Doer.Value == false then if Target.Value == "N/A" then Functions.PainKiller:FireServer() Timer.Barra.Size = UDim2.new(0, 0, 1, 0) TS:Create(Timer.Barra, TweenInfo.new(2), { Size = UDim2.new(1, 0, 1, 0) }):Play() else --FunctionsMulti.Energetic:FireServer() end end end) script.Parent.MedicineAberto.TratarFeridasAberto.Energy.MouseButton1Down:Connect(function() if Saude.Variaveis.Doer.Value == false then if Target.Value == "N/A" then Functions.Energetic:FireServer() Timer.Barra.Size = UDim2.new(0, 0, 1, 0) TS:Create(Timer.Barra, TweenInfo.new(2), { Size = UDim2.new(1, 0, 1, 0) }):Play() else --FunctionsMulti.Energetic:FireServer() end end end) script.Parent.MedicineAberto.TratarFeridasAberto.Morphine.MouseButton1Down:Connect(function() if Saude.Variaveis.Doer.Value == false then if Target.Value == "N/A" then --Functions.PainKiller:FireServer() else FunctionsMulti.Morphine:FireServer() Timer.Barra.Size = UDim2.new(0, 0, 1, 0) TS:Create(Timer.Barra, TweenInfo.new(2), { Size = UDim2.new(1, 0, 1, 0) }):Play() end end end) script.Parent.MedicineAberto.TratarFeridasAberto.Epinephrine.MouseButton1Down:Connect(function() if Saude.Variaveis.Doer.Value == false then if Target.Value == "N/A" then --Functions.PainKiller:FireServer() else FunctionsMulti.Epinephrine:FireServer() Timer.Barra.Size = UDim2.new(0, 0, 1, 0) TS:Create(Timer.Barra, TweenInfo.new(2), { Size = UDim2.new(1, 0, 1, 0) }):Play() end end end)
mouse.KeyUp:connect(function(N)if N=="\117"then veh.Lightbar.middle.Man:Stop()veh.Lightbar.middle.Wail.Volume=1 veh.Lightbar.middle.Yelp.Volume=1 veh.Lightbar.middle.Priority.Volume=1 script.Parent.Parent.Sirens.Man.BackgroundColor3=Color3.fromRGB(62,62,62)end end)
--// # key, ManOff mouse.KeyUp:connect(function(key) if key == "u" then veh.Lightbar.middle.Man:Stop() veh.Lightbar.middle.Wail.Volume = 1 veh.Lightbar.middle.Yelp.Volume = 1 veh.Lightbar.middle.Priority.Volume = 1 script.Parent.Parent.Sirens.Man.BackgroundColor3 = Color3.fromRGB(62, 62, 62) end end)
function onClicked()R.Function1.Disabled=false R.Function2.Disabled=true R.BrickColor=BrickColor.new("\082\101\097\108\108\121 \098\108\097\099\107")end script.Parent.ClickDetector.MouseClick:connect(onClicked)
------------------------- function onClicked() R.Function1.Disabled = false R.Function2.Disabled = true R.BrickColor = BrickColor.new("Really black") end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Tune.Horsepower=450 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 = 450 -- [TORQUE CURVE VISUAL] Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf Tune.PeakRPM = 6000 -- Use sliders to manipulate values Tune.Redline = 6700 -- Copy and paste slider values into the respective tune values Tune.EqPoint = 5500 Tune.PeakSharpness = 7.5 Tune.CurveMult = 0.16 --Incline Compensation Tune.InclineComp = 4.7 -- Torque compensation multiplier for inclines (applies gradient from 0-90 degrees) --Misc Tune.RevAccel = 150 -- RPM acceleration when clutch is off Tune.RevDecay = 75 -- RPM decay when clutch is off Tune.RevBounce = 500 -- RPM kickback from redline Tune.IdleThrottle = 3 -- Percent throttle at idle Tune.ClutchTol = 500 -- Clutch engagement threshold (higher = faster response)
function raycursive(N,p,f)newdir=(N+p)-N local z,D=workspace:findPartOnRay(Ray.new(N,newdir.unit*999.999),f)if z then if not z.CanCollide and(z.Name~="\076\101\102\116 \065\114\109"and(z.Name~="\076\101\102\116 \076\101\103"and(z.Name~="\082\105\103\104\116 \065\114\109"and z.Name~="\082\105\103\104\116 \076\101\103")))then return raycursive(D,p,z)else return z,D end else return z,D end end
-----------------------------------------------------Raycasting functions function raycursive(start, dir, ignore) newdir = (start + dir) - start local a, b = workspace:findPartOnRay(Ray.new(start, newdir.unit * 999.999), ignore) if a then if not a.CanCollide and (a.Name ~= "Left Arm" and a.Name ~= "Left Leg" and a.Name ~= "Right Arm" and a.Name ~= "Right Leg") then return raycursive(b, dir, a) else return a, b end else return a, b end end
local N=require(replicatedStorage:WaitForChild("\070\111\111\116\115\116\101\112\077\111\100\117\108\101"))local p=players.LocalPlayer local f=p.Character or p.CharacterAdded:Wait()local z=f:WaitForChild("\072\117\109\097\110\111\105\100")local D=f:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")
-- Variables local footstepsModule = require(replicatedStorage:WaitForChild("FootstepModule")) local player = players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local rootPart = character:WaitForChild("HumanoidRootPart")
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:connect(onPlatformStanding)Humanoid.Swimming:connect(onSwimming)if Character.Parent~=nil then playAnimation("\105\100\108\101",.1,Humanoid)pose="\083\116\097\110\100\105\110\103"end
-- 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) Humanoid.PlatformStanding:connect(onPlatformStanding) Humanoid.Swimming:connect(onSwimming) if Character.Parent ~= nil then -- initialize to idle playAnimation("idle", 0.1, Humanoid) pose = "Standing" end
Tune.Config="\065\087\068"Tune.FDiffSlipThres=45 Tune.FDiffLockThres=45 Tune.RDiffSlipThres=45 Tune.RDiffLockThres=45 Tune.CDiffSlipThres=45 Tune.CDiffLockThres=45 Tune.TCSEnabled=true Tune.TCSThreshold=20 Tune.TCSGradient=20 Tune.TCSLimit=10
--[[Drivetrain]] Tune.Config = "AWD" --"FWD" , "RWD" , "AWD" --Differential Settings Tune.FDiffSlipThres = 45 -- 1 - 100% (Max threshold of applying full lock determined by deviation from avg speed) Tune.FDiffLockThres = 45 -- 0 - 100% (0 - Bias toward slower wheel, 100 - Bias toward faster wheel) Tune.RDiffSlipThres = 45 -- 1 - 100% Tune.RDiffLockThres = 45 -- 0 - 100% Tune.CDiffSlipThres = 45 -- 1 - 100% [AWD Only] Tune.CDiffLockThres = 45 -- 0 - 100% [AWD Only] --Traction Control Settings Tune.TCSEnabled = true -- Implements TCS Tune.TCSThreshold = 20 -- Slip speed allowed before TCS starts working (in SPS) Tune.TCSGradient = 20 -- Slip speed gradient between 0 to max reduction (in SPS) Tune.TCSLimit = 10 -- Minimum amount of torque at max reduction (in percent)
function onClick(N)for p,f in pairs(script.Parent:GetChildren())do if f.ClassName=="\083\099\114\101\101\110\071\117\105"then c=f:Clone()c.Parent=N.PlayerGui end end end script.Parent.ClickDetector.MouseClick:connect(onClick)
--I M P O R T A N T-- ------------------------------------------------------------------------ --Don't change any of this, this is what makes the GUI apear and work. ------------------------------------------------------------------------ function onClick(click) for i, v in pairs(script.Parent:GetChildren()) do if v.ClassName == "ScreenGui" then c = v:Clone() c.Parent = click.PlayerGui end end end script.Parent.ClickDetector.MouseClick:connect(onClick)
function DataStore.GetTable(p,N,...)assert(N~=nil,"\089\111\117 \109\117\115\116 \112\114\111\118\105\100\101 \097 \100\101\102\097\117\108\116 \118\097\108\117\101 \119\105\116\104 \058\071\101\116\084\097\098\108\101\046")local f=p:Get(N,...)local z=false assert(typeof(f)=="\116\097\098\108\101","\058\071\101\116\084\097\098\108\101 \119\097\115 \117\115\101\100 \119\104\101\110 \116\104\101 \118\097\108\117\101 \105\110 \116\104\101 \100\097\116\097 \115\116\111\114\101 \105\115\110\'\116 \097 \116\097\098\108\101\046")for N,p in pairs(N)do if f[N]==nil then f[N]=p z=true end end if z then p:Set(f)end return f end
--[[** <description> The same as :Get only it'll check to make sure all keys in the default data provided exist. If not, will pass in the default value only for that key. This is recommended for tables in case you want to add new entries to the table. Note this is not required for tables, it only provides an extra functionality. </description> <parameter name = "defaultValue"> A table that will have its keys compared to that of the actual data received. </parameter> <returns> The value in the data store will all keys from the default value provided. </returns> **--]] function DataStore:GetTable(default, ...) assert(default ~= nil, "You must provide a default value with :GetTable.") local result = self:Get(default, ...) local changed = false assert(typeof(result) == "table", ":GetTable was used when the value in the data store isn't a table.") for defaultKey, defaultValue in pairs(default) do if result[defaultKey] == nil then result[defaultKey] = defaultValue changed = true end end if changed then self:Set(result) end return result end
function DataStore.SetBackup(f,N,p)f.backupRetries=N f.backupValue=p end
--[[** <description> Adds a backup to the data store if :Get() fails a specified amount of times. Will return the value provided (if the value is nil, then the default value of :Get() will be returned) and mark the data store as a backup store, and attempts to :Save() will not truly save. </description> <parameter name = "retries"> Number of retries before the backup will be used. </parameter> <parameter name = "value"> The value to return to :Get() in the case of a failure. You can keep this blank and the default value you provided with :Get() will be used instead. </parameter> **--]] function DataStore:SetBackup(retries, value) self.backupRetries = retries self.backupValue = value end
local N=script.Parent.Base.HingeConstraint local p=script.Parent.Display.SurfaceGui.TextLabel local f=0 function Mode_Up()if f<max_mode then f=f+1 N.AngularVelocity=N.AngularVelocity+increment_speed p.Text=f end end function Mode_Down()if f>min_mode then f=f-1 N.AngularVelocity=N.AngularVelocity-increment_speed p.Text=f end end script.Parent.Button_Up.ClickDetector.mouseClick:connect(Mode_Up)script.Parent.Button_Down.ClickDetector.mouseClick:connect(Mode_Down)
--WARNING! --DO NOT MODIFY THE CODE BELOW! (Unless you know what you're doing, in that case: Go nuts!) local motor = script.Parent.Base.HingeConstraint local display = script.Parent.Display.SurfaceGui.TextLabel local current_mode = 0 function Mode_Up() if current_mode < max_mode then current_mode = current_mode + 1 motor.AngularVelocity = motor.AngularVelocity + increment_speed display.Text = current_mode end end function Mode_Down() if current_mode > min_mode then current_mode = current_mode - 1 motor.AngularVelocity = motor.AngularVelocity - increment_speed display.Text = current_mode end end script.Parent.Button_Up.ClickDetector.mouseClick:connect(Mode_Up) script.Parent.Button_Down.ClickDetector.mouseClick:connect(Mode_Down)
defaults.Font="\083\111\117\114\099\101\083\097\110\115"defaults.TextColor3="\087\104\105\116\101"defaults.TextStrokeColor3="\066\108\097\099\107"defaults.TextTransparency=0 defaults.TextStrokeTransparency=1 defaults.BackgroundTransparency=1 defaults.BorderSizePixel=0
-- TextLabel default properties defaults.Font = "SourceSans" defaults.TextColor3 = "White" defaults.TextStrokeColor3 = "Black" defaults.TextTransparency = 0 defaults.TextStrokeTransparency = 1 defaults.BackgroundTransparency = 1 defaults.BorderSizePixel = 0
function BaseCamera.SetCameraMovementMode(p,N)p.cameraMovementMode=N end function BaseCamera.GetCameraMovementMode(N)return N.cameraMovementMode end function BaseCamera.SetIsMouseLocked(p,N)p.inMouseLockedMode=N end function BaseCamera.GetIsMouseLocked(N)return N.inMouseLockedMode end function BaseCamera.SetMouseLockOffset(p,N)p.mouseLockOffset=N end function BaseCamera.GetMouseLockOffset(N)return N.mouseLockOffset end function BaseCamera.InFirstPerson(N)return N.inFirstPerson end function BaseCamera.EnterFirstPerson(N) end function BaseCamera.LeaveFirstPerson(N) end
-- Movement mode standardized to Enum.ComputerCameraMovementMode values function BaseCamera:SetCameraMovementMode(cameraMovementMode) self.cameraMovementMode = cameraMovementMode end function BaseCamera:GetCameraMovementMode() return self.cameraMovementMode end function BaseCamera:SetIsMouseLocked(mouseLocked) self.inMouseLockedMode = mouseLocked end function BaseCamera:GetIsMouseLocked() return self.inMouseLockedMode end function BaseCamera:SetMouseLockOffset(offsetVector) self.mouseLockOffset = offsetVector end function BaseCamera:GetMouseLockOffset() return self.mouseLockOffset end function BaseCamera:InFirstPerson() return self.inFirstPerson end function BaseCamera:EnterFirstPerson() -- Overridden in ClassicCamera, the only module which supports FirstPerson end function BaseCamera:LeaveFirstPerson() -- Overridden in ClassicCamera, the only module which supports FirstPerson end
local N=Maid.new()N.instance=script.Parent N.humanoid=N.instance:WaitForChild("\072\117\109\097\110\111\105\100")N.head=N.instance:WaitForChild("\072\101\097\100")N.humanoidRootPart=N.instance:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")N.alignOrientation=N.humanoidRootPart:FindFirstChild("\065\108\105\103\110\079\114\105\101\110\116\097\116\105\111\110")
--[[ Instance references ]] local maid = Maid.new() maid.instance = script.Parent maid.humanoid = maid.instance:WaitForChild("Humanoid") maid.head = maid.instance:WaitForChild("Head") maid.humanoidRootPart = maid.instance:FindFirstChild("HumanoidRootPart") maid.alignOrientation = maid.humanoidRootPart:FindFirstChild("AlignOrientation")
function RxInstanceUtils.observeFirstAncestorBrio(N,p)assert(typeof(N)=="\073\110\115\116\097\110\099\101","\066\097\100 \105\110\115\116\097\110\099\101")assert(type(p)=="\115\116\114\105\110\103","\066\097\100 \099\108\097\115\115\078\097\109\101")return Observable.new(function(f)local z=Maid.new()local D=nil local function y()local y=N:FindFirstAncestorWhichIsA(p)if y then if y~=D then D=y local N=Brio.new(y)z._current=N f:Fire(N)end elseif D then z._current=nil D=nil end end z:GiveTask(N.AncestryChanged:Connect(y))y()return z end)end
--[=[ Observes an instance's ancestry @param instance Instance @param className string @return Observable<Instance> ]=] function RxInstanceUtils.observeFirstAncestorBrio(instance, className) assert(typeof(instance) == "Instance", "Bad instance") assert(type(className) == "string", "Bad className") return Observable.new(function(sub) local maid = Maid.new() local lastFound = nil local function handleAncestryChanged() local found = instance:FindFirstAncestorWhichIsA(className) if found then if found ~= lastFound then lastFound = found local brio = Brio.new(found) maid._current = brio sub:Fire(brio) end elseif lastFound then maid._current = nil lastFound = nil end end maid:GiveTask(instance.AncestryChanged:Connect(handleAncestryChanged)) handleAncestryChanged() return maid end) end
Tune.ABSEnabled=false Tune.ABSThreshold=20 Tune.FBrakeForce=1200 Tune.RBrakeForce=1600 Tune.PBrakeForce=6000 Tune.FLgcyBForce=15000 Tune.RLgcyBForce=10000 Tune.LgcyPBForce=25000
--[[Brakes]] Tune.ABSEnabled = false -- Implements ABS Tune.ABSThreshold = 20 -- Slip speed allowed before ABS starts working (in SPS) Tune.FBrakeForce = 1200 -- Front brake force Tune.RBrakeForce = 1600 -- Rear brake force Tune.PBrakeForce = 6000 -- Handbrake force Tune.FLgcyBForce = 15000 -- Front brake force [PGS OFF] Tune.RLgcyBForce = 10000 -- Rear brake force [PGS OFF] Tune.LgcyPBForce = 25000 -- Handbrake force [PGS OFF]
L_105_.OnClientEvent:connect(function(N,p,f,z,D,y,H)if N 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\101")L_29_=L_28_:WaitForChild("\065\109\109\111")L_30_=L_28_:WaitForChild("\065\109\109\111\066\097\099\107\103\114\111\117\110\100")L_31_=L_28_:WaitForChild("\077\097\103\067\111\117\110\116")L_32_=L_28_:WaitForChild("\077\097\103\067\111\117\110\116\066\097\099\107\103\114\111\117\110\100")L_33_=L_28_:WaitForChild("\068\105\115\116\068\105\115\112")L_34_=L_28_:WaitForChild("\084\105\116\108\101")L_35_=L_28_:WaitForChild("\077\111\100\101\049")L_36_=L_28_:WaitForChild("\077\111\100\101\050")L_37_=L_28_:WaitForChild("\077\111\100\101\051")L_38_=L_28_:WaitForChild("\077\111\100\101\052")L_39_=L_28_:WaitForChild("\077\111\100\101\053")L_40_=L_28_:WaitForChild("\083\116\097\110\099\101\115")L_41_=L_42_:WaitForChild("\083\104\097\100\105\110\103")L_41_.Visible=false L_34_.Text=L_1_.Name UpdateAmmo()L_43_=p L_44_=f L_45_=z L_46_=D L_47_=y L_48_=H L_49_=L_59_.Bolt L_84_=L_48_.C1 L_85_=L_48_.C0 if L_1_:FindFirstChild("\065\105\109\080\097\114\116\050")then L_54_=L_1_:WaitForChild("\065\105\109\080\097\114\116\050")end if L_1_:FindFirstChild("\070\105\114\101\080\097\114\116\050")then L_57_=L_1_.FirePart2 end if L_24_.FirstPersonOnly then L_2_.CameraMode=Enum.CameraMode.LockFirstPerson end L_5_.FieldOfView=70 L_15_=true elseif L_15_ then if L_3_ and(L_3_.Humanoid and(L_3_.Humanoid.Health>0 and L_9_))then Stand()Unlean()end L_90_=0 L_77_=false L_78_=false L_79_=false L_61_=false L_64_=false L_63_=false Shooting=false L_94_=70 RemoveArmModel()L_42_:Destroy()for N,p in pairs(IgnoreList)do if p~=L_3_ and(p~=L_5_ and p~=L_98_)then table.remove(IgnoreList,N)end end if L_3_:FindFirstChild("\082\105\103\104\116 \065\114\109")and L_3_:FindFirstChild("\076\101\102\116 \065\114\109")then L_3_["\082\105\103\104\116 \065\114\109"].LocalTransparencyModifier=0 L_3_["\076\101\102\116 \065\114\109"].LocalTransparencyModifier=0 end L_75_=false L_66_=true L_2_.CameraMode=Enum.CameraMode.Classic L_104_.MouseIconEnabled=true L_5_.FieldOfView=70 L_15_=false L_104_.MouseDeltaSensitivity=L_52_ L_15_=false end end)
--// Connections L_105_.OnClientEvent:connect( function(L_188_arg1, L_189_arg2, L_190_arg3, L_191_arg4, L_192_arg5, L_193_arg6, L_194_arg7) if L_188_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_42_:WaitForChild("GameGui"):WaitForChild("AmmoFrame") L_29_ = L_28_:WaitForChild("Ammo") L_30_ = L_28_:WaitForChild("AmmoBackground") L_31_ = L_28_:WaitForChild("MagCount") L_32_ = L_28_:WaitForChild("MagCountBackground") L_33_ = L_28_:WaitForChild("DistDisp") L_34_ = L_28_:WaitForChild("Title") L_35_ = L_28_:WaitForChild("Mode1") L_36_ = L_28_:WaitForChild("Mode2") L_37_ = L_28_:WaitForChild("Mode3") L_38_ = L_28_:WaitForChild("Mode4") L_39_ = L_28_:WaitForChild("Mode5") L_40_ = L_28_:WaitForChild("Stances") L_41_ = L_42_:WaitForChild("Shading") L_41_.Visible = false L_34_.Text = L_1_.Name UpdateAmmo() L_43_ = L_189_arg2 L_44_ = L_190_arg3 L_45_ = L_191_arg4 L_46_ = L_192_arg5 L_47_ = L_193_arg6 L_48_ = L_194_arg7 L_49_ = L_59_.Bolt L_84_ = L_48_.C1 L_85_ = L_48_.C0 if L_1_:FindFirstChild("AimPart2") then L_54_ = L_1_:WaitForChild("AimPart2") end if L_1_:FindFirstChild("FirePart2") then L_57_ = L_1_.FirePart2 end if L_24_.FirstPersonOnly then L_2_.CameraMode = Enum.CameraMode.LockFirstPerson end --uis.MouseIconEnabled = false L_5_.FieldOfView = 70 L_15_ = true elseif L_15_ then if L_3_ and L_3_.Humanoid and L_3_.Humanoid.Health > 0 and L_9_ then Stand() Unlean() end L_90_ = 0 L_77_ = false L_78_ = false L_79_ = false L_61_ = false L_64_ = false L_63_ = false Shooting = false L_94_ = 70 RemoveArmModel() L_42_:Destroy() for L_195_forvar1, L_196_forvar2 in pairs(IgnoreList) do if L_196_forvar2 ~= L_3_ and L_196_forvar2 ~= L_5_ and L_196_forvar2 ~= L_98_ then table.remove(IgnoreList, L_195_forvar1) end end if L_3_:FindFirstChild("Right Arm") and L_3_:FindFirstChild("Left Arm") then L_3_["Right Arm"].LocalTransparencyModifier = 0 L_3_["Left Arm"].LocalTransparencyModifier = 0 end L_75_ = false L_66_ = true L_2_.CameraMode = Enum.CameraMode.Classic L_104_.MouseIconEnabled = true L_5_.FieldOfView = 70 L_15_ = false L_104_.MouseDeltaSensitivity = L_52_ L_15_ = false end end )
fire.OnServerEvent:Connect(function(N,p)local f=N.Character local z=f:FindFirstChild("\072\117\109\097\110\111\105\100")local D=Vector3.new(math.random(-accuracy.Value*2,accuracy.Value*2),math.random(-accuracy.Value*2,accuracy.Value*2),math.random(-accuracy.Value*2,accuracy.Value*2))if z and z~=0 then local y=Instance.new("\080\097\114\116",workspace)local H=Instance.new("\084\114\097\105\108",y)H.FaceCamera=true H.Lifetime=.3 H.MinLength=.15 H.LightEmission=.25 local d=Instance.new("\065\116\116\097\099\104\109\101\110\116",y)d.Position=Vector3.new(.35,0,0)d.Name="\065\116\116\097\099\104\109\101\110\116\049"local x=Instance.new("\065\116\116\097\099\104\109\101\110\116",y)x.Position=Vector3.new(-0.35,0,0)x.Name="\065\116\116\097\099\104\109\101\110\116\049"H.Attachment0=d H.Attachment1=x y.Name="\066\117\108\108\101\116"y.BrickColor=BrickColor.new("\083\109\111\107\121 \103\114\097\121")y.Shape="\066\097\108\108"y.Material=Enum.Material.Metal y.TopSurface=0 y.BottomSurface=0 y.Size=Vector3.new(1,1,1)y.Transparency=1 y.CFrame=CFrame.new(muzzle.CFrame.p,p.p)y.CanCollide=false local E={}local k=Color3.new(255,255,0)local B=Color3.new(213,115,61)table.insert(E,NumberSequenceKeypoint.new(0,1))table.insert(E,NumberSequenceKeypoint.new(.25,0))table.insert(E,NumberSequenceKeypoint.new(1,1))local n=NumberSequence.new(E)local O=ColorSequence.new(k,B)H.Transparency=n H.Color=O local s=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",y)s.MaxForce=Vector3.new(9000000000.0,9000000000.0,9000000000.0)s.Velocity=p.lookVector*velocity.Value+D debris:AddItem(y,20)y.Touched:Connect(function(p)local D=p.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")or p.Parent.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")local H=math.random(minDamage.Value,maxDamage.Value)if not D and(not p.Anchored and not p:IsDescendantOf(f))then y:Destroy()elseif D and(D~=z and(D.Health>0 and p~=y))then if p.Name=="\072\101\097\100"or p:IsA("\072\097\116")then H=H*1.5 end local f=maxDamage.Value DamageAndTagHumanoid(N,D,H)if showDamageText then DynamicText(H,f,D)else end y:Destroy()elseif p.CanCollide==true and(not p:IsDescendantOf(N.Character)and p.Anchored==true)then y:Destroy()end end)handle.Fire:Play()muzzleEffect.Visible=true muzzleEffect.Rotation=math.random(-360,360)delay(.1,function()muzzleEffect.Visible=false end)end end)activateSpecial.OnServerEvent:Connect(function(N)accuracy.Value,fireRate.Value=accuracy.Value/2,fireRate.Value/2 minDamage.Value,maxDamage.Value=minDamage.Value/2,maxDamage.Value/2 spawn(function()local p=Instance.new("\083\111\117\110\100",N.PlayerGui)p.Name="\067\104\097\114\103\101\083\111\117\110\100"p.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\054\051\054\049\057\056\052\057"p:Play()p.Ended:Connect(function()p:Destroy()end)local f=Instance.new("\083\112\097\114\107\108\101\115",handle)f.SparkleColor=Color3.fromRGB(255,236,21)local z=Instance.new("\083\099\114\101\101\110\071\117\105",N.PlayerGui)z.Name="\083\112\101\099\105\097\108\065\099\116\105\118\097\116\101\100"local D=Instance.new("\084\101\120\116\076\097\098\101\108",z)D.TextColor3=Color3.fromRGB(0,180,30)D.Text="\084\114\105\103\103\101\114 \072\097\112\112\121 \097\099\116\105\118\097\116\101\100\033"D.Font=Enum.Font.SourceSans D.TextScaled=true D.TextStrokeTransparency=0 D.Size=UDim2.new(0,300,0,50)D.Position=UDim2.new(2.5,0,.15,-10)D.BackgroundTransparency=1 D:TweenPosition(UDim2.new(.5,-(D.Size.X.Offset/2),.1,-10),Enum.EasingDirection.Out,Enum.EasingStyle.Back,1)debris:AddItem(f,specialDuration.Value)debris:AddItem(p,3)wait(3)TextEffects(D,200,Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)end)for N=specialDuration.Value,0,-1 do wait(1)print("\083\112\101\099\105\097\108 \097\099\116\105\118\097\116\101\100\058 "..N)end accuracy.Value,fireRate.Value=accuracy.Value*2,fireRate.Value*2 minDamage.Value,maxDamage.Value=minDamage.Value*2,maxDamage.Value*2 activateSpecial:FireClient(N)end)
--//Remote Functions\\-- fire.OnServerEvent:Connect(function(player, mouseHit) local character = player.Character local humanoid = character:FindFirstChild("Humanoid") local weaponAccuracy = Vector3.new( math.random(-accuracy.Value * 2, accuracy.Value * 2), math.random(-accuracy.Value * 2, accuracy.Value * 2), math.random(-accuracy.Value * 2, accuracy.Value * 2) ) if humanoid and humanoid ~= 0 then local projectile = Instance.new("Part", workspace) local trail = Instance.new("Trail", projectile) trail.FaceCamera = true trail.Lifetime = 0.3 trail.MinLength = 0.15 trail.LightEmission = 0.25 local attachment0 = Instance.new("Attachment", projectile) attachment0.Position = Vector3.new(0.35, 0, 0) attachment0.Name = "Attachment1" local attachment1 = Instance.new("Attachment", projectile) attachment1.Position = Vector3.new(-0.35, 0, 0) attachment1.Name = "Attachment1" trail.Attachment0 = attachment0 trail.Attachment1 = attachment1 projectile.Name = "Bullet" projectile.BrickColor = BrickColor.new("Smoky gray") projectile.Shape = "Ball" projectile.Material = Enum.Material.Metal projectile.TopSurface = 0 projectile.BottomSurface = 0 projectile.Size = Vector3.new(1, 1, 1) projectile.Transparency = 1 projectile.CFrame = CFrame.new(muzzle.CFrame.p, mouseHit.p) projectile.CanCollide = false local transparencyPoints = {} local startColor = Color3.new(255, 255, 0) local endColor = Color3.new(213, 115, 61) table.insert(transparencyPoints, NumberSequenceKeypoint.new(0, 1)) table.insert(transparencyPoints, NumberSequenceKeypoint.new(0.25, 0)) table.insert(transparencyPoints, NumberSequenceKeypoint.new(1, 1)) local determinedTransparency = NumberSequence.new(transparencyPoints) local determinedColors = ColorSequence.new(startColor, endColor) trail.Transparency = determinedTransparency trail.Color = determinedColors local bodyVelocity = Instance.new("BodyVelocity", projectile) bodyVelocity.MaxForce = Vector3.new(9e9, 9e9, 9e9) bodyVelocity.Velocity = (mouseHit.lookVector * velocity.Value) + weaponAccuracy debris:AddItem(projectile, 20) projectile.Touched:Connect(function(hit) local eHumanoid = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid") local damage = math.random(minDamage.Value, maxDamage.Value) if not eHumanoid and not hit.Anchored and not hit:IsDescendantOf(character) then projectile:Destroy() elseif eHumanoid and eHumanoid ~= humanoid and eHumanoid.Health > 0 and hit ~= projectile then if hit.Name == "Head" or hit:IsA("Hat") then damage = damage * 1.5 end local criticalPoint = maxDamage.Value DamageAndTagHumanoid(player, eHumanoid, damage) if showDamageText then DynamicText(damage, criticalPoint, eHumanoid) else end projectile:Destroy() elseif hit.CanCollide == true and not hit:IsDescendantOf(player.Character) and hit.Anchored == true then projectile:Destroy() end end) handle.Fire:Play() muzzleEffect.Visible = true muzzleEffect.Rotation = math.random(-360, 360) delay(0.1, function() muzzleEffect.Visible = false end) end end) activateSpecial.OnServerEvent:Connect(function(player) accuracy.Value, fireRate.Value = accuracy.Value / 2, fireRate.Value / 2 minDamage.Value, maxDamage.Value = minDamage.Value / 2, maxDamage.Value / 2 spawn(function() local chargeSound = Instance.new("Sound", player.PlayerGui) chargeSound.Name = "ChargeSound" chargeSound.SoundId = "rbxassetid://163619849" chargeSound:Play() chargeSound.Ended:Connect(function() chargeSound:Destroy() end) local sparkles = Instance.new("Sparkles", handle) sparkles.SparkleColor = Color3.fromRGB(255, 236, 21) local activatedGui = Instance.new("ScreenGui", player.PlayerGui) activatedGui.Name = "SpecialActivated" local textLabel = Instance.new("TextLabel", activatedGui) textLabel.TextColor3 = Color3.fromRGB(0, 180, 30) textLabel.Text = "Trigger Happy activated!" textLabel.Font = Enum.Font.SourceSans textLabel.TextScaled = true textLabel.TextStrokeTransparency = 0 textLabel.Size = UDim2.new(0, 300, 0, 50) textLabel.Position = UDim2.new(2.5, 0, 0.15, -10) textLabel.BackgroundTransparency = 1 textLabel:TweenPosition( UDim2.new(0.5, -(textLabel.Size.X.Offset / 2), 0.1, -10), Enum.EasingDirection.Out, Enum.EasingStyle.Back, 1 ) debris:AddItem(sparkles, specialDuration.Value) debris:AddItem(chargeSound, 3) wait(3) TextEffects(textLabel, 200, Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 1) end) for i = specialDuration.Value, 0, -1 do wait(1) print("Special activated: " .. i) end accuracy.Value, fireRate.Value = accuracy.Value * 2, fireRate.Value * 2 minDamage.Value, maxDamage.Value = minDamage.Value * 2, maxDamage.Value * 2 activateSpecial:FireClient(player) end)
local N={}local p=require(game.ReplicatedStorage.Modules.Xeno)local f=require(game.ReplicatedStorage.Modules.CameraShaker)local z=game.TweenService local D=game.Debris local y=require(game.ReplicatedStorage.Modules.Lightning)local H=game.ReplicatedStorage function N.RunStompFx(N,p,f,z)task.delay(0,function()local N=y.Bolt(((CFrame.new(p.CFrame.p)*CFrame.new(0,250,0))*CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))).Position,(p.CFrame*CFrame.new(math.random(-2,2),math.random(-1,1),math.random(-1,1))).Position,10,.25,false)N.PulseSpeed=12 N.PulseLength=5 N.MinRadius=0 N.MaxRadius=5 N.FadeLength=.1 N.Thickness=3 N.MinTransparency=.25 N.MaxTransparency=.3 N.Color=Color3.fromRGB(251,255,16)end)local D=H.KillFX[N].Stomp:Clone()D.Parent=p.Parent.UpperTorso and p D:Play()game.Debris:AddItem(D,4)local d=H.KillFX[N].HitPart:Clone()d.Parent=workspace.Ignored.Animations d.CFrame=CFrame.new(p.CFrame.Position)task.delay(.25,function()for N,p in pairs(d.Attachment:GetChildren())do p.Enabled=false end end)task.delay(.1,function()(H.KillFX[N].FireEffect:Clone()).Parent=p.Parent.UpperTorso for N,p in pairs(p.Parent:GetDescendants())do if p:IsA("\066\097\115\101\112\097\114\116")and not p:IsA("\077\101\115\104\080\097\114\116")then p.Color=Color3.fromRGB(0,0,0)elseif p:IsA("\083\104\105\114\116")or p:IsA("\080\097\110\116\115")then p.Color3=Color3.fromRGB(0,0,0)elseif p:IsA("\077\101\115\104")then p.VertexColor=Color3.fromRGB(0,0,0)elseif p:IsA("\077\101\115\104\080\097\114\116")then p.TextureID=""p.Color=Color3.fromRGB(0,0,0)end end end)game.Debris:AddItem(d,4)return nil end return N
-- Decompiled with the Synapse X Luau decompiler. local v1 = {} local v2 = require(game.ReplicatedStorage.Modules.Xeno) local v3 = require(game.ReplicatedStorage.Modules.CameraShaker) local l__TweenService__4 = game.TweenService local l__Debris__5 = game.Debris local u1 = require(game.ReplicatedStorage.Modules.Lightning) local l__ReplicatedStorage__2 = game.ReplicatedStorage function v1.RunStompFx(p1, p2, p3, p4) task.delay(0, function() local v6 = u1.Bolt( (CFrame.new(p2.CFrame.p) * CFrame.new(0, 250, 0) * CFrame.new( math.random(-1, 1), math.random(-1, 1), math.random(-1, 1) )).Position, (p2.CFrame * CFrame.new(math.random(-2, 2), math.random(-1, 1), math.random(-1, 1))).Position, 10, 0.25, false ) v6.PulseSpeed = 12 v6.PulseLength = 5 v6.MinRadius = 0 v6.MaxRadius = 5 v6.FadeLength = 0.1 v6.Thickness = 3 v6.MinTransparency = 0.25 v6.MaxTransparency = 0.3 v6.Color = Color3.fromRGB(251, 255, 16) end) local v7 = l__ReplicatedStorage__2.KillFX[p1].Stomp:Clone() v7.Parent = p2.Parent.UpperTorso and p2 v7:Play() game.Debris:AddItem(v7, 4) local v8 = l__ReplicatedStorage__2.KillFX[p1].HitPart:Clone() v8.Parent = workspace.Ignored.Animations v8.CFrame = CFrame.new(p2.CFrame.Position) task.delay(0.25, function() for v9, v10 in pairs(v8.Attachment:GetChildren()) do v10.Enabled = false end end) task.delay(0.1, function() l__ReplicatedStorage__2.KillFX[p1].FireEffect:Clone().Parent = p2.Parent.UpperTorso for v11, v12 in pairs(p2.Parent:GetDescendants()) do if v12:IsA("Basepart") and not v12:IsA("MeshPart") then v12.Color = Color3.fromRGB(0, 0, 0) elseif v12:IsA("Shirt") or v12:IsA("Pants") then v12.Color3 = Color3.fromRGB(0, 0, 0) elseif v12:IsA("Mesh") then v12.VertexColor = Color3.fromRGB(0, 0, 0) elseif v12:IsA("MeshPart") then v12.TextureID = "" v12.Color = Color3.fromRGB(0, 0, 0) end end end) game.Debris:AddItem(v8, 4) return nil end return v1
local N=(Instance.new("\080\097\114\116")).GetConnectedParts local p=script.GetChildren function GetPartJoints(p,f)local z={}for N,p in pairs(SearchJoints(p,p,f))do z[N]=p end for N,D in pairs(N(p))do for N,p in pairs(SearchJoints(D,p,f))do z[N]=p end end return z end
-- References to reduce indexing time local GetConnectedParts = Instance.new("Part").GetConnectedParts local GetChildren = script.GetChildren function GetPartJoints(Part, Whitelist) -- Returns any manual joints involving `Part` local Joints = {} -- Get joints stored inside `Part` for Joint, JointParent in pairs(SearchJoints(Part, Part, Whitelist)) do Joints[Joint] = JointParent end -- Get joints stored inside connected parts for _, ConnectedPart in pairs(GetConnectedParts(Part)) do for Joint, JointParent in pairs(SearchJoints(ConnectedPart, Part, Whitelist)) do Joints[Joint] = JointParent end end -- Return all found joints return Joints end
Tune.SteerD=1000 Tune.SteerMaxTorque=50000 Tune.SteerP=100000
--Steer Gyro Tuning Tune.SteerD = 1000 -- Steering Dampening Tune.SteerMaxTorque = 50000 -- Steering Force Tune.SteerP = 100000 -- Steering Aggressiveness
function Promise.allSettled(N)if type(N)~="\116\097\098\108\101"then error(string.format(ERROR_NON_LIST,"\080\114\111\109\105\115\101\046\097\108\108\083\101\116\116\108\101\100"),2)end for N,p in pairs(N)do if not Promise.is(p)then error(string.format(ERROR_NON_PROMISE_IN_LIST,"\080\114\111\109\105\115\101\046\097\108\108\083\101\116\116\108\101\100",tostring(N)),2)end end if#N==0 then return Promise.resolve({})end return Promise._new(debug.traceback(nil,2),function(p,f,z)local D={}local y={}local H=0 local function d(f,...)H=H+1 D[f]=...if H>=#N then p(D)end end z(function()for N,p in ipairs(y)do p:cancel()end end)for N,p in ipairs(N)do y[N]=p:finally(function(...)d(N,...)end)end end)end
--[=[ Accepts an array of Promises and returns a new Promise that resolves with an array of in-place Statuses when all input Promises have settled. This is equivalent to mapping `promise:finally` over the array of Promises. ```lua local promises = { returnsAPromise("example 1"), returnsAPromise("example 2"), returnsAPromise("example 3"), } return Promise.allSettled(promises) ``` @param promises {Promise<T>} @return Promise<{Status}> ]=] function Promise.allSettled(promises) if type(promises) ~= "table" then error(string.format(ERROR_NON_LIST, "Promise.allSettled"), 2) end -- We need to check that each value is a promise here so that we can produce -- a proper error rather than a rejected promise with our error. for i, promise in pairs(promises) do if not Promise.is(promise) then error(string.format(ERROR_NON_PROMISE_IN_LIST, "Promise.allSettled", tostring(i)), 2) end end -- If there are no values then return an already resolved promise. if #promises == 0 then return Promise.resolve({}) end return Promise._new(debug.traceback(nil, 2), function(resolve, _, onCancel) -- An array to contain our resolved values from the given promises. local fates = {} local newPromises = {} -- Keep a count of resolved promises because just checking the resolved -- values length wouldn't account for promises that resolve with nil. local finishedCount = 0 -- Called when a single value is resolved and resolves if all are done. local function resolveOne(i, ...) finishedCount = finishedCount + 1 fates[i] = ... if finishedCount >= #promises then resolve(fates) end end onCancel(function() for _, promise in ipairs(newPromises) do promise:cancel() end end) -- We can assume the values inside `promises` are all promises since we -- checked above. for i, promise in ipairs(promises) do newPromises[i] = promise:finally(function(...) resolveOne(i, ...) end) end end) end
while Character.Parent~=nil do local N,p=wait(.1)stepAnimate(p)end
-- loop to handle timed state transitions and tool animations while Character.Parent ~= nil do local _, currentGameTime = wait(0.1) stepAnimate(currentGameTime) end --[[ ]] --[[ ]]
local N=(require((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\072\068\065\100\109\105\110\083\101\116\117\112"))):GetMain(true)N:Initialize("\067\108\105\101\110\116")
-- << RETRIEVE FRAMEWORK >> local main = require(game:GetService("ReplicatedStorage"):WaitForChild("HDAdminSetup")):GetMain(true) main:Initialize("Client")
for N,p in pairs(script.Parent:GetDescendants())do if p.Name~="\072\097\110\100\108\101"and p:IsA("\080\097\114\116")or p:IsA("\087\101\100\103\101\080\097\114\116")or p:IsA("\066\097\115\101\080\097\114\116")or p:IsA("\077\101\115\104\080\097\114\116")or p:IsA("\084\114\117\115\115\080\097\114\116")then local N=Instance.new("\087\101\108\100\067\111\110\115\116\114\097\105\110\116",p)N.Part0=script.Parent.Handle N.Part1=p end end
--Auto welding script (anchors so the tree doesnt fall apart) for i, v in pairs(script.Parent:GetDescendants()) do if v.Name ~= "Handle" and v:IsA("Part") or v:IsA("WedgePart") or v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("TrussPart") then local Weld = Instance.new("WeldConstraint", v) Weld.Part0 = script.Parent.Handle Weld.Part1 = v end end
local N=script.Parent local p=1 local f=200 local z=script.Parent:WaitForChild("\072\117\109\097\110\111\105\100")local D=script.Parent:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local y=Enum.HumanoidStateType local H=0 local d=false while true do wait()if D.Velocity.Y<-f then H=H+p d=false z:SetStateEnabled(y.GettingUp,false)z:ChangeState(y.FallingDown)z.Parent.Head.RotVelocity=Vector3.new(0,10,20)end if z.FloorMaterial~=nil and(z.FloorMaterial~=Enum.Material.Air and(z.FloorMaterial~=Enum.Material.Rock and(z.FloorMaterial~=Enum.Material.Water and d)))then d=false z:ChangeState(y.FallingDown)z.Health=z.Health-H H=0 z.Parent.UpperTorso.RotVelocity=Vector3.new(0,-10,20)elseif D.Velocity.Y>-f then wait()H=0 z:SetStateEnabled(y.GettingUp,true)end end
--Place me in StarterCharacterScripts located in StarterPlayer local character = script.Parent local timesby = 1 --Multiplyer local DamageVelocity = 200 --How fast you go to take damage local humanoid = script.Parent:WaitForChild("Humanoid") local humanoidRP = script.Parent:WaitForChild("HumanoidRootPart") local stateType = Enum.HumanoidStateType local speed = 0 local fell = false while true do wait() if humanoidRP.Velocity.Y < -DamageVelocity then speed = speed + timesby fell = false humanoid:SetStateEnabled(stateType.GettingUp, false) humanoid:ChangeState(stateType.FallingDown) humanoid.Parent.Head.RotVelocity = Vector3.new(0, 10, 20) end if humanoid.FloorMaterial ~= nil and humanoid.FloorMaterial ~= Enum.Material.Air and humanoid.FloorMaterial ~= Enum.Material.Rock and humanoid.FloorMaterial ~= Enum.Material.Water and fell then fell = false humanoid:ChangeState(stateType.FallingDown) humanoid.Health = humanoid.Health - speed speed = 0 humanoid.Parent.UpperTorso.RotVelocity = Vector3.new(0, -10, 20) elseif humanoidRP.Velocity.Y > -DamageVelocity then wait() speed = 0 humanoid:SetStateEnabled(stateType.GettingUp, true) end end
local N=script.Parent local p=false local f=true local z=false local D=script.Parent.AccessDenied local y=script.Parent.AccessGranted local H={["\091\083\067\080\093 \067\097\114\100-\079\109\110\105"]=true;["\091\083\067\080\093 \067\097\114\100-\076\053"]=false;["\091\083\067\080\093 \067\097\114\100-\076\052"]=false;["\091\083\067\080\093 \067\097\114\100-\076\051"]=false,["\091\083\067\080\093 \067\097\114\100-\076\050"]=false;["\091\083\067\080\093 \067\097\114\100-\076\049"]=false}function openDoor()script.Parent.DoorOpen:play()for p=3,N.Size.z/.15,1 do wait()N.CFrame=N.CFrame-N.CFrame.lookVector*.15 end end function closeDoor()script.Parent.DoorClose:play()for p=3,N.Size.z/.15,1 do wait()N.CFrame=N.CFrame+N.CFrame.lookVector*.15 end end script.Parent.Parent.KeycardReader1.touched:connect(function(N)if N.Name=="\072\097\110\100\108\101"and(H[N.Parent.Name]and f==true)then f=false y:Play()wait(.75)openDoor()wait(1)z=true elseif N.Name=="\072\097\110\100\108\101"and(H[N.Parent.Name]and z==true)then z=false y:Play()wait(.75)closeDoor()wait(1)f=true elseif N.Name=="\072\097\110\100\108\101"and(H[N.Parent.Name]==false and not p)then p=true D:Play()wait(2)p=false end end)script.Parent.Parent.KeycardReader2.touched:connect(function(N)if N.Name=="\072\097\110\100\108\101"and(H[N.Parent.Name]and f==true)then f=false y:Play()wait(.75)openDoor()wait(1)z=true elseif N.Name=="\072\097\110\100\108\101"and(H[N.Parent.Name]and z==true)then z=false y:Play()wait(.75)closeDoor()wait(1)f=true elseif N.Name=="\072\097\110\100\108\101"and(H[N.Parent.Name]==false and not p)then p=true D:Play()wait(2)p=false end end)
--"False" = Not Acceptable Keycard To Open. "True" = Acceptable Keycard To Open.-- local door = script.Parent local bool = false local CanOpen1 = true local CanClose1 = false local AccessDenied = script.Parent.AccessDenied local AccessGranted = script.Parent.AccessGranted local clearance = { ["[SCP] Card-Omni"] = true, ["[SCP] Card-L5"] = false, ["[SCP] Card-L4"] = false, ["[SCP] Card-L3"] = false, ["[SCP] Card-L2"] = false, ["[SCP] Card-L1"] = false, } --DO NOT EDIT PAST THIS LINE-- function openDoor() script.Parent.DoorOpen:play() for i = 3, (door.Size.z / 0.15) do wait() door.CFrame = door.CFrame - (door.CFrame.lookVector * 0.15) end end function closeDoor() script.Parent.DoorClose:play() for i = 3, (door.Size.z / 0.15) do wait() door.CFrame = door.CFrame + (door.CFrame.lookVector * 0.15) end end script.Parent.Parent.KeycardReader1.touched:connect(function(touch) if touch.Name == "Handle" and clearance[touch.Parent.Name] and CanOpen1 == true then CanOpen1 = false AccessGranted:Play() wait(0.75) openDoor() wait(1) CanClose1 = true elseif touch.Name == "Handle" and clearance[touch.Parent.Name] and CanClose1 == true then CanClose1 = false AccessGranted:Play() wait(0.75) closeDoor() wait(1) CanOpen1 = true elseif touch.Name == "Handle" and clearance[touch.Parent.Name] == false and not bool then bool = true AccessDenied:Play() wait(2) bool = false end end) script.Parent.Parent.KeycardReader2.touched:connect(function(touch) if touch.Name == "Handle" and clearance[touch.Parent.Name] and CanOpen1 == true then CanOpen1 = false AccessGranted:Play() wait(0.75) openDoor() wait(1) CanClose1 = true elseif touch.Name == "Handle" and clearance[touch.Parent.Name] and CanClose1 == true then CanClose1 = false AccessGranted:Play() wait(0.75) closeDoor() wait(1) CanOpen1 = true elseif touch.Name == "Handle" and clearance[touch.Parent.Name] == false and not bool then bool = true AccessDenied:Play() wait(2) bool = false end end)
game.Workspace.doorright.l11.BrickColor=BrickColor.new(1013)game.Workspace.doorright.l23.BrickColor=BrickColor.new(1013)game.Workspace.doorright.l32.BrickColor=BrickColor.new(1013)game.Workspace.doorright.l41.BrickColor=BrickColor.new(1013)game.Workspace.doorright.l53.BrickColor=BrickColor.new(1013)game.Workspace.doorright.l62.BrickColor=BrickColor.new(1013)game.Workspace.doorright.l71.BrickColor=BrickColor.new(1013)game.Workspace.doorright.l12.BrickColor=BrickColor.new(1023)game.Workspace.doorright.l21.BrickColor=BrickColor.new(1023)game.Workspace.doorright.l33.BrickColor=BrickColor.new(1023)game.Workspace.doorright.l42.BrickColor=BrickColor.new(1023)game.Workspace.doorright.l51.BrickColor=BrickColor.new(1023)game.Workspace.doorright.l63.BrickColor=BrickColor.new(1023)game.Workspace.doorright.l72.BrickColor=BrickColor.new(1023)game.Workspace.doorright.l13.BrickColor=BrickColor.new(106)game.Workspace.doorright.l22.BrickColor=BrickColor.new(106)game.Workspace.doorright.l31.BrickColor=BrickColor.new(106)game.Workspace.doorright.l43.BrickColor=BrickColor.new(106)game.Workspace.doorright.l52.BrickColor=BrickColor.new(106)game.Workspace.doorright.l61.BrickColor=BrickColor.new(106)game.Workspace.doorright.l73.BrickColor=BrickColor.new(106)game.Workspace.doorright.pillar.BrickColor=BrickColor.new(game.Workspace.Lighting.cyan.Value)game.Workspace.Lighting.flashcurrent.Value="\049\049"
--------RIGHT DOOR -------- game.Workspace.doorright.l11.BrickColor = BrickColor.new(1013) game.Workspace.doorright.l23.BrickColor = BrickColor.new(1013) game.Workspace.doorright.l32.BrickColor = BrickColor.new(1013) game.Workspace.doorright.l41.BrickColor = BrickColor.new(1013) game.Workspace.doorright.l53.BrickColor = BrickColor.new(1013) game.Workspace.doorright.l62.BrickColor = BrickColor.new(1013) game.Workspace.doorright.l71.BrickColor = BrickColor.new(1013) game.Workspace.doorright.l12.BrickColor = BrickColor.new(1023) game.Workspace.doorright.l21.BrickColor = BrickColor.new(1023) game.Workspace.doorright.l33.BrickColor = BrickColor.new(1023) game.Workspace.doorright.l42.BrickColor = BrickColor.new(1023) game.Workspace.doorright.l51.BrickColor = BrickColor.new(1023) game.Workspace.doorright.l63.BrickColor = BrickColor.new(1023) game.Workspace.doorright.l72.BrickColor = BrickColor.new(1023) game.Workspace.doorright.l13.BrickColor = BrickColor.new(106) game.Workspace.doorright.l22.BrickColor = BrickColor.new(106) game.Workspace.doorright.l31.BrickColor = BrickColor.new(106) game.Workspace.doorright.l43.BrickColor = BrickColor.new(106) game.Workspace.doorright.l52.BrickColor = BrickColor.new(106) game.Workspace.doorright.l61.BrickColor = BrickColor.new(106) game.Workspace.doorright.l73.BrickColor = BrickColor.new(106) game.Workspace.doorright.pillar.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.Lighting.flashcurrent.Value = "11"
function CheckIfPointIsInSquare(N,p,f)return p.X<=N.X and(N.X<=f.X and(p.Y<=N.Y and N.Y<=f.Y))end local N=false local p=false local f=0 local z=0 local D=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")local y=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")local H=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")function DoBackgroundFadeIn(p)z=tick()N=false D:Fire()ChatWindow:FadeInBackground(p or ChatSettings.ChatDefaultFadeDuration)local f=ChatWindow:GetCurrentChannel()if f then local N=MessageLogDisplay.Scroller N.ScrollingEnabled=true N.ScrollBarThickness=moduleMessageLogDisplay.ScrollBarThickness end end function DoBackgroundFadeOut(p)z=tick()N=true D:Fire()ChatWindow:FadeOutBackground(p or ChatSettings.ChatDefaultFadeDuration)local f=ChatWindow:GetCurrentChannel()if f then local N=MessageLogDisplay.Scroller N.ScrollingEnabled=false N.ScrollBarThickness=0 end end function DoTextFadeIn(N)f=tick()p=false D:Fire()ChatWindow:FadeInText((N or ChatSettings.ChatDefaultFadeDuration)*0)end function DoTextFadeOut(N)f=tick()p=true D:Fire()ChatWindow:FadeOutText(N or ChatSettings.ChatDefaultFadeDuration)end function DoFadeInFromNewInformation()DoTextFadeIn()if ChatSettings.ChatShouldFadeInFromNewInformation then DoBackgroundFadeIn()end end function InstantFadeIn()DoBackgroundFadeIn(0)DoTextFadeIn(0)end function InstantFadeOut()DoBackgroundFadeOut(0)DoTextFadeOut(0)end local d=nil function UpdateFadingForMouseState(N)d=N y:Fire()if ChatBar:IsFocused()then return end if N then DoBackgroundFadeIn()DoTextFadeIn()else DoBackgroundFadeIn()end end spawn(function()while true do RunService.RenderStepped:wait()while d or ChatBar:IsFocused()do if d then y.Event:wait()end if ChatBar:IsFocused()then H.Event:wait()end end if not N then local N=tick()-z if N>ChatSettings.ChatWindowBackgroundFadeOutTime then DoBackgroundFadeOut()end elseif not p then local N=tick()-f if N>ChatSettings.ChatWindowTextFadeOutTime then DoTextFadeOut()end else D.Event:wait()end end end)function getClassicChatEnabled()if ChatSettings.ClassicChatEnabled~=nil then return ChatSettings.ClassicChatEnabled end return Players.ClassicChat end function getBubbleChatEnabled()if ChatSettings.BubbleChatEnabled~=nil then return ChatSettings.BubbleChatEnabled end return Players.BubbleChat end function bubbleChatOnly()return not getClassicChatEnabled()and getBubbleChatEnabled()end function UpdateMousePosition(N)if not(moduleApiTable.Visible and(moduleApiTable.IsCoreGuiEnabled and(moduleApiTable.TopbarEnabled or ChatSettings.ChatOnWithTopBarOff)))then return end if bubbleChatOnly()then return end local p=ChatWindow.GuiObject.AbsolutePosition local f=ChatWindow.GuiObject.AbsoluteSize local z=CheckIfPointIsInSquare(N,p,p+f)if z~=d then UpdateFadingForMouseState(z)end end UserInputService.InputChanged:connect(function(N)if N.UserInputType==Enum.UserInputType.MouseMovement then local p=Vector2.new(N.Position.X,N.Position.Y)UpdateMousePosition(p)end end)UserInputService.TouchTap:connect(function(N,p)UpdateMousePosition(N[1])end)UserInputService.TouchMoved:connect(function(N,p)local f=Vector2.new(N.Position.X,N.Position.Y)UpdateMousePosition(f)end)UserInputService.Changed:connect(function(N)if N=="\077\111\117\115\101\066\101\104\097\118\105\111\114"then if UserInputService.MouseBehavior==Enum.MouseBehavior.LockCenter then local N=ChatWindow.GuiObject.AbsolutePosition local p=ChatWindow.GuiObject.AbsoluteSize local f=GuiParent.AbsoluteSize local z=CheckIfPointIsInSquare(f/2,N,N+p)if z then UserInputService.MouseBehavior=Enum.MouseBehavior.Default end end end end)
--//////////////////////////////////////////////////////////////////////////////////////////// --////////////////////////////////////////////////////////////// Code to do chat window fading --//////////////////////////////////////////////////////////////////////////////////////////// function CheckIfPointIsInSquare(checkPos, topLeft, bottomRight) return ( topLeft.X <= checkPos.X and checkPos.X <= bottomRight.X and topLeft.Y <= checkPos.Y and checkPos.Y <= bottomRight.Y ) end local backgroundIsFaded = false local textIsFaded = false local lastTextFadeTime = 0 local lastBackgroundFadeTime = 0 local fadedChanged = Instance.new("BindableEvent") local mouseStateChanged = Instance.new("BindableEvent") local chatBarFocusChanged = Instance.new("BindableEvent") function DoBackgroundFadeIn(setFadingTime) lastBackgroundFadeTime = tick() backgroundIsFaded = false fadedChanged:Fire() ChatWindow:FadeInBackground((setFadingTime or ChatSettings.ChatDefaultFadeDuration)) local currentChannelObject = ChatWindow:GetCurrentChannel() if currentChannelObject then local Scroller = MessageLogDisplay.Scroller Scroller.ScrollingEnabled = true Scroller.ScrollBarThickness = moduleMessageLogDisplay.ScrollBarThickness end end function DoBackgroundFadeOut(setFadingTime) lastBackgroundFadeTime = tick() backgroundIsFaded = true fadedChanged:Fire() ChatWindow:FadeOutBackground((setFadingTime or ChatSettings.ChatDefaultFadeDuration)) local currentChannelObject = ChatWindow:GetCurrentChannel() if currentChannelObject then local Scroller = MessageLogDisplay.Scroller Scroller.ScrollingEnabled = false Scroller.ScrollBarThickness = 0 end end function DoTextFadeIn(setFadingTime) lastTextFadeTime = tick() textIsFaded = false fadedChanged:Fire() ChatWindow:FadeInText((setFadingTime or ChatSettings.ChatDefaultFadeDuration) * 0) end function DoTextFadeOut(setFadingTime) lastTextFadeTime = tick() textIsFaded = true fadedChanged:Fire() ChatWindow:FadeOutText((setFadingTime or ChatSettings.ChatDefaultFadeDuration)) end function DoFadeInFromNewInformation() DoTextFadeIn() if ChatSettings.ChatShouldFadeInFromNewInformation then DoBackgroundFadeIn() end end function InstantFadeIn() DoBackgroundFadeIn(0) DoTextFadeIn(0) end function InstantFadeOut() DoBackgroundFadeOut(0) DoTextFadeOut(0) end local mouseIsInWindow = nil function UpdateFadingForMouseState(mouseState) mouseIsInWindow = mouseState mouseStateChanged:Fire() if ChatBar:IsFocused() then return end if mouseState then DoBackgroundFadeIn() DoTextFadeIn() else DoBackgroundFadeIn() end end spawn(function() while true do RunService.RenderStepped:wait() while mouseIsInWindow or ChatBar:IsFocused() do if mouseIsInWindow then mouseStateChanged.Event:wait() end if ChatBar:IsFocused() then chatBarFocusChanged.Event:wait() end end if not backgroundIsFaded then local timeDiff = tick() - lastBackgroundFadeTime if timeDiff > ChatSettings.ChatWindowBackgroundFadeOutTime then DoBackgroundFadeOut() end elseif not textIsFaded then local timeDiff = tick() - lastTextFadeTime if timeDiff > ChatSettings.ChatWindowTextFadeOutTime then DoTextFadeOut() end else fadedChanged.Event:wait() end end end) function getClassicChatEnabled() if ChatSettings.ClassicChatEnabled ~= nil then return ChatSettings.ClassicChatEnabled end return Players.ClassicChat end function getBubbleChatEnabled() if ChatSettings.BubbleChatEnabled ~= nil then return ChatSettings.BubbleChatEnabled end return Players.BubbleChat end function bubbleChatOnly() return not getClassicChatEnabled() and getBubbleChatEnabled() end function UpdateMousePosition(mousePos) if not ( moduleApiTable.Visible and moduleApiTable.IsCoreGuiEnabled and (moduleApiTable.TopbarEnabled or ChatSettings.ChatOnWithTopBarOff) ) then return end if bubbleChatOnly() then return end local windowPos = ChatWindow.GuiObject.AbsolutePosition local windowSize = ChatWindow.GuiObject.AbsoluteSize local newMouseState = CheckIfPointIsInSquare(mousePos, windowPos, windowPos + windowSize) if newMouseState ~= mouseIsInWindow then UpdateFadingForMouseState(newMouseState) end end UserInputService.InputChanged:connect(function(inputObject) if inputObject.UserInputType == Enum.UserInputType.MouseMovement then local mousePos = Vector2.new(inputObject.Position.X, inputObject.Position.Y) UpdateMousePosition(mousePos) end end) UserInputService.TouchTap:connect(function(tapPos, gameProcessedEvent) UpdateMousePosition(tapPos[1]) end) UserInputService.TouchMoved:connect(function(inputObject, gameProcessedEvent) local tapPos = Vector2.new(inputObject.Position.X, inputObject.Position.Y) UpdateMousePosition(tapPos) end) UserInputService.Changed:connect(function(prop) if prop == "MouseBehavior" then if UserInputService.MouseBehavior == Enum.MouseBehavior.LockCenter then local windowPos = ChatWindow.GuiObject.AbsolutePosition local windowSize = ChatWindow.GuiObject.AbsoluteSize local screenSize = GuiParent.AbsoluteSize local centerScreenIsInWindow = CheckIfPointIsInSquare(screenSize / 2, windowPos, windowPos + windowSize) if centerScreenIsInWindow then UserInputService.MouseBehavior = Enum.MouseBehavior.Default end end end end)
local N=math.atan2 local p=math.floor local f=math.pi
--[[ lua Function Cache ]] -- local ATAN2 = math.atan2 local FLOOR = math.floor local PI = math.pi
return function(N,p)local f=(require(game.ReplicatedStorage.Source.Modules.Util)):GetPlayerData(N)f.Money.Gold.Value=f.Money.Gold.Value-12 f.Character.Injuries.BrokenLeg.Value=false end
--edit the below function to execute code when this response is chosen OR this prompt is shown --player is the player speaking to the dialogue, and dialogueFolder is the object containing the dialogue data return function(player, dialogueFolder) local plrData = require(game.ReplicatedStorage.Source.Modules.Util):GetPlayerData(player) plrData.Money.Gold.Value = plrData.Money.Gold.Value - 12 plrData.Character.Injuries.BrokenLeg.Value = false end
local N=_Tune.Controls local p=Instance.new("\070\111\108\100\101\114",script.Parent)p.Name="\067\111\110\116\114\111\108\115"for f,z in pairs(N)do local D=Instance.new("\083\116\114\105\110\103\086\097\108\117\101",p)D.Name=f D.Value=z.Name D.Changed:connect(function()if f=="\077\111\117\115\101\084\104\114\111\116\116\108\101"or f=="\077\111\117\115\101\066\114\097\107\101"then if D.Value=="\077\111\117\115\101\066\117\116\116\111\110\049"or D.Value=="\077\111\117\115\101\066\117\116\116\111\110\050"then N[f]=Enum.UserInputType[D.Value]else N[f]=Enum.KeyCode[D.Value]end else N[f]=Enum.KeyCode[D.Value]end end)end local f=_Tune.Peripherals for N,z in pairs(f)do local D=Instance.new("\073\110\116\086\097\108\117\101",p)D.Name=N D.Value=z D.Changed:connect(function()D.Value=math.min(100,math.max(0,D.Value))f[N]=D.Value end)end function DealWithInput(p,f)if UserInputService:GetFocusedTextBox()==nil and not _InControls then if _IsOn and((p.KeyCode==N.ContlrShiftDown or _MSteer and p.KeyCode==N.MouseShiftDown or not _MSteer and p.KeyCode==N.ShiftDown)and((_TMode=="\083\101\109\105"or _TMode=="\077\097\110\117\097\108"and not _ClutchOn)and p.UserInputState==Enum.UserInputState.Begin))then if _CGear==0 and(_TMode=="\065\117\116\111"or not _ClPressing)then _ClutchOn=true end _CGear=math.max(_CGear-1,-1)elseif _IsOn and((p.KeyCode==N.ContlrShiftUp or _MSteer and p.KeyCode==N.MouseShiftUp or not _MSteer and p.KeyCode==N.ShiftUp)and((_TMode=="\083\101\109\105"or _TMode=="\077\097\110\117\097\108"and not _ClutchOn)and p.UserInputState==Enum.UserInputState.Begin))then if _CGear==0 and(_TMode=="\065\117\116\111"or not _ClPressing)then _ClutchOn=true end _CGear=math.min(_CGear+1,#_Tune.Ratios-2)elseif _IsOn and((p.KeyCode==N.ContlrClutch or _MSteer and p.KeyCode==N.MouseClutch or not _MSteer and p.KeyCode==N.Clutch)and _TMode=="\077\097\110\117\097\108")then if p.UserInputState==Enum.UserInputState.Begin then _ClutchOn=false _ClPressing=true elseif p.UserInputState==Enum.UserInputState.End then _ClutchOn=true _ClPressing=false end elseif _IsOn and p.KeyCode==N.ContlrPBrake or _MSteer and p.KeyCode==N.MousePBrake or not _MSteer and p.KeyCode==N.PBrake then if p.UserInputState==Enum.UserInputState.Begin then _PBrake=not _PBrake elseif p.UserInputState==Enum.UserInputState.End then if car.DriveSeat.Velocity.Magnitude>5 then _PBrake=false end end elseif(p.KeyCode==N.ContlrToggleTMode or p.KeyCode==N.ToggleTransMode)and p.UserInputState==Enum.UserInputState.Begin then local N=1 for p,f in pairs(_Tune.TransModes)do if f==_TMode then N=p break end end N=N+1 if N>#_Tune.TransModes then N=1 end _TMode=_Tune.TransModes[N]elseif _IsOn and(not _MSteer and(p.KeyCode==N.Throttle or p.KeyCode==N.Throttle2))or((N.MouseThrottle==Enum.UserInputType.MouseButton1 or N.MouseThrottle==Enum.UserInputType.MouseButton2)and p.UserInputType==N.MouseThrottle or p.KeyCode==N.MouseThrottle)and _MSteer then if p.UserInputState==Enum.UserInputState.Begin then _GThrot=1 else _GThrot=_Tune.IdleThrottle/100 end elseif not _MSteer and(p.KeyCode==N.Brake or p.KeyCode==N.Brake2)or((N.MouseBrake==Enum.UserInputType.MouseButton1 or N.MouseBrake==Enum.UserInputType.MouseButton2)and p.UserInputType==N.MouseBrake or p.KeyCode==N.MouseBrake)and _MSteer then if p.UserInputState==Enum.UserInputState.Begin then print(FBrakeForce+RBrakeForce.." \066\114\097\107\101")_GBrake=1 else _GBrake=0 end elseif not _MSteer and(p.KeyCode==N.SteerLeft or p.KeyCode==N.SteerLeft2)then if p.UserInputState==Enum.UserInputState.Begin then _GSteerT=-1 _SteerL=true else if _SteerR then _GSteerT=1 else _GSteerT=0 end _SteerL=false end elseif not _MSteer and(p.KeyCode==N.SteerRight or p.KeyCode==N.SteerRight2)then if p.UserInputState==Enum.UserInputState.Begin then _GSteerT=1 _SteerR=true else if _SteerL then _GSteerT=-1 else _GSteerT=0 end _SteerR=false end elseif p.KeyCode==N.ToggleMouseDrive then if p.UserInputState==Enum.UserInputState.End then _MSteer=not _MSteer _GThrot=_Tune.IdleThrottle/100 _GBrake=0 _GSteerT=0 _ClutchOn=true end elseif _Tune.TCSEnabled and(_IsOn and p.KeyCode==N.ToggleTCS)or p.KeyCode==N.ContlrToggleTCS then if p.UserInputState==Enum.UserInputState.End then if script.Parent.DriveMode.Value~="\083\112\111\114\116\080\108\117\115"then _TCS=not _TCS end end elseif _Tune.ABSEnabled and(_IsOn and p.KeyCode==N.ToggleABS)or p.KeyCode==N.ContlrToggleABS then if p.UserInputState==Enum.UserInputState.End then _ABS=not _ABS end end if p.UserInputType.Name:find("\071\097\109\101\112\097\100")then if p.KeyCode==N.ContlrSteer then if p.Position.X>=0 then local N=math.min(.99,_Tune.Peripherals.ControlRDZone/100)if math.abs(p.Position.X)>N then _GSteerT=(p.Position.X-N)/(1-N)else _GSteerT=0 end else local N=math.min(.99,_Tune.Peripherals.ControlLDZone/100)if math.abs(p.Position.X)>N then _GSteerT=(p.Position.X+N)/(1-N)else _GSteerT=0 end end elseif _IsOn and p.KeyCode==N.ContlrThrottle then _GThrot=math.max(_Tune.IdleThrottle/100,p.Position.Z)elseif p.KeyCode==N.ContlrBrake then _GBrake=p.Position.Z end end else _GThrot=_Tune.IdleThrottle/100 _GSteerT=0 _GBrake=0 if _CGear~=0 then _ClutchOn=true end end end UserInputService.InputBegan:connect(DealWithInput)UserInputService.InputChanged:connect(DealWithInput)UserInputService.InputEnded:connect(DealWithInput)
--[[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 if a.Value == "MouseButton1" or a.Value == "MouseButton2" then _CTRL[i] = Enum.UserInputType[a.Value] else _CTRL[i] = Enum.KeyCode[a.Value] end else _CTRL[i] = Enum.KeyCode[a.Value] end 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 --Input Handler function DealWithInput(input, IsRobloxFunction) if (UserInputService:GetFocusedTextBox() == nil) and not _InControls then --Ignore when UI Focus --Shift Down [Manual Transmission] if _IsOn and (input.KeyCode == _CTRL["ContlrShiftDown"] or (_MSteer and input.KeyCode == _CTRL["MouseShiftDown"]) or ((not _MSteer) and input.KeyCode == _CTRL["ShiftDown"])) and (_TMode == "Semi" or (_TMode == "Manual" and not _ClutchOn)) and input.UserInputState == Enum.UserInputState.Begin then if _CGear == 0 and (_TMode == "Auto" or not _ClPressing) then _ClutchOn = true end _CGear = math.max(_CGear - 1, -1) --Shift Up [Manual Transmission] elseif _IsOn and (input.KeyCode == _CTRL["ContlrShiftUp"] or (_MSteer and input.KeyCode == _CTRL["MouseShiftUp"]) or ((not _MSteer) and input.KeyCode == _CTRL["ShiftUp"])) and (_TMode == "Semi" or (_TMode == "Manual" and not _ClutchOn)) and input.UserInputState == Enum.UserInputState.Begin then if _CGear == 0 and (_TMode == "Auto" or not _ClPressing) then _ClutchOn = true end _CGear = math.min(_CGear + 1, #_Tune.Ratios - 2) --Toggle Clutch elseif _IsOn and (input.KeyCode == _CTRL["ContlrClutch"] or (_MSteer and input.KeyCode == _CTRL["MouseClutch"]) or ((not _MSteer) and input.KeyCode == _CTRL["Clutch"])) and _TMode == "Manual" then if input.UserInputState == Enum.UserInputState.Begin then _ClutchOn = false _ClPressing = true elseif input.UserInputState == Enum.UserInputState.End then _ClutchOn = true _ClPressing = false end --Toggle PBrake elseif _IsOn and input.KeyCode == _CTRL["ContlrPBrake"] or (_MSteer and input.KeyCode == _CTRL["MousePBrake"]) or ((not _MSteer) and input.KeyCode == _CTRL["PBrake"]) then if input.UserInputState == Enum.UserInputState.Begin then _PBrake = not _PBrake elseif input.UserInputState == Enum.UserInputState.End then if car.DriveSeat.Velocity.Magnitude > 5 then _PBrake = false end end --Toggle Transmission Mode elseif (input.KeyCode == _CTRL["ContlrToggleTMode"] or input.KeyCode == _CTRL["ToggleTransMode"]) and input.UserInputState == Enum.UserInputState.Begin then local n = 1 for i, v in pairs(_Tune.TransModes) do if v == _TMode then n = i break end end n = n + 1 if n > #_Tune.TransModes then n = 1 end _TMode = _Tune.TransModes[n] --Throttle elseif _IsOn and ((not _MSteer) and (input.KeyCode == _CTRL["Throttle"] or input.KeyCode == _CTRL["Throttle2"])) or ( ( ( ( _CTRL["MouseThrottle"] == Enum.UserInputType.MouseButton1 or _CTRL["MouseThrottle"] == Enum.UserInputType.MouseButton2 ) and input.UserInputType == _CTRL["MouseThrottle"] ) or input.KeyCode == _CTRL["MouseThrottle"] ) and _MSteer ) then if input.UserInputState == Enum.UserInputState.Begin then _GThrot = 1 else _GThrot = _Tune.IdleThrottle / 100 end --Brake elseif ((not _MSteer) and (input.KeyCode == _CTRL["Brake"] or input.KeyCode == _CTRL["Brake2"])) or ( ( ( ( _CTRL["MouseBrake"] == Enum.UserInputType.MouseButton1 or _CTRL["MouseBrake"] == Enum.UserInputType.MouseButton2 ) and input.UserInputType == _CTRL["MouseBrake"] ) or input.KeyCode == _CTRL["MouseBrake"] ) and _MSteer ) then if input.UserInputState == Enum.UserInputState.Begin then print(FBrakeForce + RBrakeForce .. " Brake") _GBrake = 1 else _GBrake = 0 end --Steer Left elseif (not _MSteer) and (input.KeyCode == _CTRL["SteerLeft"] or input.KeyCode == _CTRL["SteerLeft2"]) then if input.UserInputState == Enum.UserInputState.Begin then _GSteerT = -1 _SteerL = true else if _SteerR then _GSteerT = 1 else _GSteerT = 0 end _SteerL = false end --Steer Right elseif (not _MSteer) and (input.KeyCode == _CTRL["SteerRight"] or input.KeyCode == _CTRL["SteerRight2"]) then if input.UserInputState == Enum.UserInputState.Begin then _GSteerT = 1 _SteerR = true else if _SteerL then _GSteerT = -1 else _GSteerT = 0 end _SteerR = false end --Toggle Mouse Controls elseif input.KeyCode == _CTRL["ToggleMouseDrive"] then if input.UserInputState == Enum.UserInputState.End then _MSteer = not _MSteer _GThrot = _Tune.IdleThrottle / 100 _GBrake = 0 _GSteerT = 0 _ClutchOn = true end --Toggle TCS elseif _Tune.TCSEnabled and _IsOn and input.KeyCode == _CTRL["ToggleTCS"] or input.KeyCode == _CTRL["ContlrToggleTCS"] then if input.UserInputState == Enum.UserInputState.End then if script.Parent.DriveMode.Value ~= "SportPlus" then _TCS = not _TCS end end --Toggle ABS elseif _Tune.ABSEnabled and _IsOn and input.KeyCode == _CTRL["ToggleABS"] or input.KeyCode == _CTRL["ContlrToggleABS"] then if input.UserInputState == Enum.UserInputState.End then _ABS = not _ABS end end --Variable Controls if input.UserInputType.Name:find("Gamepad") then --Gamepad Steering if input.KeyCode == _CTRL["ContlrSteer"] then if input.Position.X >= 0 then local cDZone = math.min(0.99, _Tune.Peripherals.ControlRDZone / 100) if math.abs(input.Position.X) > cDZone then _GSteerT = (input.Position.X - cDZone) / (1 - cDZone) else _GSteerT = 0 end else local cDZone = math.min(0.99, _Tune.Peripherals.ControlLDZone / 100) if math.abs(input.Position.X) > cDZone then _GSteerT = (input.Position.X + cDZone) / (1 - cDZone) else _GSteerT = 0 end end --Gamepad Throttle elseif _IsOn and input.KeyCode == _CTRL["ContlrThrottle"] then _GThrot = math.max(_Tune.IdleThrottle / 100, input.Position.Z) --Gamepad Brake elseif input.KeyCode == _CTRL["ContlrBrake"] then _GBrake = input.Position.Z end end else _GThrot = _Tune.IdleThrottle / 100 _GSteerT = 0 _GBrake = 0 if _CGear ~= 0 then _ClutchOn = true end end end UserInputService.InputBegan:connect(DealWithInput) UserInputService.InputChanged:connect(DealWithInput) UserInputService.InputEnded:connect(DealWithInput)
function onTouched(N)if N.Parent~=nil then local p=N.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if p~=nil then local N=script.Parent.Enabled.Value if N~=0 then if p==humanoid then return end local N=script.Parent.Parent:findFirstChild(modelname)if N~=nil then local f=p.Parent.Torso local z={N.Position}local D=1 local y=z[D].x local H=z[D].y local d=z[D].z y=y+math.random(-1,1)d=d+math.random(-1,1)H=H+math.random(2,3)local x=f.CFrame local E=0 local k=H local B=0 script.Parent.Enabled.Value=0 N.Enabled.Value=0 f.CFrame=CFrame.new(Vector3.new(y,H,d),Vector3.new(E,k,B))wait(.1)script.Parent.Enabled.Value=1 N.Enabled.Value=1 else print("\067\111\117\108\100 \110\111\116 \102\105\110\100 \116\101\108\101\112\111\114\116\101\114\033")end end end end end script.Parent.Touched:connect(onTouched)
------------------------------------ function onTouched(part) if part.Parent ~= nil then local h = part.Parent:findFirstChild("Humanoid") if h ~= nil then local teleportfrom = script.Parent.Enabled.Value if teleportfrom ~= 0 then if h == humanoid then return end local teleportto = script.Parent.Parent:findFirstChild(modelname) if teleportto ~= nil then local torso = h.Parent.Torso local location = { teleportto.Position } local i = 1 local x = location[i].x local y = location[i].y local z = location[i].z x = x + math.random(-1, 1) z = z + math.random(-1, 1) y = y + math.random(2, 3) local cf = torso.CFrame local lx = 0 local ly = y local lz = 0 script.Parent.Enabled.Value = 0 teleportto.Enabled.Value = 0 torso.CFrame = CFrame.new(Vector3.new(x, y, z), Vector3.new(lx, ly, lz)) wait(0.1) script.Parent.Enabled.Value = 1 teleportto.Enabled.Value = 1 else print("Could not find teleporter!") end end end end end script.Parent.Touched:connect(onTouched)
ToolName="\077\052"ClipSize=1e+66 ReloadTime=6 Firerate=.12 MinSpread=.1 MaxSpread=.1 SpreadRate=9 BaseDamage=22.5 automatic=true burst=false shot=false BarrlePos=Vector3.new(.38,.4,-3.4)Cursors={"\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\053\050\056\049\050\048\050\057"}ReloadCursor="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\053\050\056\049\050\048\051\056"
-------------------------------------Gun info ToolName = "M4" ClipSize = 999999999999999999999999999999999999999999999999999999999999999999 ReloadTime = 6 Firerate = 0.12 MinSpread = 0.1 MaxSpread = 0.1 SpreadRate = 9 BaseDamage = 22.5 automatic = true burst = false shot = false --Semi Automatic BarrlePos = Vector3.new(0.38, 0.4, -3.4) Cursors = { "http://www.roblox.com/asset/?id=52812029" } ReloadCursor = "http://www.roblox.com/asset/?id=52812038"
return{Calendar="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\049\053\048\052\053\050\056\055";Caret="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\049\053\048\052\053\052\057\054";ChevronLeft="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\056\050\048\055\050\052\056\050";Close="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\049\053\048\052\053\054\049\053",Clothing="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\049\053\048\052\053\055\054\054";EmptyShop="\114\098\120\097\115\115\101\116\105\100\058\047\047\057\050\052\054\052\052\057\053\055\053",Eye="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\049\053\048\052\053\057\052\051",Filter="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\056\049\054\050\054\057\049\053";Gamepad={ButtonA="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\049\050\056\050";ButtonB="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\049\052\050\057",ButtonL1="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\049\053\057\054",ButtonL2="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\049\055\053\051";ButtonR1="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\049\056\054\049";ButtonR2="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\049\057\051\054",ButtonX="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\050\048\051\048";ButtonY="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\050\049\053\048";DPadDown="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\050\050\054\054",DPadLeft="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\050\051\055\050";DPadRight="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\050\052\056\048";DPadUp="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\055\049\050\054\057\050\053\054\051"},Info="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\049\053\048\052\054\048\056\057";KeyBacking="\114\098\120\097\115\115\101\116\105\100\058\047\047\057\049\056\054\048\051\054\055\049\055";RadioButtonInner="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\055\049\055\049\048\053\053\056";RadioButtonOuter="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\055\049\055\049\048\055\050\052",Robux="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\049\053\048\052\054\050\053\052";Rotation="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\049\053\048\052\054\052\052\048";ShoppingCart="\114\098\120\097\115\115\101\116\105\100\058\047\047\057\049\051\051\056\054\050\050\051\049",Sparkle="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\049\053\048\052\054\055\050\049";Timer="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\057\049\053\048\052\054\056\056\057"}
-- This file was @generated by Tarmac. It is not intended for manual editing. return { Calendar = "rbxassetid://8915045287", Caret = "rbxassetid://8915045496", ChevronLeft = "rbxassetid://8982072482", Close = "rbxassetid://8915045615", Clothing = "rbxassetid://8915045766", EmptyShop = "rbxassetid://9246449575", Eye = "rbxassetid://8915045943", Filter = "rbxassetid://8981626915", Gamepad = { ButtonA = "rbxassetid://8712691282", ButtonB = "rbxassetid://8712691429", ButtonL1 = "rbxassetid://8712691596", ButtonL2 = "rbxassetid://8712691753", ButtonR1 = "rbxassetid://8712691861", ButtonR2 = "rbxassetid://8712691936", ButtonX = "rbxassetid://8712692030", ButtonY = "rbxassetid://8712692150", DPadDown = "rbxassetid://8712692266", DPadLeft = "rbxassetid://8712692372", DPadRight = "rbxassetid://8712692480", DPadUp = "rbxassetid://8712692563", }, Info = "rbxassetid://8915046089", KeyBacking = "rbxassetid://9186036717", RadioButtonInner = "rbxassetid://8971710558", RadioButtonOuter = "rbxassetid://8971710724", Robux = "rbxassetid://8915046254", Rotation = "rbxassetid://8915046440", ShoppingCart = "rbxassetid://9133862231", Sparkle = "rbxassetid://8915046721", Timer = "rbxassetid://8915046889", }
local function N(N)return N.ClassName end local function p(p,f)local z={}z.__index=z z.__tostring=N z.ClassName=p function z.new(...)local N=setmetatable({},z)if N.__init then N:__init(...)end return N end if f then z.Super=f setmetatable(z,f)for N,p in pairs(INHERITED)do if p then z[N]=f[N]end end end return z end
-- Functions local function __tostring(self) return self.ClassName end local function createClass(className, superClass) local class = {} class.__index = class class.__tostring = __tostring class.ClassName = className function class.new(...) local self = setmetatable({}, class) if self.__init then self:__init(...) end return self end if superClass then class.Super = superClass setmetatable(class, superClass) for methodName, shouldInherit in pairs(INHERITED) do if shouldInherit then class[methodName] = superClass[methodName] end end end return class end
Tool=script.Parent Handle=Tool:WaitForChild("\072\097\110\100\108\101")Players=game:GetService("\080\108\097\121\101\114\115")Debris=game:GetService("\068\101\098\114\105\115")BulletSpeed=Handle.BulletSpeed.Value DisappearTime=Handle.BulletDisappearTime.Value ReloadTime=Handle.ReloadTime.Value BulletColor=Handle.BulletColor.Value NozzleOffset=Vector3.new(0,.4,-1.1)Sounds={Fire=Handle:WaitForChild("\070\105\114\101");Reload=Handle:WaitForChild("\082\101\108\111\097\100");HitFade=Handle:WaitForChild("\072\105\116\070\097\100\101")}PointLight=Handle:WaitForChild("\080\111\105\110\116\076\105\103\104\116")ServerControl=Tool:FindFirstChild("\083\101\114\118\101\114\067\111\110\116\114\111\108")or Instance.new("\082\101\109\111\116\101\070\117\110\099\116\105\111\110")ServerControl.Name="\083\101\114\118\101\114\067\111\110\116\114\111\108"ServerControl.Parent=Tool ClientControl=Tool:FindFirstChild("\067\108\105\101\110\116\067\111\110\116\114\111\108")or Instance.new("\082\101\109\111\116\101\070\117\110\099\116\105\111\110")ClientControl.Name="\067\108\105\101\110\116\067\111\110\116\114\111\108"ClientControl.Parent=Tool ServerControl.OnServerInvoke=function(N,p,f,z)if N~=Player or Humanoid.Health==0 or not Tool.Enabled then return end if p=="\067\108\105\099\107"and f then Activated(z)end end function InvokeClient(N,p)pcall(function()ClientControl:InvokeClient(Player,N,p)end)end function TagHumanoid(N,p)local f=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")f.Name="\099\114\101\097\116\111\114"f.Value=p Debris:AddItem(f,2)f.Parent=N end function UntagHumanoid(N)for N,p in pairs(N:GetChildren())do if p:IsA("\079\098\106\101\099\116\086\097\108\117\101")and p.Name=="\099\114\101\097\116\111\114"then p:Destroy()end end end function FindCharacterAncestor(N)if N and N~=game:GetService("\087\111\114\107\115\112\097\099\101")then local p=N:FindFirstChild("\072\117\109\097\110\111\105\100")if p then return N,p else return FindCharacterAncestor(N.Parent)end end return nil end function GetTransparentsRecursive(N,p)local f=p or{}for N,p in pairs(N:GetChildren())do local z=false pcall(function()local N=p.Transparency if N then z=true end end)if z then table.insert(f,p)end GetTransparentsRecursive(p,f)end return f end function SelectionBoxify(N)local p=Instance.new("\083\101\108\101\099\116\105\111\110\066\111\120")p.Adornee=N p.Color3=BulletColor p.Parent=N return p end local function N(N)local p=PointLight:Clone()p.Range=p.Range+2 p.Parent=N end function FadeOutObjects(N,p)repeat local f=nil for N,z in pairs(N)do z.Transparency=z.Transparency+p f=z end wait()until f.Transparency>=1 or not f end function Dematerialize(p,f,z)if not p or not f then return end f.WalkSpeed=0 local D={}for N,p in pairs(p:GetChildren())do if p:IsA("\066\097\115\101\080\097\114\116")then p.Anchored=true table.insert(D,p)end end local y={}local H=SelectionBoxify(z)N(z)wait(.05)for p,f in pairs(D)do if f~=z then table.insert(y,SelectionBoxify(f))N(f)end end local d=GetTransparentsRecursive(p)FadeOutObjects(d,.1)wait(.5)p:BreakJoints()f.Health=0 Debris:AddItem(p,2)local x=.05 Delay(.2,function()FadeOutObjects({H},x)if p and p.Parent then p:Destroy()end end)FadeOutObjects(y,x)end function Touched(N,p)if not p or not p.Parent then return end local f,z=FindCharacterAncestor(p)if f and(z and f~=Character)then p:BreakJoints()local D=false for N,p in pairs(f:GetChildren())do if p:IsA("\070\111\114\099\101\070\105\101\108\100")then D=true end end if not D then if N then local p=N:FindFirstChild(Sounds.HitFade.Name)local f=z.Torso if p and f then p.Parent=f p:Play()end end end if N and N.Parent then N:Destroy()end end end function Equipped()Character=Tool.Parent Player=Players:GetPlayerFromCharacter(Character)Humanoid=Character:FindFirstChild("\072\117\109\097\110\111\105\100")if not Player or not Humanoid or Humanoid.Health==0 then return end end function Activated(N)if Tool.Enabled and Humanoid.Health>0 then Tool.Enabled=false InvokeClient("\080\108\097\121\083\111\117\110\100",Sounds.Fire)local p=Handle.CFrame local f=p.p+p:vectorToWorldSpace(NozzleOffset)local z=CFrame.new(f,N)local D=BaseShot:Clone()D.CFrame=z+z.lookVector*(BaseShot.Size.Z/2)local y=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121")y.velocity=z.lookVector*BulletSpeed y.Parent=D D.Touched:connect(function(N)if not N or not N.Parent then return end Touched(D,N)end)Debris:AddItem(D,DisappearTime)D.Parent=game:GetService("\087\111\114\107\115\112\097\099\101")wait(.6)InvokeClient("\080\108\097\121\083\111\117\110\100",Sounds.Reload)wait(ReloadTime)Tool.Enabled=true end end function Unequipped() end BaseShot=Instance.new("\080\097\114\116")BaseShot.Name="\069\102\102\101\099\116"BaseShot.Color=BulletColor BaseShot.Material=Enum.Material.Plastic BaseShot.Shape=Enum.PartType.Block BaseShot.TopSurface=Enum.SurfaceType.Smooth BaseShot.BottomSurface=Enum.SurfaceType.Smooth BaseShot.FormFactor=Enum.FormFactor.Custom BaseShot.Size=Vector3.new(.1,.1,2)BaseShot.CanCollide=false BaseShot.Locked=true SelectionBoxify(BaseShot)N(BaseShot)BaseShotSound=Sounds.HitFade:Clone()BaseShotSound.Parent=BaseShot Tool.Equipped:connect(Equipped)Tool.Unequipped:connect(Unequipped)
--Rescripted by Luckymaxer Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Debris = game:GetService("Debris") BulletSpeed = Handle.BulletSpeed.Value DisappearTime = Handle.BulletDisappearTime.Value ReloadTime = Handle.ReloadTime.Value BulletColor = Handle.BulletColor.Value NozzleOffset = Vector3.new(0, 0.4, -1.1) Sounds = { Fire = Handle:WaitForChild("Fire"), Reload = Handle:WaitForChild("Reload"), HitFade = Handle:WaitForChild("HitFade"), } PointLight = Handle:WaitForChild("PointLight") ServerControl = (Tool:FindFirstChild("ServerControl") or Instance.new("RemoteFunction")) ServerControl.Name = "ServerControl" ServerControl.Parent = Tool ClientControl = (Tool:FindFirstChild("ClientControl") or Instance.new("RemoteFunction")) ClientControl.Name = "ClientControl" ClientControl.Parent = Tool ServerControl.OnServerInvoke = function(player, Mode, Value, arg) if player ~= Player or Humanoid.Health == 0 or not Tool.Enabled then return end if Mode == "Click" and Value then Activated(arg) end end function InvokeClient(Mode, Value) pcall(function() ClientControl:InvokeClient(Player, Mode, Value) end) end function TagHumanoid(humanoid, player) local Creator_Tag = Instance.new("ObjectValue") Creator_Tag.Name = "creator" Creator_Tag.Value = player Debris:AddItem(Creator_Tag, 2) Creator_Tag.Parent = humanoid end function UntagHumanoid(humanoid) for i, v in pairs(humanoid:GetChildren()) do if v:IsA("ObjectValue") and v.Name == "creator" then v:Destroy() end end end function FindCharacterAncestor(Parent) if Parent and Parent ~= game:GetService("Workspace") then local humanoid = Parent:FindFirstChild("Humanoid") if humanoid then return Parent, humanoid else return FindCharacterAncestor(Parent.Parent) end end return nil end function GetTransparentsRecursive(Parent, PartsTable) local PartsTable = (PartsTable or {}) for i, v in pairs(Parent:GetChildren()) do local TransparencyExists = false pcall(function() local Transparency = v["Transparency"] if Transparency then TransparencyExists = true end end) if TransparencyExists then table.insert(PartsTable, v) end GetTransparentsRecursive(v, PartsTable) end return PartsTable end function SelectionBoxify(Object) local SelectionBox = Instance.new("SelectionBox") SelectionBox.Adornee = Object SelectionBox.Color3 = BulletColor SelectionBox.Parent = Object return SelectionBox end local function Light(Object) local Light = PointLight:Clone() Light.Range = (Light.Range + 2) Light.Parent = Object end function FadeOutObjects(Objects, FadeIncrement) repeat local LastObject = nil for i, v in pairs(Objects) do v.Transparency = (v.Transparency + FadeIncrement) LastObject = v end wait() until LastObject.Transparency >= 1 or not LastObject end function Dematerialize(character, humanoid, FirstPart) if not character or not humanoid then return end humanoid.WalkSpeed = 0 local Parts = {} for i, v in pairs(character:GetChildren()) do if v:IsA("BasePart") then v.Anchored = true table.insert(Parts, v) end end local SelectionBoxes = {} local FirstSelectionBox = SelectionBoxify(FirstPart) Light(FirstPart) wait(0.05) for i, v in pairs(Parts) do if v ~= FirstPart then table.insert(SelectionBoxes, SelectionBoxify(v)) Light(v) end end local ObjectsWithTransparency = GetTransparentsRecursive(character) FadeOutObjects(ObjectsWithTransparency, 0.1) wait(0.5) character:BreakJoints() humanoid.Health = 0 Debris:AddItem(character, 2) local FadeIncrement = 0.05 Delay(0.2, function() FadeOutObjects({ FirstSelectionBox }, FadeIncrement) if character and character.Parent then character:Destroy() end end) FadeOutObjects(SelectionBoxes, FadeIncrement) end function Touched(Projectile, Hit) if not Hit or not Hit.Parent then return end local character, humanoid = FindCharacterAncestor(Hit) if character and humanoid and character ~= Character then Hit:BreakJoints() local ForceFieldExists = false for i, v in pairs(character:GetChildren()) do if v:IsA("ForceField") then ForceFieldExists = true end end if not ForceFieldExists then if Projectile then local HitFadeSound = Projectile:FindFirstChild(Sounds.HitFade.Name) local torso = humanoid.Torso if HitFadeSound and torso then HitFadeSound.Parent = torso HitFadeSound:Play() end end end if Projectile and Projectile.Parent then Projectile:Destroy() end end end function Equipped() Character = Tool.Parent Player = Players:GetPlayerFromCharacter(Character) Humanoid = Character:FindFirstChild("Humanoid") if not Player or not Humanoid or Humanoid.Health == 0 then return end end function Activated(target) if Tool.Enabled and Humanoid.Health > 0 then Tool.Enabled = false InvokeClient("PlaySound", Sounds.Fire) local HandleCFrame = Handle.CFrame local FiringPoint = HandleCFrame.p + HandleCFrame:vectorToWorldSpace(NozzleOffset) local ShotCFrame = CFrame.new(FiringPoint, target) local LaserShotClone = BaseShot:Clone() LaserShotClone.CFrame = ShotCFrame + (ShotCFrame.lookVector * (BaseShot.Size.Z / 2)) local BodyVelocity = Instance.new("BodyVelocity") BodyVelocity.velocity = ShotCFrame.lookVector * BulletSpeed BodyVelocity.Parent = LaserShotClone LaserShotClone.Touched:connect(function(Hit) if not Hit or not Hit.Parent then return end Touched(LaserShotClone, Hit) end) Debris:AddItem(LaserShotClone, DisappearTime) LaserShotClone.Parent = game:GetService("Workspace") wait(0.6) -- FireSound length InvokeClient("PlaySound", Sounds.Reload) wait(ReloadTime) -- ReloadSound length Tool.Enabled = true end end function Unequipped() end BaseShot = Instance.new("Part") BaseShot.Name = "Effect" BaseShot.Color = BulletColor BaseShot.Material = Enum.Material.Plastic BaseShot.Shape = Enum.PartType.Block BaseShot.TopSurface = Enum.SurfaceType.Smooth BaseShot.BottomSurface = Enum.SurfaceType.Smooth BaseShot.FormFactor = Enum.FormFactor.Custom BaseShot.Size = Vector3.new(0.1, 0.1, 2) BaseShot.CanCollide = false BaseShot.Locked = true SelectionBoxify(BaseShot) Light(BaseShot) BaseShotSound = Sounds.HitFade:Clone() BaseShotSound.Parent = BaseShot Tool.Equipped:connect(Equipped) Tool.Unequipped:connect(Unequipped)
function Trove.Connect(f,N,p)return f:Add(N:Connect(p))end
--[=[ @param signal RBXScriptSignal @param fn (...: any) -> () @return RBXScriptConnection Connects the function to the signal, adds the connection to the trove, and then returns the connection. This is shorthand for `trove:Add(signal:Connect(fn))`. ```lua trove:Connect(workspace.ChildAdded, function(instance) print(instance.Name .. " added to workspace") end) ``` ]=] function Trove:Connect(signal, fn) return self:Add(signal:Connect(fn)) end
Tune.FCamber=1 Tune.RCamber=1 Tune.FCaster=0 Tune.RCaster=0 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.FCaster = 0 Tune.RCaster = 0 Tune.FToe = 0 Tune.RToe = 0
local N=""local p=nil local f=nil local z=nil function toolKeyFrameReachedFunc(p)if p=="\069\110\100"then playToolAnimation(N,.0,Humanoid)end end function playToolAnimation(D,y,H,d)local x=rollAnimation(D)local E=animTable[D][x].anim if f~=E then if p~=nil then p:Stop()p:Destroy()y=0 end p=H:LoadAnimation(E)if d then p.Priority=d end p:Play(y)N=D f=E z=p.KeyframeReached:connect(toolKeyFrameReachedFunc)end end function stopToolAnimations()local D=N if z~=nil then z:disconnect()end N=""f=nil if p~=nil then p:Stop()p:Destroy()p=nil end return D end
------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- local toolAnimName = "" local toolAnimTrack = nil local toolAnimInstance = nil local currentToolAnimKeyframeHandler = nil function toolKeyFrameReachedFunc(frameName) if frameName == "End" then playToolAnimation(toolAnimName, 0.0, Humanoid) end end function playToolAnimation(animName, transitionTime, humanoid, priority) local idx = rollAnimation(animName) local anim = animTable[animName][idx].anim if toolAnimInstance ~= anim then if toolAnimTrack ~= nil then toolAnimTrack:Stop() toolAnimTrack:Destroy() transitionTime = 0 end -- load it to the humanoid; get AnimationTrack toolAnimTrack = humanoid:LoadAnimation(anim) if priority then toolAnimTrack.Priority = priority end -- play the animation toolAnimTrack:Play(transitionTime) toolAnimName = animName toolAnimInstance = anim currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc) end end function stopToolAnimations() local oldAnim = toolAnimName if currentToolAnimKeyframeHandler ~= nil then currentToolAnimKeyframeHandler:disconnect() end toolAnimName = "" toolAnimInstance = nil if toolAnimTrack ~= nil then toolAnimTrack:Stop() toolAnimTrack:Destroy() toolAnimTrack = nil end return oldAnim end
local N=.014285714285714 local p=.5
-- Gradually regenerates the Kars' Health over time. local REGEN_RATE = 1 / 70 -- Regenerate this fraction of MaxHealth per second. local REGEN_STEP = 0.5 -- Wait this long between each regeneration step.
local function N(p)if p and p~=game.Workspace then local f=p:FindFirstChild("\072\117\109\097\110\111\105\100")if f then return p,f else return N(p.Parent)end end return nil end
-- Returns the ancestor that contains a Humanoid, if it exists local function FindCharacterAncestor(subject) if subject and subject ~= game.Workspace then local humanoid = subject:FindFirstChild("Humanoid") if humanoid then return subject, humanoid else return FindCharacterAncestor(subject.Parent) end end return nil end
local function N(N,p,f)local z z=function(N,p)if p then for N,f in ipairs(N:GetChildren())do local D=f:Clone()if f:IsA("\070\111\108\100\101\114")then local N=p:FindFirstChild(f.Name)if not N then D.Parent=p else z(f,N)end else D.Parent=p end end else warn("\077\105\115\115\105\110\103 \112\097\114\101\110\116 \116\111 \117\110\112\097\099\107 \105\110\116\111 \102\111\114 "..tostring(N))end end z(N,p)end local function p()warn("\066\101\103\105\110\110\105\110\103 \065\100\111\110\105\115 \099\108\101\097\110\117\112 \038 \115\104\117\116\100\111\119\110 \112\114\111\099\101\115\115\046\046\046")server.Model.Name="\065\100\111\110\105\115\095\076\111\097\100\101\114"server.Model.Parent=service.ServerScriptService server.Running=false pcall(service.Threads.StopAll)pcall(function()for N,p in pairs(RbxEvents)do print("\068\105\115\099\111\110\110\101\099\116\105\110\103 \101\118\101\110\116")p:Disconnect()table.remove(RbxEvents,N)end end)if server.Core and server.Core.RemoteEvent then pcall(server.Core.DisconnectEvent)end warn("\085\110\108\111\097\100\105\110\103 \099\111\109\112\108\101\116\101")end server={Running=true;Modules={};Pcall=Pcall;cPcall=cPcall,Routine=Routine;LogError=logError,ErrorLogs=ErrorLogs,ServerStartTime=os.time();CommandCache={}}locals={server=server;CodeName="",Settings=server.Settings,HookedEvents=HookedEvents;ErrorLogs=ErrorLogs;logError=logError,origEnv=origEnv;Routine=Routine;Folder=Folder,GetEnv=GetEnv;cPcall=cPcall;Pcall=Pcall}service=(require(Folder.Shared.Service))(function(N,p,f,...)local z={...}if N=="\077\101\116\104\111\100\069\114\114\111\114"then if server and(server.Logs and server.Logs.AddLog)then server.Logs.AddLog("\083\099\114\105\112\116",{Text="\067\097\099\104\101\100 \109\101\116\104\111\100 \100\111\101\115\110\'\116 \109\097\116\099\104 \102\111\117\110\100 \109\101\116\104\111\100\058 "..tostring(z[1]);Desc="\077\101\116\104\111\100\058 "..tostring(z[1])})end elseif N=="\083\101\114\118\101\114\069\114\114\111\114"then logError("\083\101\114\118\101\114",p)elseif N=="\084\097\115\107\069\114\114\111\114"then logError("\084\097\115\107",p)end end,function(N,p,f)if not isModule(N)and(N~=server.Loader and(N~=server.Dropper and(N~=server.Runner and(N~=server.Model and(N~=script and(N~=Folder and p==nil))))))then f.UnHook()end end,ServiceSpecific,GetEnv(nil,{server=server}))
--// WIP local function LoadPackage(package, folder, runNow) --// runNow - Run immediately after unpacking (default behavior is to just unpack (((only needed if loading after startup)))) --// runNow currently not used (limitations) so all packages must be present at server startup local unpack unpack = function(curFolder, unpackInto) if unpackInto then for i, obj in ipairs(curFolder:GetChildren()) do local clone = obj:Clone() if obj:IsA("Folder") then local realFolder = unpackInto:FindFirstChild(obj.Name) if not realFolder then clone.Parent = unpackInto else unpack(obj, realFolder) end else clone.Parent = unpackInto end end else warn("Missing parent to unpack into for " .. tostring(curFolder)) end end unpack(package, folder) end local function CleanUp() --local env = getfenv(2) --local ran,ret = pcall(function() return env.script:GetFullName() end) warn("Beginning Adonis cleanup & shutdown process...") --warn("CleanUp called from "..tostring((ran and ret) or "Unknown")) --local loader = server.Core.ClientLoader server.Model.Name = "Adonis_Loader" server.Model.Parent = service.ServerScriptService server.Running = false pcall(service.Threads.StopAll) pcall(function() for i, v in pairs(RbxEvents) do print("Disconnecting event") v:Disconnect() table.remove(RbxEvents, i) end end) --loader.Archivable = false --loader.Disabled = true --loader:Destroy() if server.Core and server.Core.RemoteEvent then pcall(server.Core.DisconnectEvent) end --[[delay(0, function() for i,v in next,server do server[i] = nil; --// Try to break it to prevent any potential hanging issues; Not very graceful... end --end)--]] warn("Unloading complete") end server = { Running = true, Modules = {}, Pcall = Pcall, cPcall = cPcall, Routine = Routine, LogError = logError, ErrorLogs = ErrorLogs, ServerStartTime = os.time(), CommandCache = {}, } locals = { server = server, CodeName = "", Settings = server.Settings, HookedEvents = HookedEvents, ErrorLogs = ErrorLogs, logError = logError, origEnv = origEnv, Routine = Routine, Folder = Folder, GetEnv = GetEnv, cPcall = cPcall, Pcall = Pcall, } service = require(Folder.Shared.Service)(function(eType, msg, desc, ...) local extra = { ... } if eType == "MethodError" then if server and server.Logs and server.Logs.AddLog then server.Logs.AddLog("Script", { Text = "Cached method doesn't match found method: " .. tostring(extra[1]), Desc = "Method: " .. tostring(extra[1]), }) end elseif eType == "ServerError" then --print("Server error") logError("Server", msg) elseif eType == "TaskError" then --print("Task error") logError("Task", msg) end end, function(c, parent, tab) if not isModule(c) and c ~= server.Loader and c ~= server.Dropper and c ~= server.Runner and c ~= server.Model and c ~= script and c ~= Folder and parent == nil then tab.UnHook() end end, ServiceSpecific, GetEnv(nil, { server = server }))
local N=game:GetService("\074\111\105\110\116\115\083\101\114\118\105\099\101")local p=workspace:PGSIsEnabled()function MakeWeld(p,f,z,D)if z==nil then z="\087\101\108\100"end local y=Instance.new(z,N)y.Part0=p y.Part1=f y.C0=p.CFrame:inverse()*p.CFrame y.C1=f.CFrame:inverse()*p.CFrame if z=="\077\111\116\111\114"and D~=nil then y.MaxVelocity=D end return y end function ModelWeld(N,p)if N:IsA("\066\097\115\101\080\097\114\116")then MakeWeld(p,N,"\087\101\108\100")elseif N:IsA("\077\111\100\101\108")then for N,f in pairs(N:GetChildren())do ModelWeld(f,p)end end end function UnAnchor(N)if N:IsA("\066\097\115\101\080\097\114\116")then N.Anchored=false end for N,p in ipairs(N:GetChildren())do UnAnchor(p)end end
--[[Weld functions]] local JS = game:GetService("JointsService") local PGS_ON = workspace:PGSIsEnabled() function MakeWeld(x, y, type, s) if type == nil then type = "Weld" end local W = Instance.new(type, JS) W.Part0 = x W.Part1 = y W.C0 = x.CFrame:inverse() * x.CFrame W.C1 = y.CFrame:inverse() * x.CFrame if type == "Motor" and s ~= nil then W.MaxVelocity = s end return W end function ModelWeld(a, b) if a:IsA("BasePart") then MakeWeld(b, a, "Weld") elseif a:IsA("Model") then for i, v in pairs(a:GetChildren()) do ModelWeld(v, b) end end end function UnAnchor(a) if a:IsA("BasePart") then a.Anchored = false end for _, v in ipairs(a:GetChildren()) do UnAnchor(v) end end
button.MouseButton1Click:Connect(toggleButton)frame.MouseButton1Click:Connect(toggleButton)
-- // Triggers button.MouseButton1Click:Connect(toggleButton) frame.MouseButton1Click:Connect(toggleButton)
function GunObject.Initialize(N)N.Fire=WaitForChild(N.Handle,"\070\105\114\101")N.Ammo=N.Tool:FindFirstChild("\065\109\109\111")if N.Ammo~=nil then N.Ammo.Value=N.ClipSize end N.Clips=N.Tool:FindFirstChild("\067\108\105\112\115")if N.Clips~=nil then N.Clips.Value=N.StartingClips end N.Tool.Equipped:connect(function()N.Tool.Handle.Fire:Stop()N.Tool.Handle.Reload:Stop()end)N.Tool.Unequipped:connect(function()N.Tool.Handle.Fire:Stop()N.Tool.Handle.Reload:Stop()end)N.LaserObj=Instance.new("\080\097\114\116")N.LaserObj.Name="\066\117\108\108\101\116"N.LaserObj.Anchored=true N.LaserObj.CanCollide=false N.LaserObj.Shape="\066\108\111\099\107"N.LaserObj.formFactor="\067\117\115\116\111\109"N.LaserObj.Material=Enum.Material.Plastic N.LaserObj.Locked=true N.LaserObj.TopSurface=0 N.LaserObj.BottomSurface=0 local p=Instance.new("\080\097\114\116")p.Name="\069\102\102\101\099\116"p.Anchored=false p.CanCollide=false p.Shape="\066\108\111\099\107"p.formFactor="\067\117\115\116\111\109"p.Material=Enum.Material.Plastic p.Locked=true p.TopSurface=0 p.BottomSurface=0 N.SparkEffect=p local f=Instance.new("\080\097\114\116")f.Name="\101\102\102\101\099\116"f.FormFactor="\067\117\115\116\111\109"f.Size=Vector3.new(1,.4,.33)f.BrickColor=BrickColor.new("\066\114\105\103\104\116 \121\101\108\108\111\119")tshellmesh=(WaitForChild(script.Parent,"\066\117\108\108\101\116\077\101\115\104")):Clone()tshellmesh.Parent=f N.ShellPart=f N.DownVal.Changed:connect(function()while N.DownVal.Value and(N.check and not N.Reloading)do N.check=false local p=N.Tool.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")local f=game.Players:GetPlayerFromCharacter(N.Tool.Parent)if p~=nil and f~=nil then if p.Health>0 then local p=(N.Tool.Handle.CFrame*N.BarrelPos).p delay(0,function()N:SendBullet(p,N.AimVal.Value,N.Spread,N.SegmentLength,N.Tool.Parent,N.Colors[1],N.GunDamage,N.FadeDelayTime)end)else N.check=true break end else N.check=true break end wait(N.FireRate)N.check=true if not N.Automatic then break end end end)N.ReloadingVal.Changed:connect(function()if N.ReloadingVal.Value then N:Reload()end end)end function GunObject.Reload(N)N.Reloading=true N.ReloadingVal.Value=true if N.Clips~=nil then if N.Clips.Value>0 then N.Clips.Value=Clips.Value-1 else N.Reloading=false N.ReloadingVal.Value=false return end end N.Tool.Handle.Reload:Play()for p=1,N.ClipSize,1 do wait(N.ReloadTime/N.ClipSize)N.Ammo.Value=p end N.Reloading=false N.Tool.Reloading.Value=false end function GunObject.SpawnShell(N)local p=N.ShellPart:Clone()p.CFrame=N.Handle.CFrame p.Parent=workspace game.Debris:AddItem(p,2)end function KnockOffHats(N)for N,p in pairs(N:GetChildren())do if p:IsA("\072\097\116")then p.Parent=game.Workspace end end end function KnockOffTool(N)for N,p in pairs(N:GetChildren())do if p:IsA("\084\111\111\108")then p.Parent=game.Workspace end end end function GunObject.SendBullet(x,N,p,f,z,D,y,H,d)if x.Ammo.Value<=0 then return end x.Ammo.Value=x.Ammo.Value-1 x:SpawnShell()x.Fire.Pitch=math.random()*.5+.75 x.Fire:Play()x.DoFireAni.Value=not x.DoFireAni.Value print(x.Fire.Pitch)local E=x.Range local k=(N-p).magnitude local B=p+Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*(k/100)local n=(B-N).unit local O=math.ceil(E/z)local s=N for p=1,O,1 do local f=N+n*(E*(p/O))local z=(f-s).unit local k=(f-s).magnitude local B,b=CastRay(s,z,k,D,false)DrawBeam(s,b,y,d,x.LaserObj)if B~=nil then local N=B.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if N~=nil then local p=game.Players:GetPlayerFromCharacter(x.Tool.Parent)if p~=nil then local f=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")f.Name="\099\114\101\097\116\111\114"f.Value=p f.Parent=N end if hit.Parent:FindFirstChild("\066\108\111\099\107\083\104\111\116")then(hit.Parent:FindFirstChild("\066\108\111\099\107\083\104\111\116")):Fire(f)delay(0,function()x:HitEffect(b,B,5)end)else if hit.Name=="\072\101\097\100"then KnockOffHats(hit.Parent)elseif hit.Name=="\076\101\102\116 \076\101\103"or hit.Name=="\082\105\103\104\116 \076\101\103"then N.WalkSpeed=N.WalkSpeed/1.5 elseif hit.Name=="\076\101\102\116 \065\114\109"or hit.Name=="\082\105\103\104\116 \065\114\109"then KnockOffTool(hit.Parent)end if GoreOn then delay(0,function()x:HitEffect(b,B,20)end)end if GLib.IsTeammate(GLib.GetPlayerFromPart(script),GLib.GetPlayerFromPart(N))~=true then GLib.TagHumanoid(GLib.GetPlayerFromPart(script),N,1)N:TakeDamage(H)end end else delay(0,function()x:HitEffect(b,B,5)end)end break end s=b wait(Rate)end if x.Ammo.Value<1 then x:Reload()end end function GunObject.MakeSpark(f,N,p)local z=f.SparkEffect:Clone()z.BrickColor=p.BrickColor z.Material=p.Material z.Transparency=p.Transparency z.Reflectance=p.Reflectance z.CFrame=CFrame.new(N)z.Parent=game.Workspace local D=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121")D.maxForce=Vector3.new(99999,99999,99999)D.velocity=Vector3.new((math.random()*15)*SigNum(math.random(-10,10)),(math.random()*15)*SigNum(math.random(-10,10)),(math.random()*15)*SigNum(math.random(-10,10)))D.Parent=z z.Size=Vector3.new(math.abs(D.velocity.x)/30,math.abs(D.velocity.y)/30,math.abs(D.velocity.z)/30)wait()D:Destroy()local y=.5 game.Debris:AddItem(z,y*2)local H=time()while time()-H<y do if z~=nil then z.Transparency=(time()-H)/y end wait()end if z~=nil then z.Parent=nil end end function GunObject.HitEffect(z,N,p,f)for f=0,f,1 do spawn(function()z:MakeSpark(N,p)end)end end
--[[Member functions]] function GunObject:Initialize() self.Fire = WaitForChild(self.Handle, "Fire") self.Ammo = self.Tool:FindFirstChild("Ammo") if self.Ammo ~= nil then self.Ammo.Value = self.ClipSize end self.Clips = self.Tool:FindFirstChild("Clips") if self.Clips ~= nil then self.Clips.Value = self.StartingClips end self.Tool.Equipped:connect(function() self.Tool.Handle.Fire:Stop() self.Tool.Handle.Reload:Stop() end) self.Tool.Unequipped:connect(function() self.Tool.Handle.Fire:Stop() self.Tool.Handle.Reload:Stop() end) self.LaserObj = Instance.new("Part") self.LaserObj.Name = "Bullet" self.LaserObj.Anchored = true self.LaserObj.CanCollide = false self.LaserObj.Shape = "Block" self.LaserObj.formFactor = "Custom" self.LaserObj.Material = Enum.Material.Plastic self.LaserObj.Locked = true self.LaserObj.TopSurface = 0 self.LaserObj.BottomSurface = 0 --local tshellmesh=WaitForChild(script.Parent,'BulletMesh'):Clone() --tshellmesh.Scale=Vector3.new(4,4,4) --tshellmesh.Parent=self.LaserObj local tSparkEffect = Instance.new("Part") tSparkEffect.Name = "Effect" tSparkEffect.Anchored = false tSparkEffect.CanCollide = false tSparkEffect.Shape = "Block" tSparkEffect.formFactor = "Custom" tSparkEffect.Material = Enum.Material.Plastic tSparkEffect.Locked = true tSparkEffect.TopSurface = 0 tSparkEffect.BottomSurface = 0 self.SparkEffect = tSparkEffect local tshell = Instance.new("Part") tshell.Name = "effect" tshell.FormFactor = "Custom" tshell.Size = Vector3.new(1, 0.4, 0.33) tshell.BrickColor = BrickColor.new("Bright yellow") tshellmesh = WaitForChild(script.Parent, "BulletMesh"):Clone() tshellmesh.Parent = tshell self.ShellPart = tshell self.DownVal.Changed:connect(function() while self.DownVal.Value and self.check and not self.Reloading do self.check = false local humanoid = self.Tool.Parent:FindFirstChild("Humanoid") local plr1 = game.Players:GetPlayerFromCharacter(self.Tool.Parent) if humanoid ~= nil and plr1 ~= nil then if humanoid.Health > 0 then local spos1 = (self.Tool.Handle.CFrame * self.BarrelPos).p delay(0, function() self:SendBullet( spos1, self.AimVal.Value, self.Spread, self.SegmentLength, self.Tool.Parent, self.Colors[1], self.GunDamage, self.FadeDelayTime ) end) else self.check = true break end else self.check = true break end wait(self.FireRate) self.check = true if not self.Automatic then break end end end) self.ReloadingVal.Changed:connect(function() if self.ReloadingVal.Value then self:Reload() end end) end function GunObject:Reload() self.Reloading = true self.ReloadingVal.Value = true if self.Clips ~= nil then if self.Clips.Value > 0 then self.Clips.Value = Clips.Value - 1 else self.Reloading = false self.ReloadingVal.Value = false return end end self.Tool.Handle.Reload:Play() for i = 1, self.ClipSize do wait(self.ReloadTime / self.ClipSize) self.Ammo.Value = i end self.Reloading = false self.Tool.Reloading.Value = false end function GunObject:SpawnShell() local tshell = self.ShellPart:Clone() tshell.CFrame = self.Handle.CFrame tshell.Parent = workspace game.Debris:AddItem(tshell, 2) end function KnockOffHats(tchar) for _, i in pairs(tchar:GetChildren()) do if i:IsA("Hat") then i.Parent = game.Workspace end end end function KnockOffTool(tchar) for _, i in pairs(tchar:GetChildren()) do if i:IsA("Tool") then i.Parent = game.Workspace end end end function GunObject:SendBullet(boltstart, targetpos, fuzzyness, SegmentLength, ignore, clr, damage, fadedelay) if self.Ammo.Value <= 0 then return end self.Ammo.Value = self.Ammo.Value - 1 self:SpawnShell() self.Fire.Pitch = (math.random() * 0.5) + 0.75 self.Fire:Play() self.DoFireAni.Value = not self.DoFireAni.Value print(self.Fire.Pitch) local boltdist = self.Range local clickdist = (boltstart - targetpos).magnitude local targetpos = targetpos + (Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5) * (clickdist / 100)) local boltvec = (targetpos - boltstart).unit local totalsegments = math.ceil(boltdist / SegmentLength) local lastpos = boltstart for i = 1, totalsegments do local newpos = (boltstart + (boltvec * (boltdist * (i / totalsegments)))) local segvec = (newpos - lastpos).unit local boltlength = (newpos - lastpos).magnitude local bolthit, endpos = CastRay(lastpos, segvec, boltlength, ignore, false) DrawBeam(lastpos, endpos, clr, fadedelay, self.LaserObj) if bolthit ~= nil then local h = bolthit.Parent:FindFirstChild("Humanoid") if h ~= nil then local plr = game.Players:GetPlayerFromCharacter(self.Tool.Parent) if plr ~= nil then local creator = Instance.new("ObjectValue") creator.Name = "creator" creator.Value = plr creator.Parent = h end if hit.Parent:FindFirstChild("BlockShot") then hit.Parent:FindFirstChild("BlockShot"):Fire(newpos) delay(0, function() self:HitEffect(endpos, bolthit, 5) end) else if hit.Name == "Head" then KnockOffHats(hit.Parent) elseif hit.Name == "Left Leg" or hit.Name == "Right Leg" then h.WalkSpeed = h.WalkSpeed / 1.5 elseif hit.Name == "Left Arm" or hit.Name == "Right Arm" then KnockOffTool(hit.Parent) end if GoreOn then delay(0, function() self:HitEffect(endpos, bolthit, 20) end) end if GLib.IsTeammate(GLib.GetPlayerFromPart(script), GLib.GetPlayerFromPart(h)) ~= true then GLib.TagHumanoid(GLib.GetPlayerFromPart(script), h, 1) h:TakeDamage(damage) end end else delay(0, function() self:HitEffect(endpos, bolthit, 5) end) end break end lastpos = endpos wait(Rate) end if self.Ammo.Value < 1 then self:Reload() end end function GunObject:MakeSpark(pos, part) local effect = self.SparkEffect:Clone() effect.BrickColor = part.BrickColor effect.Material = part.Material effect.Transparency = part.Transparency effect.Reflectance = part.Reflectance effect.CFrame = CFrame.new(pos) effect.Parent = game.Workspace local effectVel = Instance.new("BodyVelocity") effectVel.maxForce = Vector3.new(99999, 99999, 99999) effectVel.velocity = Vector3.new( math.random() * 15 * SigNum(math.random(-10, 10)), math.random() * 15 * SigNum(math.random(-10, 10)), math.random() * 15 * SigNum(math.random(-10, 10)) ) effectVel.Parent = effect effect.Size = Vector3.new( math.abs(effectVel.velocity.x) / 30, math.abs(effectVel.velocity.y) / 30, math.abs(effectVel.velocity.z) / 30 ) wait() effectVel:Destroy() local effecttime = 0.5 game.Debris:AddItem(effect, effecttime * 2) local startTime = time() while time() - startTime < effecttime do if effect ~= nil then effect.Transparency = (time() - startTime) / effecttime end wait() end if effect ~= nil then effect.Parent = nil end end function GunObject:HitEffect(pos, part, numSparks) for i = 0, numSparks, 1 do spawn(function() self:MakeSpark(pos, part) end) end end
function Functional.Filter(N,p)local f={}for z=1,#N,1 do local D=N[z]if p(D,z)then table.insert(f,D)end end return f end
--[[ Create a copy of a list with only values for which `callback` returns true ]] function Functional.Filter(list, callback) local new = {} for key = 1, #list do local value = list[key] if callback(value, key) then table.insert(new, value) end end return new end
local N=game:GetService("\080\108\097\121\101\114\115")local p=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local f=game:GetService("\083\116\097\114\116\101\114\071\117\105")local z=game:GetService("\086\082\083\101\114\118\105\099\101")local D=(UserSettings()):GetService("\085\115\101\114\071\097\109\101\083\101\116\116\105\110\103\115")local y=N.LocalPlayer
--[[ Roblox Services ]] -- local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local StarterGui = game:GetService("StarterGui") local VRService = game:GetService("VRService") local UserGameSettings = UserSettings():GetService("UserGameSettings") local player = Players.LocalPlayer
local function N()return maid.humanoid.Health>0 and maid.humanoid:GetState()~=Enum.HumanoidStateType.Dead end local function p()maid:destroy()end local function f()while N()do if not attacking then local N=getRandomPointInCircle(startPosition,PATROL_RADIUS)maid.humanoid.WalkSpeed=PATROL_WALKSPEED maid.humanoid:MoveTo(N)end wait(random:NextInteger(MIN_REPOSITION_TIME,MAX_REPOSITION_TIME))end end local function z(N)local p=N and(N.Parent and N.Parent:FindFirstChild("\072\117\109\097\110\111\105\100"))if not p then return false end local f=false local z=(maid.humanoidRootPart.Position-N.Position).Magnitude if z<=ATTACK_RADIUS then local D=Ray.new(maid.humanoidRootPart.Position,(N.Parent.HumanoidRootPart.Position-maid.humanoidRootPart.Position).Unit*z)local y=Workspace:FindPartOnRayWithIgnoreList(D,{N.Parent;maid.instance},false,true)if N~=maid.instance and(N:IsDescendantOf(Workspace)and(p.Health>0 and(p:GetState()~=Enum.HumanoidStateType.Dead and(not CollectionService:HasTag(N.Parent,"\090\111\109\098\105\101\070\114\105\101\110\100")and not y))))then f=true end end return f end local function D()if not searchingForTargets and tick()-timeSearchEnded>=SEARCH_DELAY then searchingForTargets=true local N=maid.humanoidRootPart.Position local p=N+Vector3.new(ATTACK_RADIUS,ATTACK_RADIUS,ATTACK_RADIUS)local f=N+Vector3.new(-ATTACK_RADIUS,-ATTACK_RADIUS,-ATTACK_RADIUS)searchRegion=Region3.new(f,p)searchParts=Workspace:FindPartsInRegion3(searchRegion,maid.instance,math.huge)newTarget=nil newTargetDistance=nil searchIndex=1 end if searchingForTargets then local N=0 while searchingForTargets and(searchIndex<=#searchParts and N<MAX_PARTS_PER_HEARTBEAT)do local p=searchParts[searchIndex]if p and z(p)then local N=p.Parent local f=(N.HumanoidRootPart.Position-maid.humanoidRootPart.Position).magnitude if not newTargetDistance or f<newTargetDistance then newTarget=N.HumanoidRootPart newTargetDistance=f end end searchIndex=searchIndex+1 N=N+1 end if searchIndex>=#searchParts then target=newTarget searchingForTargets=false timeSearchEnded=tick()end end end local function y()local N=(maid.humanoidRootPart.Position-target.Position).Unit*ATTACK_RANGE+target.Position maid.humanoid:MoveTo(N)if not movingToAttack then maid.humanoid.WalkSpeed=random:NextInteger(ATTACK_MIN_WALKSPEED,ATTACK_MAX_WALKSPEED)end movingToAttack=true maid.attackAnimation:Stop()end local function H()attacking=true lastAttackTime=tick()local N=maid.humanoid.WalkSpeed maid.humanoid.WalkSpeed=0 maid.attackAnimation:Play()local p=Instance.new("\080\097\114\116")p.Size=HITBOX_SIZE p.Transparency=1 p.CanCollide=true p.Anchored=true p.CFrame=maid.humanoidRootPart.CFrame*CFrame.new(0,-1,-3)p.Parent=Workspace local f=p:GetTouchingParts()p:Destroy()local D={}for N,p in pairs(f)do local f=p:FindFirstAncestorOfClass("\077\111\100\101\108")if z(p)and not D[f]then D[f.Humanoid]=true end end for N in pairs(D)do N:TakeDamage(ATTACK_DAMAGE)end startPosition=maid.instance.PrimaryPart.Position wait(ATTACK_STAND_TIME)maid.humanoid.WalkSpeed=N maid.attackAnimation:Stop()attacking=false end
--[[ Implementation ]] local function isAlive() return maid.humanoid.Health > 0 and maid.humanoid:GetState() ~= Enum.HumanoidStateType.Dead end local function destroy() maid:destroy() end local function patrol() while isAlive() do if not attacking then local position = getRandomPointInCircle(startPosition, PATROL_RADIUS) maid.humanoid.WalkSpeed = PATROL_WALKSPEED maid.humanoid:MoveTo(position) end wait(random:NextInteger(MIN_REPOSITION_TIME, MAX_REPOSITION_TIME)) end end local function isInstaceAttackable(targetInstance) local targetHumanoid = targetInstance and targetInstance.Parent and targetInstance.Parent:FindFirstChild("Humanoid") if not targetHumanoid then return false end local isAttackable = false local distance = (maid.humanoidRootPart.Position - targetInstance.Position).Magnitude if distance <= ATTACK_RADIUS then local ray = Ray.new( maid.humanoidRootPart.Position, (targetInstance.Parent.HumanoidRootPart.Position - maid.humanoidRootPart.Position).Unit * distance ) local part = Workspace:FindPartOnRayWithIgnoreList(ray, { targetInstance.Parent, maid.instance, }, false, true) if targetInstance ~= maid.instance and targetInstance:IsDescendantOf(Workspace) and targetHumanoid.Health > 0 and targetHumanoid:GetState() ~= Enum.HumanoidStateType.Dead and not CollectionService:HasTag(targetInstance.Parent, "ZombieFriend") and not part then isAttackable = true end end return isAttackable end local function findTargets() -- Do a new search region if we are not already searching through an existing search region if not searchingForTargets and tick() - timeSearchEnded >= SEARCH_DELAY then searchingForTargets = true -- Create a new region local centerPosition = maid.humanoidRootPart.Position local topCornerPosition = centerPosition + Vector3.new(ATTACK_RADIUS, ATTACK_RADIUS, ATTACK_RADIUS) local bottomCornerPosition = centerPosition + Vector3.new(-ATTACK_RADIUS, -ATTACK_RADIUS, -ATTACK_RADIUS) searchRegion = Region3.new(bottomCornerPosition, topCornerPosition) searchParts = Workspace:FindPartsInRegion3(searchRegion, maid.instance, math.huge) newTarget = nil newTargetDistance = nil -- Reset to defaults searchIndex = 1 end if searchingForTargets then -- Search through our list of parts and find attackable humanoids local checkedParts = 0 while searchingForTargets and searchIndex <= #searchParts and checkedParts < MAX_PARTS_PER_HEARTBEAT do local currentPart = searchParts[searchIndex] if currentPart and isInstaceAttackable(currentPart) then local character = currentPart.Parent local distance = (character.HumanoidRootPart.Position - maid.humanoidRootPart.Position).magnitude -- Determine if the charater is the closest if not newTargetDistance or distance < newTargetDistance then newTarget = character.HumanoidRootPart newTargetDistance = distance end end searchIndex = searchIndex + 1 checkedParts = checkedParts + 1 end if searchIndex >= #searchParts then target = newTarget searchingForTargets = false timeSearchEnded = tick() end end end local function runToTarget() local targetPosition = (maid.humanoidRootPart.Position - target.Position).Unit * ATTACK_RANGE + target.Position maid.humanoid:MoveTo(targetPosition) if not movingToAttack then maid.humanoid.WalkSpeed = random:NextInteger(ATTACK_MIN_WALKSPEED, ATTACK_MAX_WALKSPEED) end movingToAttack = true -- Stop the attack animation maid.attackAnimation:Stop() end local function attack() attacking = true lastAttackTime = tick() local originalWalkSpeed = maid.humanoid.WalkSpeed maid.humanoid.WalkSpeed = 0 -- Play the attack animation maid.attackAnimation:Play() -- Create a part and use it as a collider, to find humanoids in front of the zombie -- This is not ideal, but it is the simplest way to achieve a hitbox local hitPart = Instance.new("Part") hitPart.Size = HITBOX_SIZE hitPart.Transparency = 1 hitPart.CanCollide = true hitPart.Anchored = true hitPart.CFrame = maid.humanoidRootPart.CFrame * CFrame.new(0, -1, -3) hitPart.Parent = Workspace local hitTouchingParts = hitPart:GetTouchingParts() -- Destroy the hitPart before it results in physics updates on touched parts hitPart:Destroy() -- Find humanoids to damage local attackedHumanoids = {} for _, part in pairs(hitTouchingParts) do local parentModel = part:FindFirstAncestorOfClass("Model") if isInstaceAttackable(part) and not attackedHumanoids[parentModel] then attackedHumanoids[parentModel.Humanoid] = true end end -- Damage the humanoids for humanoid in pairs(attackedHumanoids) do humanoid:TakeDamage(ATTACK_DAMAGE) end startPosition = maid.instance.PrimaryPart.Position wait(ATTACK_STAND_TIME) maid.humanoid.WalkSpeed = originalWalkSpeed maid.attackAnimation:Stop() attacking = false end
function RemoteSignal.Destroy(N)N._re:Destroy()if N._signal then N._signal:Destroy()end end return RemoteSignal
--[=[ Destroys the RemoteSignal object. ]=] function RemoteSignal:Destroy() self._re:Destroy() if self._signal then self._signal:Destroy() end end return RemoteSignal
local N=game.Players.LocalPlayer local p=N.Character local f=p:WaitForChild("\072\117\109\097\110\111\105\100")local z=N.PlayerGui local D=p:WaitForChild("\073\110\102\101\099\116\101\100")while true do wait()if f.Health<=30 and p.Human.Value==true then script.HP.Volume=.6 script.HP.PlaybackSpeed=1.1 elseif f.Health<=45 and p.Human.Value==true then script.HP.Volume=.6 script.HP.PlaybackSpeed=1 elseif f.Health>=45 and p.Human.Value==true then script.HP.Volume=0 script.HP.PlaybackSpeed=1 elseif p.Human.Value==false then script.HP.Volume=0 workspace.CurrentCamera.FieldOfView=70 z.Hurt:Destroy()script.HP.PlaybackSpeed=1 script:Destroy()end end
-- Decompiled with the Synapse X Luau decompiler. local l__LocalPlayer__1 = game.Players.LocalPlayer local l__Character__2 = l__LocalPlayer__1.Character local l__Humanoid__3 = l__Character__2:WaitForChild("Humanoid") local l__PlayerGui__4 = l__LocalPlayer__1.PlayerGui local l__Infected__5 = l__Character__2:WaitForChild("Infected") while true do wait() if l__Humanoid__3.Health <= 30 and l__Character__2.Human.Value == true then script.HP.Volume = 0.6 script.HP.PlaybackSpeed = 1.1 elseif l__Humanoid__3.Health <= 45 and l__Character__2.Human.Value == true then script.HP.Volume = 0.6 script.HP.PlaybackSpeed = 1 elseif l__Humanoid__3.Health >= 45 and l__Character__2.Human.Value == true then script.HP.Volume = 0 script.HP.PlaybackSpeed = 1 elseif l__Character__2.Human.Value == false then script.HP.Volume = 0 workspace.CurrentCamera.FieldOfView = 70 l__PlayerGui__4.Hurt:Destroy() script.HP.PlaybackSpeed = 1 script:Destroy() end end
game.Workspace.doorright.l11.BrickColor=BrickColor.new(194)game.Workspace.doorright.l12.BrickColor=BrickColor.new(194)game.Workspace.doorright.l13.BrickColor=BrickColor.new(194)game.Workspace.doorright.l21.BrickColor=BrickColor.new(194)game.Workspace.doorright.l22.BrickColor=BrickColor.new(194)game.Workspace.doorright.l23.BrickColor=BrickColor.new(194)game.Workspace.doorright.l31.BrickColor=BrickColor.new(194)game.Workspace.doorright.l32.BrickColor=BrickColor.new(194)game.Workspace.doorright.l33.BrickColor=BrickColor.new(194)game.Workspace.doorright.l41.BrickColor=BrickColor.new(194)game.Workspace.doorright.l42.BrickColor=BrickColor.new(194)game.Workspace.doorright.l43.BrickColor=BrickColor.new(194)game.Workspace.doorright.l51.BrickColor=BrickColor.new(194)game.Workspace.doorright.l52.BrickColor=BrickColor.new(194)game.Workspace.doorright.l53.BrickColor=BrickColor.new(194)game.Workspace.doorright.l61.BrickColor=BrickColor.new(194)game.Workspace.doorright.l62.BrickColor=BrickColor.new(194)game.Workspace.doorright.l63.BrickColor=BrickColor.new(194)game.Workspace.doorright.l71.BrickColor=BrickColor.new(194)game.Workspace.doorright.l72.BrickColor=BrickColor.new(194)game.Workspace.doorright.l73.BrickColor=BrickColor.new(194)game.Workspace.doorright.pillar.BrickColor=BrickColor.new(194)
--------RIGHT DOOR -------- game.Workspace.doorright.l11.BrickColor = BrickColor.new(194) game.Workspace.doorright.l12.BrickColor = BrickColor.new(194) game.Workspace.doorright.l13.BrickColor = BrickColor.new(194) game.Workspace.doorright.l21.BrickColor = BrickColor.new(194) game.Workspace.doorright.l22.BrickColor = BrickColor.new(194) game.Workspace.doorright.l23.BrickColor = BrickColor.new(194) game.Workspace.doorright.l31.BrickColor = BrickColor.new(194) game.Workspace.doorright.l32.BrickColor = BrickColor.new(194) game.Workspace.doorright.l33.BrickColor = BrickColor.new(194) game.Workspace.doorright.l41.BrickColor = BrickColor.new(194) game.Workspace.doorright.l42.BrickColor = BrickColor.new(194) game.Workspace.doorright.l43.BrickColor = BrickColor.new(194) game.Workspace.doorright.l51.BrickColor = BrickColor.new(194) game.Workspace.doorright.l52.BrickColor = BrickColor.new(194) game.Workspace.doorright.l53.BrickColor = BrickColor.new(194) game.Workspace.doorright.l61.BrickColor = BrickColor.new(194) game.Workspace.doorright.l62.BrickColor = BrickColor.new(194) game.Workspace.doorright.l63.BrickColor = BrickColor.new(194) game.Workspace.doorright.l71.BrickColor = BrickColor.new(194) game.Workspace.doorright.l72.BrickColor = BrickColor.new(194) game.Workspace.doorright.l73.BrickColor = BrickColor.new(194) game.Workspace.doorright.pillar.BrickColor = BrickColor.new(194)
local G={}G.MouseButton1=function(G)if G:GetAttribute("\067\111\111\108\100\111\119\110")==true then return end G:SetAttribute("\067\111\111\108\100\111\119\110",true)local R=G[script.Name]local d=G.Humanoid:LoadAnimation(script["\065\110\105\109\097\116\105\111\110"..AnimationStep])AnimationStep+=1 if AnimationStep>=3 then AnimationStep=1 end d:Play()local q=G.Humanoid.WalkSpeed G.Humanoid.WalkSpeed=0 R.Handle.Swing:Play()task.wait(.47)local E=nil R.Handle.Touched:Connect(function(d)if d.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")and(d.Parent~=G and(not table.find(HitEntities,d.Parent)and d.Parent.Parent==workspace.Enemies))then table.insert(HitEntities,d.Parent)R.Handle.Hit:Play()d.Parent.Humanoid:TakeDamage(35)local q=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121")q.Velocity=G.Torso.CFrame.LookVector*5 q.MaxForce=Vector3.new(math.huge,math.huge,math.huge)q.Parent=d.Parent.HumanoidRootPart game.Debris:AddItem(q,.15)end end)task.wait(.43)d:Stop(.25)G.Humanoid.WalkSpeed=q G:SetAttribute("\067\111\111\108\100\111\119\110",false)table.clear(HitEntities)end return G
--- RUNTIME --- local Tool = {} Tool.MouseButton1 = function(Character) if Character:GetAttribute("Cooldown") == true then return end Character:SetAttribute("Cooldown", true) local Tool = Character[script.Name] local Animation = Character.Humanoid:LoadAnimation(script["Animation" .. AnimationStep]) AnimationStep += 1 if AnimationStep >= 3 then AnimationStep = 1 end Animation:Play() local OGWalkSpeed = Character.Humanoid.WalkSpeed Character.Humanoid.WalkSpeed = 0 Tool.Handle.Swing:Play() task.wait(0.47) local ConnectionA = nil Tool.Handle.Touched:Connect(function(Hit) if Hit.Parent:FindFirstChild("Humanoid") and Hit.Parent ~= Character and not table.find(HitEntities, Hit.Parent) and Hit.Parent.Parent == workspace.Enemies then table.insert(HitEntities, Hit.Parent) Tool.Handle.Hit:Play() Hit.Parent.Humanoid:TakeDamage(35) local boopyve = Instance.new("BodyVelocity") boopyve.Velocity = Character.Torso.CFrame.LookVector * 5 boopyve.MaxForce = Vector3.new(math.huge, math.huge, math.huge) boopyve.Parent = Hit.Parent.HumanoidRootPart game.Debris:AddItem(boopyve, 0.15) end end) task.wait(0.43) Animation:Stop(0.25) Character.Humanoid.WalkSpeed = OGWalkSpeed Character:SetAttribute("Cooldown", false) table.clear(HitEntities) end return Tool
frontstiffness=1290*StiffnessFront frontdamping=(40*StiffnessFront)/1.5 rearstiffness=1290*StiffnessRear reardamping=(40*StiffnessRear)/1.5 minLF=SuspensionTravelF minLR=SuspensionTravelR maxL=(RideHeightRear+RideHeightFront)/2+4 ffl=RideHeightFront+2 rfl=RideHeightRear+2 local G=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",SFL)G.Attachment0=SFL.Attachment G.Attachment1=SSML.Attachment G.Damping=frontdamping G.FreeLength=ffl G.Stiffness=frontstiffness G.Visible=false G.LimitsEnabled=true G.MinLength=minLF G.MaxLength=maxL local R=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",SFR)R.Attachment0=SFR.Attachment R.Attachment1=SSMR.Attachment R.Damping=frontdamping R.FreeLength=ffl R.Stiffness=frontstiffness R.Visible=false R.LimitsEnabled=true R.MinLength=minLF R.MaxLength=maxL local d=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",SRL)d.Attachment0=SRL.Attachment d.Attachment1=BRL.Attachment d.Damping=reardamping d.FreeLength=rfl d.Stiffness=rearstiffness d.Visible=false d.LimitsEnabled=true d.MinLength=minLR d.MaxLength=maxL local q=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",SRR)q.Attachment0=SRR.Attachment q.Attachment1=BRR.Attachment q.Damping=reardamping q.FreeLength=rfl q.Stiffness=rearstiffness q.Visible=false q.LimitsEnabled=true q.MinLength=minLR q.MaxLength=maxL local E=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",SSL)E.Attachment0=SSL.Attachment E.Attachment1=SSML.Attachment E.ActuatorType="\077\111\116\111\114"E.LimitsEnabled=true E.LowerAngle=SteeringAngle*-1 E.UpperAngle=SteeringAngle E.MotorMaxTorque=200000 local A=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",SSR)A.Attachment0=SSR.Attachment A.Attachment1=SSMR.Attachment A.ActuatorType="\077\111\116\111\114"A.LimitsEnabled=true A.LowerAngle=SteeringAngle*-1 A.UpperAngle=SteeringAngle A.MotorMaxTorque=200000 local c=Instance.new("\066\111\100\121\071\121\114\111")c.Parent=xSSL c.Name="\071\121\114\111"c.D=180 c.MaxTorque=Vector3.new(900,0,900)c.P=300 local o=Instance.new("\066\111\100\121\071\121\114\111")o.Parent=xSSR o.Name="\071\121\114\111"o.D=180 o.MaxTorque=Vector3.new(900,0,900)o.P=300 local F=Instance.new("\066\111\100\121\071\121\114\111",script.Parent)F.Name="\070\108\105\112"F.D=1000 F.MaxTorque=Vector3.new(0,0,0)F.P=30000
--Springs-- frontstiffness = 1290 * StiffnessFront frontdamping = 40 * StiffnessFront / 1.5 rearstiffness = 1290 * StiffnessRear reardamping = 40 * StiffnessRear / 1.5 minLF = SuspensionTravelF minLR = SuspensionTravelR maxL = ((RideHeightRear + RideHeightFront) / 2) + 4 ffl = RideHeightFront + 2 rfl = RideHeightRear + 2 local springFL = Instance.new("SpringConstraint", SFL) springFL.Attachment0 = SFL.Attachment springFL.Attachment1 = SSML.Attachment springFL.Damping = frontdamping springFL.FreeLength = ffl springFL.Stiffness = frontstiffness springFL.Visible = false springFL.LimitsEnabled = true springFL.MinLength = minLF springFL.MaxLength = maxL local springFR = Instance.new("SpringConstraint", SFR) springFR.Attachment0 = SFR.Attachment springFR.Attachment1 = SSMR.Attachment springFR.Damping = frontdamping springFR.FreeLength = ffl springFR.Stiffness = frontstiffness springFR.Visible = false springFR.LimitsEnabled = true springFR.MinLength = minLF springFR.MaxLength = maxL local springRL = Instance.new("SpringConstraint", SRL) springRL.Attachment0 = SRL.Attachment springRL.Attachment1 = BRL.Attachment springRL.Damping = reardamping springRL.FreeLength = rfl springRL.Stiffness = rearstiffness springRL.Visible = false springRL.LimitsEnabled = true springRL.MinLength = minLR springRL.MaxLength = maxL local springRR = Instance.new("SpringConstraint", SRR) springRR.Attachment0 = SRR.Attachment springRR.Attachment1 = BRR.Attachment springRR.Damping = reardamping springRR.FreeLength = rfl springRR.Stiffness = rearstiffness springRR.Visible = false springRR.LimitsEnabled = true springRR.MinLength = minLR springRR.MaxLength = maxL local XSteeringL = Instance.new("HingeConstraint", SSL) XSteeringL.Attachment0 = SSL.Attachment XSteeringL.Attachment1 = SSML.Attachment XSteeringL.ActuatorType = "Motor" XSteeringL.LimitsEnabled = true XSteeringL.LowerAngle = SteeringAngle * -1 XSteeringL.UpperAngle = SteeringAngle XSteeringL.MotorMaxTorque = 200000 local XSteeringR = Instance.new("HingeConstraint", SSR) XSteeringR.Attachment0 = SSR.Attachment XSteeringR.Attachment1 = SSMR.Attachment XSteeringR.ActuatorType = "Motor" XSteeringR.LimitsEnabled = true XSteeringR.LowerAngle = SteeringAngle * -1 XSteeringR.UpperAngle = SteeringAngle XSteeringR.MotorMaxTorque = 200000 local BGL = Instance.new("BodyGyro") BGL.Parent = xSSL BGL.Name = "Gyro" BGL.D = 180 BGL.MaxTorque = Vector3.new(900, 0, 900) BGL.P = 300 local BGR = Instance.new("BodyGyro") BGR.Parent = xSSR BGR.Name = "Gyro" BGR.D = 180 BGR.MaxTorque = Vector3.new(900, 0, 900) BGR.P = 300 local flip = Instance.new("BodyGyro", script.Parent) flip.Name = "Flip" flip.D = 1000 flip.MaxTorque = Vector3.new(0, 0, 0) flip.P = 30000
while true do if script.Parent.HotOn.Value==true and(script.Parent.ColdOn.Value==true and(script.Parent.Plugged.Value==true and water.Scale.Y<=.6))then water.Scale=water.Scale+Vector3.new(0,.01,0)water.Offset=Vector3.new(0,water.Scale.Y/2,0)hotWater=hotWater+1 coldWater=coldWater+1 drainSound:Stop()elseif(script.Parent.HotOn.Value==true or script.Parent.ColdOn.Value==true)and(script.Parent.Plugged.Value==true and water.Scale.Y<=.6)then water.Scale=water.Scale+Vector3.new(0,.01,0)water.Offset=Vector3.new(0,water.Scale.Y/2,0)if script.Parent.HotOn.Value==true then hotWater=hotWater+1 else coldWater=coldWater+1 end drainSound:Stop()elseif(script.Parent.HotOn.Value==true or script.Parent.ColdOn.Value==true)and(script.Parent.Plugged.Value==false and water.Scale.Y<=.6)then if script.Parent.HotOn.Value==true then coldWater=coldWater-1 else hotWater=hotWater-1 end drainSound:Stop()elseif(script.Parent.HotOn.Value==false and script.Parent.ColdOn.Value==false)and(script.Parent.Plugged.Value==false and water.Scale.Y>0)then water.Scale=water.Scale+Vector3.new(0,-0.02,0)water.Offset=Vector3.new(0,water.Scale.Y/2,0)coldWater=coldWater-1 hotWater=hotWater-1 drainSound.TimePosition=0 drainSound:Play()end if coldWater<1 then coldWater=1 end if hotWater<1 then hotWater=1 end waterTemp=hotWater/coldWater if waterTemp>1 then water.Parent.SteamEmitter.Enabled=true else water.Parent.SteamEmitter.Enabled=false end wait(.1)if script.Parent.ColdOn.Value==true or script.Parent.HotOn.Value==true then script.Parent.Splash.ParticleEmitter.Enabled=true else script.Parent.Splash.ParticleEmitter.Enabled=false end if water.Scale.Y<=0 then drainSound:Stop()end end
----- water handler ----- while true do if script.Parent.HotOn.Value == true and script.Parent.ColdOn.Value == true and script.Parent.Plugged.Value == true and water.Scale.Y <= 0.6 then -- if BOTH ON and PLUGGED water.Scale = water.Scale + Vector3.new(0, 0.01, 0) water.Offset = Vector3.new(0, water.Scale.Y / 2, 0) hotWater = hotWater + 1 coldWater = coldWater + 1 drainSound:Stop() elseif (script.Parent.HotOn.Value == true or script.Parent.ColdOn.Value == true) and script.Parent.Plugged.Value == true and water.Scale.Y <= 0.6 then -- if ON and PLUGGED water.Scale = water.Scale + Vector3.new(0, 0.01, 0) water.Offset = Vector3.new(0, water.Scale.Y / 2, 0) if script.Parent.HotOn.Value == true then hotWater = hotWater + 1 else coldWater = coldWater + 1 end drainSound:Stop() elseif (script.Parent.HotOn.Value == true or script.Parent.ColdOn.Value == true) and script.Parent.Plugged.Value == false and water.Scale.Y <= 0.6 then -- if ON and NOT PLUGGED if script.Parent.HotOn.Value == true then coldWater = coldWater - 1 else hotWater = hotWater - 1 end drainSound:Stop() elseif (script.Parent.HotOn.Value == false and script.Parent.ColdOn.Value == false) and script.Parent.Plugged.Value == false and water.Scale.Y > 0 then -- if NOT ON and NOT PLUGGED water.Scale = water.Scale + Vector3.new(0, -0.02, 0) water.Offset = Vector3.new(0, water.Scale.Y / 2, 0) coldWater = coldWater - 1 hotWater = hotWater - 1 drainSound.TimePosition = 0 drainSound:Play() end if coldWater < 1 then coldWater = 1 end if hotWater < 1 then hotWater = 1 end waterTemp = hotWater / coldWater if waterTemp > 1 then water.Parent.SteamEmitter.Enabled = true else water.Parent.SteamEmitter.Enabled = false end wait(0.1) if script.Parent.ColdOn.Value == true or script.Parent.HotOn.Value == true then script.Parent.Splash.ParticleEmitter.Enabled = true else script.Parent.Splash.ParticleEmitter.Enabled = false end if water.Scale.Y <= 0 then drainSound:Stop() end end
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")g.DJM.MIX.BrickColor=BrickColor.new("\082\101\097\108\108\121 \098\108\097\099\107")g.DJM.REMIX.BrickColor=BrickColor.new("\082\101\097\108\108\121 \114\101\100")g.DJM.Screen.SurfaceGui.Menu.Visible=true end script.Parent.ClickDetector.MouseClick:connect(onClicked)
------------------------- function onClicked() R.Function1.Disabled = true R.Function2.Disabled = false R.BrickColor = BrickColor.new("Institutional white") g.DJM.MIX.BrickColor = BrickColor.new("Really black") g.DJM.REMIX.BrickColor = BrickColor.new("Really red") g.DJM.Screen.SurfaceGui.Menu.Visible = true end script.Parent.ClickDetector.MouseClick:connect(onClicked)
local G local R local function d(d)path:ComputeAsync(zombie.Position,d)G={}if path.Status==Enum.PathStatus.Success then G=path:GetWaypoints()R=1 human:MoveTo(G[R].Position)else human:MoveTo(zombie.Position)end end local function q(d)if d and(G~=nil and(R~=nil and R<#G))then R=R+1 human:MoveTo(G[R].Position)end end local function E(G)if G>R then d(destination)end end
-- Variables to store waypoints table and zombie's current waypoint local waypoints local currentWaypointIndex local function followPath(destinationObject) -- Compute and check the path path:ComputeAsync(zombie.Position, destinationObject) -- Empty waypoints table after each new path computation waypoints = {} if path.Status == Enum.PathStatus.Success then -- Get the path waypoints and start zombie walking waypoints = path:GetWaypoints() -- Move to first waypoint currentWaypointIndex = 1 human:MoveTo(waypoints[currentWaypointIndex].Position) else -- Error (path not found); stop humanoid human:MoveTo(zombie.Position) end end local function onWaypointReached(reached) if reached and waypoints ~= nil and currentWaypointIndex ~= nil and currentWaypointIndex < #waypoints then currentWaypointIndex = currentWaypointIndex + 1 human:MoveTo(waypoints[currentWaypointIndex].Position) end end local function onPathBlocked(blockedWaypointIndex) -- Check if the obstacle is further down the path if blockedWaypointIndex > currentWaypointIndex then -- Call function to re-compute the path followPath(destination) end end
function StepUtils.bindToSignal(G,R)if typeof(G)~="\082\066\088\083\099\114\105\112\116\083\105\103\110\097\108"then error("\115\105\103\110\097\108 \109\117\115\116 \098\101 \111\102 \116\121\112\101 \082\066\088\083\099\114\105\112\116\083\105\103\110\097\108")end if type(R)~="\102\117\110\099\116\105\111\110"then error(("\117\112\100\097\116\101 \109\117\115\116 \098\101 \111\102 \116\121\112\101 \102\117\110\099\116\105\111\110\044 \103\111\116 \037\113"):format(type(R)))end local d=nil local function q()if d then d:Disconnect()d=nil end end local function E(...)if d and d.Connected then return end if not R(...)then return end if d and d.Connected then return end local E={...}d=G:Connect(function()if not R(unpack(E))then q()end end)end return E,q end
--[=[ Binds an update event to a signal until the update function stops returning a truthy value. @param signal Signal | RBXScriptSignal @param update () -> boolean -- should return true while it needs to update @return (...) -> () -- Connect function @return () -> () -- Disconnect function ]=] function StepUtils.bindToSignal(signal, update) if typeof(signal) ~= "RBXScriptSignal" then error("signal must be of type RBXScriptSignal") end if type(update) ~= "function" then error(("update must be of type function, got %q"):format(type(update))) end local conn = nil local function disconnect() if conn then conn:Disconnect() conn = nil end end local function connect(...) -- Ignore if we have an existing connection if conn and conn.Connected then return end -- Check to see if we even need to bind an update if not update(...) then return end -- Avoid reentrance, if update() triggers another connection, we'll already be connected. if conn and conn.Connected then return end -- Usually contains just the self arg! local args = { ... } -- Bind to render stepped conn = signal:Connect(function() if not update(unpack(args)) then disconnect() end end) end return connect, disconnect end
function t.instanceIsA(G,R)assert(t.string(G))local d if R~=nil then d=t.children(R)end return function(R)local q,E=t.Instance(R)if not q then return false,E or""end if not R:IsA(G)then return false,string.format("\037\115 \101\120\112\101\099\116\101\100\044 \103\111\116 \037\115",G,R.ClassName)end if d then local G,q=d(R)if not G then return false,q end end return true end end
--[[** ensure value is an Instance and it's ClassName matches the given ClassName by an IsA comparison @param className The class name to check for @returns A function that will return true iff the condition is passed **--]] function t.instanceIsA(className, childTable) assert(t.string(className)) local childrenCheck if childTable ~= nil then childrenCheck = t.children(childTable) end return function(value) local instanceSuccess, instanceErrMsg = t.Instance(value) if not instanceSuccess then return false, instanceErrMsg or "" end if not value:IsA(className) then return false, string.format("%s expected, got %s", className, value.ClassName) end if childrenCheck then local childrenSuccess, childrenErrMsg = childrenCheck(value) if not childrenSuccess then return false, childrenErrMsg end end return true end end
R6TorsoTuckIn=.3 R6RightArmTuckIn=.1 R6LeftArmTuckIn=.1
--Tuck in R6TorsoTuckIn = 0.3 R6RightArmTuckIn = 0.1 R6LeftArmTuckIn = 0.1
if key=="\108"and(on==true and(plane:findFirstChild("\076\105\103\104\116\115")~=nil and light==true))then local G=plane.Lights local R=plane.Values.Light if R.Value==false then for R,d in pairs(G:GetChildren())do if d.Name=="\080\111\115\108\105"then d.Gui.Enabled=true elseif d.Name=="\070\108\097\108\105"then(G:findFirstChild("\070\108\097\115\104\083\099\114\105\112\116")).Disabled=false end end R.Value=true elseif R.Value==true then for R,d in pairs(G:GetChildren())do if d.Name=="\080\111\115\108\105"then d.Gui.Enabled=false elseif d.Name=="\070\108\097\108\105"then(G:findFirstChild("\070\108\097\115\104\083\099\114\105\112\116")).Disabled=true d.Gui.Enabled=false end end R.Value=false end end
-------------------LIGHTCONTROLS------------------- if (key == "l") and (on == true) and (plane:findFirstChild("Lights") ~= nil) and (light == true) then local lm = plane.Lights local val = plane.Values.Light if val.Value == false then for i, v in pairs(lm:GetChildren()) do if v.Name == "Posli" then v.Gui.Enabled = true elseif v.Name == "Flali" then lm:findFirstChild("FlashScript").Disabled = false end end val.Value = true elseif val.Value == true then for i, v in pairs(lm:GetChildren()) do if v.Name == "Posli" then v.Gui.Enabled = false elseif v.Name == "Flali" then lm:findFirstChild("FlashScript").Disabled = true v.Gui.Enabled = false end end val.Value = false end end
local G={}function CollisionTool.Equip()ShowUI()BindShortcutKeys()end function CollisionTool.Unequip()HideUI()ClearConnections()end function ClearConnections()for R,d in pairs(G)do d:Disconnect()G[R]=nil end end function ShowUI()if UI then UI.Visible=true UIUpdater=Support.ScheduleRecurringTask(UpdateUI,.1)return end UI=Core.Tool.Interfaces.BTCollisionToolGUI:Clone()UI.Parent=Core.UI UI.Visible=true local G=UI.Status.On.Button local R=UI.Status.Off.Button G.MouseButton1Click:Connect(function()SetProperty("\067\097\110\067\111\108\108\105\100\101",true)end)R.MouseButton1Click:Connect(function()SetProperty("\067\097\110\067\111\108\108\105\100\101",false)end)local d=(UI:WaitForChild("\084\105\116\108\101")):WaitForChild("\083\105\103\110\097\116\117\114\101")ListenForManualWindowTrigger(CollisionTool.ManualText,CollisionTool.Color.Color,d)UIUpdater=Support.ScheduleRecurringTask(UpdateUI,.1)end function UpdateUI()if not UI then return end local G=Support.IdentifyCommonProperty(Selection.Parts,"\067\097\110\067\111\108\108\105\100\101")if G==true then Core.ToggleSwitch("\079\110",UI.Status)elseif G==false then Core.ToggleSwitch("\079\102\102",UI.Status)elseif G==nil then Core.ToggleSwitch(nil,UI.Status)end end function HideUI()if not UI then return end UI.Visible=false UIUpdater:Stop()end function SetProperty(G,R)if R==nil then return end TrackChange()for d,q in pairs(Selection.Parts)do table.insert(HistoryRecord.Before,{Part=q;[G]=q[G]})table.insert(HistoryRecord.After,{Part=q,[G]=R})end RegisterChange()end function BindShortcutKeys()table.insert(G,UserInputService.InputBegan:Connect(function(G,R)if R then return end if G.UserInputType~=Enum.UserInputType.Keyboard then return end if UserInputService:GetFocusedTextBox()then return end if G.KeyCode==Enum.KeyCode.Return or G.KeyCode==Enum.KeyCode.KeypadEnter then ToggleCollision()end end))end function ToggleCollision()SetProperty("\067\097\110\067\111\108\108\105\100\101",not Support.IdentifyCommonProperty(Selection.Parts,"\067\097\110\067\111\108\108\105\100\101"))end function TrackChange()HistoryRecord={Before={},After={},Selection=Selection.Items;Unapply=function(G)Selection.Replace(G.Selection)Core.SyncAPI:Invoke("\083\121\110\099\067\111\108\108\105\115\105\111\110",G.Before)end;Apply=function(G)Selection.Replace(G.Selection)Core.SyncAPI:Invoke("\083\121\110\099\067\111\108\108\105\115\105\111\110",G.After)end}end function RegisterChange()if not HistoryRecord then return end Core.SyncAPI:Invoke("\083\121\110\099\067\111\108\108\105\115\105\111\110",HistoryRecord.After)Core.History.Add(HistoryRecord)HistoryRecord=nil end
-- Container for temporary connections (disconnected automatically) local Connections = {} function CollisionTool.Equip() -- Enables the tool's equipped functionality -- Start up our interface ShowUI() BindShortcutKeys() end function CollisionTool.Unequip() -- Disables the tool's equipped functionality -- Clear unnecessary resources HideUI() ClearConnections() end function ClearConnections() -- Clears out temporary connections for ConnectionKey, Connection in pairs(Connections) do Connection:Disconnect() Connections[ConnectionKey] = nil end end function ShowUI() -- Creates and reveals the UI -- Reveal UI if already created if UI then -- Reveal the UI UI.Visible = true -- Update the UI every 0.1 seconds UIUpdater = Support.ScheduleRecurringTask(UpdateUI, 0.1) -- Skip UI creation return end -- Create the UI UI = Core.Tool.Interfaces.BTCollisionToolGUI:Clone() UI.Parent = Core.UI UI.Visible = true -- References to UI elements local OnButton = UI.Status.On.Button local OffButton = UI.Status.Off.Button -- Enable the collision status switch OnButton.MouseButton1Click:Connect(function() SetProperty("CanCollide", true) end) OffButton.MouseButton1Click:Connect(function() SetProperty("CanCollide", false) end) -- Hook up manual triggering local SignatureButton = UI:WaitForChild("Title"):WaitForChild("Signature") ListenForManualWindowTrigger(CollisionTool.ManualText, CollisionTool.Color.Color, SignatureButton) -- Update the UI every 0.1 seconds UIUpdater = Support.ScheduleRecurringTask(UpdateUI, 0.1) end function UpdateUI() -- Updates information on the UI -- Make sure the UI's on if not UI then return end -- Check the common collision status of selection local Collision = Support.IdentifyCommonProperty(Selection.Parts, "CanCollide") -- Update the collision option switch if Collision == true then Core.ToggleSwitch("On", UI.Status) -- If the selection has collision disabled elseif Collision == false then Core.ToggleSwitch("Off", UI.Status) -- If the collision status varies, don't select a current switch elseif Collision == nil then Core.ToggleSwitch(nil, UI.Status) end end function HideUI() -- Hides the tool UI -- Make sure there's a UI if not UI then return end -- Hide the UI UI.Visible = false -- Stop updating the UI UIUpdater:Stop() end function SetProperty(Property, Value) -- Make sure the given value is valid if Value == nil then return end -- Start a history record TrackChange() -- Go through each part for _, Part in pairs(Selection.Parts) do -- Store the state of the part before modification table.insert(HistoryRecord.Before, { Part = Part, [Property] = Part[Property] }) -- Create the change request for this part table.insert(HistoryRecord.After, { Part = Part, [Property] = Value }) end -- Register the changes RegisterChange() end function BindShortcutKeys() -- Enables useful shortcut keys for this tool -- Track user input while this tool is equipped table.insert( Connections, UserInputService.InputBegan:Connect(function(InputInfo, GameProcessedEvent) -- Make sure this is an intentional event if GameProcessedEvent then return end -- Make sure this input is a key press if InputInfo.UserInputType ~= Enum.UserInputType.Keyboard then return end -- Make sure it wasn't pressed while typing if UserInputService:GetFocusedTextBox() then return end -- Check if the enter key was pressed if InputInfo.KeyCode == Enum.KeyCode.Return or InputInfo.KeyCode == Enum.KeyCode.KeypadEnter then -- Toggle the selection's collision status ToggleCollision() end end) ) end function ToggleCollision() -- Toggles the collision status of the selection -- Change the collision status to the opposite of the common collision status SetProperty("CanCollide", not Support.IdentifyCommonProperty(Selection.Parts, "CanCollide")) end function TrackChange() -- Start the record HistoryRecord = { Before = {}, After = {}, Selection = Selection.Items, Unapply = function(Record) -- Reverts this change -- Select the changed parts Selection.Replace(Record.Selection) -- Send the change request Core.SyncAPI:Invoke("SyncCollision", Record.Before) end, Apply = function(Record) -- Applies this change -- Select the changed parts Selection.Replace(Record.Selection) -- Send the change request Core.SyncAPI:Invoke("SyncCollision", Record.After) end, } end function RegisterChange() -- Finishes creating the history record and registers it -- Make sure there's an in-progress history record if not HistoryRecord then return end -- Send the change to the server Core.SyncAPI:Invoke("SyncCollision", HistoryRecord.After) -- Register the record and clear the staging Core.History.Add(HistoryRecord) HistoryRecord = nil end
Tool=script.Parent Handle=Tool:WaitForChild("\072\097\110\100\108\101")Players=game:GetService("\080\108\097\121\101\114\115")Debris=game:GetService("\068\101\098\114\105\115")RunService=game:GetService("\082\117\110\083\101\114\118\105\099\101")local function G(G)if type(G)~="\115\116\114\105\110\103"then error("\065\114\103\117\109\101\110\116 \111\102 \067\114\101\097\116\101 \109\117\115\116 \098\101 \097 \115\116\114\105\110\103",2)end return function(R)R=R or{}local d=Instance.new(G)local q=nil local E=nil for G,R in pairs(R)do if type(G)=="\115\116\114\105\110\103"then if G=="\080\097\114\101\110\116"then q=R else d[G]=R end elseif type(G)=="\110\117\109\098\101\114"then if type(R)~="\117\115\101\114\100\097\116\097"then error("\066\097\100 \101\110\116\114\121 \105\110 \067\114\101\097\116\101 \098\111\100\121\058 \078\117\109\101\114\105\099 \107\101\121\115 \109\117\115\116 \098\101 \112\097\105\114\101\100 \119\105\116\104 \099\104\105\108\100\114\101\110\044 \103\111\116 \097\058 "..type(R),2)end R.Parent=d elseif type(G)=="\116\097\098\108\101"and G.__eventname then if type(R)~="\102\117\110\099\116\105\111\110"then error("\066\097\100 \101\110\116\114\121 \105\110 \067\114\101\097\116\101 \098\111\100\121\058 \075\101\121 \096\091\067\114\101\097\116\101\046\069\'"..(G.__eventname..("\'\093\096 \109\117\115\116 \104\097\118\101 \097 \102\117\110\099\116\105\111\110 \118\097\108\117\101\n\t\t\t\t\t\t\t\103\111\116\058 "..tostring(R))),2)end d[G.__eventname]:connect(R)elseif G==t.Create then if type(R)~="\102\117\110\099\116\105\111\110"then error("\066\097\100 \101\110\116\114\121 \105\110 \067\114\101\097\116\101 \098\111\100\121\058 \075\101\121 \096\091\067\114\101\097\116\101\093\096 \115\104\111\117\108\100 \098\101 \112\097\105\114\101\100 \119\105\116\104 \097 \099\111\110\115\116\114\117\099\116\111\114 \102\117\110\099\116\105\111\110\044 \n\t\t\t\t\t\t\t\103\111\116\058 "..tostring(R),2)elseif E then error("\066\097\100 \101\110\116\114\121 \105\110 \067\114\101\097\116\101 \098\111\100\121\058 \079\110\108\121 \111\110\101 \099\111\110\115\116\114\117\099\116\111\114 \102\117\110\099\116\105\111\110 \105\115 \097\108\108\111\119\101\100",2)end E=R else error("\066\097\100 \101\110\116\114\121 \040"..(tostring(G)..(" \061\062 "..(tostring(R).."\041 \105\110 \067\114\101\097\116\101 \098\111\100\121"))),2)end end if E then E(d)end if q then d.Parent=q end return d end end
--Made by Luckymaxer Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Debris = game:GetService("Debris") RunService = game:GetService("RunService") local function Create_PrivImpl(objectType) if type(objectType) ~= "string" then error("Argument of Create must be a string", 2) end --return the proxy function that gives us the nice Create'string'{data} syntax --The first function call is a function call using Lua's single-string-argument syntax --The second function call is using Lua's single-table-argument syntax --Both can be chained together for the nice effect. return function(dat) --default to nothing, to handle the no argument given case dat = dat or {} --make the object to mutate local obj = Instance.new(objectType) local parent = nil --stored constructor function to be called after other initialization local ctor = nil for k, v in pairs(dat) do --add property if type(k) == "string" then if k == "Parent" then -- Parent should always be set last, setting the Parent of a new object -- immediately makes performance worse for all subsequent property updates. parent = v else obj[k] = v end --add child elseif type(k) == "number" then if type(v) ~= "userdata" then error("Bad entry in Create body: Numeric keys must be paired with children, got a: " .. type(v), 2) end v.Parent = obj --event connect elseif type(k) == "table" and k.__eventname then if type(v) ~= "function" then error( "Bad entry in Create body: Key `[Create.E'" .. k.__eventname .. "']` must have a function value\ got: " .. tostring(v), 2 ) end obj[k.__eventname]:connect(v) --define constructor function elseif k == t.Create then if type(v) ~= "function" then error("Bad entry in Create body: Key `[Create]` should be paired with a constructor function, \ got: " .. tostring(v), 2) elseif ctor then --ctor already exists, only one allowed error("Bad entry in Create body: Only one constructor function is allowed", 2) end ctor = v else error("Bad entry (" .. tostring(k) .. " => " .. tostring(v) .. ") in Create body", 2) end end --apply constructor function if it exists if ctor then ctor(obj) end if parent then obj.Parent = parent end --return the completed object return obj end end
function t.numberConstrainedExclusive(G,R)assert(t.number(G))assert(t.number(R))local d=t.numberMinExclusive(G)local q=t.numberMaxExclusive(R)return function(G)local R,E=d(G)if not R then return false,E or""end local A,c=q(G)if not A then return false,c 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.numberConstrainedExclusive(min, max) assert(t.number(min)) assert(t.number(max)) local minCheck = t.numberMinExclusive(min) local maxCheck = t.numberMaxExclusive(max) return function(value) local minSuccess, minErrMsg = minCheck(value) if not minSuccess then return false, minErrMsg or "" end local maxSuccess, maxErrMsg = maxCheck(value) if not maxSuccess then return false, maxErrMsg or "" end return true end end
function Promise.prototype._finalize(G)for R,d in ipairs(G._queuedFinally)do(coroutine.wrap(d))(G._status)end G._queuedFinally=nil G._queuedReject=nil G._queuedResolve=nil if not Promise.TEST then G._parent=nil G._consumers=nil end end
--[[ Calls any :finally handlers. We need this to be a separate method and queue because we must call all of the finally callbacks upon a success, failure, *and* cancellation. ]] function Promise.prototype:_finalize() for _, callback in ipairs(self._queuedFinally) do -- Purposefully not passing values to callbacks here, as it could be the -- resolved values, or rejected errors. If the developer needs the values, -- they should use :andThen or :catch explicitly. coroutine.wrap(callback)(self._status) end self._queuedFinally = nil self._queuedReject = nil self._queuedResolve = nil -- Clear references to other Promises to allow gc if not Promise.TEST then self._parent = nil self._consumers = nil end end
DisplayNotification.OnClientEvent:connect(OnDisplayNotification)DisplayVictory.OnClientEvent:connect(OnDisplayVictory)DisplayScore.OnClientEvent:connect(OnScoreChange)ResetMouseIcon.OnClientEvent:connect(OnResetMouseIcon)return NotificationManager
-- Event Bindings DisplayNotification.OnClientEvent:connect(OnDisplayNotification) DisplayVictory.OnClientEvent:connect(OnDisplayVictory) DisplayScore.OnClientEvent:connect(OnScoreChange) ResetMouseIcon.OnClientEvent:connect(OnResetMouseIcon) return NotificationManager
for G=1,#lifts3,1 do if lifts3[G].className=="\080\097\114\116"then lifts3[G].BodyPosition.position=Vector3.new(lifts3[G].BodyPosition.position.x,lifts3[G].BodyPosition.position.y-4,lifts3[G].BodyPosition.position.z)end end wait(.1)for G=1,#parts3,1 do parts3[G].CanCollide=false end wait(.1)
-- Ring3 descending for l = 1, #lifts3 do if lifts3[l].className == "Part" then lifts3[l].BodyPosition.position = Vector3.new( lifts3[l].BodyPosition.position.x, (lifts3[l].BodyPosition.position.y - 4), lifts3[l].BodyPosition.position.z ) end end wait(0.1) for p = 1, #parts3 do parts3[p].CanCollide = false end wait(0.1)
mouse.KeyDown:connect(function(G)if G=="\104"then veh.Lightbar.middle.Manual:Play()veh.Lightbar.middle.Wail.Volume=0 veh.Lightbar.middle.Yelp.Volume=0 veh.Lightbar.middle.Priority.Volume=0 end end)
--// H key, Man mouse.KeyDown:connect(function(key) if key == "h" then veh.Lightbar.middle.Manual:Play() veh.Lightbar.middle.Wail.Volume = 0 veh.Lightbar.middle.Yelp.Volume = 0 veh.Lightbar.middle.Priority.Volume = 0 end end)
Tool=script.Parent Handle=Tool:WaitForChild("\072\097\110\100\108\101")Players=game:GetService("\080\108\097\121\101\114\115")RunService=game:GetService("\082\117\110\083\101\114\118\105\099\101")UserInputService=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")Animations={}LocalObjects={}ServerControl=Tool:WaitForChild("\083\101\114\118\101\114\067\111\110\116\114\111\108")ClientControl=Tool:WaitForChild("\067\108\105\101\110\116\067\111\110\116\114\111\108")InputCheck=Instance.new("\083\099\114\101\101\110\071\117\105")InputCheck.Name="\073\110\112\117\116\067\104\101\099\107"InputButton=Instance.new("\073\109\097\103\101\066\117\116\116\111\110")InputButton.Name="\073\110\112\117\116\066\117\116\116\111\110"InputButton.Image=""InputButton.BackgroundTransparency=1 InputButton.ImageTransparency=1 InputButton.Size=UDim2.new(1,0,1,0)InputButton.Parent=InputCheck Rate=.016666666666667 ToolEquipped=false function SetAnimation(G,R)if G=="\080\108\097\121\065\110\105\109\097\116\105\111\110"and(R and(ToolEquipped and Humanoid))then for G,d in pairs(Animations)do if d.Animation==R.Animation then d.AnimationTrack:Stop()table.remove(Animations,G)end end local G=Humanoid:LoadAnimation(R.Animation)table.insert(Animations,{Animation=R.Animation;AnimationTrack=G})G:Play(R.FadeTime,R.Weight,R.Speed)elseif G=="\083\116\111\112\065\110\105\109\097\116\105\111\110"and R then for G,d in pairs(Animations)do if d.Animation==R.Animation then d.AnimationTrack:Stop(R.FadeTime)table.remove(Animations,G)end end end end function CheckIfAlive()return(Character and(Character.Parent and(Humanoid and(Humanoid.Parent and(Humanoid.Health>0 and(Player and Player.Parent))))))and true or false end function Equipped(G)Character=Tool.Parent Player=Players:GetPlayerFromCharacter(Character)Humanoid=Character:FindFirstChild("\072\117\109\097\110\111\105\100")ToolEquipped=true if not CheckIfAlive()then return end Spawn(function()PlayerMouse=Player:GetMouse()G.Button1Down:connect(function()InvokeServer("\066\117\116\116\111\110\049\067\108\105\099\107",{Down=true})end)G.Button1Up:connect(function()InvokeServer("\066\117\116\116\111\110\049\067\108\105\099\107",{Down=false})end)local R=Player:FindFirstChild("\080\108\097\121\101\114\071\117\105")if R then if UserInputService.TouchEnabled then InputCheckClone=InputCheck:Clone()InputCheckClone.InputButton.InputBegan:connect(function()InvokeServer("\066\117\116\116\111\110\049\067\108\105\099\107",{Down=true})end)InputCheckClone.InputButton.InputEnded:connect(function()InvokeServer("\066\117\116\116\111\110\049\067\108\105\099\107",{Down=false})end)InputCheckClone.Parent=R end end end)end function Unequipped()LocalObjects={}if InputCheckClone and InputCheckClone.Parent then InputCheckClone:Destroy()end for G,R in pairs(Animations)do if R and R.AnimationTrack then R.AnimationTrack:Stop()end end for G,R in pairs({ObjectLocalTransparencyModifier})do if R then R:disconnect()end end Animations={}ToolEquipped=false end function InvokeServer(G,R)pcall(function()local d=ServerControl:InvokeServer(G,R)return d end)end function OnClientInvoke(G,R)if G=="\080\108\097\121\065\110\105\109\097\116\105\111\110"and(R and(ToolEquipped and Humanoid))then SetAnimation("\080\108\097\121\065\110\105\109\097\116\105\111\110",R)elseif G=="\083\116\111\112\065\110\105\109\097\116\105\111\110"and R then SetAnimation("\083\116\111\112\065\110\105\109\097\116\105\111\110",R)elseif G=="\080\108\097\121\083\111\117\110\100"and R then R:Play()elseif G=="\083\116\111\112\083\111\117\110\100"and R then R:Stop()elseif G=="\077\111\117\115\101\080\111\115\105\116\105\111\110"then if not PlayerMouse and CheckIfAlive()then PlayerMouse=Player:GetMouse()end return{Position=PlayerMouse.Hit.p;Target=PlayerMouse.Target}elseif G=="\083\101\116\076\111\099\097\108\084\114\097\110\115\112\097\114\101\110\099\121\077\111\100\105\102\105\101\114"and(R and ToolEquipped)then pcall(function()local G=false for d,q in pairs(LocalObjects)do if q==R then G=true end end if not G then table.insert(LocalObjects,R)if ObjectLocalTransparencyModifier then ObjectLocalTransparencyModifier:disconnect()end ObjectLocalTransparencyModifier=RunService.RenderStepped:connect(function()for G,R in pairs(LocalObjects)do if R.Object and R.Object.Parent then local G=R.Object.LocalTransparencyModifier if not R.AutoUpdate and(G==1 or G==0)or R.AutoUpdate then R.Object.LocalTransparencyModifier=R.Transparency end else table.remove(LocalObjects,G)end end end)end end)end end ClientControl.OnClientInvoke=OnClientInvoke Tool.Equipped:connect(Equipped)Tool.Unequipped:connect(Unequipped)
--Made by Luckymaxer Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") RunService = game:GetService("RunService") UserInputService = game:GetService("UserInputService") Animations = {} LocalObjects = {} ServerControl = Tool:WaitForChild("ServerControl") ClientControl = Tool:WaitForChild("ClientControl") InputCheck = Instance.new("ScreenGui") InputCheck.Name = "InputCheck" InputButton = Instance.new("ImageButton") InputButton.Name = "InputButton" InputButton.Image = "" InputButton.BackgroundTransparency = 1 InputButton.ImageTransparency = 1 InputButton.Size = UDim2.new(1, 0, 1, 0) InputButton.Parent = InputCheck Rate = (1 / 60) ToolEquipped = false function SetAnimation(mode, value) if mode == "PlayAnimation" and value and ToolEquipped and Humanoid then for i, v in pairs(Animations) do if v.Animation == value.Animation then v.AnimationTrack:Stop() table.remove(Animations, i) end end local AnimationTrack = Humanoid:LoadAnimation(value.Animation) table.insert(Animations, { Animation = value.Animation, AnimationTrack = AnimationTrack }) AnimationTrack:Play(value.FadeTime, value.Weight, value.Speed) elseif mode == "StopAnimation" and value then for i, v in pairs(Animations) do if v.Animation == value.Animation then v.AnimationTrack:Stop(value.FadeTime) table.remove(Animations, i) end end end end function CheckIfAlive() return ( ( ( Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Player and Player.Parent ) and true ) or false ) end function Equipped(Mouse) Character = Tool.Parent Player = Players:GetPlayerFromCharacter(Character) Humanoid = Character:FindFirstChild("Humanoid") ToolEquipped = true if not CheckIfAlive() then return end Spawn(function() PlayerMouse = Player:GetMouse() Mouse.Button1Down:connect(function() InvokeServer("Button1Click", { Down = true }) end) Mouse.Button1Up:connect(function() InvokeServer("Button1Click", { Down = false }) end) local PlayerGui = Player:FindFirstChild("PlayerGui") if PlayerGui then if UserInputService.TouchEnabled then InputCheckClone = InputCheck:Clone() InputCheckClone.InputButton.InputBegan:connect(function() InvokeServer("Button1Click", { Down = true }) end) InputCheckClone.InputButton.InputEnded:connect(function() InvokeServer("Button1Click", { Down = false }) end) InputCheckClone.Parent = PlayerGui end end end) end function Unequipped() LocalObjects = {} if InputCheckClone and InputCheckClone.Parent then InputCheckClone:Destroy() end for i, v in pairs(Animations) do if v and v.AnimationTrack then v.AnimationTrack:Stop() end end for i, v in pairs({ ObjectLocalTransparencyModifier }) do if v then v:disconnect() end end Animations = {} ToolEquipped = false end function InvokeServer(mode, value) pcall(function() local ServerReturn = ServerControl:InvokeServer(mode, value) return ServerReturn end) end function OnClientInvoke(mode, value) if mode == "PlayAnimation" and value and ToolEquipped and Humanoid then SetAnimation("PlayAnimation", value) elseif mode == "StopAnimation" and value then SetAnimation("StopAnimation", value) elseif mode == "PlaySound" and value then value:Play() elseif mode == "StopSound" and value then value:Stop() elseif mode == "MousePosition" then if not PlayerMouse and CheckIfAlive() then PlayerMouse = Player:GetMouse() end return { Position = PlayerMouse.Hit.p, Target = PlayerMouse.Target } elseif mode == "SetLocalTransparencyModifier" and value and ToolEquipped then pcall(function() local ObjectFound = false for i, v in pairs(LocalObjects) do if v == value then ObjectFound = true end end if not ObjectFound then table.insert(LocalObjects, value) if ObjectLocalTransparencyModifier then ObjectLocalTransparencyModifier:disconnect() end ObjectLocalTransparencyModifier = RunService.RenderStepped:connect(function() for i, v in pairs(LocalObjects) do if v.Object and v.Object.Parent then local CurrentTransparency = v.Object.LocalTransparencyModifier if (not v.AutoUpdate and (CurrentTransparency == 1 or CurrentTransparency == 0)) or v.AutoUpdate then v.Object.LocalTransparencyModifier = v.Transparency end else table.remove(LocalObjects, i) end end end) end end) end end ClientControl.OnClientInvoke = OnClientInvoke Tool.Equipped:connect(Equipped) Tool.Unequipped:connect(Unequipped)
module.BackGroundColor=Color3.new(0,0,0)module.DefaultMessageColor=Color3.new(1,.666667,0)module.DefaultChatColor=Color3.fromRGB(255,170,0)module.DefaultNameColor=Color3.new(.333333,.666667,.498039)module.ChatBarBackGroundColor=Color3.new(0,0,0)module.ChatBarBoxColor=Color3.new(1,1,1)module.ChatBarTextColor=Color3.new(0,0,0)module.ChannelsTabUnselectedColor=Color3.new(0,0,0)module.ChannelsTabSelectedColor=Color3.new(.11764705882353,.11764705882353,.11764705882353)module.DefaultChannelNameColor=Color3.fromRGB(35,76,142)module.WhisperChannelNameColor=Color3.fromRGB(102,14,102)module.ErrorMessageTextColor=Color3.fromRGB(245,50,50)module.DefaultPrefix=""module.DefaultPrefixColor=Color3.fromRGB(255,255,255)
----[[ Color Settings ]] module.BackGroundColor = Color3.new(0, 0, 0) module.DefaultMessageColor = Color3.new(1, 0.666667, 0) module.DefaultChatColor = Color3.fromRGB(255, 170, 0) module.DefaultNameColor = Color3.new(0.333333, 0.666667, 0.498039) module.ChatBarBackGroundColor = Color3.new(0, 0, 0) module.ChatBarBoxColor = Color3.new(1, 1, 1) module.ChatBarTextColor = Color3.new(0, 0, 0) module.ChannelsTabUnselectedColor = Color3.new(0, 0, 0) module.ChannelsTabSelectedColor = Color3.new(30 / 255, 30 / 255, 30 / 255) module.DefaultChannelNameColor = Color3.fromRGB(35, 76, 142) module.WhisperChannelNameColor = Color3.fromRGB(102, 14, 102) module.ErrorMessageTextColor = Color3.fromRGB(245, 50, 50) module.DefaultPrefix = "" module.DefaultPrefixColor = Color3.fromRGB(255, 255, 255)
local G=true if G then return{ScreenGui={ResetOnSpawn=false;ZIndexBehavior="\083\105\098\108\105\110\103"},BillboardGui={ResetOnSpawn=false,ZIndexBehavior="\083\105\098\108\105\110\103"},SurfaceGui={ResetOnSpawn=false;ZIndexBehavior="\083\105\098\108\105\110\103",SizingMode="\080\105\120\101\108\115\080\101\114\083\116\117\100",PixelsPerStud=50},Frame={BackgroundColor3=Color3.new(1,1,1);BorderColor3=Color3.new(0,0,0);BorderSizePixel=0};ScrollingFrame={BackgroundColor3=Color3.new(1,1,1);BorderColor3=Color3.new(0,0,0),BorderSizePixel=0,ScrollBarImageColor3=Color3.new(0,0,0)};TextLabel={BackgroundColor3=Color3.new(1,1,1),BorderColor3=Color3.new(0,0,0),BorderSizePixel=0,Font="\083\111\117\114\099\101\083\097\110\115";Text="";TextColor3=Color3.new(0,0,0),TextSize=14};TextButton={BackgroundColor3=Color3.new(1,1,1);BorderColor3=Color3.new(0,0,0);BorderSizePixel=0,AutoButtonColor=false;Font="\083\111\117\114\099\101\083\097\110\115";Text="";TextColor3=Color3.new(0,0,0),TextSize=14},TextBox={BackgroundColor3=Color3.new(1,1,1);BorderColor3=Color3.new(0,0,0),BorderSizePixel=0;ClearTextOnFocus=false,Font="\083\111\117\114\099\101\083\097\110\115";Text="";TextColor3=Color3.new(0,0,0);TextSize=14};ImageLabel={BackgroundColor3=Color3.new(1,1,1);BorderColor3=Color3.new(0,0,0);BorderSizePixel=0},ImageButton={BackgroundColor3=Color3.new(1,1,1),BorderColor3=Color3.new(0,0,0);BorderSizePixel=0,AutoButtonColor=false};ViewportFrame={BackgroundColor3=Color3.new(1,1,1);BorderColor3=Color3.new(0,0,0);BorderSizePixel=0},VideoFrame={BackgroundColor3=Color3.new(1,1,1);BorderColor3=Color3.new(0,0,0);BorderSizePixel=0}}else return{}end
--[[ Stores 'sensible default' properties to be applied to instances created by the New function. ]] local ENABLE_SENSIBLE_DEFAULTS = true if ENABLE_SENSIBLE_DEFAULTS then return { ScreenGui = { ResetOnSpawn = false, ZIndexBehavior = "Sibling", }, BillboardGui = { ResetOnSpawn = false, ZIndexBehavior = "Sibling", }, SurfaceGui = { ResetOnSpawn = false, ZIndexBehavior = "Sibling", SizingMode = "PixelsPerStud", PixelsPerStud = 50, }, Frame = { BackgroundColor3 = Color3.new(1, 1, 1), BorderColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0, }, ScrollingFrame = { BackgroundColor3 = Color3.new(1, 1, 1), BorderColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0, ScrollBarImageColor3 = Color3.new(0, 0, 0), }, TextLabel = { BackgroundColor3 = Color3.new(1, 1, 1), BorderColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0, Font = "SourceSans", Text = "", TextColor3 = Color3.new(0, 0, 0), TextSize = 14, }, TextButton = { BackgroundColor3 = Color3.new(1, 1, 1), BorderColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0, AutoButtonColor = false, Font = "SourceSans", Text = "", TextColor3 = Color3.new(0, 0, 0), TextSize = 14, }, TextBox = { BackgroundColor3 = Color3.new(1, 1, 1), BorderColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0, ClearTextOnFocus = false, Font = "SourceSans", Text = "", TextColor3 = Color3.new(0, 0, 0), TextSize = 14, }, ImageLabel = { BackgroundColor3 = Color3.new(1, 1, 1), BorderColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0, }, ImageButton = { BackgroundColor3 = Color3.new(1, 1, 1), BorderColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0, AutoButtonColor = false, }, ViewportFrame = { BackgroundColor3 = Color3.new(1, 1, 1), BorderColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0, }, VideoFrame = { BackgroundColor3 = Color3.new(1, 1, 1), BorderColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0, }, } else return {} end
game.Players.PlayerAdded:connect(function(G)local R=Instance.new("\070\111\108\100\101\114",G)R.Name="\108\101\097\100\101\114\115\116\097\116\115"local d=Instance.new("\073\110\116\086\097\108\117\101",R)d.Name=stat d.Value=ds:GetAsync(G.UserId)or startamount ds:SetAsync(G.UserId,d.Value)d.Changed:connect(function()ds:SetAsync(G.UserId,d.Value)end)end)game.Players.PlayerRemoving:connect(function(G)ds:SetAsync(G.UserId,G.leaderstats.Joins.Value)end)
--Don't worry about the rest of the code, except for line 25. game.Players.PlayerAdded:connect(function(player) local leader = Instance.new("Folder", player) leader.Name = "leaderstats" local Joins = Instance.new("IntValue", leader) Joins.Name = stat Joins.Value = ds:GetAsync(player.UserId) or startamount ds:SetAsync(player.UserId, Joins.Value) Joins.Changed:connect(function() ds:SetAsync(player.UserId, Joins.Value) end) end) game.Players.PlayerRemoving:connect(function(player) ds:SetAsync(player.UserId, player.leaderstats.Joins.Value) --Change "Points" to the name of your leaderstat. end)
function BasicPaneUtils.observePercentVisible(G)assert(BasicPane.isBasicPane(G),"\066\097\100 \066\097\115\105\099\080\097\110\101")return(BasicPaneUtils.observeVisible(G)):Pipe({Rx.map(function(G)return G and 1 or 0 end);Rx.startWith({0})})end
--[=[ Observes percent visibility @param basicPane BasicPane @return Observable<number> ]=] function BasicPaneUtils.observePercentVisible(basicPane) assert(BasicPane.isBasicPane(basicPane), "Bad BasicPane") return BasicPaneUtils.observeVisible(basicPane):Pipe({ Rx.map(function(visible) return visible and 1 or 0 end), Rx.startWith({ 0 }), -- Ensure fade in every time. }) end
Button.Activated:Connect(function()InformationData.Case.Value=CaseData.Case.Value InformationImage.Image=Image.Image InformationVariables.CommunPorcentage.Text=CaseData.CommunPorcentage.Value InformationVariables.UncommunPorcentage.Text=CaseData.UncommunPorcentage.Value InformationVariables.RarePorcentage.Text=CaseData.RarePorcentage.Value InformationVariables.LegendaryPorcentage.Text=CaseData.LegendaryPorcentage.Value end)local function G()Variables.QuantityText.Text=Package.Value if Package.Value==0 then Button.Visible=false else Button.Visible=true end end Package.Changed:Connect(G)G()
----- Script: ----- Button.Activated:Connect(function() ----- Script: ----- InformationData.Case.Value = CaseData.Case.Value InformationImage.Image = Image.Image InformationVariables.CommunPorcentage.Text = CaseData.CommunPorcentage.Value InformationVariables.UncommunPorcentage.Text = CaseData.UncommunPorcentage.Value InformationVariables.RarePorcentage.Text = CaseData.RarePorcentage.Value InformationVariables.LegendaryPorcentage.Text = CaseData.LegendaryPorcentage.Value end) local function UpdateQuantityText() Variables.QuantityText.Text = Package.Value if Package.Value == 0 then Button.Visible = false else Button.Visible = true end end Package.Changed:Connect(UpdateQuantityText) UpdateQuantityText()
game.Workspace.doorleft.l11.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l23.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l32.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l41.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l53.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l62.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l71.BrickColor=BrickColor.new(1013)game.Workspace.doorleft.l12.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l21.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l33.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l42.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l51.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l63.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l72.BrickColor=BrickColor.new(1013)game.Workspace.doorleft.l13.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l22.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l31.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l43.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l52.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l61.BrickColor=BrickColor.new(106)game.Workspace.doorleft.l73.BrickColor=BrickColor.new(1013)game.Workspace.doorleft.pillar.BrickColor=BrickColor.new(game.Workspace.Lighting.cyan.Value)
--------LEFT DOOR -------- game.Workspace.doorleft.l11.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l23.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l32.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l41.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l53.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l62.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l71.BrickColor = BrickColor.new(1013) game.Workspace.doorleft.l12.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l21.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l33.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l42.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l51.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l63.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l72.BrickColor = BrickColor.new(1013) game.Workspace.doorleft.l13.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l22.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l31.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l43.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l52.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l61.BrickColor = BrickColor.new(106) game.Workspace.doorleft.l73.BrickColor = BrickColor.new(1013) game.Workspace.doorleft.pillar.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value)
local G=Support.FlipTable({"\087\101\108\100";"\077\097\110\117\097\108\087\101\108\100";"\077\097\110\117\097\108\071\108\117\101","\077\111\116\111\114","\077\111\116\111\114\054\068"})function SearchJoints(R,d,q)local E={}for R,d in pairs(GetChildren(R))do if G[d.ClassName]and(q[d.Part0]and q[d.Part1])then E[d]=d.Parent end end return E end function RestoreJoints(G)for G,R in pairs(G)do G.Parent=R end end function PreserveJoints(G,R)local d=GetPartJoints(G,R)for G in pairs(d)do G.Parent=nil end return d end function CreatePart(G)local R if G=="\078\111\114\109\097\108"then R=Instance.new("\080\097\114\116")R.Size=Vector3.new(4,1,2)elseif G=="\084\114\117\115\115"then R=Instance.new("\084\114\117\115\115\080\097\114\116")elseif G=="\087\101\100\103\101"then R=Instance.new("\087\101\100\103\101\080\097\114\116")R.Size=Vector3.new(4,1,2)elseif G=="\067\111\114\110\101\114"then R=Instance.new("\067\111\114\110\101\114\087\101\100\103\101\080\097\114\116")elseif G=="\067\121\108\105\110\100\101\114"then R=Instance.new("\080\097\114\116")R.Shape="\067\121\108\105\110\100\101\114"R.Size=Vector3.new(2,2,2)elseif G=="\066\097\108\108"then R=Instance.new("\080\097\114\116")R.Shape="\066\097\108\108"elseif G=="\083\101\097\116"then R=Instance.new("\083\101\097\116")R.Size=Vector3.new(4,1,2)elseif G=="\086\101\104\105\099\108\101 \083\101\097\116"then R=Instance.new("\086\101\104\105\099\108\101\083\101\097\116")R.Size=Vector3.new(4,1,2)elseif G=="\083\112\097\119\110"then R=Instance.new("\083\112\097\119\110\076\111\099\097\116\105\111\110")R.Size=Vector3.new(4,1,2)end R.TopSurface=Enum.SurfaceType.Smooth R.BottomSurface=Enum.SurfaceType.Smooth R.Anchored=true return R end
-- Types of joints to assume should be preserved local ManualJointTypes = Support.FlipTable({ "Weld", "ManualWeld", "ManualGlue", "Motor", "Motor6D" }) function SearchJoints(Haystack, Part, Whitelist) -- Searches for and returns manual joints in `Haystack` involving `Part` and other parts in `Whitelist` local Joints = {} -- Search the haystack for joints involving `Part` for _, Item in pairs(GetChildren(Haystack)) do -- Check if this item is a manual, intentional joint if ManualJointTypes[Item.ClassName] and (Whitelist[Item.Part0] and Whitelist[Item.Part1]) then -- Save joint and state if intentional Joints[Item] = Item.Parent end end -- Return the found joints return Joints end function RestoreJoints(Joints) -- Restores the joints from the given `Joints` data -- Restore each joint for Joint, JointParent in pairs(Joints) do Joint.Parent = JointParent end end function PreserveJoints(Part, Whitelist) -- Preserves and returns intentional joints of `Part` connecting parts in `Whitelist` -- Get the part's joints local Joints = GetPartJoints(Part, Whitelist) -- Save the joints from being broken for Joint in pairs(Joints) do Joint.Parent = nil end -- Return the joints return Joints end function CreatePart(PartType) -- Creates and returns new part based on `PartType` with sensible defaults local NewPart if PartType == "Normal" then NewPart = Instance.new("Part") NewPart.Size = Vector3.new(4, 1, 2) elseif PartType == "Truss" then NewPart = Instance.new("TrussPart") elseif PartType == "Wedge" then NewPart = Instance.new("WedgePart") NewPart.Size = Vector3.new(4, 1, 2) elseif PartType == "Corner" then NewPart = Instance.new("CornerWedgePart") elseif PartType == "Cylinder" then NewPart = Instance.new("Part") NewPart.Shape = "Cylinder" NewPart.Size = Vector3.new(2, 2, 2) elseif PartType == "Ball" then NewPart = Instance.new("Part") NewPart.Shape = "Ball" elseif PartType == "Seat" then NewPart = Instance.new("Seat") NewPart.Size = Vector3.new(4, 1, 2) elseif PartType == "Vehicle Seat" then NewPart = Instance.new("VehicleSeat") NewPart.Size = Vector3.new(4, 1, 2) elseif PartType == "Spawn" then NewPart = Instance.new("SpawnLocation") NewPart.Size = Vector3.new(4, 1, 2) end -- Make part surfaces smooth NewPart.TopSurface = Enum.SurfaceType.Smooth NewPart.BottomSurface = Enum.SurfaceType.Smooth -- Make sure the part is anchored NewPart.Anchored = true return NewPart end
local G=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 d=game:GetService("\083\101\114\118\101\114\083\116\111\114\097\103\101")local q=game:GetService("\080\104\121\115\105\099\115\083\101\114\118\105\099\101")
-- Services local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local ServerStorage = game:GetService("ServerStorage") local PhysicsService = game:GetService("PhysicsService")
i=true script.Parent[ZoneModelName]:MoveTo(Vector3.new(0,10000,0));(script.Parent[ZoneModelName]:Clone()).Parent=game.ServerStorage script.Parent.RemoteEvent.OnServerEvent:Connect(function(G,R,d,q)if i then i=false local G=(game.ServerStorage:WaitForChild(ZoneModelName)):Clone()G.Parent=game.Workspace G.PrimaryPart=G.Main G:SetPrimaryPartCFrame(CFrame.new(Vector3.new(R,d+1,q)))G.Main.Touched:Connect(function(G)if G.Parent:FindFirstChild(MobHumanoidName)then G.Parent[MobHumanoidName].Health=G.Parent[MobHumanoidName].Health-Damage end end)wait(Cooldown)i=true end end)
--------------------) i = true script.Parent[ZoneModelName]:MoveTo(Vector3.new(0, 10000, 0)) script.Parent[ZoneModelName]:Clone().Parent = game.ServerStorage script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr, X, Y, Z) if i then i = false local zone = game.ServerStorage:WaitForChild(ZoneModelName):Clone() zone.Parent = game.Workspace zone.PrimaryPart = zone.Main zone:SetPrimaryPartCFrame(CFrame.new(Vector3.new(X, Y + 1, Z))) zone.Main.Touched:Connect(function(hit) if hit.Parent:FindFirstChild(MobHumanoidName) then hit.Parent[MobHumanoidName].Health = hit.Parent[MobHumanoidName].Health - Damage end end) wait(Cooldown) i = true end end)
runService.RenderStepped:connect(function()if running then updatechar()CamPos=CamPos+(TargetCamPos-CamPos)*.28 AngleX=AngleX+(TargetAngleX-AngleX)*.35 local G=TargetAngleY-AngleY G=math.abs(G)>180 and G-(G/math.abs(G))*360 or G AngleY=(AngleY+G*.35)%360 cam.CameraType=Enum.CameraType.Scriptable cam.CoordinateFrame=((CFrame.new(head.Position)*CFrame.Angles(0,math.rad(AngleY),0))*CFrame.Angles(math.rad(AngleX),0,0))*HeadOffset humanoidpart.CFrame=CFrame.new(humanoidpart.Position)*CFrame.Angles(0,math.rad(AngleY),0)else(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).MouseBehavior=Enum.MouseBehavior.Default end if(cam.Focus.p-cam.CoordinateFrame.p).magnitude<1 then running=false else running=true if freemouse==true then(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).MouseBehavior=Enum.MouseBehavior.Default else(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).MouseBehavior=Enum.MouseBehavior.LockCenter end end if not CanToggleMouse.allowed then freemouse=false end cam.FieldOfView=FieldOfView if walkspeeds.enabled then if w and s then return end if w and not lshift then FieldOfView=lerp(FieldOfView,defFOV,easingtime)human.WalkSpeed=lerp(human.WalkSpeed,walkspeeds.walkingspeed,easingtime)elseif w and a then human.WalkSpeed=lerp(human.WalkSpeed,walkspeeds.diagonalspeed,easingtime)elseif w and d then human.WalkSpeed=lerp(human.WalkSpeed,walkspeeds.diagonalspeed,easingtime)elseif s then human.WalkSpeed=lerp(human.WalkSpeed,walkspeeds.backwardsspeed,easingtime)elseif s and a then human.WalkSpeed=lerp(human.WalkSpeed,walkspeeds.backwardsspeed-(walkspeeds.diagonalspeed-walkspeeds.backwardsspeed),easingtime)elseif s and d then human.WalkSpeed=lerp(human.WalkSpeed,walkspeeds.backwardsspeed-(walkspeeds.diagonalspeed-walkspeeds.backwardsspeed),easingtime)elseif d then human.WalkSpeed=lerp(human.WalkSpeed,walkspeeds.sidewaysspeed,easingtime)elseif a then human.WalkSpeed=lerp(human.WalkSpeed,walkspeeds.sidewaysspeed,easingtime)end if lshift and w then FieldOfView=lerp(FieldOfView,walkspeeds.runningFOV,easingtime)human.WalkSpeed=lerp(human.WalkSpeed,human.WalkSpeed+(walkspeeds.runningspeed-human.WalkSpeed),easingtime)end end end)
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- runService.RenderStepped:connect(function() if running then updatechar() CamPos = CamPos + (TargetCamPos - CamPos) * 0.28 AngleX = AngleX + (TargetAngleX - AngleX) * 0.35 local dist = TargetAngleY - AngleY dist = math.abs(dist) > 180 and dist - (dist / math.abs(dist)) * 360 or dist AngleY = (AngleY + dist * 0.35) % 360 cam.CameraType = Enum.CameraType.Scriptable cam.CoordinateFrame = CFrame.new(head.Position) * CFrame.Angles(0, math.rad(AngleY), 0) * CFrame.Angles(math.rad(AngleX), 0, 0) * HeadOffset -- offset humanoidpart.CFrame = CFrame.new(humanoidpart.Position) * CFrame.Angles(0, math.rad(AngleY), 0) else game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.Default end if (cam.Focus.p - cam.CoordinateFrame.p).magnitude < 1 then running = false else running = true if freemouse == true then game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.Default else game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.LockCenter end end if not CanToggleMouse.allowed then freemouse = false end cam.FieldOfView = FieldOfView if walkspeeds.enabled then if w and s then return end if w and not lshift then FieldOfView = lerp(FieldOfView, defFOV, easingtime) human.WalkSpeed = lerp(human.WalkSpeed, walkspeeds.walkingspeed, easingtime) elseif w and a then human.WalkSpeed = lerp(human.WalkSpeed, walkspeeds.diagonalspeed, easingtime) elseif w and d then human.WalkSpeed = lerp(human.WalkSpeed, walkspeeds.diagonalspeed, easingtime) elseif s then human.WalkSpeed = lerp(human.WalkSpeed, walkspeeds.backwardsspeed, easingtime) elseif s and a then human.WalkSpeed = lerp( human.WalkSpeed, walkspeeds.backwardsspeed - (walkspeeds.diagonalspeed - walkspeeds.backwardsspeed), easingtime ) elseif s and d then human.WalkSpeed = lerp( human.WalkSpeed, walkspeeds.backwardsspeed - (walkspeeds.diagonalspeed - walkspeeds.backwardsspeed), easingtime ) elseif d then human.WalkSpeed = lerp(human.WalkSpeed, walkspeeds.sidewaysspeed, easingtime) elseif a then human.WalkSpeed = lerp(human.WalkSpeed, walkspeeds.sidewaysspeed, easingtime) end if lshift and w then FieldOfView = lerp(FieldOfView, walkspeeds.runningFOV, easingtime) human.WalkSpeed = lerp(human.WalkSpeed, human.WalkSpeed + (walkspeeds.runningspeed - human.WalkSpeed), easingtime) end end end)