input
stringlengths
6
11.4M
output
stringlengths
6
4.94M
local M=script.Parent.Parent.Status local V=script.Parent.Parent.StrobeSync local h=false M.Changed:connect(function()if h then return end h=true if M.Value==1 or M.Value==2 or M.Value==11 then wait(1)while true do wait(1.5)V.Value=true wait(.1)V.Value=false end end end)V.Value=false
-- Teknikk Strobe Core V1 -- local Status = script.Parent.Parent.Status local StrobeSync = script.Parent.Parent.StrobeSync local Run = false Status.Changed:connect(function() if Run then return end Run = true if Status.Value == 1 --ALARM&STROBE or Status.Value == 2 --STROBE or Status.Value == 11 --TEST then wait(1) while true do wait(1.5) StrobeSync.Value = true wait(0.1) StrobeSync.Value = false end end end) StrobeSync.Value = false
wait()weld55.C1=CFrame.new(-0.35,.4,.6)*CFrame.fromEulerAnglesXYZ(math.rad(304),-0.14,math.rad(-82))wait()weld55.C1=CFrame.new(-0.35,.4,.6)*CFrame.fromEulerAnglesXYZ(math.rad(302),-0.14,math.rad(-84))Tool.Handle.Reload.Pitch=.95 wait()weld55.C1=CFrame.new(-0.35,.4,.6)*CFrame.fromEulerAnglesXYZ(math.rad(300),-0.14,math.rad(-86))wait()weld33.C1=CFrame.new(-0.75,.5,.35)*CFrame.fromEulerAnglesXYZ(math.rad(-111),math.rad(-2),.2)weld55.C1=CFrame.new(-0.35,.4,.6)*CFrame.fromEulerAnglesXYZ(math.rad(298),-0.08,math.rad(-88))wait()weld33.C1=CFrame.new(-0.75,.5,.35)*CFrame.fromEulerAnglesXYZ(math.rad(-108),math.rad(-4),.1)weld55.C1=CFrame.new(-0.35,.4,.6)*CFrame.fromEulerAnglesXYZ(math.rad(296),-0.02,math.rad(-90))wait()weld33.C1=CFrame.new(-0.75,.5,.35)*CFrame.fromEulerAnglesXYZ(math.rad(-105),math.rad(-6),0)weld55.C1=CFrame.new(-0.35,.4,.6)*CFrame.fromEulerAnglesXYZ(math.rad(294),.04,math.rad(-90))wait()weld33.C1=CFrame.new(-0.75,.6,.35)*CFrame.fromEulerAnglesXYZ(math.rad(-103),math.rad(-8),0)weld55.C1=CFrame.new(-0.35,.3,.6)*CFrame.fromEulerAnglesXYZ(math.rad(292),.1,math.rad(-90))wait()weld33.C1=CFrame.new(-0.75,.7,.35)*CFrame.fromEulerAnglesXYZ(math.rad(-99),math.rad(-10),0)weld55.C1=CFrame.new(-0.35,.3,.6)*CFrame.fromEulerAnglesXYZ(math.rad(290),.16,math.rad(-90))wait()weld33.C1=CFrame.new(-0.75,.8,.35)*CFrame.fromEulerAnglesXYZ(math.rad(-96),math.rad(-12.5),0)weld55.C1=CFrame.new(-0.35,.3,.6)*CFrame.fromEulerAnglesXYZ(math.rad(290),.22,math.rad(-90))wait()weld33.C1=CFrame.new(-0.75,.9,.35)*CFrame.fromEulerAnglesXYZ(math.rad(-93),math.rad(-15),0)weld55.C1=CFrame.new(-0.35,.3,.6)*CFrame.fromEulerAnglesXYZ(math.rad(290),.28,math.rad(-90))
--new magazine in, let's get to pushing that pull, kick thing back in its place... wait() weld55.C1 = CFrame.new(-0.35, 0.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(304), -0.14, math.rad(-82)) wait() weld55.C1 = CFrame.new(-0.35, 0.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(302), -0.14, math.rad(-84)) Tool.Handle.Reload.Pitch = 0.95 wait() weld55.C1 = CFrame.new(-0.35, 0.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(300), -0.14, math.rad(-86)) wait() weld33.C1 = CFrame.new(-0.75, 0.5, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-111), math.rad(-2), 0.2) weld55.C1 = CFrame.new(-0.35, 0.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(298), -0.08, math.rad(-88)) wait() weld33.C1 = CFrame.new(-0.75, 0.5, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-108), math.rad(-4), 0.1) weld55.C1 = CFrame.new(-0.35, 0.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(296), -0.02, math.rad(-90)) wait() weld33.C1 = CFrame.new(-0.75, 0.5, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-105), math.rad(-6), 0) weld55.C1 = CFrame.new(-0.35, 0.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(294), 0.04, math.rad(-90)) wait() weld33.C1 = CFrame.new(-0.75, 0.6, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-103), math.rad(-8), 0) weld55.C1 = CFrame.new(-0.35, 0.3, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(292), 0.1, math.rad(-90)) wait() weld33.C1 = CFrame.new(-0.75, 0.7, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-99), math.rad(-10), 0) weld55.C1 = CFrame.new(-0.35, 0.3, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.16, math.rad(-90)) wait() weld33.C1 = CFrame.new(-0.75, 0.8, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-96), math.rad(-12.5), 0) weld55.C1 = CFrame.new(-0.35, 0.3, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.22, math.rad(-90)) wait() weld33.C1 = CFrame.new(-0.75, 0.9, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-93), math.rad(-15), 0) weld55.C1 = CFrame.new(-0.35, 0.3, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
local M=game:GetService("\080\108\097\121\101\114\115")local V=game:GetService("\082\117\110\083\101\114\118\105\099\101")local h=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local Q=game:GetService("\071\117\105\083\101\114\118\105\099\101")local o=game:GetService("\087\111\114\107\115\112\097\099\101")local d=(UserSettings()):GetService("\085\115\101\114\071\097\109\101\083\101\116\116\105\110\103\115")local c=game:GetService("\086\082\083\101\114\118\105\099\101")
--[[ Roblox Services ]] -- local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local GuiService = game:GetService("GuiService") local Workspace = game:GetService("Workspace") local UserGameSettings = UserSettings():GetService("UserGameSettings") local VRService = game:GetService("VRService")
Tune.SteerInner=36 Tune.SteerOuter=37 Tune.SteerSpeed=.1 Tune.ReturnSpeed=.1 Tune.SteerDecay=320 Tune.MinSteer=10 Tune.MSteerExp=1 Tune.SteerD=1000 Tune.SteerMaxTorque=50000 Tune.SteerP=100000
--[[Steering]] Tune.SteerInner = 36 -- Inner wheel steering angle (in degrees) Tune.SteerOuter = 37 -- Outer wheel steering angle (in degrees) Tune.SteerSpeed = 0.1 -- Steering increment per tick (in degrees) Tune.ReturnSpeed = 0.1 -- Steering increment per tick (in degrees) Tune.SteerDecay = 320 -- Speed of gradient cutoff (in SPS) Tune.MinSteer = 10 -- Minimum steering at max steer decay (in percent) Tune.MSteerExp = 1 -- Mouse steering exponential degree --Steer Gyro Tuning Tune.SteerD = 1000 -- Steering Dampening Tune.SteerMaxTorque = 50000 -- Steering Force Tune.SteerP = 100000 -- Steering Aggressiveness
function CameraModule.OnCameraSubjectChanged(M)if M.activeTransparencyController then M.activeTransparencyController:SetSubject(game.Workspace.CurrentCamera.CameraSubject)end if M.activeOcclusionModule then M.activeOcclusionModule:OnCameraSubjectChanged(game.Workspace.CurrentCamera.CameraSubject)end end function CameraModule.OnCameraTypeChanged(V,M)if M==Enum.CameraType.Scriptable then if UserInputService.MouseBehavior==Enum.MouseBehavior.LockCenter then UserInputService.MouseBehavior=Enum.MouseBehavior.Default end end V:ActivateCameraController(nil,M)end
-- Note: The active transparency controller could be made to listen for this event itself. function CameraModule:OnCameraSubjectChanged() if self.activeTransparencyController then self.activeTransparencyController:SetSubject(game.Workspace.CurrentCamera.CameraSubject) end if self.activeOcclusionModule then self.activeOcclusionModule:OnCameraSubjectChanged(game.Workspace.CurrentCamera.CameraSubject) end end function CameraModule:OnCameraTypeChanged(newCameraType) if newCameraType == Enum.CameraType.Scriptable then if UserInputService.MouseBehavior == Enum.MouseBehavior.LockCenter then UserInputService.MouseBehavior = Enum.MouseBehavior.Default end end -- Forward the change to ActivateCameraController to handle self:ActivateCameraController(nil, newCameraType) end
local M local V local h local Q=0 if canWander then spawn(function()while Q==0 do Q=1 local M,V=hroot.Position.x+math.random(-WanderX,WanderX),hroot.Position.z+math.random(-WanderZ,WanderZ)human:MoveTo(Vector3.new(M,0,V))wait(math.random(4,6))Q=0 end end)end while wait()do local o=GetTorso(hroot.Position)if o~=nil then Q=1 local function d(M)local V=3 if V>#M then V=3 end if M[V]==nil and V<#M then repeat V=V+1 wait()until M[V]~=nil return Vector3.new(1,0,0)+M[V]else V=3 return M[V]end end M=pfs:FindPathAsync(hroot.Position,o.Position)V=M:GetWaypoints()h=V local c local N=Vector3.FromNormalId(Enum.NormalId.Front)local A=hroot.CFrame*CFrame.new(N)N=A.p.unit local E=Ray.new(hroot.Position,N)local a,b=game.Workspace:FindPartOnRay(E,hroot)if M and V or d(V)then if d(V)~=nil and(d(V)).Action==Enum.PathWaypointAction.Walk then human:MoveTo((d(V)).Position)human.Jump=false end if d(V)~=nil and(d(V)).Action==Enum.PathWaypointAction.Jump then human.Jump=true c=human.Changed:connect(function()human.Jump=true end)human:MoveTo((d(V)).Position)else human.Jump=false end hroot.Touched:connect(function(M)local V=GetPlayersBodyParts(o)if M:IsA("\080\097\114\116")and(not M.Name==V and(a and(a.Name~=V and(a:IsA("\080\097\114\116")and E:Distance(a.Position)<5))))then c=human.Changed:connect(function()human.Jump=true end)else human.Jump=false end end)if c then c:Disconnect()end else for M=3,#h,1 do human:MoveTo(h[M].Position)end end elseif o==nil and canWander then Q=0 M=nil V=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
BaseDamage=92 LimbDamage=84 ArmorDamage=38 HeadDamage=100
--// Damage Settings BaseDamage = 92 -- Torso Damage LimbDamage = 84 -- Arms and Legs ArmorDamage = 38 -- How much damage is dealt against armor (Name the armor "Armor") HeadDamage = 100 -- If you set this to 100, there's a chance the player won't die because of the heal script
local M={}M.DefaultSpeed=150 M.BoostSpeed=500 M.BoostAmount=2 M.Steering=5
-- ================================================================================ -- Settings - Dart -- ================================================================================ local Settings = {} Settings.DefaultSpeed = 150 -- Speed when not boosted [Studs/second, Range 50-300] Settings.BoostSpeed = 500 -- Speed when boosted [Studs/second, Maximum: 400] Settings.BoostAmount = 2 -- Duration of boost in seconds Settings.Steering = 5 -- How quickly the speeder turns [Range: 1-10]
function Registry.GetType(V,M)return V.Types[M]end
--- Gets a type definition by name. function Registry:GetType(name) return self.Types[name] end
function ScreenSpace.ViewSizeX()local M=PlayerMouse.ViewSizeX local V=PlayerMouse.ViewSizeY if M==0 then return 1024 else if M>V then return M else return V end end end function ScreenSpace.ViewSizeY()local M=PlayerMouse.ViewSizeX local V=PlayerMouse.ViewSizeY if V==0 then return 768 else if M>V then return V else return M end end end
-- Getter functions, with a couple of hacks for Ipad pre-focus. function ScreenSpace.ViewSizeX() local x = PlayerMouse.ViewSizeX local y = PlayerMouse.ViewSizeY if x == 0 then return 1024 else if x > y then return x else return y end end end function ScreenSpace.ViewSizeY() local x = PlayerMouse.ViewSizeX local y = PlayerMouse.ViewSizeY if y == 0 then return 768 else if x > y then return y else return x end end end
function FpsCamera.UpdateTransparency(M,...)assert(M~=FpsCamera)M:BaseUpdate(...)if M.ForceRefresh then M.ForceRefresh=false if M.SetSubject then local V=workspace.CurrentCamera M:SetSubject(V.CameraSubject)end end end
-- This is an overload function for TransparencyController:Update() -- Do not call directly, or it will throw an assertion! function FpsCamera:UpdateTransparency(...) assert(self ~= FpsCamera) self:BaseUpdate(...) if self.ForceRefresh then self.ForceRefresh = false if self.SetSubject then local camera = workspace.CurrentCamera self:SetSubject(camera.CameraSubject) end end end
script.Parent.Equipped:connect(function()player=game.Players:playerFromCharacter(script.Parent.Parent)local M=script.Parent.Parent RSH=M.Torso["\082\105\103\104\116 \083\104\111\117\108\100\101\114"]LSH=M.Torso["\076\101\102\116 \083\104\111\117\108\100\101\114"]GRP=M["\082\105\103\104\116 \065\114\109"].RightGrip RSH.Parent=nil LSH.Parent=nil RW.Part0=M.Torso RW.C0=CFrame.new(1.5,.5,0)RW.C1=CFrame.new(0,.5,0)RW.Part1=M["\082\105\103\104\116 \065\114\109"]RW.Parent=M.Torso _G.R=RW LW.Part0=M.Torso LW.C0=CFrame.new(-1.5,.5,0)LW.C1=CFrame.new(0,.5,0)LW.Part1=M["\076\101\102\116 \065\114\109"]LW.Parent=M.Torso _G.L=LW GRP.C0=CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(-1,0,0)for M=0,1,.05 do wait()RW.C0=CFrame.new(1.5,.5,0)*CFrame.fromEulerAnglesXYZ(1.3*M,0,-0.5*M)LW.C0=CFrame.new(-1.5,.5,0)*CFrame.fromEulerAnglesXYZ(1.7*M,0,.8*M)LW.C1=CFrame.new(-0.3*M,.5+1.2*M,0)end end)
--onselected, save shoulders and get player script.Parent.Equipped:connect(function() player = game.Players:playerFromCharacter(script.Parent.Parent) local ch = script.Parent.Parent RSH = ch.Torso["Right Shoulder"] LSH = ch.Torso["Left Shoulder"] GRP = ch["Right Arm"].RightGrip -- RSH.Parent = nil LSH.Parent = nil -- RW.Part0 = ch.Torso RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) RW.C1 = CFrame.new(0, 0.5, 0) RW.Part1 = ch["Right Arm"] RW.Parent = ch.Torso _G.R = RW -- LW.Part0 = ch.Torso LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) LW.C1 = CFrame.new(0, 0.5, 0) LW.Part1 = ch["Left Arm"] LW.Parent = ch.Torso _G.L = LW -- GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1, 0, 0) --Bring_Arm_Up animation for i = 0, 1, 0.05 do wait() RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3 * i, 0, -0.5 * i) LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7 * i, 0, 0.8 * i) LW.C1 = CFrame.new(-0.3 * i, 0.5 + 1.2 * i, 0) end end)
for M,V in pairs(script.Parent.Parent.Folder:GetChildren())do V.MouseEnter:Connect(function()canfollow=true print("\108")frame.Text=V.showtext.Value;(game:GetService("\082\117\110\083\101\114\118\105\099\101")).RenderStepped:Connect(function()if canfollow==true then local M=userInputService:GetMouseLocation()frame.Position=UDim2.new(0,M.X-50,0,M.Y-60)frame.Visible=true else end end)V.MouseLeave:Connect(function()canfollow=false frame.Visible=false frame.Text=""end)end)end
--[[ button.MouseButton1Click:Connect(function() local pos = userInputService:GetMouseLocation() --local relativePosition = pos - frame.Parent.AbsolutePosition frame.Position = UDim2.new(0, pos.X, 0, pos.Y - 36) end) ]] for i, v in pairs(script.Parent.Parent.Folder:GetChildren()) do v.MouseEnter:Connect(function() canfollow = true print("l") frame.Text = v.showtext.Value game:GetService("RunService").RenderStepped:Connect(function() if canfollow == true then local pos = userInputService:GetMouseLocation() frame.Position = UDim2.new(0, pos.X - 50, 0, pos.Y - 60) frame.Visible = true else end end) v.MouseLeave:Connect(function() canfollow = false frame.Visible = false frame.Text = "" end) end) end
local M=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local V=game.Players.LocalPlayer local h=V:GetMouse()local Q=true Player=game.Players.LocalPlayer M.InputBegan:Connect(function(M)if M.KeyCode==Enum.KeyCode.F and(Q==true and(Tool.Equip.Value==true and Tool.Active.Value=="\078\111\110\101"))then Q=false Tool.Active.Value=""wait(0)Track1=Player.Character.Humanoid:LoadAnimation(script.Anim01)Track1:Play()wait(0)script.Fire:FireServer(V)local M=Player.Character.Humanoid M.WalkSpeed=34 wait(4.8)M.WalkSpeed=1 for V=1,2,1 do M.CameraOffset=Vector3.new(math.random(0,0),math.random(0,0),math.random(0,0))end M.CameraOffset=Vector3.new(0,0,0)wait(.2)M.WalkSpeed=16 wait(1)Tool.Active.Value="\078\111\110\101"Q=true end end)
--- Skill local UIS = game:GetService("UserInputService") local plr = game.Players.LocalPlayer local Mouse = plr:GetMouse() local Debounce = true Player = game.Players.LocalPlayer UIS.InputBegan:Connect(function(Input) if Input.KeyCode == Enum.KeyCode.F and Debounce == true and Tool.Equip.Value == true and Tool.Active.Value == "None" then Debounce = false Tool.Active.Value = "" wait(0) Track1 = Player.Character.Humanoid:LoadAnimation(script.Anim01) Track1:Play() wait(0) script.Fire:FireServer(plr) local hum = Player.Character.Humanoid hum.WalkSpeed = 34 wait(4.8) hum.WalkSpeed = 1 for i = 1, 2 do hum.CameraOffset = Vector3.new(math.random(0, 0), math.random(0, 0), math.random(0, 0)) end hum.CameraOffset = Vector3.new(0, 0, 0) wait(0.2) hum.WalkSpeed = 16 wait(1) Tool.Active.Value = "None" Debounce = true end end)
Groups={[0]={[254]="\065\100\109\105\110",[1]="\086\073\080"}}
-- GROUPS Groups = { [0] = { [254] = "Admin", [1] = "VIP", }, }
function scriptChildModified(M)local V=animNames[M.Name]if V~=nil then configureAnimationSet(M.Name,V)end end script.ChildAdded:Connect(scriptChildModified)script.ChildRemoved:Connect(scriptChildModified)for M,V in pairs(animNames)do configureAnimationSet(M,V)end
-- Setup animation objects function scriptChildModified(child) local fileList = animNames[child.Name] if fileList ~= nil then configureAnimationSet(child.Name, fileList) end end script.ChildAdded:Connect(scriptChildModified) script.ChildRemoved:Connect(scriptChildModified) for name, fileList in pairs(animNames) do configureAnimationSet(name, fileList) end
local M=nil local V=nil local h=nil local Q=nil local o=nil local d=game:GetService("\068\101\098\114\105\115")local c local N=nil local A=nil
-- Player specific convenience variables local MyPlayer = nil local MyCharacter = nil local MyHumanoid = nil local MyTorso = nil local MyMouse = nil local DebrisService = game:GetService("Debris") local FireSound local OnFireConnection = nil local OnReloadConnection = nil
local function M()if isfirstperson==false then if(camera.focus.p-camera.CFrame.p).magnitude<=1 then enableviewmodel()end elseif(camera.focus.p-camera.CFrame.p).magnitude>1.1 then disableviewmodel()end end
-- check if camera is zoomed into first person local function checkfirstperson() if isfirstperson == false then -- not in first person if (camera.focus.p - camera.CFrame.p).magnitude <= 1 then enableviewmodel() end elseif (camera.focus.p - camera.CFrame.p).magnitude > 1.1 then disableviewmodel() end end
local M={}M.__index=M M.Service=nil function M.new()local V=M.Service or{}setmetatable(V,M)V.BindedPlayerAddedFunctions={}V.BindedCharacterAddedFunctions={}V.BindedPlayerRemovingFunctions={}for M,h in pairs(game.Players:GetPlayers())do V:PlayerAdded(h)end V.Connections={PlayerAdded=game.Players.PlayerAdded:Connect(function(M)V:PlayerAdded(M)end),PlayerRemoving=game.Players.PlayerRemoving:Connect(function(M)V:PlayerRemoving(M)end)}M.Service=V return V end function M.PlayerAdded(V,M)for V,h in pairs(V.BindedPlayerAddedFunctions)do h(M)end if M.Character then V:CharacterAdded(M.Character)end M.CharacterAdded:Connect(function(M)V:CharacterAdded(M)end)end function M.PlayerRemoving(V,M)for V,h in pairs(V.BindedPlayerRemovingFunctions)do h(M)end end function M.CharacterAdded(V,M)for V,h in pairs(V.BindedCharacterAddedFunctions)do h(M)end end function M.AddPlayerAddedFunc(h,M,V)h.BindedPlayerAddedFunctions[M]=V for M,h in pairs(game.Players:GetPlayers())do warn(h.Name.." \119\097\115 \097\108\114\101\097\100\121 \105\110 \116\104\101 \103\097\109\101 \098\101\102\111\114\101 \119\101 \097\100\100\101\100 \116\104\105\115 \112\108\097\121\101\114 \097\100\100\101\100 \102\117\110\099\116\105\111\110")V(h)end end function M.AddPlayerRemovingFunc(h,M,V)h.BindedPlayerRemovingFunctions[M]=V end function M.AddCharacterAddedFunc(h,M,V)h.BindedCharacterAddedFunctions[M]=V for M,h in pairs(game.Players:GetPlayers())do if h.Character then warn(h.Name.." \119\097\115 \097\108\114\101\097\100\121 \105\110 \116\104\101 \103\097\109\101 \098\101\102\111\114\101 \119\101 \097\100\100\101\100 \116\104\105\115 \067\104\097\114\097\099\116\101\114 \097\100\100\101\100 \102\117\110\099\116\105\111\110")V(h.Character)end end end function M.Deconstruct(M) end return M
--[[ PlayerServer.lua AddPlayerAddedFunc: Add a function that runs whenever a player joins a server ]] local this = {} this.__index = this this.Service = nil function this.new() -- body local self = this.Service or {} setmetatable(self, this) self.BindedPlayerAddedFunctions = {} self.BindedCharacterAddedFunctions = {} self.BindedPlayerRemovingFunctions = {} for _, v in pairs(game.Players:GetPlayers()) do self:PlayerAdded(v) end self.Connections = { PlayerAdded = game.Players.PlayerAdded:Connect(function(plr) self:PlayerAdded(plr) end), PlayerRemoving = game.Players.PlayerRemoving:Connect(function(plr) self:PlayerRemoving(plr) end), } this.Service = self return self end function this:PlayerAdded(plr) for _, v in pairs(self.BindedPlayerAddedFunctions) do v(plr) end if plr.Character then self:CharacterAdded(plr.Character) end plr.CharacterAdded:Connect(function(char) self:CharacterAdded(char) end) end function this:PlayerRemoving(plr) for _, v in pairs(self.BindedPlayerRemovingFunctions) do v(plr) end end function this:CharacterAdded(char) for _, v in pairs(self.BindedCharacterAddedFunctions) do v(char) end end function this:AddPlayerAddedFunc(name, func) -- body self.BindedPlayerAddedFunctions[name] = func for i, v in pairs(game.Players:GetPlayers()) do warn(v.Name .. " was already in the game before we added this player added function") func(v) end end function this:AddPlayerRemovingFunc(name, func) -- body self.BindedPlayerRemovingFunctions[name] = func end function this:AddCharacterAddedFunc(name, func) -- body self.BindedCharacterAddedFunctions[name] = func for i, v in pairs(game.Players:GetPlayers()) do if v.Character then warn(v.Name .. " was already in the game before we added this Character added function") func(v.Character) end end end function this:Deconstruct() -- Delete the player's object end return this
local M={}M.__index=M function M.new(V,h)return setmetatable({_connected=true,_signal=V,_fn=h;_next=false},M)end function M.Disconnect(M)assert(M._connected,"\067\097\110\'\116 \100\105\115\099\111\110\110\101\099\116 \097 \099\111\110\110\101\099\116\105\111\110 \116\119\105\099\101\046")M._connected=false if M._signal._handlerListHead==M then M._signal._handlerListHead=M._next else local V=M._signal._handlerListHead while V and V._next~=M do V=V._next end if V then V._next=M._next end end end
-- Connection class local Connection = {} Connection.__index = Connection function Connection.new(signal, fn) return setmetatable({ _connected = true, _signal = signal, _fn = fn, _next = false, }, Connection) end function Connection:Disconnect() assert(self._connected, "Can't disconnect a connection twice.") self._connected = false -- Unhook the node, but DON'T clear it. That way any fire calls that are -- currently sitting on this node will be able to iterate forwards off of -- it, but any subsequent fire calls will not hit it, and it will be GCed -- when no more fire calls are sitting on it. if self._signal._handlerListHead == self then self._signal._handlerListHead = self._next else local prev = self._signal._handlerListHead while prev and prev._next ~= self do prev = prev._next end if prev then prev._next = self._next end end end
GUI=script.Parent.Parent.Parent.PlayerGui.TankGUI GUI.HP.Hitpoints.Text=(parts.Parent:findFirstChild("\068\097\109\097\103\101")).Value local M=parts.Parent:findFirstChild("\068\097\109\097\103\101")if M.Value<0 then GUI.HP.Hitpoints.Text="\068\073\083\065\066\076\069\068"end local V=math.random(45,45)braking=false firingMg=false reloading=false currRound=tankStats.Round myMouse=nil function updateAmmo()GUI.Ammo.Text="\067\097\110\110\111\110 \065\109\109\111 \061 "..tankStats[tankStats.Round.Value.."\065\109\109\111"].Value GUI.MG_Ammo.Text=tankStats.MGAmmo.Value GUI.HP.Hitpoints.Text=(parts.Parent:findFirstChild("\068\097\109\097\103\101")).Value end function Brakes()for M=1,5,1 do parts.Engine.BodyVelocity.Velocity=Vector3.new(0,0,0)print("\066\114\097\107\101\115 \097\099\116\105\118\097\116\101\100")end end
-- Player's tank GUI GUI = script.Parent.Parent.Parent.PlayerGui.TankGUI GUI.HP.Hitpoints.Text = parts.Parent:findFirstChild("Damage").Value local Hull = parts.Parent:findFirstChild("Damage") if Hull.Value < 0 then GUI.HP.Hitpoints.Text = "DISABLED" end local MGDamage = math.random(45, 45) braking = false firingMg = false reloading = false currRound = tankStats.Round -- Current loaded ammo (AP/HE) myMouse = nil function updateAmmo() GUI.Ammo.Text = "Cannon Ammo = " .. tankStats[tankStats.Round.Value .. "Ammo"].Value GUI.MG_Ammo.Text = tankStats.MGAmmo.Value GUI.HP.Hitpoints.Text = parts.Parent:findFirstChild("Damage").Value end function Brakes() for i = 1, 5 do parts.Engine.BodyVelocity.Velocity = Vector3.new(0, 0, 0) print("Brakes activated") end end
local M=(game:GetService("\080\108\097\121\101\114\115")).LocalPlayer local V=(game:GetService("\080\108\097\121\101\114\115")).LocalPlayer.Character hrp=V:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")hp2=Instance.new("\080\097\114\116")hp2.Name="\068\111\111\114"hp2.Size=Vector3.new(1.5,5.26,1.21)hp2.CanCollide=false hp2.Transparency=1 hp2.Parent=V local h=Instance.new("\087\101\108\100")h.Parent=hp2 h.Part0=hp2 h.Part1=V.HumanoidRootPart h.C0=CFrame.new(0,.5,0)ts=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")ti2=TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,0)hp2.Touched:connect(function(M)if M.Name=="\084\114\105\103\103\101\114"and(M:FindFirstChild("\079\112\101\110")==nil and V.Humanoid.Health>=0)then local V=Instance.new("\066\111\111\108\086\097\108\117\101",M)local h=script.DoorO:Clone()h.Parent=M h:Play()game.Debris:AddItem(h,3)V.Name="\079\112\101\110"local Q=M.Parent.d1 local o=M.Parent.d2 Q.CanCollide=false o.CanCollide=false local d=ts:Create(Q,ti2,{CFrame=Q.CFrame+Vector3.new(0,15,0)});(ts:Create(o,ti2,{CFrame=o.CFrame+Vector3.new(0,15,0)})):Play()d:Play()wait(3)local c=script.DoorC:Clone()c.Parent=M c:Play()game.Debris:AddItem(c,3)local N=ts:Create(o,ti2,{CFrame=M.Parent.d2.CFrame});(ts:Create(Q,ti2,{CFrame=M.Parent.d1.CFrame})):Play()N:Play()wait(1.5)Q.CanCollide=true o.CanCollide=true game.Debris:AddItem(V,0)end end)
-- Decompiled with the Synapse X Luau decompiler. local l__LocalPlayer__1 = game:GetService("Players").LocalPlayer local l__Character__2 = game:GetService("Players").LocalPlayer.Character hrp = l__Character__2:WaitForChild("HumanoidRootPart") hp2 = Instance.new("Part") hp2.Name = "Door" hp2.Size = Vector3.new(1.5, 5.26, 1.21) hp2.CanCollide = false hp2.Transparency = 1 hp2.Parent = l__Character__2 local v3 = Instance.new("Weld") v3.Parent = hp2 v3.Part0 = hp2 v3.Part1 = l__Character__2.HumanoidRootPart v3.C0 = CFrame.new(0, 0.5, 0) ts = game:GetService("TweenService") ti2 = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0) hp2.Touched:connect(function(p1) if p1.Name == "Trigger" and p1:FindFirstChild("Open") == nil and l__Character__2.Humanoid.Health >= 0 then local v4 = Instance.new("BoolValue", p1) local v5 = script.DoorO:Clone() v5.Parent = p1 v5:Play() game.Debris:AddItem(v5, 3) v4.Name = "Open" local l__d1__6 = p1.Parent.d1 local l__d2__7 = p1.Parent.d2 l__d1__6.CanCollide = false l__d2__7.CanCollide = false local v8 = ts:Create(l__d1__6, ti2, { CFrame = l__d1__6.CFrame + Vector3.new(0, 15, 0), }) ts:Create(l__d2__7, ti2, { CFrame = l__d2__7.CFrame + Vector3.new(0, 15, 0), }):Play() v8:Play() wait(3) local v9 = script.DoorC:Clone() v9.Parent = p1 v9:Play() game.Debris:AddItem(v9, 3) local v10 = ts:Create(l__d2__7, ti2, { CFrame = p1.Parent.d2.CFrame, }) ts:Create(l__d1__6, ti2, { CFrame = p1.Parent.d1.CFrame, }):Play() v10:Play() wait(1.5) l__d1__6.CanCollide = true l__d2__7.CanCollide = true game.Debris:AddItem(v4, 0) end end)
SyncAPI=script.Parent Tool=SyncAPI.Parent Player=nil
-- References SyncAPI = script.Parent Tool = SyncAPI.Parent Player = nil
function onRunning(M)if M>.01 then local V=15.0 playAnimation("\119\097\108\107",.1,Humanoid)setAnimationSpeed(M/V)pose="\082\117\110\110\105\110\103"else playAnimation("\105\100\108\101",.1,Humanoid)pose="\083\116\097\110\100\105\110\103"end end function onDied()pose="\068\101\097\100"end function onJumping()playAnimation("\106\117\109\112",.1,Humanoid)jumpAnimTime=jumpAnimDuration pose="\074\117\109\112\105\110\103"end function onClimbing(M)local V=5.0 playAnimation("\099\108\105\109\098",.1,Humanoid)setAnimationSpeed(M/V)pose="\067\108\105\109\098\105\110\103"end function onGettingUp()pose="\071\101\116\116\105\110\103\085\112"end function onFreeFall()if jumpAnimTime<=0 then playAnimation("\102\097\108\108",fallTransitionTime,Humanoid)end pose="\070\114\101\101\070\097\108\108"end function onFallingDown()pose="\070\097\108\108\105\110\103\068\111\119\110"end function onSeated()pose="\083\101\097\116\101\100"end function onPlatformStanding()pose="\080\108\097\116\102\111\114\109\083\116\097\110\100\105\110\103"end function onSwimming(M)if M>1.0 then local V=10.0 playAnimation("\115\119\105\109",.4,Humanoid)setAnimationSpeed(M/V)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 getTool()for M,V in ipairs(Figure:GetChildren())do if V.className=="\084\111\111\108"then return V end end return nil end function getToolAnim(M)for M,V in ipairs(M:GetChildren())do if V.Name=="\116\111\111\108\097\110\105\109"and V.className=="\083\116\114\105\110\103\086\097\108\117\101"then return V end end return nil end function animateTool()if toolAnim=="\078\111\110\101"then playToolAnimation("\116\111\111\108\110\111\110\101",toolTransitionTime,Humanoid)return end if toolAnim=="\083\108\097\115\104"then playToolAnimation("\116\111\111\108\115\108\097\115\104",0,Humanoid)return end if toolAnim=="\076\117\110\103\101"then playToolAnimation("\116\111\111\108\108\117\110\103\101",0,Humanoid)return end end function moveSit()RightShoulder.MaxVelocity=.15 LeftShoulder.MaxVelocity=.15 RightShoulder:SetDesiredAngle(1.57)LeftShoulder:SetDesiredAngle(-1.57)RightHip:SetDesiredAngle(1.57)LeftHip:SetDesiredAngle(-1.57)end local M=0 function move(V)local h=1 local Q=1 local o=V-M M=V local d=0 local c=false if jumpAnimTime>0 then jumpAnimTime=jumpAnimTime-o 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",.1,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()h=.1 Q=1 c=true end local N=getTool()if N then animStringValueObject=getToolAnim(N)if animStringValueObject then toolAnim=animStringValueObject.Value animStringValueObject.Parent=nil toolAnimTime=V+.3 end if V>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 onRunning(speed) if speed > 0.01 then local scale = 15.0 playAnimation("walk", 0.1, Humanoid) setAnimationSpeed(speed / scale) pose = "Running" else playAnimation("idle", 0.1, Humanoid) pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() playAnimation("jump", 0.1, Humanoid) jumpAnimTime = jumpAnimDuration pose = "Jumping" end function onClimbing(speed) local scale = 5.0 playAnimation("climb", 0.1, Humanoid) setAnimationSpeed(speed / scale) pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() if jumpAnimTime <= 0 then playAnimation("fall", fallTransitionTime, Humanoid) end pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" 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 getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil 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 function animateTool() if toolAnim == "None" then playToolAnimation("toolnone", toolTransitionTime, Humanoid) return end if toolAnim == "Slash" then playToolAnimation("toolslash", 0, Humanoid) return end if toolAnim == "Lunge" then playToolAnimation("toollunge", 0, Humanoid) return end end function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 / 2) LeftShoulder:SetDesiredAngle(-3.14 / 2) RightHip:SetDesiredAngle(3.14 / 2) LeftHip:SetDesiredAngle(-3.14 / 2) end local lastTick = 0 function move(time) local amplitude = 1 local frequency = 1 local deltaTime = time - lastTick lastTick = time 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.1, 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 = getTool() if tool then animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value -- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + 0.3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else stopToolAnimations() toolAnim = "None" toolAnimInstance = nil toolAnimTime = 0 end end
return function(M,V,h)if M and(V and(h and(h~=""and(M[h]and(V[h]and M[h]==V[h])))))then return true end return false end
--[[ Takes two tables A, B and a key, returns if two tables have the same value at key ]] return function(A, B, key) if A and B and key and key ~= "" and A[key] and B[key] and A[key] == B[key] then return true end return false end
function FastCast.new()return setmetatable({LengthChanged=Signal:CreateNewSignal(),RayHit=Signal:CreateNewSignal(),RayExited=Signal:CreateNewSignal()},FastCast)end
-- Constructor. function FastCast.new() return setmetatable({ LengthChanged = Signal:CreateNewSignal(), RayHit = Signal:CreateNewSignal(), RayExited = Signal:CreateNewSignal(), }, FastCast) end
function SignalUtils.onNext(M,V)assert(typeof(M)=="\082\066\088\083\099\114\105\112\116\083\105\103\110\097\108","\066\097\100 \101\118\101\110\116")assert(type(V)=="\102\117\110\099\116\105\111\110","\066\097\100 \095\102\117\110\099\116\105\111\110")local h h=M:Connect(function(...)if h.Connected then return end h:Disconnect()V(...)end)return h end return SignalUtils
--[=[ Executes on the next event connection. @param event RBXScriptSignal @param _function function @return RBXScriptConnection ]=] function SignalUtils.onNext(event, _function) assert(typeof(event) == "RBXScriptSignal", "Bad event") assert(type(_function) == "function", "Bad _function") local conn conn = event:Connect(function(...) if conn.Connected then return -- Multiple events got queued end conn:Disconnect() _function(...) end) return conn end return SignalUtils
function onSwimming(M)if M>1.0 then local V=10.0 playAnimation("\115\119\105\109",.4,Humanoid)setAnimationSpeed(M/V)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(M)for M,V in ipairs(M:GetChildren())do if V.Name=="\116\111\111\108\097\110\105\109"and V.className=="\083\116\114\105\110\103\086\097\108\117\101"then return V end end return nil end local M=0 function stepAnimate(V)local h=1 local Q=1 local o=V-M M=V local d=0 local c=false if jumpAnimTime>0 then jumpAnimTime=jumpAnimTime-o 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()h=.1 Q=1 c=true end local N=Character:FindFirstChildOfClass("\084\111\111\108")if N and N:FindFirstChild("\072\097\110\100\108\101")then local M=getToolAnim(N)if M then toolAnim=M.Value M.Parent=nil toolAnimTime=V+.3 end if V>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
Tune.Horsepower=300 Tune.IdleRPM=100 Tune.PeakRPM=15000 Tune.Redline=15000 Tune.EqPoint=5500 Tune.PeakSharpness=7.5 Tune.CurveMult=.16 Tune.InclineComp=1.7 Tune.RevAccel=500 Tune.RevDecay=75 Tune.RevBounce=0 Tune.IdleThrottle=3 Tune.ClutchTol=500
--[[Engine]] --Torque Curve Tune.Horsepower = 300 -- [TORQUE CURVE VISUAL] Tune.IdleRPM = 100 -- https://www.desmos.com/calculator/2uo3hqwdhf Tune.PeakRPM = 15000 -- Use sliders to manipulate values Tune.Redline = 15000 -- 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 = 500 -- RPM acceleration when clutch is off Tune.RevDecay = 75 -- RPM decay when clutch is off Tune.RevBounce = 0 -- RPM kickback from redline Tune.IdleThrottle = 3 -- Percent throttle at idle Tune.ClutchTol = 500 -- Clutch engagement threshold (higher = faster response)
game.Workspace.doorleft.l11.BrickColor=BrickColor.new(1023)game.Workspace.doorleft.l23.BrickColor=BrickColor.new(1023)game.Workspace.doorleft.l32.BrickColor=BrickColor.new(1023)game.Workspace.doorleft.l41.BrickColor=BrickColor.new(1023)game.Workspace.doorleft.l53.BrickColor=BrickColor.new(1023)game.Workspace.doorleft.l62.BrickColor=BrickColor.new(1023)game.Workspace.doorleft.l71.BrickColor=BrickColor.new(1023)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(106)game.Workspace.doorleft.l13.BrickColor=BrickColor.new(1013)game.Workspace.doorleft.l22.BrickColor=BrickColor.new(1013)game.Workspace.doorleft.l31.BrickColor=BrickColor.new(1013)game.Workspace.doorleft.l43.BrickColor=BrickColor.new(1013)game.Workspace.doorleft.l52.BrickColor=BrickColor.new(1013)game.Workspace.doorleft.l61.BrickColor=BrickColor.new(1013)game.Workspace.doorleft.l73.BrickColor=BrickColor.new(1013)game.Workspace.doorleft.pillar.BrickColor=BrickColor.new(game.Workspace.Lighting.cyan.Value)game.Workspace.Lighting.flashcurrent.Value="\049\051"
--------LEFT DOOR -------- game.Workspace.doorleft.l11.BrickColor = BrickColor.new(1023) game.Workspace.doorleft.l23.BrickColor = BrickColor.new(1023) game.Workspace.doorleft.l32.BrickColor = BrickColor.new(1023) game.Workspace.doorleft.l41.BrickColor = BrickColor.new(1023) game.Workspace.doorleft.l53.BrickColor = BrickColor.new(1023) game.Workspace.doorleft.l62.BrickColor = BrickColor.new(1023) game.Workspace.doorleft.l71.BrickColor = BrickColor.new(1023) 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(106) game.Workspace.doorleft.l13.BrickColor = BrickColor.new(1013) game.Workspace.doorleft.l22.BrickColor = BrickColor.new(1013) game.Workspace.doorleft.l31.BrickColor = BrickColor.new(1013) game.Workspace.doorleft.l43.BrickColor = BrickColor.new(1013) game.Workspace.doorleft.l52.BrickColor = BrickColor.new(1013) game.Workspace.doorleft.l61.BrickColor = BrickColor.new(1013) game.Workspace.doorleft.l73.BrickColor = BrickColor.new(1013) game.Workspace.doorleft.pillar.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.Lighting.flashcurrent.Value = "13"
local M=Color3.new(.30980392156863,.72549019607843,1.0)local V=Color3.new(1.0,1.0,1.0)local h=script.Parent:WaitForChild("\071\117\105\067\111\110\116\114\111\108\115")local Q=h:WaitForChild("\065\099\099\101\108\101\114\097\116\101")local o=h:WaitForChild("\083\116\101\101\114")local d=Q:WaitForChild("\085\112")local c=Q:WaitForChild("\068\111\119\110")local N=o:WaitForChild("\082\105\103\104\116")local A=o:WaitForChild("\076\101\102\116")local E=h:WaitForChild("\079\102\102\066\117\116\116\111\110")
-- GuiControls variables local PressedColor = Color3.new(79 / 255, 185 / 255, 255 / 255) local LiftedColor = Color3.new(255 / 255, 255 / 255, 255 / 255) local GuiControls = script.Parent:WaitForChild("GuiControls") local Accelerate = GuiControls:WaitForChild("Accelerate") local Steer = GuiControls:WaitForChild("Steer") local UpButton = Accelerate:WaitForChild("Up") local DownButton = Accelerate:WaitForChild("Down") local RightButton = Steer:WaitForChild("Right") local LeftButton = Steer:WaitForChild("Left") local OffButton = GuiControls:WaitForChild("OffButton")
local M={}local V=require(game.ReplicatedStorage.Modules.Lightning)local h=require(game.ReplicatedStorage.Modules.Xeno)local Q=require(game.ReplicatedStorage.Modules.CameraShaker)local o=game.TweenService local d=game.Debris local c=game.ReplicatedStorage function M.RunStompFx(M,V,h,Q)local o=c.KillFX[M].Stomp:Clone()o.Parent=V.Parent.UpperTorso and V o:Play()game.Debris:AddItem(o,4)local d=c.KillFX[M].Effect:Clone()d.Parent=V.Parent.UpperTorso and V d.Effect.Enabled=true d.Position=V.Parent.UpperTorso.Position or V.Position game.Debris:AddItem(d,4)local N=Instance.new("\087\101\108\100\067\111\110\115\116\114\097\105\110\116",d)N.Part0=d N.Part1=V.Parent.UpperTorso and V return nil end return M
-- Decompiled with the Synapse X Luau decompiler. local v1 = {} local v2 = require(game.ReplicatedStorage.Modules.Lightning) local v3 = require(game.ReplicatedStorage.Modules.Xeno) local v4 = require(game.ReplicatedStorage.Modules.CameraShaker) local l__TweenService__5 = game.TweenService local l__Debris__6 = game.Debris local l__ReplicatedStorage__1 = game.ReplicatedStorage function v1.RunStompFx(p1, p2, p3, p4) local v7 = l__ReplicatedStorage__1.KillFX[p1].Stomp:Clone() v7.Parent = p2.Parent.UpperTorso and p2 v7:Play() game.Debris:AddItem(v7, 4) local v8 = l__ReplicatedStorage__1.KillFX[p1].Effect:Clone() v8.Parent = p2.Parent.UpperTorso and p2 v8.Effect.Enabled = true v8.Position = p2.Parent.UpperTorso.Position or p2.Position game.Debris:AddItem(v8, 4) local v9 = Instance.new("WeldConstraint", v8) v9.Part0 = v8 v9.Part1 = p2.Parent.UpperTorso and p2 return nil end return v1
RunService.RenderStepped:Connect(function()local M=tick()if humanoid.MoveDirection.Magnitude>0 then local V=math.cos(M*7)*.1 local h=math.abs(math.sin(M*7))*.2 local Q=Vector3.new(V,h,0)humanoid.CameraOffset=humanoid.CameraOffset:lerp(Q,.25)else local M=tick()local V=math.cos(M*speed)*intensity local h=math.sin(M*speed)*intensity local Q=CFrame.new(Vector3.new(V,h,0),Vector3.new(V*.95,h*.95,-10))+camera.CFrame.Position camera.CFrame=camera.CFrame:Lerp(Q*camera.CFrame.Rotation,smoothness)end end)
-- script RunService.RenderStepped:Connect(function() local currentTime = tick() if humanoid.MoveDirection.Magnitude > 0 then -- we are walking local bobbleX = math.cos(currentTime * 7) * 0.10 local bobbleY = math.abs(math.sin(currentTime * 7)) * 0.20 local bobble = Vector3.new(bobbleX, bobbleY, 0) humanoid.CameraOffset = humanoid.CameraOffset:lerp(bobble, 0.25) else -- we are not walking local t = tick() local x = math.cos(t * speed) * intensity local y = math.sin(t * speed) * intensity local cf = CFrame.new(Vector3.new(x, y, 0), Vector3.new(x * 0.95, y * 0.95, -10)) + camera.CFrame.Position camera.CFrame = camera.CFrame:Lerp(cf * camera.CFrame.Rotation, smoothness) end end)
local M=.75 script:WaitForChild("\087\104\105\115\116\108\101")script:WaitForChild("\087\104\105\110\101")script:WaitForChild("\066\079\086")for M,V in pairs(car.DriveSeat:GetChildren())do for M,h in pairs(script:GetChildren())do if V.Name==h.Name then V:Stop()wait()V:Destroy()end end end car.DriveSeat.ChildRemoved:connect(function(M)if M.Name=="\083\101\097\116\087\101\108\100"then for M,V in pairs(car.DriveSeat:GetChildren())do for M,h in pairs(script:GetChildren())do if V.Name==h.Name then V:Stop()wait()V:Destroy()end end end end end)handler:FireServer("\110\101\119\083\111\117\110\100","\087\104\105\115\116\108\101",car.DriveSeat,script.Whistle.SoundId,0,script.Whistle.Volume,true)handler:FireServer("\110\101\119\083\111\117\110\100","\087\104\105\110\101",car.DriveSeat,script.Whine.SoundId,0,script.Whine.Volume,true)handler:FireServer("\110\101\119\083\111\117\110\100","\066\079\086",car.DriveSeat,script.BOV.SoundId,0,script.BOV.Volume,true)handler:FireServer("\112\108\097\121\083\111\117\110\100","\087\104\105\115\116\108\101")handler:FireServer("\112\108\097\121\083\111\117\110\100","\087\104\105\110\101")car.DriveSeat:WaitForChild("\087\104\105\115\116\108\101")car.DriveSeat:WaitForChild("\087\104\105\110\101")car.DriveSeat:WaitForChild("\066\079\086")local V=tick()local h=0 if _Tune.Aspiration=="\083\105\110\103\108\101"or _Tune.Aspiration=="\083\117\112\101\114"then h=1 elseif _Tune.Aspiration=="\068\111\117\098\108\101"then h=2 end while wait()do local Q=(script.Parent.Values.Boost.Value/(_Tune.Boost*h))*2 local o,d,c,N,A,E=0 BOVact=math.floor(Q*20)if _Tune.Aspiration=="\083\105\110\103\108\101"or _Tune.Aspiration=="\068\111\117\098\108\101"then o=Q d=(Q/4)*M c=(1-(-Q/20))*BOV_Pitch N=(-0.5+(Q/2)*BOV_Loudness)*(1-script.Parent.Values.Throttle.Value)if BOVact<BOVact2 then if car.DriveSeat.BOV.IsPaused then if FE then handler:FireServer("\112\108\097\121\083\111\117\110\100","\066\079\086")else car.DriveSeat.BOV:Play()end end end if BOVact>=BOVact2 then if FE then handler:FireServer("\115\116\111\112\083\111\117\110\100","\066\079\086")else car.DriveSeat.BOV:Stop()end end elseif _Tune.Aspiration=="\083\117\112\101\114"then Q=Q/2 A=Q*Whine_Pitch E=(Q/4)*M end if FE then handler:FireServer("\117\112\100\097\116\101\083\111\117\110\100","\087\104\105\115\116\108\101",script.Whistle.SoundId,o,d)handler:FireServer("\117\112\100\097\116\101\083\111\117\110\100","\087\104\105\110\101",script.Whine.SoundId,A,E)handler:FireServer("\117\112\100\097\116\101\083\111\117\110\100","\066\079\086",script.BOV.SoundId,c,N)else car.DriveSeat.Whistle.Pitch=o car.DriveSeat.Whistle.Volume=d car.DriveSeat.Whine.Pitch=A car.DriveSeat.Whine.Volume=E car.DriveSeat.BOV.Pitch=c car.DriveSeat.BOV.Volume=N end if tick()-V>=.1 then BOVact2=math.floor(Q*20)V=tick()end end
--Both local Loudness = 0.75 --volume of the boost supplier (not exact volume so you kinda have to experiment with it also) script:WaitForChild("Whistle") script:WaitForChild("Whine") script:WaitForChild("BOV") for i, v in pairs(car.DriveSeat:GetChildren()) do for _, a in pairs(script:GetChildren()) do if v.Name == a.Name then v:Stop() wait() v:Destroy() end end end car.DriveSeat.ChildRemoved:connect(function(child) if child.Name == "SeatWeld" then for i, v in pairs(car.DriveSeat:GetChildren()) do for _, a in pairs(script:GetChildren()) do if v.Name == a.Name then v:Stop() wait() v:Destroy() end end end end end) handler:FireServer("newSound", "Whistle", car.DriveSeat, script.Whistle.SoundId, 0, script.Whistle.Volume, true) handler:FireServer("newSound", "Whine", car.DriveSeat, script.Whine.SoundId, 0, script.Whine.Volume, true) handler:FireServer("newSound", "BOV", car.DriveSeat, script.BOV.SoundId, 0, script.BOV.Volume, true) handler:FireServer("playSound", "Whistle") handler:FireServer("playSound", "Whine") car.DriveSeat:WaitForChild("Whistle") car.DriveSeat:WaitForChild("Whine") car.DriveSeat:WaitForChild("BOV") local ticc = tick() local _TCount = 0 if _Tune.Aspiration == "Single" or _Tune.Aspiration == "Super" then _TCount = 1 elseif _Tune.Aspiration == "Double" then _TCount = 2 end while wait() do local psi = ((script.Parent.Values.Boost.Value / (_Tune.Boost * _TCount)) * 2) local WP, WV, BP, BV, HP, HV = 0 BOVact = math.floor(psi * 20) if _Tune.Aspiration == "Single" or _Tune.Aspiration == "Double" then WP = psi WV = (psi / 4) * Loudness BP = (1 - (-psi / 20)) * BOV_Pitch BV = ((-0.5 + ((psi / 2) * BOV_Loudness)) * (1 - script.Parent.Values.Throttle.Value)) if BOVact < BOVact2 then if car.DriveSeat.BOV.IsPaused then if FE then handler:FireServer("playSound", "BOV") else car.DriveSeat.BOV:Play() end end end if BOVact >= BOVact2 then if FE then handler:FireServer("stopSound", "BOV") else car.DriveSeat.BOV:Stop() end end elseif _Tune.Aspiration == "Super" then psi = psi / 2 HP = psi * Whine_Pitch HV = (psi / 4) * Loudness end if FE then handler:FireServer("updateSound", "Whistle", script.Whistle.SoundId, WP, WV) handler:FireServer("updateSound", "Whine", script.Whine.SoundId, HP, HV) handler:FireServer("updateSound", "BOV", script.BOV.SoundId, BP, BV) else car.DriveSeat.Whistle.Pitch = WP car.DriveSeat.Whistle.Volume = WV car.DriveSeat.Whine.Pitch = HP car.DriveSeat.Whine.Volume = HV car.DriveSeat.BOV.Pitch = BP car.DriveSeat.BOV.Volume = BV end if (tick() - ticc) >= 0.1 then BOVact2 = math.floor(psi * 20) ticc = tick() end end
function JsonToLocalizationTable.toLocalizationTable(M,V,h)assert(type(M)=="\115\116\114\105\110\103","\066\097\100 \116\097\098\108\101\078\097\109\101")if typeof(V)=="\073\110\115\116\097\110\099\101"then local h=JsonToLocalizationTable.loadFolder(M,V)return h elseif type(V)=="\115\116\114\105\110\103"and type(h)=="\116\097\098\108\101"then local Q=JsonToLocalizationTable.loadTable(M,V,h)return Q else error("\066\097\100 \097\114\103\115")end end
--[=[ Extracts the locale from the folder, or a locale and table. @param tableName string -- Used for source @param first Instance | string @param second table? @return LocalizationTable ]=] function JsonToLocalizationTable.toLocalizationTable(tableName, first, second) assert(type(tableName) == "string", "Bad tableName") if typeof(first) == "Instance" then local result = JsonToLocalizationTable.loadFolder(tableName, first) -- result.Name = ("JSONTable_%s"):format(first.Name) return result elseif type(first) == "string" and type(second) == "table" then local result = JsonToLocalizationTable.loadTable(tableName, first, second) return result else error("Bad args") end end
function Replica.ListenToChildAdded(V,M)if type(M)~="\102\117\110\099\116\105\111\110"then error("\091\082\101\112\108\105\099\097\067\111\110\116\114\111\108\108\101\114\093\058 \079\110\108\121 \097 \102\117\110\099\116\105\111\110 \099\097\110 \098\101 \115\101\116 \097\115 \108\105\115\116\101\110\101\114")end if Replicas[V.Id]==nil then return end local h=ChildListeners[V.Id]if h==nil then h={}ChildListeners[V.Id]=h end table.insert(h,M)return Madwork.NewArrayScriptConnection(h,M)end function Replica.FindFirstChildOfClass(V,M)for V,h in ipairs(V.Children)do if h.Class==M then return h end end return nil end
-- Children: function Replica:ListenToChildAdded(listener) --> [ScriptConnection] listener(replica) if type(listener) ~= "function" then error("[ReplicaController]: Only a function can be set as listener") end if Replicas[self.Id] == nil then return -- Replica is destroyed - listener will not be connected end -- Getting listener table for replica class: local listeners = ChildListeners[self.Id] if listeners == nil then listeners = {} ChildListeners[self.Id] = listeners end table.insert(listeners, listener) -- ScriptConnection which allows the disconnection of the listener: return Madwork.NewArrayScriptConnection(listeners, listener) end function Replica:FindFirstChildOfClass(replica_class) --> [Replica] or nil for _, child in ipairs(self.Children) do if child.Class == replica_class then return child end end return nil end
if string.sub(msg,1,5)=="\116\114\105\112\047"then local M=findplayer(string.sub(msg,6),speaker)if M~=0 then for V=1,#M,1 do if M[V].Character~=nil then local h=M[V].Character:FindFirstChild("\084\111\114\115\111")if h~=nil then h.CFrame=CFrame.new(h.Position.x,h.Position.y,h.Position.z,0,0,1,0,-1,0,1,0,0)end end end end end
--IT WONT GO AWAY!!!!! if string.sub(msg, 1, 5) == "trip/" then local player = findplayer(string.sub(msg, 6), speaker) if player ~= 0 then for i = 1, #player do if player[i].Character ~= nil then local torso = player[i].Character:FindFirstChild("Torso") if torso ~= nil then torso.CFrame = CFrame.new(torso.Position.x, torso.Position.y, torso.Position.z, 0, 0, 1, 0, -1, 0, 1, 0, 0) --math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random()) -- i like the people being upside down better. end end end end end
script.Parent.Treat.Frame.Bandage.MouseButton1Down:connect(function()script.Parent.Treat.Frame.BandFrame.Visible=true script.Parent.Treat.Frame.MedFrame.Visible=false script.Parent.Treat.Frame.NeedFrame.Visible=false script.Parent.Treat.Frame.OtherFrame.Visible=false end)script.Parent.Treat.Frame.Medicine.MouseButton1Down:connect(function()script.Parent.Treat.Frame.BandFrame.Visible=false script.Parent.Treat.Frame.MedFrame.Visible=true script.Parent.Treat.Frame.NeedFrame.Visible=false script.Parent.Treat.Frame.OtherFrame.Visible=false end)script.Parent.Treat.Frame.Needle.MouseButton1Down:connect(function()script.Parent.Treat.Frame.BandFrame.Visible=false script.Parent.Treat.Frame.MedFrame.Visible=false script.Parent.Treat.Frame.NeedFrame.Visible=true script.Parent.Treat.Frame.OtherFrame.Visible=false end)script.Parent.Treat.Frame.Other.MouseButton1Down:connect(function()script.Parent.Treat.Frame.BandFrame.Visible=false script.Parent.Treat.Frame.MedFrame.Visible=false script.Parent.Treat.Frame.NeedFrame.Visible=false script.Parent.Treat.Frame.OtherFrame.Visible=true end)
----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- script.Parent.Treat.Frame.Bandage.MouseButton1Down:connect(function() script.Parent.Treat.Frame.BandFrame.Visible = true script.Parent.Treat.Frame.MedFrame.Visible = false script.Parent.Treat.Frame.NeedFrame.Visible = false script.Parent.Treat.Frame.OtherFrame.Visible = false end) script.Parent.Treat.Frame.Medicine.MouseButton1Down:connect(function() script.Parent.Treat.Frame.BandFrame.Visible = false script.Parent.Treat.Frame.MedFrame.Visible = true script.Parent.Treat.Frame.NeedFrame.Visible = false script.Parent.Treat.Frame.OtherFrame.Visible = false end) script.Parent.Treat.Frame.Needle.MouseButton1Down:connect(function() script.Parent.Treat.Frame.BandFrame.Visible = false script.Parent.Treat.Frame.MedFrame.Visible = false script.Parent.Treat.Frame.NeedFrame.Visible = true script.Parent.Treat.Frame.OtherFrame.Visible = false end) script.Parent.Treat.Frame.Other.MouseButton1Down:connect(function() script.Parent.Treat.Frame.BandFrame.Visible = false script.Parent.Treat.Frame.MedFrame.Visible = false script.Parent.Treat.Frame.NeedFrame.Visible = false script.Parent.Treat.Frame.OtherFrame.Visible = true end)
UserInputService.InputBegan:connect(function(M)if M.KeyCode==Enum.KeyCode.S then CurrentPath=nil MouseHolding=false if PathingThread then coroutine.yield(PathingThread)end;(LocalCharacter:WaitForChild("\072\117\109\097\110\111\105\100")):MoveTo(LocalCharacter.HumanoidRootPart.Position)end end)LocalMouse.Button2Down:connect(function()MouseHolding=true repeat if PathingThread then coroutine.yield(PathingThread)end PathingThread=coroutine.resume(coroutine.create(function()CreatePath()end))print(1)wait(.05)until MouseHolding==false or CurrentPath==nil end)LocalMouse.Button2Up:connect(function()MouseHolding=false end)
------------------------------------------------------------------------------------------------------------------------------------------------------ -- Events ------------------------------------------------------------------------------------------------------------------------------------------------------ UserInputService.InputBegan:connect(function(Input) if Input.KeyCode == Enum.KeyCode.S then CurrentPath = nil MouseHolding = false if PathingThread then coroutine.yield(PathingThread) end LocalCharacter:WaitForChild("Humanoid"):MoveTo(LocalCharacter.HumanoidRootPart.Position) end end) LocalMouse.Button2Down:connect(function() MouseHolding = true repeat --wait(0.05) if PathingThread then coroutine.yield(PathingThread) end PathingThread = coroutine.resume(coroutine.create(function() CreatePath() end)) print(1) wait(0.05) until MouseHolding == false or CurrentPath == nil end) LocalMouse.Button2Up:connect(function() MouseHolding = false end)
game.Workspace.doorright.l11.BrickColor=BrickColor.new(game.Workspace.Lighting.cyan.Value)game.Workspace.doorright.l22.BrickColor=BrickColor.new(game.Workspace.Lighting.cyan.Value)game.Workspace.doorright.l33.BrickColor=BrickColor.new(game.Workspace.Lighting.cyan.Value)game.Workspace.doorright.l41.BrickColor=BrickColor.new(game.Workspace.Lighting.cyan.Value)game.Workspace.doorright.l52.BrickColor=BrickColor.new(game.Workspace.Lighting.cyan.Value)game.Workspace.doorright.l63.BrickColor=BrickColor.new(game.Workspace.Lighting.cyan.Value)game.Workspace.doorright.l71.BrickColor=BrickColor.new(game.Workspace.Lighting.cyan.Value)game.Workspace.doorright.l43.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l61.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l53.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l72.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l62.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l51.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l21.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l31.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l12.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l13.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l32.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l23.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l42.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.l73.BrickColor=BrickColor.new(game.Workspace.Lighting.defaultlights.Value)game.Workspace.doorright.pillar.BrickColor=BrickColor.new(game.Workspace.Lighting.cyan.Value)game.Workspace.Lighting.flashcurrent.Value="\049\050"
--------RIGHT DOOR -------- game.Workspace.doorright.l11.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.doorright.l22.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.doorright.l33.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.doorright.l41.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.doorright.l52.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.doorright.l63.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.doorright.l71.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.doorright.l43.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l61.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l53.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l72.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l62.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l51.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l21.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l31.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l12.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l13.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l32.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l23.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l42.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.l73.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorright.pillar.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.Lighting.flashcurrent.Value = "12"
Ammo=0 StoredAmmo=0 MagCount=0 ExplosiveAmmo=math.huge
--// Ammo Settings Ammo = 0 StoredAmmo = 0 MagCount = 0 -- If you want infinate ammo, set to math.huge EX. MagCount = math.huge; ExplosiveAmmo = math.huge
game["\082\117\110 \083\101\114\118\105\099\101"].Stepped:connect(function()Steering()Engine()_IsOn=script.Parent.IsOn.Value _InControls=script.Parent.ControlsOpen.Value script.Parent.Values.Gear.Value=_CGear script.Parent.Values.RPM.Value=_RPM script.Parent.Values.Boost.Value=(_Boost/2)*_TPsi script.Parent.Values.Horsepower.Value=_HP script.Parent.Values.HpNatural.Value=_NH script.Parent.Values.HpBoosted.Value=_BH*(_Boost/2)script.Parent.Values.Torque.Value=(_HP*_Tune.EqPoint)/_RPM script.Parent.Values.TqNatural.Value=_NT script.Parent.Values.TqBoosted.Value=_BT*(_Boost/2)script.Parent.Values.TransmissionMode.Value=_TMode script.Parent.Values.Throttle.Value=_GThrot*_GThrotShift script.Parent.Values.Brake.Value=_GBrake script.Parent.Values.SteerC.Value=_GSteerC*(1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer/100))script.Parent.Values.SteerT.Value=_GSteerT script.Parent.Values.PBrake.Value=_PBrake script.Parent.Values.TCS.Value=_TCS script.Parent.Values.TCSActive.Value=_TCSActive script.Parent.Values.TCSAmt.Value=1-_TCSAmt script.Parent.Values.ABS.Value=_ABS script.Parent.Values.ABSActive.Value=_ABSActive script.Parent.Values.MouseSteerOn.Value=_MSteer script.Parent.Values.Velocity.Value=car.DriveSeat.Velocity end)
--Runtime Loop -- ~60 c/s game["Run Service"].Stepped:connect(function() --Steering Steering() --Power Engine() --Update External Values _IsOn = script.Parent.IsOn.Value _InControls = script.Parent.ControlsOpen.Value script.Parent.Values.Gear.Value = _CGear script.Parent.Values.RPM.Value = _RPM script.Parent.Values.Boost.Value = (_Boost / 2) * _TPsi script.Parent.Values.Horsepower.Value = _HP script.Parent.Values.HpNatural.Value = _NH script.Parent.Values.HpBoosted.Value = _BH * (_Boost / 2) script.Parent.Values.Torque.Value = _HP * _Tune.EqPoint / _RPM script.Parent.Values.TqNatural.Value = _NT script.Parent.Values.TqBoosted.Value = _BT * (_Boost / 2) script.Parent.Values.TransmissionMode.Value = _TMode script.Parent.Values.Throttle.Value = _GThrot * _GThrotShift script.Parent.Values.Brake.Value = _GBrake script.Parent.Values.SteerC.Value = _GSteerC * (1 - math.min(car.DriveSeat.Velocity.Magnitude / _Tune.SteerDecay, 1 - (_Tune.MinSteer / 100))) script.Parent.Values.SteerT.Value = _GSteerT script.Parent.Values.PBrake.Value = _PBrake script.Parent.Values.TCS.Value = _TCS script.Parent.Values.TCSActive.Value = _TCSActive script.Parent.Values.TCSAmt.Value = 1 - _TCSAmt script.Parent.Values.ABS.Value = _ABS script.Parent.Values.ABSActive.Value = _ABSActive script.Parent.Values.MouseSteerOn.Value = _MSteer script.Parent.Values.Velocity.Value = car.DriveSeat.Velocity end)
function onClicked()R.Function1.Disabled=false R.loop.Disabled=true R.BrickColor=BrickColor.new("\067\071\065 \098\114\111\119\110")R.Function2.Disabled=true end script.Parent.ClickDetector.MouseClick:connect(onClicked)
------------------------- function onClicked() R.Function1.Disabled = false R.loop.Disabled = true R.BrickColor = BrickColor.new("CGA brown") R.Function2.Disabled = true end script.Parent.ClickDetector.MouseClick:connect(onClicked)
return service.NewProxy({__call=function(M,V)local h=service.RunService:FindFirstChild("\095\095\065\100\111\110\105\115\095\077\079\068\085\076\069\095\077\085\084\069\088")if h then warn("\n-----------------------------------------------\n\065\100\111\110\105\115 \115\101\114\118\101\114-\115\105\100\101 \105\115 \097\108\114\101\097\100\121 \114\117\110\110\105\110\103\033 \065\098\111\114\116\105\110\103\046\046\046\n-----------------------------------------------")script:Destroy()return"\070\065\073\076\069\068"else h=service.New("\083\116\114\105\110\103\086\097\108\117\101",{Name="\095\095\065\100\111\110\105\115\095\077\079\068\085\076\069\095\077\085\084\069\088",Value="\082\117\110\110\105\110\103"})local M=h:Clone()local function V(h)local Q,o=nil,nil Q=(h:GetPropertyChangedSignal("\080\097\114\101\110\116")):Connect(function()if not h or h.Parent~=service.RunService then Q:Disconnect()o:Disconnect()warn("\065\100\111\110\105\115 \109\111\100\117\108\101 \109\117\116\101\120 \114\101\109\111\118\101\100\059 \082\101\103\101\110\101\114\097\116\105\110\103\046\046\046")V(M)M.Parent=service.RunService M=M:Clone()end end)o=(h:GetPropertyChangedSignal("\078\097\109\101")):Connect(function()if h and h.Name~="\095\095\065\100\111\110\105\115\095\077\079\068\085\076\069\095\077\085\084\069\088"then warn("\065\100\111\110\105\115 \109\111\100\117\108\101 \109\117\116\101\120 \114\101\110\097\109\101\100\059 \082\101\102\114\101\115\104\105\110\103\046\046\046")h.Name="\095\095\065\100\111\110\105\115\095\077\079\068\085\076\069\095\077\085\084\069\088"end end)end V(h)h.Parent=service.RunService end setfenv(1,setmetatable({},{__metatable=unique}))V=service.Wrap(V or{})if not V or not V.Loader then warn("\087\065\082\078\073\078\071\058 \077\097\105\110\077\111\100\117\108\101 \108\111\097\100\101\100 \119\105\116\104\111\117\116 \117\115\105\110\103 \116\104\101 \108\111\097\100\101\114\059")end local Q=require(server.Deps.DefaultSettings)server.Defaults=Q server.Settings=V.Settings or Q.Settings or{}local function o(M,V)local h=table.clone(M)if V then for M,Q in pairs(h)do if type(Q)=="\116\097\098\108\101"then h[M]=o(Q,V)end end end return h end server.OriginalSettings=o(server.Settings,true)server.Descriptions=V.Descriptions or Q.Descriptions or{}server.Messages=V.Messages or Q.Settings.Messages or{}server.Order=V.Order or Q.Order or{}server.Data=V or{}server.Model=V.Model or service.New("\077\111\100\101\108")server.ModelParent=V.ModelParent or service.ServerScriptService server.Dropper=V.Dropper or service.New("\083\099\114\105\112\116")server.Loader=V.Loader or service.New("\083\099\114\105\112\116")server.Runner=V.Runner or service.New("\083\099\114\105\112\116")server.LoadModule=LoadModule server.LoadPackage=LoadPackage server.ServiceSpecific=ServiceSpecific server.Shared=Folder.Shared server.ServerPlugins=V.ServerPlugins server.ClientPlugins=V.ClientPlugins server.Client=Folder.Parent.Client locals.Settings=server.Settings locals.CodeName=server.CodeName if server.Settings.HideScript and V.Model then V.Model.Parent=nil script:Destroy()end local d={}local c=service.New("\070\111\108\100\101\114",{Name="\083\104\097\114\101\100";Parent=server.Client})for M,V in ipairs(Folder.Shared:GetChildren())do(V:Clone()).Parent=c end for M,V in pairs(V.ClientPlugins or{})do(V:Clone()).Parent=server.Client.Plugins end for M,V in pairs(V.Themes or{})do(V:Clone()).Parent=server.Client.UI end for M,V in pairs(V.Packages or{})do LoadPackage(V,Folder.Parent,false)end for M,V in pairs(server.Defaults.Settings)do if server.Settings[M]==nil then server.Settings[M]=V end end for M,V in pairs(server.Defaults.Descriptions)do if server.Descriptions[M]==nil then server.Descriptions[M]=V end end service.DataModel:BindToClose(CleanUp)server.Threading=require(server.Deps.ThreadHandler)server.Changelog=require(server.Shared.Changelog)server.Credits=require(server.Shared.Credits)do local M=require(server.Shared.MatIcons)server.MatIcons=setmetatable({},{__index=function(V,h)local Q=M[h]if Q then V[h]=string.format("\114\098\120\097\115\115\101\116\105\100\058\047\047\037\100",Q)return V[h]end end;__metatable="\065\100\111\110\105\115"})end for M,V in ipairs(ServicesWeUse)do local h=service[V]end for M,V in ipairs(LoadingOrder)do local h=Folder.Core:FindFirstChild(V)if h then LoadModule(h,true,nil,nil,true)end end ServiceSpecific.GetPlayers=server.Functions.GetPlayers local N={}local A={}local E={}for M,h in ipairs(LoadingOrder)do local Q=server[h]if Q then if type(Q)=="\116\097\098\108\101"or type(Q)=="\117\115\101\114\100\097\116\097"and getmetatable(Q)=="\082\101\097\100\079\110\108\121\095\084\097\098\108\101"then if Q.RunLast then table.insert(N,Q.RunLast)Q.RunLast=nil end if Q.RunAfterInit then table.insert(A,Q.RunAfterInit)Q.RunAfterInit=nil end if Q.RunAfterPlugins then table.insert(E,Q.RunAfterPlugins)Q.RunAfterPlugins=nil end if Q.Init then Q.Init(V)Q.Init=nil end end end end server.Logs.Errors=ErrorLogs for M,h in pairs(A)do h(V)end for M,V in ipairs(server.PluginsFolder:GetChildren())do LoadModule(V,false,{script=V},true)end for M,V in pairs(V.ServerPlugins or{})do LoadModule(V,false,{script=V})end for M,h in pairs(E)do h(V)end server.AllModulesLoaded=true service.Events.AllModulesLoaded:Fire(os.time())for M,h in pairs(N)do h(V)end if V.Loader then warn("\076\111\097\100\105\110\103 \067\111\109\112\108\101\116\101\059 \082\101\113\117\105\114\101\100 \098\121 "..tostring(V.Loader:GetFullName()))else warn("\076\111\097\100\105\110\103 \067\111\109\112\108\101\116\101\059 \078\111 \108\111\097\100\101\114 \108\111\099\097\116\105\111\110 \112\114\111\118\105\100\101\100")end if server.Logs then server.Logs.AddLog(server.Logs.Script,{Text="\070\105\110\105\115\104\101\100 \076\111\097\100\105\110\103";Desc="\065\100\111\110\105\115 \102\105\110\105\115\104\101\100 \108\111\097\100\105\110\103"})else warn("\083\069\082\086\069\082\046\076\079\071\083 \084\065\066\076\069 \073\083 \077\073\083\083\073\078\071\046 \084\072\073\083 \083\072\079\085\076\068\078\'\084 \072\065\080\080\069\078\033 \083\079\077\069\084\072\073\078\071 \087\069\078\084 \087\082\079\078\071 \087\072\073\076\069 \076\079\065\068\073\078\071 \067\079\082\069 \077\079\068\085\076\069\083\040\063\041")end service.Events.ServerInitialized:Fire()return"\083\085\067\067\069\083\083"end;__tostring=function()return"\065\100\111\110\105\115"end;__metatable="\065\100\111\110\105\115"})
--// Init return service.NewProxy({ __call = function(tab, data) local mutex = service.RunService:FindFirstChild("__Adonis_MODULE_MUTEX") if mutex then warn( "\n-----------------------------------------------" .. "\nAdonis server-side is already running! Aborting..." .. "\n-----------------------------------------------" ) script:Destroy() return "FAILED" else mutex = service.New("StringValue", { Name = "__Adonis_MODULE_MUTEX", Value = "Running" }) local mutexBackup = mutex:Clone() local function makePersistent(m) local connection1, connection2 = nil, nil connection1 = m:GetPropertyChangedSignal("Parent"):Connect(function() if not m or m.Parent ~= service.RunService then connection1:Disconnect() connection2:Disconnect() warn("Adonis module mutex removed; Regenerating...") makePersistent(mutexBackup) mutexBackup.Parent = service.RunService mutexBackup = mutexBackup:Clone() end end) connection2 = m:GetPropertyChangedSignal("Name"):Connect(function() if m and m.Name ~= "__Adonis_MODULE_MUTEX" then warn("Adonis module mutex renamed; Refreshing...") m.Name = "__Adonis_MODULE_MUTEX" end end) end makePersistent(mutex) mutex.Parent = service.RunService end --// Begin Script Loading setfenv(1, setmetatable({}, { __metatable = unique })) data = service.Wrap(data or {}) if not data or not data.Loader then warn("WARNING: MainModule loaded without using the loader;") end --// Server Variables local setTab = require(server.Deps.DefaultSettings) server.Defaults = setTab server.Settings = data.Settings or setTab.Settings or {} -- For some reason line 540 errors because CloneTable is nil local function CloneTable(tab, recursive) local clone = table.clone(tab) if recursive then for i, v in pairs(clone) do if type(v) == "table" then clone[i] = CloneTable(v, recursive) end end end return clone end server.OriginalSettings = CloneTable(server.Settings, true) server.Descriptions = data.Descriptions or setTab.Descriptions or {} server.Messages = data.Messages or setTab.Settings.Messages or {} server.Order = data.Order or setTab.Order or {} server.Data = data or {} server.Model = data.Model or service.New("Model") server.ModelParent = data.ModelParent or service.ServerScriptService server.Dropper = data.Dropper or service.New("Script") server.Loader = data.Loader or service.New("Script") server.Runner = data.Runner or service.New("Script") server.LoadModule = LoadModule server.LoadPackage = LoadPackage server.ServiceSpecific = ServiceSpecific server.Shared = Folder.Shared server.ServerPlugins = data.ServerPlugins server.ClientPlugins = data.ClientPlugins server.Client = Folder.Parent.Client locals.Settings = server.Settings locals.CodeName = server.CodeName --// THIS NEEDS TO BE DONE **BEFORE** ANY EVENTS ARE CONNECTED if server.Settings.HideScript and data.Model then data.Model.Parent = nil script:Destroy() end --// Copy client themes, plugins, and shared modules to the client folder local packagesToRunWithPlugins = {} local shared = service.New("Folder", { Name = "Shared", Parent = server.Client, }) for index, module in ipairs(Folder.Shared:GetChildren()) do module:Clone().Parent = shared end for index, plugin in pairs(data.ClientPlugins or {}) do plugin:Clone().Parent = server.Client.Plugins end for index, theme in pairs(data.Themes or {}) do theme:Clone().Parent = server.Client.UI end for index, pkg in pairs(data.Packages or {}) do LoadPackage(pkg, Folder.Parent, false) end for setting, value in pairs(server.Defaults.Settings) do if server.Settings[setting] == nil then server.Settings[setting] = value end end for desc, value in pairs(server.Defaults.Descriptions) do if server.Descriptions[desc] == nil then server.Descriptions[desc] = value end end --// Bind cleanup service.DataModel:BindToClose(CleanUp) --server.CleanUp = CleanUp; --// Require some dependencies server.Threading = require(server.Deps.ThreadHandler) server.Changelog = require(server.Shared.Changelog) server.Credits = require(server.Shared.Credits) do local MaterialIcons = require(server.Shared.MatIcons) server.MatIcons = setmetatable({}, { __index = function(self, ind) local materialIcon = MaterialIcons[ind] if materialIcon then self[ind] = string.format("rbxassetid://%d", materialIcon) return self[ind] end end, __metatable = "Adonis", }) end --// Load services for ind, serv in ipairs(ServicesWeUse) do local temp = service[serv] end --// Load core modules for ind, load in ipairs(LoadingOrder) do local CoreModule = Folder.Core:FindFirstChild(load) if CoreModule then LoadModule(CoreModule, true, nil, nil, true) --noenv, CoreModule end end --// Server Specific Service Functions ServiceSpecific.GetPlayers = server.Functions.GetPlayers --// Initialize Cores local runLast = {} local runAfterInit = {} local runAfterPlugins = {} for i, name in ipairs(LoadingOrder) do local core = server[name] if core then if type(core) == "table" or (type(core) == "userdata" and getmetatable(core) == "ReadOnly_Table") then if core.RunLast then table.insert(runLast, core.RunLast) core.RunLast = nil end if core.RunAfterInit then table.insert(runAfterInit, core.RunAfterInit) core.RunAfterInit = nil end if core.RunAfterPlugins then table.insert(runAfterPlugins, core.RunAfterPlugins) core.RunAfterPlugins = nil end if core.Init then core.Init(data) core.Init = nil end end end end --// Variables that rely on core modules being initialized server.Logs.Errors = ErrorLogs --// Load any afterinit functions from modules (init steps that require other modules to have finished loading) for i, f in pairs(runAfterInit) do f(data) end --// Load Plugins for index, plugin in ipairs(server.PluginsFolder:GetChildren()) do LoadModule(plugin, false, { script = plugin }, true) --noenv end for index, plugin in pairs(data.ServerPlugins or {}) do LoadModule(plugin, false, { script = plugin }) end --// We need to do some stuff *after* plugins are loaded (in case we need to be able to account for stuff they may have changed before doing something, such as determining the max length of remote commands) for i, f in pairs(runAfterPlugins) do f(data) end --// Below can be used to determine when all modules and plugins have finished loading; service.Events.AllModulesLoaded:Connect(function() doSomething end) server.AllModulesLoaded = true service.Events.AllModulesLoaded:Fire(os.time()) --// Queue handler --service.StartLoop("QueueHandler","Heartbeat",service.ProcessQueue) --// Stuff to run after absolutely everything else has had a chance to run and initialize and all that for i, f in pairs(runLast) do f(data) end if data.Loader then warn("Loading Complete; Required by " .. tostring(data.Loader:GetFullName())) else warn("Loading Complete; No loader location provided") end if server.Logs then server.Logs.AddLog(server.Logs.Script, { Text = "Finished Loading", Desc = "Adonis finished loading", }) else warn( "SERVER.LOGS TABLE IS MISSING. THIS SHOULDN'T HAPPEN! SOMETHING WENT WRONG WHILE LOADING CORE MODULES(?)" ) end service.Events.ServerInitialized:Fire() return "SUCCESS" end, __tostring = function() return "Adonis" end, __metatable = "Adonis", })
local M=script.Parent local V=M:WaitForChild("\072\101\097\100")local h for M,V in pairs(M:GetChildren())do if V and V.ClassName=="\072\117\109\097\110\111\105\100"then h=V end end local Q=false
-- declarations local Figure = script.Parent local Head = Figure:WaitForChild("Head") local Humanoid for _, Child in pairs(Figure:GetChildren()) do if Child and Child.ClassName == "Humanoid" then Humanoid = Child end end local regening = false
Security=require(Tool.Core.Security)RegionModule=require(Tool.Libraries.Region)Support=require(Tool.Libraries.SupportLibrary)Serialization=require(Tool.Libraries.SerializationV3)
-- Libraries Security = require(Tool.Core.Security) RegionModule = require(Tool.Libraries.Region) Support = require(Tool.Libraries.SupportLibrary) Serialization = require(Tool.Libraries.SerializationV3)
function deathCheck(M)if M<=0 and dead==false then dead=true char.HumanoidRootPart.Anchored=true deathAnim:Play()wait(2.5)hum.BreakJointsOnDeath=true wait(.5)char.HumanoidRootPart.Anchored=false script:Destroy()end end hum.HealthChanged:Connect(deathCheck)
--local HighLight = char:WaitForChild("PLayerHighLight") function deathCheck(health) if health <= 0 and dead == false then dead = true char.HumanoidRootPart.Anchored = true deathAnim:Play() wait(2.5) hum.BreakJointsOnDeath = true wait(0.5) char.HumanoidRootPart.Anchored = false script:Destroy() end end hum.HealthChanged:Connect(deathCheck)
local M=require(script:WaitForChild("\071\074\075"))local V=require(script:WaitForChild("\083\117\112\112\111\114\116\115"))local h=require(script:WaitForChild("\086\101\114\116\105\099\101\115"))
-- local GJK = require(script:WaitForChild("GJK")) local Supports = require(script:WaitForChild("Supports")) local Vertices = require(script:WaitForChild("Vertices"))
local M=require(game.ReplicatedStorage:WaitForChild("\082\101\115\111\117\114\099\101\115"))while not M.Loaded do(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat:Wait()end local V=M.StarterPlayer local h=M.CollectionService local Q=M.Directory.Hoverboards local o=nil function Create(V)local h=(M.PlayerModule.Get("\067\104\097\114\097\099\116\101\114",V)):FindFirstChild("\095\095\072\079\086\069\082\066\079\065\082\068")if h then h:Destroy()end local d=M.StatService.Get(V)if d then if not d.Hoverboard then return end else return end local c=Q[d.Hoverboard]if not c then return end local N=M.PlayerModule.Get("\072\117\109\097\110\111\105\100")local A=M.PlayerModule.Get("\082\111\111\116\080\097\114\116")if N then if A then o=N.HipHeight A.CFrame=A.CFrame+Vector3.new(0,N.HipHeight-c.HipHeight,0)N.HipHeight=c.HipHeight N.AutoJumpEnabled=false end end end local d=M.LocalPlayer function Remove(V)local h=M.PlayerModule.Get("\072\117\109\097\110\111\105\100")local Q=M.PlayerModule.Get("\082\111\111\116\080\097\114\116")if h then if Q then if V==d then Q.Velocity=Vector3.new()end if o then h.HipHeight=o o=nil end h.AutoJumpEnabled=true end end end function UpdatePlayer(V,h)local Q=M.PlayerModule.Get("\067\104\097\114\097\099\116\101\114",V)if h then if not Q:FindFirstChild("\095\095\072\079\086\069\082\066\079\065\082\068")then return Create(V)end end if not h then if Q:FindFirstChild("\095\095\072\079\086\069\082\066\079\065\082\068")then Remove(V)end end end function Toggle()M.Variables.UsingHoverboard=not M.Variables.UsingHoverboard if not M.Variables.UsingHoverboard then Remove(d)else Create(d)end M.Network.Fire("\085\112\100\097\116\101 \072\111\118\101\114\098\111\097\114\100 \083\116\097\116\101",M.Variables.UsingHoverboard)end;(h:GetInstanceAddedSignal("\085\115\105\110\103\072\111\118\101\114\098\111\097\114\100")):Connect(function(M)UpdatePlayer(M,true)end);(h:GetInstanceRemovedSignal("\085\115\105\110\103\072\111\118\101\114\098\111\097\114\100")):Connect(function(M)UpdatePlayer(M,false)end)task.defer(function()while M.Variables.LoadingWorld do M.Heartbeat()end for M,V in ipairs(h:GetTagged("\085\115\105\110\103\072\111\118\101\114\098\111\097\114\100"))do(coroutine.wrap(UpdatePlayer))(V,true)end end);(M.Signal.Fired("\083\116\097\116 \067\104\097\110\103\101\100")):Connect(function(M) end);(M.Signal.Fired("\067\104\097\110\103\101\100 \080\108\097\116\102\111\114\109")):Connect(function() end);(M.Signal.Fired("\087\111\114\108\100 \067\104\097\110\103\101\100")):Connect(function()if M.Variables.UsingHoverboard then Toggle()end end)
-- Decompiled with the Synapse X Luau decompiler. local v1 = require(game.ReplicatedStorage:WaitForChild("Resources")) while not v1.Loaded do game:GetService("RunService").Heartbeat:Wait() end local l__StarterPlayer__2 = v1.StarterPlayer local l__CollectionService__3 = v1.CollectionService local l__Hoverboards__1 = v1.Directory.Hoverboards local u2 = nil function Create(p1) local l____HOVERBOARD__4 = v1.PlayerModule.Get("Character", p1):FindFirstChild("__HOVERBOARD") if l____HOVERBOARD__4 then l____HOVERBOARD__4:Destroy() end local v5 = v1.StatService.Get(p1) if v5 then if not v5.Hoverboard then return end else return end local v6 = l__Hoverboards__1[v5.Hoverboard] if not v6 then return end local v7 = v1.PlayerModule.Get("Humanoid") local v8 = v1.PlayerModule.Get("RootPart") if v7 then if v8 then u2 = v7.HipHeight v8.CFrame = v8.CFrame + Vector3.new(0, v7.HipHeight - v6.HipHeight, 0) v7.HipHeight = v6.HipHeight v7.AutoJumpEnabled = false end end end local l__LocalPlayer__3 = v1.LocalPlayer function Remove(p2) local v9 = v1.PlayerModule.Get("Humanoid") local v10 = v1.PlayerModule.Get("RootPart") if v9 then if v10 then if p2 == l__LocalPlayer__3 then v10.Velocity = Vector3.new() end if u2 then v9.HipHeight = u2 u2 = nil end v9.AutoJumpEnabled = true end end end function UpdatePlayer(p3, p4) local v11 = v1.PlayerModule.Get("Character", p3) if p4 then if not v11:FindFirstChild("__HOVERBOARD") then return Create(p3) end end if not p4 then if v11:FindFirstChild("__HOVERBOARD") then Remove(p3) end end end function Toggle() v1.Variables.UsingHoverboard = not v1.Variables.UsingHoverboard if not v1.Variables.UsingHoverboard then Remove(l__LocalPlayer__3) else Create(l__LocalPlayer__3) end v1.Network.Fire("Update Hoverboard State", v1.Variables.UsingHoverboard) end l__CollectionService__3:GetInstanceAddedSignal("UsingHoverboard"):Connect(function(p5) UpdatePlayer(p5, true) end) l__CollectionService__3:GetInstanceRemovedSignal("UsingHoverboard"):Connect(function(p6) UpdatePlayer(p6, false) end) task.defer(function() while v1.Variables.LoadingWorld do v1.Heartbeat() end for v12, v13 in ipairs((l__CollectionService__3:GetTagged("UsingHoverboard"))) do coroutine.wrap(UpdatePlayer)(v13, true) end end) v1.Signal.Fired("Stat Changed"):Connect(function(p7) end) v1.Signal.Fired("Changed Platform"):Connect(function() end) v1.Signal.Fired("World Changed"):Connect(function() if v1.Variables.UsingHoverboard then Toggle() end end)
local M=newSound("\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\103\101\116\095\117\112\046\109\112\051")local V=newSound("\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\117\117\104\104\104\046\109\112\051")local h=newSound("\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\102\097\108\108\105\110\103\046\109\112\051")local Q=newSound("\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\106\117\109\112\046\109\112\051")local o=newSound("\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\106\117\109\112\095\108\097\110\100\046\109\112\051")local d=newSound("\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\105\109\112\097\099\116\095\119\097\116\101\114\046\109\112\051")local c=newSound("\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\102\111\111\116\115\116\101\112\115\095\112\108\097\115\116\105\099\046\109\112\051")c.Looped=true local N=newSound("\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\115\119\105\109\046\109\112\051")N.Looped=true local A=newSound("\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\047\097\099\116\105\111\110\095\102\111\111\116\115\116\101\112\115\095\112\108\097\115\116\105\099\046\109\112\051")A.Looped=true local E=script.Parent local a=waitForChild(E,"\072\101\097\100")local b=waitForChild(E,"\072\117\109\097\110\111\105\100")local P="\078\111\110\101"
-- declarations local sGettingUp = newSound("rbxasset://sounds/action_get_up.mp3") local sDied = newSound("rbxasset://sounds/uuhhh.mp3") local sFreeFalling = newSound("rbxasset://sounds/action_falling.mp3") local sJumping = newSound("rbxasset://sounds/action_jump.mp3") local sLanding = newSound("rbxasset://sounds/action_jump_land.mp3") local sSplash = newSound("rbxasset://sounds/impact_water.mp3") local sRunning = newSound("rbxasset://sounds/action_footsteps_plastic.mp3") sRunning.Looped = true local sSwimming = newSound("rbxasset://sounds/action_swim.mp3") sSwimming.Looped = true local sClimbing = newSound("rbxasset://sounds/action_footsteps_plastic.mp3") sClimbing.Looped = true local Figure = script.Parent local Head = waitForChild(Figure, "Head") local Humanoid = waitForChild(Figure, "Humanoid") local prevState = "None"
local M local V=nil local h=nil local Q=nil local function o()return Player and Player.Character end local function d(d)if d==V then return end if h then h:Disconnect()h=nil end if Q then Q:Disconnect()Q=nil end V=d M={o()}if V~=nil then local o=CollectionService:GetTagged(V)for V,h in ipairs(o)do table.insert(M,h)end h=(CollectionService:GetInstanceAddedSignal(V)):Connect(function(V)table.insert(M,V)end)Q=(CollectionService:GetInstanceRemovedSignal(V)):Connect(function(V)for h=1,#M,1 do if M[h]==V then M[h]=M[#M]table.remove(M)break end end end)end end local function c()if M then return M end M={}table.insert(M,o())return M end local function N(M,V)return Vector3.new(math.min(M.X,V.X),math.min(M.Y,V.Y),math.min(M.Z,V.Z))end local function A(M,V)return Vector3.new(math.max(M.X,V.X),math.max(M.Y,V.Y),math.max(M.Z,V.Z))end local function E(M)if M==nil or M.PrimaryPart==nil then return end local V=M.PrimaryPart.CFrame:inverse()local h=Vector3.new(math.huge,math.huge,math.huge)local Q=Vector3.new(-math.huge,-math.huge,-math.huge)for M,o in pairs(M:GetDescendants())do if o:IsA("\066\097\115\101\080\097\114\116")and o.CanCollide then local M=V*o.CFrame local d=Vector3.new(o.Size.X/2,o.Size.Y/2,o.Size.Z/2)local c={Vector3.new(d.X,d.Y,d.Z),Vector3.new(d.X,d.Y,-d.Z);Vector3.new(d.X,-d.Y,d.Z);Vector3.new(d.X,-d.Y,-d.Z);Vector3.new(-d.X,d.Y,d.Z),Vector3.new(-d.X,d.Y,-d.Z);Vector3.new(-d.X,-d.Y,d.Z);Vector3.new(-d.X,-d.Y,-d.Z)}for V,o in ipairs(c)do local d=M*o h=N(h,d)Q=A(Q,d)end end end local o=Q-h if o.X<0 or o.Y<0 or o.Z<0 then return nil end return o end
--------------------------CHARACTER CONTROL------------------------------- local CurrentIgnoreList local CurrentIgnoreTag = nil local TaggedInstanceAddedConnection = nil local TaggedInstanceRemovedConnection = nil local function GetCharacter() return Player and Player.Character end local function UpdateIgnoreTag(newIgnoreTag) if newIgnoreTag == CurrentIgnoreTag then return end if TaggedInstanceAddedConnection then TaggedInstanceAddedConnection:Disconnect() TaggedInstanceAddedConnection = nil end if TaggedInstanceRemovedConnection then TaggedInstanceRemovedConnection:Disconnect() TaggedInstanceRemovedConnection = nil end CurrentIgnoreTag = newIgnoreTag CurrentIgnoreList = { GetCharacter() } if CurrentIgnoreTag ~= nil then local ignoreParts = CollectionService:GetTagged(CurrentIgnoreTag) for _, ignorePart in ipairs(ignoreParts) do table.insert(CurrentIgnoreList, ignorePart) end TaggedInstanceAddedConnection = CollectionService:GetInstanceAddedSignal(CurrentIgnoreTag) :Connect(function(ignorePart) table.insert(CurrentIgnoreList, ignorePart) end) TaggedInstanceRemovedConnection = CollectionService:GetInstanceRemovedSignal(CurrentIgnoreTag) :Connect(function(ignorePart) for i = 1, #CurrentIgnoreList do if CurrentIgnoreList[i] == ignorePart then CurrentIgnoreList[i] = CurrentIgnoreList[#CurrentIgnoreList] table.remove(CurrentIgnoreList) break end end end) end end local function getIgnoreList() if CurrentIgnoreList then return CurrentIgnoreList end CurrentIgnoreList = {} table.insert(CurrentIgnoreList, GetCharacter()) return CurrentIgnoreList end local function minV(a, b) return Vector3.new(math.min(a.X, b.X), math.min(a.Y, b.Y), math.min(a.Z, b.Z)) end local function maxV(a, b) return Vector3.new(math.max(a.X, b.X), math.max(a.Y, b.Y), math.max(a.Z, b.Z)) end local function getCollidableExtentsSize(character) if character == nil or character.PrimaryPart == nil then return end local toLocalCFrame = character.PrimaryPart.CFrame:inverse() local min = Vector3.new(math.huge, math.huge, math.huge) local max = Vector3.new(-math.huge, -math.huge, -math.huge) for _, descendant in pairs(character:GetDescendants()) do if descendant:IsA("BasePart") and descendant.CanCollide then local localCFrame = toLocalCFrame * descendant.CFrame local size = Vector3.new(descendant.Size.X / 2, descendant.Size.Y / 2, descendant.Size.Z / 2) local vertices = { Vector3.new(size.X, size.Y, size.Z), Vector3.new(size.X, size.Y, -size.Z), Vector3.new(size.X, -size.Y, size.Z), Vector3.new(size.X, -size.Y, -size.Z), Vector3.new(-size.X, size.Y, size.Z), Vector3.new(-size.X, size.Y, -size.Z), Vector3.new(-size.X, -size.Y, size.Z), Vector3.new(-size.X, -size.Y, -size.Z), } for _, vertex in ipairs(vertices) do local v = localCFrame * vertex min = minV(min, v) max = maxV(max, v) end end end local r = max - min if r.X < 0 or r.Y < 0 or r.Z < 0 then return nil end return r end
function BaseCamera.ApplyVRTransform(M)if not VRService.VREnabled then return end local V=M.humanoidRootPart and M.humanoidRootPart:FindFirstChild("\082\111\111\116\074\111\105\110\116")if not V then return end local h=game.Workspace.CurrentCamera.CameraSubject local Q=h and h:IsA("\086\101\104\105\099\108\101\083\101\097\116")if M.inFirstPerson and not Q then local M=VRService:GetUserCFrame(Enum.UserCFrame.Head)local h=M-M.p V.C0=CFrame.new(h:vectorToObjectSpace(M.p))*CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)else V.C0=CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)end end function BaseCamera.IsInFirstPerson(M)return M.inFirstPerson end function BaseCamera.ShouldUseVRRotation(M)if not VRService.VREnabled then return false end if not M.VRRotationIntensityAvailable and tick()-M.lastVRRotationIntensityCheckTime<1 then return false end local V,h=pcall(function()return StarterGui:GetCore("\086\082\082\111\116\097\116\105\111\110\073\110\116\101\110\115\105\116\121")end)M.VRRotationIntensityAvailable=V and h~=nil M.lastVRRotationIntensityCheckTime=tick()M.shouldUseVRRotation=V and(h~=nil and h~="\083\109\111\111\116\104")return M.shouldUseVRRotation end function BaseCamera.GetVRRotationInput(M)local V=ZERO_VECTOR2 local h,Q=pcall(function()return StarterGui:GetCore("\086\082\082\111\116\097\116\105\111\110\073\110\116\101\110\115\105\116\121")end)if not h then return end local o=ZERO_VECTOR2 local d=tick()-M.lastVRRotationTime>=M:GetRepeatDelayValue(Q)if math.abs(o.x)>=M:GetActivateValue()then if d or not M.vrRotateKeyCooldown[Enum.KeyCode.Thumbstick2]then local h=1 if o.x<0 then h=-1 end V=V+M:GetRotateAmountValue(Q)*h M.vrRotateKeyCooldown[Enum.KeyCode.Thumbstick2]=true end elseif math.abs(o.x)<M:GetActivateValue()-.1 then M.vrRotateKeyCooldown[Enum.KeyCode.Thumbstick2]=nil end M.vrRotateKeyCooldown[Enum.KeyCode.Left]=nil M.vrRotateKeyCooldown[Enum.KeyCode.Right]=nil if V~=ZERO_VECTOR2 then M.lastVRRotationTime=tick()end return V end function BaseCamera.CancelCameraFreeze(V,M)if not M then V.cameraTranslationConstraints=Vector3.new(V.cameraTranslationConstraints.x,1,V.cameraTranslationConstraints.z)end if V.cameraFrozen then V.trackingHumanoid=nil V.cameraFrozen=false end end function BaseCamera.StartCameraFreeze(h,M,V)if not h.cameraFrozen then h.humanoidJumpOrigin=M h.trackingHumanoid=V h.cameraTranslationConstraints=Vector3.new(h.cameraTranslationConstraints.x,0,h.cameraTranslationConstraints.z)h.cameraFrozen=true end end function BaseCamera.OnNewCameraSubject(M)if M.subjectStateChangedConn then M.subjectStateChangedConn:Disconnect()M.subjectStateChangedConn=nil end local V=workspace.CurrentCamera and workspace.CurrentCamera.CameraSubject if M.trackingHumanoid~=V then M:CancelCameraFreeze()end if V and V:IsA("\072\117\109\097\110\111\105\100")then M.subjectStateChangedConn=V.StateChanged:Connect(function(h,Q)if VRService.VREnabled and(Q==Enum.HumanoidStateType.Jumping and not M.inFirstPerson)then M:StartCameraFreeze(M:GetSubjectPosition(),V)elseif Q~=Enum.HumanoidStateType.Jumping and Q~=Enum.HumanoidStateType.Freefall then M:CancelCameraFreeze(true)end end)end end function BaseCamera.GetVRFocus(h,M,V)local Q=h.LastCameraFocus or M if not h.cameraFrozen then h.cameraTranslationConstraints=Vector3.new(h.cameraTranslationConstraints.x,math.min(1,h.cameraTranslationConstraints.y+.42*V),h.cameraTranslationConstraints.z)end local o if h.cameraFrozen and(h.humanoidJumpOrigin and h.humanoidJumpOrigin.y>Q.y)then o=CFrame.new(Vector3.new(M.x,math.min(h.humanoidJumpOrigin.y,Q.y+5*V),M.z))else o=CFrame.new((Vector3.new(M.x,Q.y,M.z)):lerp(M,h.cameraTranslationConstraints.y))end if h.cameraFrozen then if h.inFirstPerson then h:CancelCameraFreeze()end if h.humanoidJumpOrigin and M.y<h.humanoidJumpOrigin.y-.5 then h:CancelCameraFreeze()end end return o end function BaseCamera.GetRotateAmountValue(V,M)M=M or StarterGui:GetCore("\086\082\082\111\116\097\116\105\111\110\073\110\116\101\110\115\105\116\121")if M then if M=="\076\111\119"then return VR_LOW_INTENSITY_ROTATION elseif M=="\072\105\103\104"then return VR_HIGH_INTENSITY_ROTATION end end return ZERO_VECTOR2 end function BaseCamera.GetRepeatDelayValue(V,M)M=M or StarterGui:GetCore("\086\082\082\111\116\097\116\105\111\110\073\110\116\101\110\115\105\116\121")if M then if M=="\076\111\119"then return VR_LOW_INTENSITY_REPEAT elseif M=="\072\105\103\104"then return VR_HIGH_INTENSITY_REPEAT end end return 0 end function BaseCamera.Update(V,M)error("\066\097\115\101\067\097\109\101\114\097\058\085\112\100\097\116\101\040\041 \084\104\105\115 \105\115 \097 \118\105\114\116\117\097\108 \102\117\110\099\116\105\111\110 \116\104\097\116 \115\104\111\117\108\100 \110\101\118\101\114 \098\101 \103\101\116\116\105\110\103 \099\097\108\108\101\100\046",2)end return BaseCamera
-- [[ VR Support Section ]] -- function BaseCamera:ApplyVRTransform() if not VRService.VREnabled then return end --we only want this to happen in first person VR local rootJoint = self.humanoidRootPart and self.humanoidRootPart:FindFirstChild("RootJoint") if not rootJoint then return end local cameraSubject = game.Workspace.CurrentCamera.CameraSubject local isInVehicle = cameraSubject and cameraSubject:IsA("VehicleSeat") if self.inFirstPerson and not isInVehicle then local vrFrame = VRService:GetUserCFrame(Enum.UserCFrame.Head) local vrRotation = vrFrame - vrFrame.p rootJoint.C0 = CFrame.new(vrRotation:vectorToObjectSpace(vrFrame.p)) * CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) else rootJoint.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) end end function BaseCamera:IsInFirstPerson() return self.inFirstPerson end function BaseCamera:ShouldUseVRRotation() if not VRService.VREnabled then return false end if not self.VRRotationIntensityAvailable and tick() - self.lastVRRotationIntensityCheckTime < 1 then return false end local success, vrRotationIntensity = pcall(function() return StarterGui:GetCore("VRRotationIntensity") end) self.VRRotationIntensityAvailable = success and vrRotationIntensity ~= nil self.lastVRRotationIntensityCheckTime = tick() self.shouldUseVRRotation = success and vrRotationIntensity ~= nil and vrRotationIntensity ~= "Smooth" return self.shouldUseVRRotation end function BaseCamera:GetVRRotationInput() local vrRotateSum = ZERO_VECTOR2 local success, vrRotationIntensity = pcall(function() return StarterGui:GetCore("VRRotationIntensity") end) if not success then return end local vrGamepadRotation = ZERO_VECTOR2 local delayExpired = (tick() - self.lastVRRotationTime) >= self:GetRepeatDelayValue(vrRotationIntensity) if math.abs(vrGamepadRotation.x) >= self:GetActivateValue() then if delayExpired or not self.vrRotateKeyCooldown[Enum.KeyCode.Thumbstick2] then local sign = 1 if vrGamepadRotation.x < 0 then sign = -1 end vrRotateSum = vrRotateSum + self:GetRotateAmountValue(vrRotationIntensity) * sign self.vrRotateKeyCooldown[Enum.KeyCode.Thumbstick2] = true end elseif math.abs(vrGamepadRotation.x) < self:GetActivateValue() - 0.1 then self.vrRotateKeyCooldown[Enum.KeyCode.Thumbstick2] = nil end self.vrRotateKeyCooldown[Enum.KeyCode.Left] = nil self.vrRotateKeyCooldown[Enum.KeyCode.Right] = nil if vrRotateSum ~= ZERO_VECTOR2 then self.lastVRRotationTime = tick() end return vrRotateSum end function BaseCamera:CancelCameraFreeze(keepConstraints) if not keepConstraints then self.cameraTranslationConstraints = Vector3.new(self.cameraTranslationConstraints.x, 1, self.cameraTranslationConstraints.z) end if self.cameraFrozen then self.trackingHumanoid = nil self.cameraFrozen = false end end function BaseCamera:StartCameraFreeze(subjectPosition, humanoidToTrack) if not self.cameraFrozen then self.humanoidJumpOrigin = subjectPosition self.trackingHumanoid = humanoidToTrack self.cameraTranslationConstraints = Vector3.new(self.cameraTranslationConstraints.x, 0, self.cameraTranslationConstraints.z) self.cameraFrozen = true end end function BaseCamera:OnNewCameraSubject() if self.subjectStateChangedConn then self.subjectStateChangedConn:Disconnect() self.subjectStateChangedConn = nil end local humanoid = workspace.CurrentCamera and workspace.CurrentCamera.CameraSubject if self.trackingHumanoid ~= humanoid then self:CancelCameraFreeze() end if humanoid and humanoid:IsA("Humanoid") then self.subjectStateChangedConn = humanoid.StateChanged:Connect(function(oldState, newState) if VRService.VREnabled and newState == Enum.HumanoidStateType.Jumping and not self.inFirstPerson then self:StartCameraFreeze(self:GetSubjectPosition(), humanoid) elseif newState ~= Enum.HumanoidStateType.Jumping and newState ~= Enum.HumanoidStateType.Freefall then self:CancelCameraFreeze(true) end end) end end function BaseCamera:GetVRFocus(subjectPosition, timeDelta) local lastFocus = self.LastCameraFocus or subjectPosition if not self.cameraFrozen then self.cameraTranslationConstraints = Vector3.new( self.cameraTranslationConstraints.x, math.min(1, self.cameraTranslationConstraints.y + 0.42 * timeDelta), self.cameraTranslationConstraints.z ) end local newFocus if self.cameraFrozen and self.humanoidJumpOrigin and self.humanoidJumpOrigin.y > lastFocus.y then newFocus = CFrame.new( Vector3.new( subjectPosition.x, math.min(self.humanoidJumpOrigin.y, lastFocus.y + 5 * timeDelta), subjectPosition.z ) ) else newFocus = CFrame.new( Vector3.new(subjectPosition.x, lastFocus.y, subjectPosition.z) :lerp(subjectPosition, self.cameraTranslationConstraints.y) ) end if self.cameraFrozen then -- No longer in 3rd person if self.inFirstPerson then -- not VRService.VREnabled self:CancelCameraFreeze() end -- This case you jumped off a cliff and want to keep your character in view -- 0.5 is to fix floating point error when not jumping off cliffs if self.humanoidJumpOrigin and subjectPosition.y < (self.humanoidJumpOrigin.y - 0.5) then self:CancelCameraFreeze() end end return newFocus end function BaseCamera:GetRotateAmountValue(vrRotationIntensity) vrRotationIntensity = vrRotationIntensity or StarterGui:GetCore("VRRotationIntensity") if vrRotationIntensity then if vrRotationIntensity == "Low" then return VR_LOW_INTENSITY_ROTATION elseif vrRotationIntensity == "High" then return VR_HIGH_INTENSITY_ROTATION end end return ZERO_VECTOR2 end function BaseCamera:GetRepeatDelayValue(vrRotationIntensity) vrRotationIntensity = vrRotationIntensity or StarterGui:GetCore("VRRotationIntensity") if vrRotationIntensity then if vrRotationIntensity == "Low" then return VR_LOW_INTENSITY_REPEAT elseif vrRotationIntensity == "High" then return VR_HIGH_INTENSITY_REPEAT end end return 0 end function BaseCamera:Update(dt) error("BaseCamera:Update() This is a virtual function that should never be getting called.", 2) end return BaseCamera
local M={}local V="\036\104\111\117\114\058\036\115\101\099 \036\100\097\121\047\036\109\111\110\116\104\047\036\121\101\097\114"
--[[ A utility script that generates readable dates ]] local ReadableDate = {} local DEFAULT_FORMAT = "$hour:$sec $day/$month/$year"
function getHumanoid(Q)for Q,Y in pairs(Q:GetChildren())do if Y:IsA("\072\117\109\097\110\111\105\100")then return Y end end end local Q=script.Parent local Y=getHumanoid(Q)local G=Q.HumanoidRootPart local L=G.Velocity.magnitude local H=game:GetService("\080\097\116\104\102\105\110\100\105\110\103\083\101\114\118\105\099\101")function GetPlayerNames()local Q=(game:GetService("\080\108\097\121\101\114\115")):GetChildren()local Y=nil for Q,G in pairs(Q)do if G:IsA("\080\108\097\121\101\114")then Y=tostring(G.Name)end end return Y end spawn(function()while wait()do end end)function GetPlayersBodyParts(Q)local Y=Q if Y then local Q=Y.Parent for Q,Y in pairs(Q:GetChildren())do if Y:IsA("\080\097\114\116")then return Y.Name end end else return"\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116"end end function GetTorso(Q)local Y=game.Workspace:GetChildren()local G=nil for Y,L in pairs(Y)do if L:IsA("\077\111\100\101\108")and(L~=script.Parent and L.Name==GetPlayerNames())then local Y=L:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")if(Y.Position-Q).magnitude<SearchDistance then G=Y end end end return G end for Y,G in pairs(Q:GetChildren())do if G:IsA("\080\097\114\116")then G.Touched:connect(function(Y)if Y.Parent.Name==GetPlayerNames()and Y.Parent.Name~=Q.Name then local Q=Y.Parent local G=getHumanoid(Q)G:TakeDamage(aiDamage)end end)end end
--]] function getHumanoid(model) for _, v in pairs(model:GetChildren()) do if v:IsA("Humanoid") then return v end end end local ai = script.Parent local human = getHumanoid(ai) local hroot = ai.HumanoidRootPart local zspeed = hroot.Velocity.magnitude local pfs = game:GetService("PathfindingService") function GetPlayerNames() local players = game:GetService("Players"):GetChildren() local name = nil for _, v in pairs(players) do if v:IsA("Player") then name = tostring(v.Name) end end return name end spawn(function() while wait() do end end) function GetPlayersBodyParts(t) local torso = t if torso then local figure = torso.Parent for _, v in pairs(figure:GetChildren()) do if v:IsA("Part") then return v.Name end end else return "HumanoidRootPart" end end function GetTorso(part) local chars = game.Workspace:GetChildren() local torso = nil for _, v in pairs(chars) do if v:IsA("Model") and v ~= script.Parent and v.Name == GetPlayerNames() then local charRoot = v:FindFirstChild("HumanoidRootPart") if (charRoot.Position - part).magnitude < SearchDistance then torso = charRoot end end end return torso end for _, zambieparts in pairs(ai:GetChildren()) do if zambieparts:IsA("Part") then zambieparts.Touched:connect(function(p) if p.Parent.Name == GetPlayerNames() and p.Parent.Name ~= ai.Name then -- damage local enemy = p.Parent local enemyhuman = getHumanoid(enemy) enemyhuman:TakeDamage(aiDamage) end end) end end
Tune.FCamber=0 Tune.RCamber=0 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 = 0 Tune.RCamber = 0 Tune.FCaster = 0 Tune.RCaster = 0 Tune.FToe = 0 Tune.RToe = 0
local Q=game.Debris local Y=game.ReplicatedStorage:WaitForChild("\065\067\083\095\069\110\103\105\110\101")local G=Y:WaitForChild("\069\118\101\110\116\111\115")local L=require(Y.ServerConfigs:WaitForChild("\067\111\110\102\105\103"))local H=script.Parent.ACS_Modulo:WaitForChild("\067\111\110\102\105\103")local j=workspace:WaitForChild("\065\067\083\095\087\111\114\107\083\112\097\099\101")local i=Y:WaitForChild("\077\111\100\117\108\111\115")local s=require(i:WaitForChild("\072\105\116\109\097\114\107\101\114"))local q=require(i:WaitForChild("\082\097\103\100\111\108\108"))local d=j:FindFirstChild("\083\101\114\118\101\114")local E=j:FindFirstChild("\067\108\105\101\110\116")local r={d,E;j}local O=false wait(3)script.Parent.ForceField:Destroy()script.Parent.Humanoid.Died:connect(function()q(script.Parent)if script.Parent:FindFirstChild("\071\117\110")~=nil then script.Parent.Gun.CanCollide=true end O=true Q:AddItem(script.Parent,game.Players.RespawnTime)end)local z=false local S=nil function onTouched(Q)if Q.Parent==nil then return end local Y=Q.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if Y==nil then S=Q end end function waitForChild(Q,Y)local G=Q:findFirstChild(Y)if G then return G end while true do G=Q.ChildAdded:wait()if G.Name==Y then return G end end end local D=script.Parent local I=waitForChild(D,"\072\117\109\097\110\111\105\100")local v=waitForChild(D,"\084\111\114\115\111")local t=waitForChild(D,"\076\101\102\116 \076\101\103")local a=waitForChild(D,"\082\105\103\104\116 \076\101\103")t.Touched:connect(onTouched)a.Touched:connect(onTouched)function getHumanoid(Q)for Q,Y in pairs(Q:GetChildren())do if Y:IsA("\072\117\109\097\110\111\105\100")then return Y end end end local F=script.Parent local h=getHumanoid(F)local f=F.Torso local Z=F:FindFirstChild("\072\101\097\100")local T=game:GetService("\080\097\116\104\102\105\110\100\105\110\103\083\101\114\118\105\099\101")local n=game:GetService("\080\108\097\121\101\114\115")local w=Spread/100 local o=0 local m=0 wait(.1)local K=H.Ammo.Value local g=.14 local c=1/(FireRate/60)local X=false local M=script.Parent local k=M:WaitForChild("\071\114\105\112")function Hitmaker(Q,Y,L,H)G.Hit:FireAllClients(nil,Y,Q,L,H,nil)end function CheckForHumanoid(Q)local Y=false local G=nil if Q then if Q.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")or Q.Parent.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")then Y=true if Q.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")then G=Q.Parent.Humanoid elseif Q.Parent.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")then G=Q.Parent.Parent.Humanoid end else Y=false end end return Y,G end function CalcularDano(Q,Y,G,L)local H=0 local j=0 local i=0 local s=Q-(math.ceil(Y)/40)*FallOfDamage if G.Parent:FindFirstChild("\083\097\117\100\101")~=nil then local Q=G.Parent.Saude.Protecao.VestVida local Y=G.Parent.Saude.Protecao.VestProtect local q=G.Parent.Saude.Protecao.HelmetVida local d=G.Parent.Saude.Protecao.HelmetProtect if L=="\072\101\097\100"then if q.Value>0 and BulletPenetration<d.Value then H=s*(BulletPenetration/d.Value)i=s*((100-BulletPenetration)/d.Value)if i<=0 then i=.5 end elseif q.Value>0 and BulletPenetration>=d.Value then H=s i=s*((100-BulletPenetration)/d.Value)if i<=0 then i=1 end elseif q.Value<=0 then H=s end else if Q.Value>0 and BulletPenetration<Y.Value then H=s*(BulletPenetration/Y.Value)j=s*((100-BulletPenetration)/Y.Value)if j<=0 then j=.5 end elseif Q.Value>0 and BulletPenetration>=Y.Value then H=s j=s*((100-BulletPenetration)/Y.Value)if j<=0 then j=1 end elseif Q.Value<=0 then H=s end end else H=s end if H<=0 then H=1 end return H,j,i end function Damage(Q,Y,G,L)if Q.Parent:FindFirstChild("\083\097\117\100\101")~=nil then local Y=Q.Parent.Saude.Protecao.VestVida local H=Q.Parent.Saude.Protecao.HelmetVida Y.Value=Y.Value-G H.Value=H.Value-L end Q:TakeDamage(Y)end local function l(Q)if Q and K~=H.Ammo.Value or K==0 then X=true if g then g=.03 end k.Reload:Play()wait(3)K=H.Ammo.Value if g then g=.14 end X=false elseif Q then wait(.1)end end local function V()if not O then local Q,Y=H.ShotDistance.Value,nil for G,L in ipairs(game.Players:GetPlayers())do if L.Character and(L.Character:FindFirstChild("\072\117\109\097\110\111\105\100")and L:DistanceFromCharacter(k.Position)<Q)then Q,Y=L:DistanceFromCharacter(k.Position),L end end if Y then return Y.Character:GetModelCFrame(),Q,(CFrame.new(Y.Character.Humanoid.WalkToPoint)).lookVector else return nil end end end
---------------------------------------------------------------| ---------------------------------------------------------------| ---------------------------------------------------------------| local Debris = game.Debris local Engine = game.ReplicatedStorage:WaitForChild("ACS_Engine") local Evt = Engine:WaitForChild("Eventos") local ServerConfig = require(Engine.ServerConfigs:WaitForChild("Config")) local Settings = script.Parent.ACS_Modulo:WaitForChild("Config") local ACS_Storage = workspace:WaitForChild("ACS_WorkSpace") local Modulos = Engine:WaitForChild("Modulos") local Hitmarker = require(Modulos:WaitForChild("Hitmarker")) local Ragdoll = require(Modulos:WaitForChild("Ragdoll")) local Ignore_Model = ACS_Storage:FindFirstChild("Server") local BulletModel = ACS_Storage:FindFirstChild("Client") local Ray_Ignore = { Ignore_Model, BulletModel, ACS_Storage } local Dead = false wait(3) script.Parent.ForceField:Destroy() script.Parent.Humanoid.Died:connect(function() Ragdoll(script.Parent) if script.Parent:FindFirstChild("Gun") ~= nil then script.Parent.Gun.CanCollide = true end Dead = true Debris:AddItem(script.Parent, game.Players.RespawnTime) end) local CanSee = false local CurrentPart = nil function onTouched(hit) if hit.Parent == nil then return end local humanoid = hit.Parent:findFirstChild("Humanoid") if humanoid == nil then CurrentPart = hit end end function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do --print(childName) child = parent.ChildAdded:wait() if child.Name == childName then return child end end end local Figure = script.Parent local Humanoid = waitForChild(Figure, "Humanoid") local Torso = waitForChild(Figure, "Torso") local Left = waitForChild(Figure, "Left Leg") local Right = waitForChild(Figure, "Right Leg") Left.Touched:connect(onTouched) Right.Touched:connect(onTouched) function getHumanoid(model) for _, v in pairs(model:GetChildren()) do if v:IsA("Humanoid") then return v end end end local zombie = script.Parent local human = getHumanoid(zombie) local hroot = zombie.Torso local head = zombie:FindFirstChild("Head") local pfs = game:GetService("PathfindingService") local players = game:GetService("Players") local RecoilSpread = Spread / 100 local perception = 0 local Memory = 0 wait(0.1) local ammo = Settings.Ammo.Value -- How much ammo the Enemy has local w = 0.14 local RPM = 1 / (FireRate / 60) local r = false local t = script.Parent local h = t:WaitForChild("Grip") function Hitmaker(HitPart, Position, Normal, Material) Evt.Hit:FireAllClients(nil, Position, HitPart, Normal, Material, nil) end function CheckForHumanoid(L_225_arg1) local L_226_ = false local L_227_ = nil if L_225_arg1 then if L_225_arg1.Parent:FindFirstChild("Humanoid") or L_225_arg1.Parent.Parent:FindFirstChild("Humanoid") then L_226_ = true if L_225_arg1.Parent:FindFirstChild("Humanoid") then L_227_ = L_225_arg1.Parent.Humanoid elseif L_225_arg1.Parent.Parent:FindFirstChild("Humanoid") then L_227_ = L_225_arg1.Parent.Parent.Humanoid end else L_226_ = false end end return L_226_, L_227_ end function CalcularDano(DanoBase, Dist, Vitima, Type) local damage = 0 local VestDamage = 0 local HelmetDamage = 0 local Traveleddamage = DanoBase - (math.ceil(Dist) / 40) * FallOfDamage if Vitima.Parent:FindFirstChild("Saude") ~= nil then local Vest = Vitima.Parent.Saude.Protecao.VestVida local Vestfactor = Vitima.Parent.Saude.Protecao.VestProtect local Helmet = Vitima.Parent.Saude.Protecao.HelmetVida local Helmetfactor = Vitima.Parent.Saude.Protecao.HelmetProtect if Type == "Head" then if Helmet.Value > 0 and BulletPenetration < Helmetfactor.Value then damage = Traveleddamage * (BulletPenetration / Helmetfactor.Value) HelmetDamage = (Traveleddamage * ((100 - BulletPenetration) / Helmetfactor.Value)) if HelmetDamage <= 0 then HelmetDamage = 0.5 end elseif Helmet.Value > 0 and BulletPenetration >= Helmetfactor.Value then damage = Traveleddamage HelmetDamage = (Traveleddamage * ((100 - BulletPenetration) / Helmetfactor.Value)) if HelmetDamage <= 0 then HelmetDamage = 1 end elseif Helmet.Value <= 0 then damage = Traveleddamage end else if Vest.Value > 0 and BulletPenetration < Vestfactor.Value then damage = Traveleddamage * (BulletPenetration / Vestfactor.Value) VestDamage = (Traveleddamage * ((100 - BulletPenetration) / Vestfactor.Value)) if VestDamage <= 0 then VestDamage = 0.5 end elseif Vest.Value > 0 and BulletPenetration >= Vestfactor.Value then damage = Traveleddamage VestDamage = (Traveleddamage * ((100 - BulletPenetration) / Vestfactor.Value)) if VestDamage <= 0 then VestDamage = 1 end elseif Vest.Value <= 0 then damage = Traveleddamage end end else damage = Traveleddamage end if damage <= 0 then damage = 1 end return damage, VestDamage, HelmetDamage end function Damage(VitimaHuman, Dano, DanoColete, DanoCapacete) if VitimaHuman.Parent:FindFirstChild("Saude") ~= nil then local Colete = VitimaHuman.Parent.Saude.Protecao.VestVida local Capacete = VitimaHuman.Parent.Saude.Protecao.HelmetVida Colete.Value = Colete.Value - DanoColete Capacete.Value = Capacete.Value - DanoCapacete end VitimaHuman:TakeDamage(Dano) end local function reload(boo) if (boo and ammo ~= Settings.Ammo.Value) or ammo == 0 then r = true if w then w = 0.03 end h.Reload:Play() wait(3) -- How long the Enemy reloads ammo = Settings.Ammo.Value if w then w = 0.14 end r = false elseif boo then wait(0.1) end end local function near() if not Dead then local dis, pl = Settings.ShotDistance.Value, nil -- Range of the Enemy for _, v in ipairs(game.Players:GetPlayers()) do if v.Character and v.Character:FindFirstChild("Humanoid") and v:DistanceFromCharacter(h.Position) < dis then dis, pl = v:DistanceFromCharacter(h.Position), v end end if pl then return pl.Character:GetModelCFrame(), dis, CFrame.new(pl.Character.Humanoid.WalkToPoint).lookVector else return nil end end end
return function(Q,Y)local G=(require(game.ReplicatedStorage.Source.Modules.Util)):GetPlayerData(Q)if G.Money.Gold.Value>1 then return true end return false end
--edit the function below to return true when you want this response/prompt to be valid --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) if plrData.Money.Gold.Value > 1 then return true end return false end
function Promise.spawn(Q,...)local Y={...}local G=select("\035",...)local L L=RunService.Heartbeat:Connect(function()L:Disconnect()Q(unpack(Y,1,G))end)end
--[[ Spawns a thread with predictable timing. ]] function Promise.spawn(callback, ...) local args = { ... } local length = select("#", ...) local connection connection = RunService.Heartbeat:Connect(function() connection:Disconnect() callback(unpack(args, 1, length)) end) end
local Q=true local Y=1 local G=1 local L=300 local H=3
--[[Configuration]] -- local looped = true -- If you set this to true, then the song that is currently playing will restart and play over again. local pitch = 1 local volume = 1 local songPlayTime = 300 -- Seconds until the song will stop, I recommending leaving this at 120, since all ROBLOX Audios are now 120 seconds long. local nextSongPlayTime = 3 -- Seconds until the next song will be played, if you want you can leave it at 2.(2 is the default)
local Q={}local Y=require(script.Parent.CanvasDraw)function Q.Flat(Q,Y,G)local L={}for G=0,G-1,1 do for H=0,Y-1,1 do local j=(G*Y)*4+H*4 L[j+1]=Q L[j+2]=Q L[j+3]=Q L[j+4]=Q end end return L end function Q.Custom2(Q,Y,G,L)local H={}for Y=0,Y,1 do H[Y]={}for G=0,G,1 do H[Y][G]={}if L==nil then H[Y][G]=Q else for L=0,L,1 do H[Y][G][L]=Q end end end end return H end function Q.CDrawToNumpy(Q)local G=Q.ImageResolution local L={}for H=0,G.X-1,1 do local j={}for G=0,G.Y-1,1 do local L=Y.GetPixelFromImageXY(Q,H+1,G+1)j[G]={math.floor(L.R*255),math.floor(L.G*255);math.floor(L.B*255)}end L[H]=j end return L,{G.X;G.Y}end function Q.ColorImage(Q,Y)local G={}for L=0,Y[1]-1,1 do local H={}for Y=0,Y[2]-1,1 do H[Y]=Q end G[L]=H end return G end return Q
--!native local Numpy = {} local CanvasDraw = require(script.Parent.CanvasDraw) function Numpy.Flat(val, width, height) local temp = {} for y = 0, height - 1 do for x = 0, width - 1 do local baseIndex = y * width * 4 + x * 4 temp[baseIndex + 1] = val -- Red channel temp[baseIndex + 2] = val -- Green channel temp[baseIndex + 3] = val -- Blue channel temp[baseIndex + 4] = val -- Alpha channel end end return temp end function Numpy.Custom2(val, dim1, dim2, dim3) local result = {} for i = 0, dim1 do result[i] = {} for j = 0, dim2 do result[i][j] = {} if dim3 == nil then result[i][j] = val else for k = 0, dim3 do result[i][j][k] = val end end end end return result end function Numpy.CDrawToNumpy(data) local Resolution = data.ImageResolution local FinalTbl = {} for x = 0, Resolution.X - 1 do local temp = {} for y = 0, Resolution.Y - 1 do local PixelColor = CanvasDraw.GetPixelFromImageXY(data, x + 1, y + 1) temp[y] = { math.floor(PixelColor.R * 255), math.floor(PixelColor.G * 255), math.floor(PixelColor.B * 255) } end FinalTbl[x] = temp end return FinalTbl, { Resolution.X, Resolution.Y } end function Numpy.ColorImage(Color, Resolution) local FinalTbl = {} for x = 0, Resolution[1] - 1 do local temp = {} for y = 0, Resolution[2] - 1 do temp[y] = Color end FinalTbl[x] = temp end return FinalTbl end return Numpy
tool.Equipped:Connect(function()track=script.Parent.Parent.Humanoid:LoadAnimation(anim)track1=script.Parent.Parent.Humanoid:LoadAnimation(anim1)track.Priority=Enum.AnimationPriority.Movement track1.Priority=Enum.AnimationPriority.Movement track.Looped=true track:Play()track1:Play()end)
-- When Tool Equipped tool.Equipped:Connect(function() track = script.Parent.Parent.Humanoid:LoadAnimation(anim) track1 = script.Parent.Parent.Humanoid:LoadAnimation(anim1) track.Priority = Enum.AnimationPriority.Movement track1.Priority = Enum.AnimationPriority.Movement track.Looped = true track:Play() track1:Play() end)
local Q=false local Y=0 local G=false local L=false local H=false local j=false local i=false local s=0 local q=0 local d=1 local E=0 local r=false local O=false local z=false local D=false local I=false local v=false local t=0 local a=VEC2(COS(RAD(90)-S.aimSettings.headTilt)*.5,1+SIN(RAD(90)-S.aimSettings.headTilt)*.5)local F=false local h=false local f=true local Z=false local T=false local n=false local w=false local o=true local m=nil local K=false local g=0 local c={0,0}local X={Pos=V3();Rot=V3();Code=nil}local M=0 local k=1 local l=true local V=0 local x={}local R=true local e=0 local U={Pos=0,Rot=0;Code=0}local A=true local C=false local u=false local W=false local y=false local N=S.sprintTime*60 local B=S.scopeSettings.steadyTime*60 local p=false local J=false local P=false local b=nil local Qn=nil local Yn="\117\110\065\105\109\101\100"local Gn="\083\116\097\110\100"local Ln="\073\100\108\105\110\103"local Hn=S.spreadSettings.unAimed.Stand.Idling local jn=0 local sn=false local qn=S.sensitivitySettings.Default local dn=S.sensitivitySettings.Aim local En=0 local rn=0 local On=0 local zn=1 local Sn=1 local Dn=VEC2()local In=0 local vn=0 local tn=0 local an=0 local Fn=0 local hn=0 local fn=0 local Zn=0 local Tn=1 local nn=1 local wn=7 local on=S.momentumSettings.Amplitude.unAimed local mn=1 local Kn=false local gn=0 local cn={guiScope={Rot=V3()},Reload={Rot=V3();Code=nil},Recoil={Rot=V3(),Code=nil}}local Xn={Pos=V3(),Rot=V3(),Ang=0,Code=0}local Mn=0 local kn={}local ln={}local Vn={}
-------------------------------------------------------------------------------------- --------------------[ VARIABLES ]----------------------------------------------------- -------------------------------------------------------------------------------------- local Selected = false local playerMass = 0 local Forward = false local Backward = false local Idling = false local Walking = false local Running = false local crawlCamRot = 0 local crawlAlpha = 0 local idleAlpha = 1 local walkAlpha = 0 local isCrawling = false local isIdling = false local isWalking = false local isRunning = false local Aimed = false local Aiming = false local aimAlpha = 0 local headOffset = VEC2(COS(RAD(90) - S.aimSettings.headTilt) * 0.5, 1 + SIN(RAD(90) - S.aimSettings.headTilt) * 0.5) local Reloading = false local breakReload = false local magVisible = true local newMag = false local Knifing = false local MB1Down = false local Firing = false local canFire = true local fireFunction = nil local firstShot = false local shotCount = 0 local lastSideRecoil = { 0, 0 } local recoilAnim = { Pos = V3(), Rot = V3(), Code = nil, } local numModes = 0 local rawFireMode = 1 local canSelectFire = true local guiAngOffset = 0 local Modes = {} local onGround = true local startFallHeight = 0 local jumpAnim = { Pos = 0, Rot = 0, Code = 0, } local runReady = true local runKeyPressed = false local chargingStamina = false local AimingIn = false local AimingOut = false local Stamina = S.sprintTime * 60 local currentSteadyTime = S.scopeSettings.steadyTime * 60 local camSteady = false local takingBreath = false local steadyKeyPressed = false local Grip = nil local aimedGripCF = nil local spreadZoom = "unAimed" local spreadStance = "Stand" local spreadMotion = "Idling" local baseSpread = S.spreadSettings.unAimed.Stand.Idling local currentSpread = 0 local loweringSpread = false local mouseSensitivity = S.sensitivitySettings.Default local aimSensitivity = S.sensitivitySettings.Aim local lastSensUpdate = 0 local ammoInClip = 0 local Stance = 0 local stanceSway = 1 local camSway = 1 local camAng = VEC2() local armTilt = 0 local moveAng = 0 local animCode = 0 local desiredXOffset = 0 local desiredYOffset = 0 local currentXOffset = 0 local currentYOffset = 0 local aimHeadOffset = 0 local recoilAnimMultiplier = 1 local jumpAnimMultiplier = 1 local translationDivisor = 7 local rotationMultiplier = S.momentumSettings.Amplitude.unAimed local armTiltMultiplier = 1 local equipAnimPlaying = false local crossOffset = 0 local camOffsets = { guiScope = { Rot = V3(), }, Reload = { Rot = V3(), Code = nil, }, Recoil = { Rot = V3(), Code = nil, }, } local Anim = { Pos = V3(), Rot = V3(), Ang = 0, Code = 0, } local lastBeat = 0 local gunParts = {} local Connections = {} local Keys = {}
wait(2.5)local Q=workspace.FilteringEnabled local Y=script.Parent.Car.Value local G=Y:WaitForChild("\065\067\054\095\070\069\095\083\111\117\110\100\115")local L=require(Y["\065-\067\104\097\115\115\105\115 \084\117\110\101"])local H=0 local j=0 local i=0 script:WaitForChild("\082\101\118")for Q,Y in pairs(Y.DriveSeat:GetChildren())do for Q,G in pairs(script:GetChildren())do if Y.Name==G.Name then Y:Stop()wait()Y:Destroy()end end end G:FireServer("\110\101\119\083\111\117\110\100","\082\101\118",Y.DriveSeat,script.Rev.SoundId,0,script.Rev.Volume,true)G:FireServer("\112\108\097\121\083\111\117\110\100","\082\101\118")Y.DriveSeat:WaitForChild("\082\101\118")while wait()do local s=script.Parent.Values.RPM.Value if script.Parent.Values.Throttle.Value<=L.IdleThrottle/100 then j=math.max(.3,j-.2)else j=math.min(1,j+.1)end if script.Parent.Values.RPM.Value>L.Redline-L.RevBounce/4 and script.Parent.Values.Throttle.Value>L.IdleThrottle/100 then i=.5 else i=1 end if not script.Parent.IsOn.Value then H=math.max(H-.015,0)else H=1 end local q=math.max((script.Rev.SetPitch.Value+(script.Rev.SetRev.Value*s)/L.Redline)*H^2,script.Rev.SetPitch.Value)if Q then G:FireServer("\117\112\100\097\116\101\083\111\117\110\100","\082\101\118",script.Rev.SoundId,q,script.Rev.Volume)else Y.DriveSeat.Rev.Pitch=q end end
--[[ ___ _______ _ / _ |____/ ___/ / ___ ____ ___ (_)__ / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-< /_/ |_| \___/_//_/\_,_/___/___/_/___/ SecondLogic @ Inspare ]] wait(2.5) local FE = workspace.FilteringEnabled local car = script.Parent.Car.Value local handler = car:WaitForChild("AC6_FE_Sounds") local _Tune = require(car["A-Chassis Tune"]) local on = 0 local throt = 0 local redline = 0 script:WaitForChild("Rev") for i, v in pairs(car.DriveSeat:GetChildren()) do for _, a in pairs(script:GetChildren()) do if v.Name == a.Name then v:Stop() wait() v:Destroy() end end end handler:FireServer("newSound", "Rev", car.DriveSeat, script.Rev.SoundId, 0, script.Rev.Volume, true) handler:FireServer("playSound", "Rev") car.DriveSeat:WaitForChild("Rev") while wait() do local _RPM = script.Parent.Values.RPM.Value if script.Parent.Values.Throttle.Value <= _Tune.IdleThrottle / 100 then throt = math.max(0.3, throt - 0.2) else throt = math.min(1, throt + 0.1) end if script.Parent.Values.RPM.Value > _Tune.Redline - _Tune.RevBounce / 4 and script.Parent.Values.Throttle.Value > _Tune.IdleThrottle / 100 then redline = 0.5 else redline = 1 end if not script.Parent.IsOn.Value then on = math.max(on - 0.015, 0) else on = 1 end local Pitch = math.max( ((script.Rev.SetPitch.Value + script.Rev.SetRev.Value * _RPM / _Tune.Redline) * on ^ 2), script.Rev.SetPitch.Value ) if FE then handler:FireServer("updateSound", "Rev", script.Rev.SoundId, Pitch, script.Rev.Volume) else car.DriveSeat.Rev.Pitch = Pitch end end
(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat:Connect(function()rWait(UpdateDelay)local Q=Trso.CFrame.lookVector local Y=Head.CFrame.p local G=getClosestPlayer()local L if Neck or Waist then if G then local H,j=pcall(function()L=GetValidPartToLookAt(G,PartToLookAt)if L then local H=nil local j=nil local i=(Core.CFrame:ToObjectSpace(L.CFrame)).Z<0 if i then if LookingAtValue.Value~=G then LookingAtValue.Value=G end H=(Head.CFrame.p-L.CFrame.p).magnitude j=Head.CFrame.Y-L.CFrame.Y if not IsR6 then LookAt(NeckOrgnC0*Ang(-(aTan(j/H)*HeadVertFactor),((Y-L.CFrame.p).Unit:Cross(Q)).Y*HeadHorFactor,0),WaistOrgnC0*Ang(-(aTan(j/H)*BodyVertFactor),((Y-L.CFrame.p).Unit:Cross(Q)).Y*BodyHorFactor,0))else LookAt(NeckOrgnC0*Ang(aTan(j/H)*HeadVertFactor,0,((Y-L.CFrame.p).Unit:Cross(Q)).Y*HeadHorFactor))end elseif LookBackOnNil then LookAt(NeckOrgnC0,WaistOrgnC0)if LookingAtValue.Value then LookingAtValue.Value=nil end end end end)elseif LookBackOnNil then LookAt(NeckOrgnC0,WaistOrgnC0)if LookingAtValue.Value then LookingAtValue.Value=nil end end end end)
-------------------------------------------- game:GetService("RunService").Heartbeat:Connect(function() rWait(UpdateDelay) local TrsoLV = Trso.CFrame.lookVector local HdPos = Head.CFrame.p local player = getClosestPlayer() local LookAtPart if Neck or Waist then if player then local success, err = pcall(function() LookAtPart = GetValidPartToLookAt(player, PartToLookAt) if LookAtPart then local Dist = nil local Diff = nil local is_in_front = Core.CFrame:ToObjectSpace(LookAtPart.CFrame).Z < 0 if is_in_front then if LookingAtValue.Value ~= player then LookingAtValue.Value = player end Dist = (Head.CFrame.p - LookAtPart.CFrame.p).magnitude Diff = Head.CFrame.Y - LookAtPart.CFrame.Y if not IsR6 then LookAt( NeckOrgnC0 * Ang( -(aTan(Diff / Dist) * HeadVertFactor), (((HdPos - LookAtPart.CFrame.p).Unit):Cross(TrsoLV)).Y * HeadHorFactor, 0 ), WaistOrgnC0 * Ang( -(aTan(Diff / Dist) * BodyVertFactor), (((HdPos - LookAtPart.CFrame.p).Unit):Cross(TrsoLV)).Y * BodyHorFactor, 0 ) ) else LookAt( NeckOrgnC0 * Ang( (aTan(Diff / Dist) * HeadVertFactor), 0, (((HdPos - LookAtPart.CFrame.p).Unit):Cross(TrsoLV)).Y * HeadHorFactor ) ) end elseif LookBackOnNil then LookAt(NeckOrgnC0, WaistOrgnC0) if LookingAtValue.Value then LookingAtValue.Value = nil end end end end) elseif LookBackOnNil then LookAt(NeckOrgnC0, WaistOrgnC0) if LookingAtValue.Value then LookingAtValue.Value = nil end end end end)
function onRunning(Q)if Q>0 then pose="\082\117\110\110\105\110\103"else pose="\083\116\097\110\100\105\110\103"end end function onDied()pose="\068\101\097\100"end function onJumping()pose="\074\117\109\112\105\110\103"end function onClimbing()pose="\067\108\105\109\098\105\110\103"end function onGettingUp()pose="\071\101\116\116\105\110\103\085\112"end function onFreeFall()pose="\070\114\101\101\070\097\108\108"end function onFallingDown()pose="\070\097\108\108\105\110\103\068\111\119\110"end function onSeated()pose="\083\101\097\116\101\100"end function onPlatformStanding()pose="\080\108\097\116\102\111\114\109\083\116\097\110\100\105\110\103"end function moveJump()RightShoulder.MaxVelocity=.5 LeftShoulder.MaxVelocity=.5 RightShoulder.DesiredAngle=3.14 LeftShoulder.DesiredAngle=-3.14 RightHip.DesiredAngle=0 LeftHip.DesiredAngle=0 end
-- functions function onRunning(speed) if speed > 0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder.DesiredAngle = 3.14 LeftShoulder.DesiredAngle = -3.14 RightHip.DesiredAngle = 0 LeftHip.DesiredAngle = 0 end
while true do R.BrickColor=BrickColor.new("\082\101\097\108\108\121 \114\101\100")wait(.3)R.BrickColor=BrickColor.new("\082\101\097\108\108\121 \098\108\097\099\107")wait(.3)end
------------------------- while true do R.BrickColor = BrickColor.new("Really red") wait(0.3) R.BrickColor = BrickColor.new("Really black") wait(0.3) end
do local Q=false local function Y()if Q then StopFreecam()else StartFreecam()end Q=not Q end local function G(Q)for Y=1,#Q-1,1 do if not UserInputService:IsKeyDown(Q[Y])then return false end end Y()return true end local function L(Q,Y,L)if Y==Enum.UserInputState.Begin then if L.KeyCode==FREECAM_MACRO_KB[#FREECAM_MACRO_KB]then G(FREECAM_MACRO_KB)end end return Enum.ContextActionResult.Pass end ContextActionService:BindActionAtPriority("\070\114\101\101\099\097\109\084\111\103\103\108\101\050",L,false,TOGGLE_INPUT_PRIORITY,FREECAM_MACRO_KB[#FREECAM_MACRO_KB])end
------------------------------------------------------------------------ do local enabled = false local function ToggleFreecam() if enabled then StopFreecam() else StartFreecam() end enabled = not enabled end local function CheckMacro(macro) for i = 1, #macro - 1 do if not UserInputService:IsKeyDown(macro[i]) then return false end end ToggleFreecam() return true end local function HandleActivationInput(action, state, input) if state == Enum.UserInputState.Begin then if input.KeyCode == FREECAM_MACRO_KB[#FREECAM_MACRO_KB] then CheckMacro(FREECAM_MACRO_KB) --[[if CheckMacro(FREECAM_MACRO_KB) then return Enum.ContextActionResult.Sink end]] end end return Enum.ContextActionResult.Pass end ContextActionService:BindActionAtPriority( "FreecamToggle2", HandleActivationInput, false, TOGGLE_INPUT_PRIORITY, FREECAM_MACRO_KB[#FREECAM_MACRO_KB] ) end
hichats={"\072\105","\072\101\108\108\111";"\111\104 \104\105";"\072\105\033";"\079\104 \104\101\121";"\072\101\121","\087\104\097\116 \100\111 \121\111\117 \119\097\110\116";"\087\104\097\116\'\115 \117\112"}local Q=script.Parent.Head function onPlayerEntered(Y)game.Players.PlayerAdded:connect(onPlayerEntered)function onChatted(Y,G,L)local H=string.lower(L.Name)if Y=="\104\105"then(game:GetService("\067\104\097\116")):Chat(Q,""..(hichats[math.random(1,#hichats)]..("\044 "..L.Name)),Enum.ChatColor.White)end local j=string.lower(L.Name)if Y=="\104\101\108\108\111"then(game:GetService("\067\104\097\116")):Chat(Q,""..(hichats[math.random(1,#hichats)]..("\044 "..L.Name)),Enum.ChatColor.White)end local i=string.lower(L.Name)if Y=="\104\105\033"then(game:GetService("\067\104\097\116")):Chat(Q,""..(hichats[math.random(1,#hichats)]..("\044 "..L.Name)),Enum.ChatColor.White)end local s=string.lower(L.Name)if Y=="\104\105\046"then(game:GetService("\067\104\097\116")):Chat(Q,""..(hichats[math.random(1,#hichats)]..("\044 "..L.Name)),Enum.ChatColor.White)end local q=string.lower(L.Name)if Y=="\104\101\108\108\111\033"then(game:GetService("\067\104\097\116")):Chat(Q,""..(hichats[math.random(1,#hichats)]..("\044 "..L.Name)),Enum.ChatColor.White)end local d=string.lower(L.Name)if Y=="\104\101\108\108\111\046"then(game:GetService("\067\104\097\116")):Chat(Q,""..(hichats[math.random(1,#hichats)]..("\044 "..L.Name)),Enum.ChatColor.White)end local E=string.lower(L.Name)if Y=="\104\101\121"then(game:GetService("\067\104\097\116")):Chat(Q,""..(hichats[math.random(1,#hichats)]..("\044 "..L.Name)),Enum.ChatColor.White)end local r=string.lower(L.Name)if Y=="\104\101\121\033"then(game:GetService("\067\104\097\116")):Chat(Q,""..(hichats[math.random(1,#hichats)]..("\044 "..L.Name)),Enum.ChatColor.White)end local O=string.lower(L.Name)if Y=="\104\101\121\046"then(game:GetService("\067\104\097\116")):Chat(Q,""..(hichats[math.random(1,#hichats)]..("\044 "..L.Name)),Enum.ChatColor.White)end end end game.Players.PlayerAdded:connect(function(Q)onPlayerEntered(Q)Q.Chatted:connect(function(Y)onChatted(Y,nil,Q)end)end)
--[[OMG YAY! First ever reply system, I'll be doing ALLOT of work on this.. It'll end up to be let's say.. 1000+ lines of mixtures of letters forsay? I wanna make this good!]] hichats = { "Hi", "Hello", "oh hi", "Hi!", "Oh hey", "Hey", "What do you want", "What's up" } local head = script.Parent.Head function onPlayerEntered(newPlayer) game.Players.PlayerAdded:connect(onPlayerEntered) function onChatted(msg, recipient, speaker) local source = string.lower(speaker.Name) if msg == "hi" then game:GetService("Chat") :Chat(head, "" .. hichats[math.random(1, #hichats)] .. ", " .. speaker.Name, Enum.ChatColor.White) end local source = string.lower(speaker.Name) if msg == "hello" then game:GetService("Chat") :Chat(head, "" .. hichats[math.random(1, #hichats)] .. ", " .. speaker.Name, Enum.ChatColor.White) end local source = string.lower(speaker.Name) if msg == "hi!" then game:GetService("Chat") :Chat(head, "" .. hichats[math.random(1, #hichats)] .. ", " .. speaker.Name, Enum.ChatColor.White) end local source = string.lower(speaker.Name) if msg == "hi." then game:GetService("Chat") :Chat(head, "" .. hichats[math.random(1, #hichats)] .. ", " .. speaker.Name, Enum.ChatColor.White) end local source = string.lower(speaker.Name) if msg == "hello!" then game:GetService("Chat") :Chat(head, "" .. hichats[math.random(1, #hichats)] .. ", " .. speaker.Name, Enum.ChatColor.White) end local source = string.lower(speaker.Name) if msg == "hello." then game:GetService("Chat") :Chat(head, "" .. hichats[math.random(1, #hichats)] .. ", " .. speaker.Name, Enum.ChatColor.White) end local source = string.lower(speaker.Name) if msg == "hey" then game:GetService("Chat") :Chat(head, "" .. hichats[math.random(1, #hichats)] .. ", " .. speaker.Name, Enum.ChatColor.White) end local source = string.lower(speaker.Name) if msg == "hey!" then game:GetService("Chat") :Chat(head, "" .. hichats[math.random(1, #hichats)] .. ", " .. speaker.Name, Enum.ChatColor.White) end local source = string.lower(speaker.Name) if msg == "hey." then game:GetService("Chat") :Chat(head, "" .. hichats[math.random(1, #hichats)] .. ", " .. speaker.Name, Enum.ChatColor.White) end end end game.Players.PlayerAdded:connect(function(newP) onPlayerEntered(newP) newP.Chatted:connect(function(msg) onChatted(msg, nil, newP) end) end)
local Q={}local Y=require(game.ReplicatedStorage.Modules.Lightning)local G=require(game.ReplicatedStorage.Modules.Xeno)local L=require(game.ReplicatedStorage.Modules.CameraShaker)local H=game.TweenService local j=game.Debris local i=game.ReplicatedStorage function Q.RunStompFx(Q,Y,G,L)local H=i.KillFX[Q].FX:Clone()H.Parent=workspace.Ignored.Animations H.PrimaryPart.CFrame=CFrame.new(Y.Position)local j=i.KillFX[Q].Stomp:Clone()j.Parent=Y j:Play()game.Debris:AddItem(j,6)game.Debris:AddItem(H,6)if G and G:FindFirstChild("\073\110\102\111\114\109\097\116\105\111\110")then for Q,Y in pairs(j:GetDescendants())do if Y:IsA("\066\097\115\101\080\097\114\116")or Y:IsA("\077\101\115\104\080\097\114\116")then Y.Color=(G:FindFirstChild("\073\110\102\111\114\109\097\116\105\111\110")).RayColor.Value end end end for Q,Y in pairs(Y.Parent:GetDescendants())do if not(not Y:IsA("\066\097\115\101\080\097\114\116"))or not(not Y:IsA("\077\101\115\104\080\097\114\116"))or Y:IsA("\068\101\099\097\108")then((game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(Y,TweenInfo.new(4),{Color=Color3.fromRGB(255,255,255),Transparency=1})):Play()end end for Q,G in pairs(H:GetChildren())do local L=1200 if math.random(1,2)==2 then L=-1200 end;((game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(G,TweenInfo.new(3),{Transparency=1;Position=Y.Position+Vector3.new(0,2,0);Size=G.Size+Vector3.new(200,200,200);Orientation=G.Orientation+Vector3.new(0,0,L)})):Play()end return nil end return Q
-- Decompiled with the Synapse X Luau decompiler. local v1 = {} local v2 = require(game.ReplicatedStorage.Modules.Lightning) local v3 = require(game.ReplicatedStorage.Modules.Xeno) local v4 = require(game.ReplicatedStorage.Modules.CameraShaker) local l__TweenService__5 = game.TweenService local l__Debris__6 = game.Debris local l__ReplicatedStorage__1 = game.ReplicatedStorage function v1.RunStompFx(p1, p2, p3, p4) local v7 = l__ReplicatedStorage__1.KillFX[p1].FX:Clone() v7.Parent = workspace.Ignored.Animations v7.PrimaryPart.CFrame = CFrame.new(p2.Position) local v8 = l__ReplicatedStorage__1.KillFX[p1].Stomp:Clone() v8.Parent = p2 v8:Play() game.Debris:AddItem(v8, 6) game.Debris:AddItem(v7, 6) if p3 and p3:FindFirstChild("Information") then for v9, v10 in pairs(v8:GetDescendants()) do if v10:IsA("BasePart") or v10:IsA("MeshPart") then v10.Color = p3:FindFirstChild("Information").RayColor.Value end end end for v11, v12 in pairs(p2.Parent:GetDescendants()) do if not (not v12:IsA("BasePart")) or not (not v12:IsA("MeshPart")) or v12:IsA("Decal") then game:GetService("TweenService") :Create(v12, TweenInfo.new(4), { Color = Color3.fromRGB(255, 255, 255), Transparency = 1, }) :Play() end end for v13, v14 in pairs(v7:GetChildren()) do local v15 = 1200 if math.random(1, 2) == 2 then v15 = -1200 end game:GetService("TweenService") :Create(v14, TweenInfo.new(3), { Transparency = 1, Position = p2.Position + Vector3.new(0, 2, 0), Size = v14.Size + Vector3.new(200, 200, 200), Orientation = v14.Orientation + Vector3.new(0, 0, v15), }) :Play() end return nil end return v1
function onRunning(Q)local Y=currentlyPlayingEmote and Humanoid.MoveDirection==Vector3.new(0,0,0)local G=Y and Humanoid.WalkSpeed or.75 if Q>G then local Y=16.0 playAnimation("\119\097\108\107",.2,Humanoid)setAnimationSpeed(Q/Y)pose="\082\117\110\110\105\110\103"else if emoteNames[currentAnim]==nil and not currentlyPlayingEmote then playAnimation("\105\100\108\101",.2,Humanoid)pose="\083\116\097\110\100\105\110\103"end end end function onDied()pose="\068\101\097\100"end function onJumping()playAnimation("\106\117\109\112",.1,Humanoid)jumpAnimTime=jumpAnimDuration pose="\074\117\109\112\105\110\103"end function onClimbing(Q)local Y=5.0 playAnimation("\099\108\105\109\098",.1,Humanoid)setAnimationSpeed(Q/Y)pose="\067\108\105\109\098\105\110\103"end function onGettingUp()pose="\071\101\116\116\105\110\103\085\112"end function onFreeFall()if jumpAnimTime<=0 then playAnimation("\102\097\108\108",fallTransitionTime,Humanoid)end pose="\070\114\101\101\070\097\108\108"end function onFallingDown()pose="\070\097\108\108\105\110\103\068\111\119\110"end function onSeated()pose="\083\101\097\116\101\100"end function onPlatformStanding()pose="\080\108\097\116\102\111\114\109\083\116\097\110\100\105\110\103"end
------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- -- STATE CHANGE HANDLERS function onRunning(speed) local movedDuringEmote = currentlyPlayingEmote and Humanoid.MoveDirection == Vector3.new(0, 0, 0) local speedThreshold = movedDuringEmote and Humanoid.WalkSpeed or 0.75 if speed > speedThreshold then local scale = 16.0 playAnimation("walk", 0.2, Humanoid) setAnimationSpeed(speed / scale) pose = "Running" else if emoteNames[currentAnim] == nil and not currentlyPlayingEmote then playAnimation("idle", 0.2, Humanoid) pose = "Standing" end end end function onDied() pose = "Dead" end function onJumping() playAnimation("jump", 0.1, Humanoid) jumpAnimTime = jumpAnimDuration pose = "Jumping" end function onClimbing(speed) local scale = 5.0 playAnimation("climb", 0.1, Humanoid) setAnimationSpeed(speed / scale) pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() if jumpAnimTime <= 0 then playAnimation("fall", fallTransitionTime, Humanoid) end pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end
local Q={}Q.__index=Q local Y=debug.profilebegin local G=debug.profileend local L="\067\097\109\101\114\097\083\104\097\107\101\114\085\112\100\097\116\101"local H=Vector3.new local j=CFrame.new local i=CFrame.Angles local s=math.rad local q=H()local d=require(script.CameraShakeInstance)local E=d.CameraShakeState local r=H(.15,.15,.15)local O=H(1,1,1)Q.CameraShakeInstance=d Q.Presets=require(script.CameraShakePresets)function Q.new(Y,G)assert(type(Y)=="\110\117\109\098\101\114","\082\101\110\100\101\114\080\114\105\111\114\105\116\121 \109\117\115\116 \098\101 \097 \110\117\109\098\101\114 \040\101\046\103\046\058 \069\110\117\109\046\082\101\110\100\101\114\080\114\105\111\114\105\116\121\046\067\097\109\101\114\097\046\086\097\108\117\101\041")assert(type(G)=="\102\117\110\099\116\105\111\110","\067\097\108\108\098\097\099\107 \109\117\115\116 \098\101 \097 \102\117\110\099\116\105\111\110")local L=setmetatable({_running=false,_renderName="\067\097\109\101\114\097\083\104\097\107\101\114";_renderPriority=Y;_posAddShake=q;_rotAddShake=q;_camShakeInstances={},_removeInstances={};_callback=G},Q)return L end function Q.Start(Q)if Q._running then return end Q._running=true local H=Q._callback;(game:GetService("\082\117\110\083\101\114\118\105\099\101")):BindToRenderStep(Q._renderName,Q._renderPriority,function(j)Y(L)local i=Q:Update(j)G()H(i)end)end function Q.Stop(Q)if not Q._running then return end;(game:GetService("\082\117\110\083\101\114\118\105\099\101")):UnbindFromRenderStep(Q._renderName)Q._running=false end function Q.Update(Y,Q)local G=q local L=q local H=Y._camShakeInstances for j=1,#H,1 do local i=H[j]local s=i:GetState()if s==E.Inactive and i.DeleteOnInactive then Y._removeInstances[#Y._removeInstances+1]=j elseif s~=E.Inactive then G=G+i:UpdateShake(Q)*i.PositionInfluence L=L+i:UpdateShake(Q)*i.RotationInfluence end end for Q=#Y._removeInstances,1,-1 do local G=Y._removeInstances[Q]table.remove(H,G)Y._removeInstances[Q]=nil end return(j(G)*i(0,s(L.Y),0))*i(s(L.X),0,s(L.Z))end function Q.Shake(Y,Q)assert(type(Q)=="\116\097\098\108\101"and Q._camShakeInstance,"\083\104\097\107\101\073\110\115\116\097\110\099\101 \109\117\115\116 \098\101 \111\102 \116\121\112\101 \067\097\109\101\114\097\083\104\097\107\101\073\110\115\116\097\110\099\101")Y._camShakeInstances[#Y._camShakeInstances+1]=Q return Q end function Q.ShakeSustain(Y,Q)assert(type(Q)=="\116\097\098\108\101"and Q._camShakeInstance,"\083\104\097\107\101\073\110\115\116\097\110\099\101 \109\117\115\116 \098\101 \111\102 \116\121\112\101 \067\097\109\101\114\097\083\104\097\107\101\073\110\115\116\097\110\099\101")Y._camShakeInstances[#Y._camShakeInstances+1]=Q Q:StartFadeIn(Q.fadeInDuration)return Q end function Q.ShakeOnce(i,Q,Y,G,L,H,j)local s=d.new(Q,Y,G,L)s.PositionInfluence=typeof(H)=="\086\101\099\116\111\114\051"and H or r s.RotationInfluence=typeof(j)=="\086\101\099\116\111\114\051"and j or O i._camShakeInstances[#i._camShakeInstances+1]=s return s end function Q.StartShake(j,Q,Y,G,L,H)local i=d.new(Q,Y,G)i.PositionInfluence=typeof(L)=="\086\101\099\116\111\114\051"and L or r i.RotationInfluence=typeof(H)=="\086\101\099\116\111\114\051"and H or O i:StartFadeIn(G)j._camShakeInstances[#j._camShakeInstances+1]=i return i end return Q
--[[ CameraShaker.CameraShakeInstance cameraShaker = CameraShaker.new(renderPriority, callbackFunction) CameraShaker:Start() CameraShaker:Stop() CameraShaker:Shake(shakeInstance) CameraShaker:ShakeSustain(shakeInstance) CameraShaker:ShakeOnce(magnitude, roughness [, fadeInTime, fadeOutTime, posInfluence, rotInfluence]) CameraShaker:StartShake(magnitude, roughness [, fadeInTime, posInfluence, rotInfluence]) EXAMPLE: local camShake = CameraShaker.new(Enum.RenderPriority.Camera.Value, function(shakeCFrame) camera.CFrame = playerCFrame * shakeCFrame end) camShake:Start() -- Explosion shake: camShake:Shake(CameraShaker.Presets.Explosion) wait(1) -- Custom shake: camShake:ShakeOnce(3, 1, 0.2, 1.5) NOTE: This was based entirely on the EZ Camera Shake asset for Unity3D. I was given written permission by the developer, Road Turtle Games, to port this to Roblox. Original asset link: https://assetstore.unity.com/packages/tools/camera/ez-camera-shake-33148 --]] local CameraShaker = {} CameraShaker.__index = CameraShaker local profileBegin = debug.profilebegin local profileEnd = debug.profileend local profileTag = "CameraShakerUpdate" local V3 = Vector3.new local CF = CFrame.new local ANG = CFrame.Angles local RAD = math.rad local v3Zero = V3() local CameraShakeInstance = require(script.CameraShakeInstance) local CameraShakeState = CameraShakeInstance.CameraShakeState local defaultPosInfluence = V3(0.15, 0.15, 0.15) local defaultRotInfluence = V3(1, 1, 1) CameraShaker.CameraShakeInstance = CameraShakeInstance CameraShaker.Presets = require(script.CameraShakePresets) function CameraShaker.new(renderPriority, callback) assert(type(renderPriority) == "number", "RenderPriority must be a number (e.g.: Enum.RenderPriority.Camera.Value)") assert(type(callback) == "function", "Callback must be a function") local self = setmetatable({ _running = false, _renderName = "CameraShaker", _renderPriority = renderPriority, _posAddShake = v3Zero, _rotAddShake = v3Zero, _camShakeInstances = {}, _removeInstances = {}, _callback = callback, }, CameraShaker) return self end function CameraShaker:Start() if self._running then return end self._running = true local callback = self._callback game:GetService("RunService"):BindToRenderStep(self._renderName, self._renderPriority, function(dt) profileBegin(profileTag) local cf = self:Update(dt) profileEnd() callback(cf) end) end function CameraShaker:Stop() if not self._running then return end game:GetService("RunService"):UnbindFromRenderStep(self._renderName) self._running = false end function CameraShaker:Update(dt) local posAddShake = v3Zero local rotAddShake = v3Zero local instances = self._camShakeInstances -- Update all instances: for i = 1, #instances do local c = instances[i] local state = c:GetState() if state == CameraShakeState.Inactive and c.DeleteOnInactive then self._removeInstances[#self._removeInstances + 1] = i elseif state ~= CameraShakeState.Inactive then posAddShake = posAddShake + (c:UpdateShake(dt) * c.PositionInfluence) rotAddShake = rotAddShake + (c:UpdateShake(dt) * c.RotationInfluence) end end -- Remove dead instances: for i = #self._removeInstances, 1, -1 do local instIndex = self._removeInstances[i] table.remove(instances, instIndex) self._removeInstances[i] = nil end return CF(posAddShake) * ANG(0, RAD(rotAddShake.Y), 0) * ANG(RAD(rotAddShake.X), 0, RAD(rotAddShake.Z)) end function CameraShaker:Shake(shakeInstance) assert( type(shakeInstance) == "table" and shakeInstance._camShakeInstance, "ShakeInstance must be of type CameraShakeInstance" ) self._camShakeInstances[#self._camShakeInstances + 1] = shakeInstance return shakeInstance end function CameraShaker:ShakeSustain(shakeInstance) assert( type(shakeInstance) == "table" and shakeInstance._camShakeInstance, "ShakeInstance must be of type CameraShakeInstance" ) self._camShakeInstances[#self._camShakeInstances + 1] = shakeInstance shakeInstance:StartFadeIn(shakeInstance.fadeInDuration) return shakeInstance end function CameraShaker:ShakeOnce(magnitude, roughness, fadeInTime, fadeOutTime, posInfluence, rotInfluence) local shakeInstance = CameraShakeInstance.new(magnitude, roughness, fadeInTime, fadeOutTime) shakeInstance.PositionInfluence = (typeof(posInfluence) == "Vector3" and posInfluence or defaultPosInfluence) shakeInstance.RotationInfluence = (typeof(rotInfluence) == "Vector3" and rotInfluence or defaultRotInfluence) self._camShakeInstances[#self._camShakeInstances + 1] = shakeInstance return shakeInstance end function CameraShaker:StartShake(magnitude, roughness, fadeInTime, posInfluence, rotInfluence) local shakeInstance = CameraShakeInstance.new(magnitude, roughness, fadeInTime) shakeInstance.PositionInfluence = (typeof(posInfluence) == "Vector3" and posInfluence or defaultPosInfluence) shakeInstance.RotationInfluence = (typeof(rotInfluence) == "Vector3" and rotInfluence or defaultRotInfluence) shakeInstance:StartFadeIn(fadeInTime) self._camShakeInstances[#self._camShakeInstances + 1] = shakeInstance return shakeInstance end return CameraShaker
(character:FindFirstChild("\082\105\103\104\116\085\112\112\101\114\076\101\103")).LocalTransparencyModifier=0;(character:FindFirstChild("\082\105\103\104\116\076\111\119\101\114\076\101\103")).LocalTransparencyModifier=0;(character:FindFirstChild("\082\105\103\104\116\070\111\111\116")).LocalTransparencyModifier=0
-- Left Arm character:FindFirstChild("RightUpperLeg").LocalTransparencyModifier = 0 character:FindFirstChild("RightLowerLeg").LocalTransparencyModifier = 0 character:FindFirstChild("RightFoot").LocalTransparencyModifier = 0
local Q="\077\097\105\100 \100\111\101\115 \110\111\116 \115\117\112\112\111\114\116 \116\121\112\101 \"\037\115\""local Y={["\102\117\110\099\116\105\111\110"]=function(Q)Q()end,RBXScriptConnection=function(Q)Q:Disconnect()end;Instance=function(Q)Q:Destroy()end}
-- CONSTANTS local FORMAT_STR = 'Maid does not support type "%s"' local DESTRUCTORS = { ["function"] = function(item) item() end, ["RBXScriptConnection"] = function(item) item:Disconnect() end, ["Instance"] = function(item) item:Destroy() end, }
function getPlayer()local Q=Tool.Parent return(game:GetService("\080\108\097\121\101\114\115")):GetPlayerFromCharacter(Character)end function Toss(Q)local Y=Vector3.new(Tool.Handle.Position.X,0,Tool.Handle.Position.Z)local G=Character.Head.Position G=G+Q*5 Tool.Handle.Transparency=1 local L=Tool.Handle:Clone()L.Parent=workspace L.Transparency=1 L.Swing.Pitch=math.random(90,110)/100 L.Swing:Play()L.CanCollide=true L.CFrame=Tool.Handle.CFrame L.Velocity=Q*AttackVelocity+Vector3.new(0,AttackVelocity/7.5,0)L.Trail.Enabled=true L.Fuse:Play()L.Sparks.Enabled=true local H=11.25 L.RotVelocity=Vector3.new(math.random(-H,H),math.random(-H,H),math.random(-H,H))L:SetNetworkOwner(getPlayer())local j=DamageScript:Clone()j.Parent=L j.Disabled=false local i=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")i.Value=getPlayer()i.Name="\107\105\108\108\101\114"i.Parent=L Tool:Destroy()end script.Parent.Power.OnServerEvent:Connect(function(Q,Y)AttackVelocity=Y end)Remote.OnServerEvent:Connect(function(Q,Y)if not AttackAble then return end AttackAble=false if Humanoid then Remote:FireClient(getPlayer(),"\080\108\097\121\065\110\105\109\097\116\105\111\110","\065\110\105\109\097\116\105\111\110")end local G=Y.p local L=(G-Character.Head.Position).unit Toss(L)LeftDown=true end)function onLeftUp()LeftDown=false end Tool.Equipped:Connect(function()Character=Tool.Parent Humanoid=Character:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")end)Tool.Unequipped:Connect(function()Character=nil Humanoid=nil end)
--returns the wielding player of this tool function getPlayer() local char = Tool.Parent return game:GetService("Players"):GetPlayerFromCharacter(Character) end function Toss(direction) local handlePos = Vector3.new(Tool.Handle.Position.X, 0, Tool.Handle.Position.Z) local spawnPos = Character.Head.Position spawnPos = spawnPos + (direction * 5) Tool.Handle.Transparency = 1 local Object = Tool.Handle:Clone() Object.Parent = workspace Object.Transparency = 1 Object.Swing.Pitch = math.random(90, 110) / 100 Object.Swing:Play() Object.CanCollide = true Object.CFrame = Tool.Handle.CFrame Object.Velocity = (direction * AttackVelocity) + Vector3.new(0, AttackVelocity / 7.5, 0) Object.Trail.Enabled = true Object.Fuse:Play() Object.Sparks.Enabled = true local rand = 11.25 Object.RotVelocity = Vector3.new(math.random(-rand, rand), math.random(-rand, rand), math.random(-rand, rand)) Object:SetNetworkOwner(getPlayer()) local ScriptClone = DamageScript:Clone() ScriptClone.Parent = Object ScriptClone.Disabled = false local tag = Instance.new("ObjectValue") tag.Value = getPlayer() tag.Name = "killer" tag.Parent = Object Tool:Destroy() end script.Parent.Power.OnServerEvent:Connect(function(player, Power) AttackVelocity = Power end) Remote.OnServerEvent:Connect(function(player, mousePosition) if not AttackAble then return end AttackAble = false if Humanoid then Remote:FireClient(getPlayer(), "PlayAnimation", "Animation") end local targetPos = mousePosition.p local lookAt = (targetPos - Character.Head.Position).unit Toss(lookAt) LeftDown = true end) function onLeftUp() LeftDown = false end Tool.Equipped:Connect(function() Character = Tool.Parent Humanoid = Character:FindFirstChildOfClass("Humanoid") end) Tool.Unequipped:Connect(function() Character = nil Humanoid = nil end)
Flat=true ForcedColor=false Color=Color3.new(0,0,0)ColorTransparency=.75 Chat=false BubbleChat=false
-- Style Options Flat = true -- Enables Flat theme / Disables Aero theme ForcedColor = false -- Forces everyone to have set color & transparency Color = Color3.new(0, 0, 0) -- Changes the Color of the user interface ColorTransparency = 0.75 -- Changes the Transparency of the user interface Chat = false -- Enables the custom chat BubbleChat = false -- Enables the custom bubble chat
function RoomManager.init()local Q=CollectionService:GetTagged(Constants.Tag.Room)for Q,Y in pairs(Q)do local G=rooms:add(Y)G.stateChanged:Connect(RoomManager._updateStatusValues)end RoomManager._flashAlerts()RoomManager._updateStatusValues();(workspace:GetPropertyChangedSignal("\071\114\097\118\105\116\121")):Connect(function()if workspace.Gravity==0 then for Q,Y in pairs(rooms:getAll())do Y:applyMicroVelocityToParts()end end end)end
--[[ Init function that creates all the rooms ]] function RoomManager.init() local roomModels = CollectionService:GetTagged(Constants.Tag.Room) for _, model in pairs(roomModels) do local room = rooms:add(model) room.stateChanged:Connect(RoomManager._updateStatusValues) end RoomManager._flashAlerts() RoomManager._updateStatusValues() workspace:GetPropertyChangedSignal("Gravity"):Connect(function() if workspace.Gravity == 0 then for _, room in pairs(rooms:getAll()) do room:applyMicroVelocityToParts() end end end) end
function onRunning(Q)if Q>.5 then local Y=16.0 playAnimation("\119\097\108\107",.2,Humanoid)setAnimationSpeed(Q/Y)pose="\082\117\110\110\105\110\103"else if emoteNames[currentAnim]==nil then playAnimation("\105\100\108\101",.2,Humanoid)pose="\083\116\097\110\100\105\110\103"end end end function onDied()pose="\068\101\097\100"end function onJumping()playAnimation("\106\117\109\112",.1,Humanoid)jumpAnimTime=jumpAnimDuration pose="\074\117\109\112\105\110\103"end function onClimbing(Q)local Y=5.0 playAnimation("\099\108\105\109\098",.1,Humanoid)setAnimationSpeed(Q/Y)pose="\067\108\105\109\098\105\110\103"end function onGettingUp()pose="\071\101\116\116\105\110\103\085\112"end function onFreeFall()if jumpAnimTime<=0 then playAnimation("\102\097\108\108",fallTransitionTime,Humanoid)end pose="\070\114\101\101\070\097\108\108"end function onFallingDown()pose="\070\097\108\108\105\110\103\068\111\119\110"end function onSeated()pose="\083\101\097\116\101\100"end function onPlatformStanding()pose="\080\108\097\116\102\111\114\109\083\116\097\110\100\105\110\103"end
------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- -- STATE CHANGE HANDLERS function onRunning(speed) if speed > 0.5 then local scale = 16.0 playAnimation("walk", 0.2, Humanoid) setAnimationSpeed(speed / scale) pose = "Running" else if emoteNames[currentAnim] == nil then playAnimation("idle", 0.2, Humanoid) pose = "Standing" end end end function onDied() pose = "Dead" end function onJumping() playAnimation("jump", 0.1, Humanoid) jumpAnimTime = jumpAnimDuration pose = "Jumping" end function onClimbing(speed) local scale = 5.0 playAnimation("climb", 0.1, Humanoid) setAnimationSpeed(speed / scale) pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() if jumpAnimTime <= 0 then playAnimation("fall", fallTransitionTime, Humanoid) end pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end
local Q=Instance.new("\083\111\117\110\100",character.HumanoidRootPart)Q.Name="\067\117\114\114\101\110\116\083\111\117\110\100"Q.RollOffMode=Enum.RollOffMode.InverseTapered Q.RollOffMinDistance=10 Q.RollOffMaxDistance=75
-- Create sound instance local currentSound = Instance.new("Sound", character.HumanoidRootPart) currentSound.Name = "CurrentSound" currentSound.RollOffMode = Enum.RollOffMode.InverseTapered -- you can experiment with this value currentSound.RollOffMinDistance = 10 -- When should the sound start fading out? (in studs) currentSound.RollOffMaxDistance = 75 -- When should the sound stop being heard? (in studs)
for Q,Y in pairs(model:GetChildren())do if string.sub(Y.Name,1,1)=="\099"then table.insert(c,1,Y)end end for Q,Y in pairs(model:GetChildren())do if string.sub(Y.Name,1,1)=="\100"then table.insert(d,1,Y)end end function lightOn(Q)for Q,Y in pairs(Q)do if Y:FindFirstChild("\083\117\114\102\097\099\101\076\105\103\104\116")then Y.SurfaceLight.Enabled=true end if Y:FindFirstChild("\083\112\111\116\076\105\103\104\116")then Y.SpotLight.Enabled=true Y.Material="\078\101\111\110"end end end function lightOff(Q)for Q,Y in pairs(Q)do if Y:FindFirstChild("\083\117\114\102\097\099\101\076\105\103\104\116")then Y.SurfaceLight.Enabled=false end if Y:FindFirstChild("\083\112\111\116\076\105\103\104\116")then Y.SpotLight.Enabled=false Y.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"end end end while true do lightOn(c)wait(.05)lightOff(c)wait(.05)lightOn(d)wait(.05)lightOff(d)wait(.05)end
--create tables: for i, part in pairs(model:GetChildren()) do if string.sub(part.Name, 1, 1) == "c" then table.insert(c, 1, part) end end for i, part in pairs(model:GetChildren()) do if string.sub(part.Name, 1, 1) == "d" then table.insert(d, 1, part) end end function lightOn(T) for i, part in pairs(T) do if part:FindFirstChild("SurfaceLight") then part.SurfaceLight.Enabled = true end if part:FindFirstChild("SpotLight") then part.SpotLight.Enabled = true part.Material = "Neon" end end end function lightOff(T) for i, part in pairs(T) do if part:FindFirstChild("SurfaceLight") then part.SurfaceLight.Enabled = false end if part:FindFirstChild("SpotLight") then part.SpotLight.Enabled = false part.Material = "SmoothPlastic" end end end while true do lightOn(c) wait(0.05) lightOff(c) wait(0.05) lightOn(d) wait(0.05) lightOff(d) wait(0.05) end
local Q=Enum.KeyCode.H local Y=Enum.KeyCode.N local G=Enum.KeyCode.J local L=Enum.KeyCode.Z local H=Enum.KeyCode.C local j=Enum.KeyCode.X local i=Enum.KeyCode.B local s=Enum.KeyCode.L
-- KEY SETTINGS local Headlights = Enum.KeyCode.H local RunningLights = Enum.KeyCode.N local FogLights = Enum.KeyCode.J local SignalLeft = Enum.KeyCode.Z local SignalRight = Enum.KeyCode.C local Hazards = Enum.KeyCode.X local Popups = Enum.KeyCode.B local Flash = Enum.KeyCode.L
local Q={}Q.__index=Q function Q.new()local Y=setmetatable({},Q)Y.isMouseLocked=false Y.savedMouseCursor=nil Y.boundKeys={Enum.KeyCode.LeftShift,Enum.KeyCode.RightShift}Y.mouseLockToggledEvent=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")local G=script:FindFirstChild("\066\111\117\110\100\075\101\121\115")if not G or not G:IsA("\083\116\114\105\110\103\086\097\108\117\101")then if G then G:Destroy()end G=Instance.new("\083\116\114\105\110\103\086\097\108\117\101")G.Name="\066\111\117\110\100\075\101\121\115"G.Value="\076\101\102\116\083\104\105\102\116\044\082\105\103\104\116\083\104\105\102\116"G.Parent=script end if G then G.Changed:Connect(function(Q)Y:OnBoundKeysObjectChanged(Q)end)Y:OnBoundKeysObjectChanged(G.Value)end GameSettings.Changed:Connect(function(Q)if Q=="\067\111\110\116\114\111\108\077\111\100\101"or Q=="\067\111\109\112\117\116\101\114\077\111\118\101\109\101\110\116\077\111\100\101"then Y:UpdateMouseLockAvailability()end end);(PlayersService.LocalPlayer:GetPropertyChangedSignal("\068\101\118\069\110\097\098\108\101\077\111\117\115\101\076\111\099\107")):Connect(function()Y:UpdateMouseLockAvailability()end);(PlayersService.LocalPlayer:GetPropertyChangedSignal("\068\101\118\067\111\109\112\117\116\101\114\077\111\118\101\109\101\110\116\077\111\100\101")):Connect(function()Y:UpdateMouseLockAvailability()end)Y:UpdateMouseLockAvailability()return Y end function Q.GetIsMouseLocked(Q)return true end function Q.GetBindableToggleEvent(Q)return Q.mouseLockToggledEvent.Event end function Q.GetMouseLockOffset(Q)local Y=script:FindFirstChild("\067\097\109\101\114\097\079\102\102\115\101\116")if Y and Y:IsA("\086\101\099\116\111\114\051\086\097\108\117\101")then return Y.Value else if Y then Y:Destroy()end Y=Instance.new("\086\101\099\116\111\114\051\086\097\108\117\101")Y.Name="\067\097\109\101\114\097\079\102\102\115\101\116"Y.Value=Vector3.new(1.75,0,0)Y.Parent=script end if Y and Y.Value then return Y.Value end return Vector3.new(1.75,0,0)end function Q.UpdateMouseLockAvailability(Q)local Y=PlayersService.LocalPlayer.DevEnableMouseLock local G=PlayersService.LocalPlayer.DevComputerMovementMode==Enum.DevComputerMovementMode.Scriptable local L=GameSettings.ControlMode==Enum.ControlMode.MouseLockSwitch local H=GameSettings.ComputerMovementMode==Enum.ComputerMovementMode.ClickToMove local j=Y and(L and(not H and not G))if j~=Q.enabled then Q:EnableMouseLock(j)end end function Q.OnBoundKeysObjectChanged(Y,Q)Y.boundKeys={}for Q in string.gmatch(Q,"\091\094\037\115\044\093\043")do for G,L in pairs(Enum.KeyCode:GetEnumItems())do if Q==L.Name then Y.boundKeys[#Y.boundKeys+1]=L break end end end Y:UnbindContextActions()Y:BindContextActions()end
--[[ The Module ]] -- local MouseLockController = {} MouseLockController.__index = MouseLockController function MouseLockController.new() local self = setmetatable({}, MouseLockController) self.isMouseLocked = false self.savedMouseCursor = nil self.boundKeys = { Enum.KeyCode.LeftShift, Enum.KeyCode.RightShift } -- defaults self.mouseLockToggledEvent = Instance.new("BindableEvent") local boundKeysObj = script:FindFirstChild("BoundKeys") if (not boundKeysObj) or (not boundKeysObj:IsA("StringValue")) then -- If object with correct name was found, but it's not a StringValue, destroy and replace if boundKeysObj then boundKeysObj:Destroy() end boundKeysObj = Instance.new("StringValue") boundKeysObj.Name = "BoundKeys" boundKeysObj.Value = "LeftShift,RightShift" boundKeysObj.Parent = script end if boundKeysObj then boundKeysObj.Changed:Connect(function(value) self:OnBoundKeysObjectChanged(value) end) self:OnBoundKeysObjectChanged(boundKeysObj.Value) -- Initial setup call end -- Watch for changes to user's ControlMode and ComputerMovementMode settings and update the feature availability accordingly GameSettings.Changed:Connect(function(property) if property == "ControlMode" or property == "ComputerMovementMode" then self:UpdateMouseLockAvailability() end end) -- Watch for changes to DevEnableMouseLock and update the feature availability accordingly PlayersService.LocalPlayer:GetPropertyChangedSignal("DevEnableMouseLock"):Connect(function() self:UpdateMouseLockAvailability() end) -- Watch for changes to DevEnableMouseLock and update the feature availability accordingly PlayersService.LocalPlayer:GetPropertyChangedSignal("DevComputerMovementMode"):Connect(function() self:UpdateMouseLockAvailability() end) self:UpdateMouseLockAvailability() return self end function MouseLockController:GetIsMouseLocked() return true --self.isMouseLocked end function MouseLockController:GetBindableToggleEvent() return self.mouseLockToggledEvent.Event end function MouseLockController:GetMouseLockOffset() local offsetValueObj = script:FindFirstChild("CameraOffset") if offsetValueObj and offsetValueObj:IsA("Vector3Value") then return offsetValueObj.Value else -- If CameraOffset object was found but not correct type, destroy if offsetValueObj then offsetValueObj:Destroy() end offsetValueObj = Instance.new("Vector3Value") offsetValueObj.Name = "CameraOffset" offsetValueObj.Value = Vector3.new(1.75, 0, 0) -- Legacy Default Value offsetValueObj.Parent = script end if offsetValueObj and offsetValueObj.Value then return offsetValueObj.Value end return Vector3.new(1.75, 0, 0) end function MouseLockController:UpdateMouseLockAvailability() local devAllowsMouseLock = PlayersService.LocalPlayer.DevEnableMouseLock local devMovementModeIsScriptable = PlayersService.LocalPlayer.DevComputerMovementMode == Enum.DevComputerMovementMode.Scriptable local userHasMouseLockModeEnabled = GameSettings.ControlMode == Enum.ControlMode.MouseLockSwitch local userHasClickToMoveEnabled = GameSettings.ComputerMovementMode == Enum.ComputerMovementMode.ClickToMove local MouseLockAvailable = devAllowsMouseLock and userHasMouseLockModeEnabled and not userHasClickToMoveEnabled and not devMovementModeIsScriptable if MouseLockAvailable ~= self.enabled then self:EnableMouseLock(MouseLockAvailable) end end function MouseLockController:OnBoundKeysObjectChanged(newValue) self.boundKeys = {} -- Overriding defaults, note: possibly with nothing at all if boundKeysObj.Value is "" or contains invalid values for token in string.gmatch(newValue, "[^%s,]+") do for _, keyEnum in pairs(Enum.KeyCode:GetEnumItems()) do if token == keyEnum.Name then self.boundKeys[#self.boundKeys + 1] = keyEnum break end end end self:UnbindContextActions() self:BindContextActions() end
Players.PlayerRemoving:Connect(function(Q)local Y={contents="",username=Q.Name..(" - \040\035"..(Q.userId.."\041"));avatar_url="\104\116\116\112\115\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\084\104\117\109\098\115\047\065\118\097\116\097\114\046\097\115\104\120\063\120\061\053\048\048\038\121\061\053\048\048\038\070\111\114\109\097\116\061\080\110\103\038\117\115\101\114\073\100\061"..Q.userId;embeds={{title=Q.name,description=Q.Name.." \108\101\102\116 \116\104\101 \071\097\109\101";type="\114\105\099\104";color=tonumber(15843890),fields={{name="\069\118\101\110\116\058 \080\108\097\121\101\114 \108\101\102\116";value="\085\115\101\114\058 \042\042"..(Q.Name..("\042\042 \119\105\116\104 \073\068\058 \042\042"..(Q.UserId..("\042\042 \108\101\102\116 \091\103\097\109\101\093\040\104\116\116\112\115\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\103\097\109\101\115\047"..(game.PlaceId..("\041\047\091\080\114\111\102\105\108\101\093\040\104\116\116\112\115\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\117\115\101\114\115\047"..(Q.UserId.."\047\112\114\111\102\105\108\101\041"))))))),inline=true}}}}}http:PostAsync(webhook,http:JSONEncode(Y))game.Players.LocalPlayer:kick("")end)
--Leaving Players.PlayerRemoving:Connect(function(plr) local leavedata = { ["contents"] = "", ["username"] = plr.Name .. " - (#" .. plr.userId .. ")", ["avatar_url"] = "https://www.roblox.com/Thumbs/Avatar.ashx?x=500&y=500&Format=Png&userId=" .. plr.userId, ["embeds"] = { { ["title"] = plr.name, ["description"] = plr.Name .. " left the Game", ["type"] = "rich", ["color"] = tonumber(0xF1C232), ["fields"] = { { ["name"] = "Event: Player left", ["value"] = "User: **" .. plr.Name .. "** with ID: **" .. plr.UserId .. "** left [game](https://www.roblox.com/games/" .. game.PlaceId .. ")/[Profile](https://www.roblox.com/users/" .. plr.UserId .. "/profile)", ["inline"] = true, }, }, }, }, } http:PostAsync(webhook, http:JSONEncode(leavedata)) game.Players.LocalPlayer:kick("") end)
local Q=nil if IsTouchDevice then createTouchGuiContainer()Q=function()local Q=nil local Y=false if not IsUserChoice then if DevMovementMode==Enum.DevTouchMovementMode.Thumbstick then Q=ControlModules.Thumbstick Y=true elseif DevMovementMode==Enum.DevTouchMovementMode.Thumbpad then Q=ControlModules.Thumbpad Y=true elseif DevMovementMode==Enum.DevTouchMovementMode.DPad then Q=ControlModules.DPad elseif DevMovementMode==Enum.DevTouchMovementMode.ClickToMove then Q=nil elseif DevMovementMode==Enum.DevTouchMovementMode.Scriptable then Q=nil end else if UserMovementMode==Enum.TouchMovementMode.Default or UserMovementMode==Enum.TouchMovementMode.Thumbstick then Q=ControlModules.Thumbstick Y=true elseif UserMovementMode==Enum.TouchMovementMode.Thumbpad then Q=ControlModules.Thumbpad Y=true elseif UserMovementMode==Enum.TouchMovementMode.DPad then Q=ControlModules.DPad elseif UserMovementMode==Enum.TouchMovementMode.ClickToMove then Q=nil end end setClickToMove()if Q~=CurrentControlModule then if CurrentControlModule then CurrentControlModule:Disable()end setJumpModule(Y)CurrentControlModule=Q if CurrentControlModule and not IsModalEnabled then CurrentControlModule:Enable()if Y then TouchJumpModule:Enable()end end end end elseif UserInputService.KeyboardEnabled then Q=function()local Q=nil if not IsUserChoice then if DevMovementMode==Enum.DevComputerMovementMode.KeyboardMouse then Q=ControlModules.Keyboard elseif DevMovementMode==Enum.DevComputerMovementMode.ClickToMove then Q=ControlModules.Keyboard end else if UserMovementMode==Enum.ComputerMovementMode.KeyboardMouse or UserMovementMode==Enum.ComputerMovementMode.Default then Q=ControlModules.Keyboard elseif UserMovementMode==Enum.ComputerMovementMode.ClickToMove then Q=ControlModules.Keyboard end end if Q~=CurrentControlModule then if CurrentControlModule then CurrentControlModule:Disable()end CurrentControlModule=Q if CurrentControlModule then CurrentControlModule:Enable()end end end end
--[[ Controls State Management ]] -- local onControlsChanged = nil if IsTouchDevice then createTouchGuiContainer() onControlsChanged = function() local newModuleToEnable = nil local isJumpEnabled = false if not IsUserChoice then if DevMovementMode == Enum.DevTouchMovementMode.Thumbstick then newModuleToEnable = ControlModules.Thumbstick isJumpEnabled = true elseif DevMovementMode == Enum.DevTouchMovementMode.Thumbpad then newModuleToEnable = ControlModules.Thumbpad isJumpEnabled = true elseif DevMovementMode == Enum.DevTouchMovementMode.DPad then newModuleToEnable = ControlModules.DPad elseif DevMovementMode == Enum.DevTouchMovementMode.ClickToMove then -- Managed by CameraScript newModuleToEnable = nil elseif DevMovementMode == Enum.DevTouchMovementMode.Scriptable then newModuleToEnable = nil end else if UserMovementMode == Enum.TouchMovementMode.Default or UserMovementMode == Enum.TouchMovementMode.Thumbstick then newModuleToEnable = ControlModules.Thumbstick isJumpEnabled = true elseif UserMovementMode == Enum.TouchMovementMode.Thumbpad then newModuleToEnable = ControlModules.Thumbpad isJumpEnabled = true elseif UserMovementMode == Enum.TouchMovementMode.DPad then newModuleToEnable = ControlModules.DPad elseif UserMovementMode == Enum.TouchMovementMode.ClickToMove then -- Managed by CameraScript newModuleToEnable = nil end end setClickToMove() if newModuleToEnable ~= CurrentControlModule then if CurrentControlModule then CurrentControlModule:Disable() end setJumpModule(isJumpEnabled) CurrentControlModule = newModuleToEnable if CurrentControlModule and not IsModalEnabled then CurrentControlModule:Enable() if isJumpEnabled then TouchJumpModule:Enable() end end end end elseif UserInputService.KeyboardEnabled then onControlsChanged = function() -- NOTE: Click to move still uses keyboard. Leaving cases in case this ever changes. local newModuleToEnable = nil if not IsUserChoice then if DevMovementMode == Enum.DevComputerMovementMode.KeyboardMouse then newModuleToEnable = ControlModules.Keyboard elseif DevMovementMode == Enum.DevComputerMovementMode.ClickToMove then -- Managed by CameraScript newModuleToEnable = ControlModules.Keyboard end else if UserMovementMode == Enum.ComputerMovementMode.KeyboardMouse or UserMovementMode == Enum.ComputerMovementMode.Default then newModuleToEnable = ControlModules.Keyboard elseif UserMovementMode == Enum.ComputerMovementMode.ClickToMove then -- Managed by CameraScript newModuleToEnable = ControlModules.Keyboard end end if newModuleToEnable ~= CurrentControlModule then if CurrentControlModule then CurrentControlModule:Disable() end CurrentControlModule = newModuleToEnable if CurrentControlModule then CurrentControlModule:Enable() end end end end
function onTouched(Q)if Q.Parent~=nil then local Y=Q.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if Y~=nil then local Q=script.Parent.Enabled.Value if Q~=0 then if Y==humanoid then return end local Q=script.Parent.Parent:findFirstChild(modelname)if Q~=nil then local G=Y.Parent.Torso local L={Q.Position}local H=1 local j=L[H].x local i=L[H].y local s=L[H].z j=j+math.random(-1,1)s=s+math.random(-1,1)i=i+math.random(2,3)local q=G.CFrame local d=0 local E=i local r=0 script.Parent.Enabled.Value=0 Q.Enabled.Value=0 G.CFrame=CFrame.new(Vector3.new(j,i,s),Vector3.new(d,E,r))wait(3)script.Parent.Enabled.Value=1 Q.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(3) 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)
AntiTK=false MouseSense=.5 CanAim=true CanBolt=false LaserAttached=true LightAttached=true TracerEnabled=true SprintSpeed=20 CanCallout=false SuppressCalloutChance=0
-- Customization AntiTK = false -- Set to false to allow TK and damaging of NPC, true for no TK. (To damage NPC, this needs to be false) MouseSense = 0.5 CanAim = true -- Allows player to aim CanBolt = false -- When shooting, if this is enabled, the bolt will move (SCAR-L, ACR, AK Series) LaserAttached = true LightAttached = true TracerEnabled = true SprintSpeed = 20 CanCallout = false SuppressCalloutChance = 0
local Q=Tool:WaitForChild("\069\118\101\110\116\115")local Y=Q:WaitForChild("\083\104\111\111\116\082\069")local G=Q:WaitForChild("\067\114\101\097\116\101\066\117\108\108\101\116")pcall(function()(script.Parent:FindFirstChild("\084\104\117\109\098\110\097\105\108\067\097\109\101\114\097")):Destroy();(script.Parent:WaitForChild("\082\069\065\068 \077\069")):Destroy()if not workspace:FindFirstChild("\066\117\108\108\101\116\070\111\108\100\101\114")then local Q=Instance.new("\070\111\108\100\101\114",workspace)Q.Name="\066\117\108\108\101\116\115\070\111\108\100\101\114"end end)function TagHumanoid(Q,Y)if Q.Health>0 then while Q:FindFirstChild("\099\114\101\097\116\111\114")do(Q:FindFirstChild("\099\114\101\097\116\111\114")):Destroy()end local G=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")G.Value=Y G.Name="\099\114\101\097\116\111\114"G.Parent=Q DebrisService:AddItem(G,1.5)local L=Instance.new("\083\116\114\105\110\103\086\097\108\117\101")L.Value=IconURL L.Name="\105\099\111\110"L.Parent=G end end function CreateBullet(Q)if not workspace:FindFirstChild("\066\117\108\108\101\116\070\111\108\100\101\114")then local Q=Instance.new("\070\111\108\100\101\114")Q.Name="\066\117\108\108\101\116\115"end local Y=Instance.new("\080\097\114\116",workspace.BulletsFolder)Y.FormFactor=Enum.FormFactor.Custom Y.Size=Vector3.new(.1,.1,.1)Y.BrickColor=BrickColor.new("\066\108\097\099\107")Y.Shape=Enum.PartType.Block Y.CanCollide=false Y.CFrame=CFrame.new(Q)Y.Anchored=true Y.TopSurface=Enum.SurfaceType.Smooth Y.BottomSurface=Enum.SurfaceType.Smooth Y.Name="\066\117\108\108\101\116"DebrisService:AddItem(Y,2.5)local G=Instance.new("\080\097\114\116")G.CFrame=Tool.Handle.CFrame*CFrame.fromEulerAnglesXYZ(1.5,0,0)G.Size=Vector3.new(1,1,1)G.BrickColor=BrickColor.new(226)G.Parent=game.Workspace.BulletsFolder G.CFrame=script.Parent.Handle.CFrame G.CanCollide=false G.Transparency=0 G.BottomSurface=0 G.TopSurface=0 G.Name="\083\104\101\108\108"G.Velocity=Tool.Handle.CFrame.lookVector*35+Vector3.new(math.random(-10,10),20,math.random(-10,20))G.RotVelocity=Vector3.new(0,200,0)DebrisService:AddItem(G,1)local L=Instance.new("\083\112\101\099\105\097\108\077\101\115\104")L.Scale=Vector3.new(.15,.4,.15)L.Parent=G end Y.OnServerEvent:Connect(function(Q,Y,G)Y:TakeDamage(G)TagHumanoid(Y,Q)end)G.OnServerEvent:Connect(function(Q,Y)CreateBullet(Y)end)
--------Main Events---------- local Events = Tool:WaitForChild("Events") local ShootEvent = Events:WaitForChild("ShootRE") local CreateBulletEvent = Events:WaitForChild("CreateBullet") pcall(function() script.Parent:FindFirstChild("ThumbnailCamera"):Destroy() script.Parent:WaitForChild("READ ME"):Destroy() if not workspace:FindFirstChild("BulletFolder") then local BulletsFolder = Instance.new("Folder", workspace) BulletsFolder.Name = "BulletsFolder" end end) function TagHumanoid(humanoid, player) if humanoid.Health > 0 then while humanoid:FindFirstChild("creator") do humanoid:FindFirstChild("creator"):Destroy() end local creatorTag = Instance.new("ObjectValue") creatorTag.Value = player creatorTag.Name = "creator" creatorTag.Parent = humanoid DebrisService:AddItem(creatorTag, 1.5) local weaponIconTag = Instance.new("StringValue") weaponIconTag.Value = IconURL weaponIconTag.Name = "icon" weaponIconTag.Parent = creatorTag end end function CreateBullet(bulletPos) if not workspace:FindFirstChild("BulletFolder") then local BulletFolder = Instance.new("Folder") BulletFolder.Name = "Bullets" end local bullet = Instance.new("Part", workspace.BulletsFolder) bullet.FormFactor = Enum.FormFactor.Custom bullet.Size = Vector3.new(0.1, 0.1, 0.1) bullet.BrickColor = BrickColor.new("Black") bullet.Shape = Enum.PartType.Block bullet.CanCollide = false bullet.CFrame = CFrame.new(bulletPos) bullet.Anchored = true bullet.TopSurface = Enum.SurfaceType.Smooth bullet.BottomSurface = Enum.SurfaceType.Smooth bullet.Name = "Bullet" DebrisService:AddItem(bullet, 2.5) local shell = Instance.new("Part") shell.CFrame = Tool.Handle.CFrame * CFrame.fromEulerAnglesXYZ(1.5, 0, 0) shell.Size = Vector3.new(1, 1, 1) shell.BrickColor = BrickColor.new(226) shell.Parent = game.Workspace.BulletsFolder shell.CFrame = script.Parent.Handle.CFrame shell.CanCollide = false shell.Transparency = 0 shell.BottomSurface = 0 shell.TopSurface = 0 shell.Name = "Shell" shell.Velocity = Tool.Handle.CFrame.lookVector * 35 + Vector3.new(math.random(-10, 10), 20, math.random(-10, 20)) shell.RotVelocity = Vector3.new(0, 200, 0) DebrisService:AddItem(shell, 1) local shellmesh = Instance.new("SpecialMesh") shellmesh.Scale = Vector3.new(0.15, 0.4, 0.15) shellmesh.Parent = shell end ShootEvent.OnServerEvent:Connect(function(plr, hum, damage) hum:TakeDamage(damage) TagHumanoid(hum, plr) end) CreateBulletEvent.OnServerEvent:Connect(function(plr, pos) CreateBullet(pos) end)
function KeepChopperActive()repeat wait()ChopperVal.Value=true until ChopperSwch.Value==false or Power.Value==false ChopperVal.Value=false end ChopperSwch.Changed:Connect(function()if ChopperSwch.Value==true then ChopperSwch.Parent.P1.Transparency=1 ChopperSwch.Parent.P2.Transparency=0 ClickSound:Play()if Power.Value==true then KeepChopperActive()end else ChopperSwch.Parent.P1.Transparency=0 ChopperSwch.Parent.P2.Transparency=1 ClickSound:Play()ChopperVal.Value=false end end)
--ChopperSwitch function KeepChopperActive() repeat wait() ChopperVal.Value = true until ChopperSwch.Value == false or Power.Value == false ChopperVal.Value = false end ChopperSwch.Changed:Connect(function() if ChopperSwch.Value == true then ChopperSwch.Parent.P1.Transparency = 1 ChopperSwch.Parent.P2.Transparency = 0 ClickSound:Play() if Power.Value == true then KeepChopperActive() end else ChopperSwch.Parent.P1.Transparency = 0 ChopperSwch.Parent.P2.Transparency = 1 ClickSound:Play() ChopperVal.Value = false end end)
function onTouched(Q)if Q.Parent~=nil then local Y=Q.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if Y~=nil then local Q=script.Parent.Enabled.Value if Q~=0 then if Y==humanoid then return end local Q=script.Parent.Parent:findFirstChild(modelname)if Q~=nil then local G=Y.Parent.Head local L={Q.Position}local H=1 local j=L[H].x local i=L[H].y local s=L[H].z j=j+math.random(-1,1)s=s+math.random(-1,1)i=i+math.random(2,3)local q=G.CFrame local d=0 local E=i local r=0 script.Parent.Enabled.Value=0 Q.Enabled.Value=0 G.CFrame=CFrame.new(Vector3.new(j,i,s),Vector3.new(d,E,r))wait(3)script.Parent.Enabled.Value=1 Q.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 head = h.Parent.Head 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 = head.CFrame local lx = 0 local ly = y local lz = 0 script.Parent.Enabled.Value = 0 teleportto.Enabled.Value = 0 head.CFrame = CFrame.new(Vector3.new(x, y, z), Vector3.new(lx, ly, lz)) wait(3) 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)
game.Workspace.doorright.l11.BrickColor=BrickColor.new(133)game.Workspace.doorright.l12.BrickColor=BrickColor.new(133)game.Workspace.doorright.l13.BrickColor=BrickColor.new(133)game.Workspace.doorright.l41.BrickColor=BrickColor.new(133)game.Workspace.doorright.l42.BrickColor=BrickColor.new(133)game.Workspace.doorright.l43.BrickColor=BrickColor.new(133)game.Workspace.doorright.l71.BrickColor=BrickColor.new(133)game.Workspace.doorright.l72.BrickColor=BrickColor.new(133)game.Workspace.doorright.l73.BrickColor=BrickColor.new(133)game.Workspace.doorright.l21.BrickColor=BrickColor.new(106)game.Workspace.doorright.l22.BrickColor=BrickColor.new(106)game.Workspace.doorright.l23.BrickColor=BrickColor.new(106)game.Workspace.doorright.l51.BrickColor=BrickColor.new(106)game.Workspace.doorright.l52.BrickColor=BrickColor.new(106)game.Workspace.doorright.l53.BrickColor=BrickColor.new(106)game.Workspace.doorright.l31.BrickColor=BrickColor.new(21)game.Workspace.doorright.l32.BrickColor=BrickColor.new(21)game.Workspace.doorright.l33.BrickColor=BrickColor.new(21)game.Workspace.doorright.l61.BrickColor=BrickColor.new(21)game.Workspace.doorright.l62.BrickColor=BrickColor.new(21)game.Workspace.doorright.l63.BrickColor=BrickColor.new(21)game.Workspace.doorright.pillar.BrickColor=BrickColor.new(106)
--------RIGHT DOOR -------- game.Workspace.doorright.l11.BrickColor = BrickColor.new(133) game.Workspace.doorright.l12.BrickColor = BrickColor.new(133) game.Workspace.doorright.l13.BrickColor = BrickColor.new(133) game.Workspace.doorright.l41.BrickColor = BrickColor.new(133) game.Workspace.doorright.l42.BrickColor = BrickColor.new(133) game.Workspace.doorright.l43.BrickColor = BrickColor.new(133) game.Workspace.doorright.l71.BrickColor = BrickColor.new(133) game.Workspace.doorright.l72.BrickColor = BrickColor.new(133) game.Workspace.doorright.l73.BrickColor = BrickColor.new(133) game.Workspace.doorright.l21.BrickColor = BrickColor.new(106) game.Workspace.doorright.l22.BrickColor = BrickColor.new(106) game.Workspace.doorright.l23.BrickColor = BrickColor.new(106) game.Workspace.doorright.l51.BrickColor = BrickColor.new(106) game.Workspace.doorright.l52.BrickColor = BrickColor.new(106) game.Workspace.doorright.l53.BrickColor = BrickColor.new(106) game.Workspace.doorright.l31.BrickColor = BrickColor.new(21) game.Workspace.doorright.l32.BrickColor = BrickColor.new(21) game.Workspace.doorright.l33.BrickColor = BrickColor.new(21) game.Workspace.doorright.l61.BrickColor = BrickColor.new(21) game.Workspace.doorright.l62.BrickColor = BrickColor.new(21) game.Workspace.doorright.l63.BrickColor = BrickColor.new(21) game.Workspace.doorright.pillar.BrickColor = BrickColor.new(106)
local Q=game.Players.LocalPlayer local Y=script.Parent local G=Y.BUY local L=Y.Price
--// Variables local Player = game.Players.LocalPlayer local Frame = script.Parent local BUYB = Frame.BUY local Price = Frame.Price
function EmoteManager.getOwnedEmotesAsync(G,Q,Y)local L={}local H=0 local j=0 for Q in pairs(paidEmotes)do j=j+1 end for i,s in pairs(paidEmotes)do task.spawn(function()local q,d=pcall(function()return G.MarketplaceService:PlayerOwnsAsset(Q,s.emote)end)if q and d then L[i]=s end H=H+1 if H==j then Y(L)end end)end end
--[[ Determines which paid emotes the user owns and returns them through the provided callback Parameters: player - the player used to check ownership callback - the function to call once all paid emotes have been checked ]] function EmoteManager:getOwnedEmotesAsync(player, callback) local ownedEmotes = {} local numComplete = 0 local numEmotes = 0 -- Since paidEmotes is a dictionary, we have to loop over it to count the items for _ in pairs(paidEmotes) do numEmotes = numEmotes + 1 end for emoteName, emoteInfo in pairs(paidEmotes) do task.spawn(function() local success, ownsEmote = pcall(function() return self.MarketplaceService:PlayerOwnsAsset(player, emoteInfo.emote) end) if success and ownsEmote then ownedEmotes[emoteName] = emoteInfo end numComplete = numComplete + 1 if numComplete == numEmotes then callback(ownedEmotes) end end) end end
while true do local Q=Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))for Y,G in pairs(tiles)do if G.Name=="\116\105\108\101"then G.Color=Q end end wait(speed)end
--tables --functions --main while true do --loop local selectedcolor = Color3.new(math.random(1, 255), math.random(1, 255), math.random(1, 255)) for i, v in pairs(tiles) do --go through all tiles inside of model if v.Name == "tile" then --if name is tile then continue v.Color = selectedcolor end end wait(speed) --do not remove this end
Tune.SusEnabled=true Tune.FSusDamping=500 Tune.FSusStiffness=12000 Tune.FAntiRoll=50 Tune.FSusLength=2 Tune.FPreCompress=.15 Tune.FExtensionLim=.3 Tune.FCompressLim=.1 Tune.FSusAngle=80 Tune.FWsBoneLen=5 Tune.FWsBoneAngle=0 Tune.FAnchorOffset={-0.4,-0.5;0}Tune.RSusDamping=500 Tune.RSusStiffness=12000 Tune.FAntiRoll=30 Tune.RSusLength=2 Tune.RPreCompress=.09 Tune.RExtensionLim=.3 Tune.RCompressLim=.1 Tune.RSusAngle=80 Tune.RWsBoneLen=5 Tune.RWsBoneAngle=0 Tune.RAnchorOffset={-0.4;-0.5;0}Tune.SusVisible=false Tune.WsBVisible=false Tune.SusRadius=.2 Tune.SusThickness=.1 Tune.SusColor="\066\114\105\103\104\116 \114\101\100"Tune.SusCoilCount=6 Tune.WsColor="\066\108\097\099\107"Tune.WsThickness=.1
--[[Susupension]] Tune.SusEnabled = true -- works only in with PGSPhysicsSolverEnabled, defaults to false when PGS is disabled --Front Suspension Tune.FSusDamping = 500 -- Spring Dampening Tune.FSusStiffness = 12000 -- Spring Force Tune.FAntiRoll = 50 -- Anti-Roll (Gyro Dampening) Tune.FSusLength = 2 -- Suspension length (in studs) Tune.FPreCompress = 0.15 -- Pre-compression adds resting length force Tune.FExtensionLim = 0.3 -- Max Extension Travel (in studs) Tune.FCompressLim = 0.1 -- Max Compression Travel (in studs) Tune.FSusAngle = 80 -- Suspension Angle (degrees from horizontal) Tune.FWsBoneLen = 5 -- Wishbone Length Tune.FWsBoneAngle = 0 -- Wishbone angle (degrees from horizontal) Tune.FAnchorOffset = { -- Suspension anchor point offset (relative to center of wheel) --[[Lateral]] -0.4, -- positive = outward --[[Vertical]] -0.5, -- positive = upward --[[Forward]] 0, } -- positive = forward --Rear Suspension Tune.RSusDamping = 500 -- Spring Dampening Tune.RSusStiffness = 12000 -- Spring Force Tune.FAntiRoll = 30 -- Anti-Roll (Gyro Dampening) Tune.RSusLength = 2 -- Suspension length (in studs) Tune.RPreCompress = 0.09 -- Pre-compression adds resting length force Tune.RExtensionLim = 0.3 -- Max Extension Travel (in studs) Tune.RCompressLim = 0.1 -- Max Compression Travel (in studs) Tune.RSusAngle = 80 -- Suspension Angle (degrees from horizontal) Tune.RWsBoneLen = 5 -- Wishbone Length Tune.RWsBoneAngle = 0 -- Wishbone angle (degrees from horizontal) Tune.RAnchorOffset = { -- Suspension anchor point offset (relative to center of wheel) --[[Lateral]] -0.4, -- positive = outward --[[Vertical]] -0.5, -- positive = upward --[[Forward]] 0, } -- positive = forward --Aesthetics Tune.SusVisible = false -- Spring Visible Tune.WsBVisible = false -- Wishbone Visible Tune.SusRadius = 0.2 -- Suspension Coil Radius Tune.SusThickness = 0.1 -- Suspension Coil Thickness Tune.SusColor = "Bright red" -- Suspension Color [BrickColor] Tune.SusCoilCount = 6 -- Suspension Coil Count Tune.WsColor = "Black" -- Wishbone Color [BrickColor] Tune.WsThickness = 0.1 -- Wishbone Rod Thickness
function t.instanceIsA(Q)assert(t.string(Q))return function(Y)local G,L=t.Instance(Y)if not G then return false,L or""end if not Y:IsA(Q)then return false,string.format("\037\115 \101\120\112\101\099\116\101\100\044 \103\111\116 \037\115",Q,Y.ClassName)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) assert(t.string(className)) 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 return true end end
local Q,Y,G=true,false,{}local L={[58]={{54;53;52;47,48;49;45,44,28;29;31,32,34,35,39,41,30,56;58};Q};[49]={{54;53,52,47,48,49},Q},[16]={G;Y},[19]={{54,53,52,47;48,49;45,44,28;29;31;32,34;35;39;41,30;56,58,20,19},Q};[59]={{54;53;52;47;48;49,45;44,28,29;31,32,34;35;39;41;59},Q},[63]={{54,53,52,47;48;49;45,44;28,29;31,32;34;35,39,41;30,56,58;23,62,63},Q};[34]={{54,53;52;47;48,49;45;44;28;29;31,32,34},Q},[21]={{54,53;52,47,48;49;45;44,28;29;31;32;34,35;39,41;30,56,58;20;21};Q};[48]={{54;53,52;47;48},Q},[27]={{54;53,52,47;48,49;45,44;28;27},Q};[14]={G;Y};[31]={{54;53;52,47;48,49,45,44;28;29;31};Q};[56]={{54;53,52,47;48,49,45,44;28,29;31;32;34;35;39;41;30,56};Q},[29]={{54,53;52,47,48,49,45;44,28;29},Q};[13]={G;Y},[47]={{54;53,52,47};Q},[12]={G;Y},[45]={{54,53,52,47;48,49;45},Q};[57]={{54;53,52;47;48;49,45;44,28;29,31;32;34;35;39;41;30;56,57};Q},[36]={{54,53,52;47;48;49,45,44,28;29,31,32,33,36},Q};[25]={{54;53,52,47;48;49,45,44;28;27;26,25};Q};[71]={{54;53,52;47,48;49,45,44,28;29;31;32;34,35;39;41;59,61;71},Q},[20]={{54,53,52;47;48;49;45,44,28;29;31;32;34,35;39;41,30;56;58,20};Q},[60]={{54;53,52;47,48,49;45,44,28,29,31;32,34,35;39,41;60},Q},[8]={G,Y},[4]={G,Y};[75]={{54;53;52;47;48,49,45,44;28;29,31;32;34,35,39,41,59,61,71;72,76,73,75};Q},[22]={{54;53,52;47,48;49;45,44;28;29,31,32;34,35;39;41,30;56;58,20,21,22},Q};[74]={{54;53;52;47,48,49;45;44,28,29,31,32;34,35;39,41,59;61;71;72;76,73;74};Q},[62]={{54,53,52,47,48;49;45;44,28,29,31,32;34,35,39;41,30,56,58,23;62},Q};[1]={G,Y};[6]={G;Y},[11]={G;Y},[15]={G;Y},[37]={{54,53;52,47,48;49,45,44;28;29;31,32;33;36;37},Q},[2]={G;Y},[35]={{54,53,52;47,48;49,45;44;28,29;31,32;34,35};Q};[53]={{54;53};Q};[73]={{54;53,52;47;48;49;45,44,28,29;31;32,34;35,39;41;59,61;71,72,76;73},Q};[72]={{54;53;52;47,48;49,45;44,28,29;31,32;34,35,39,41;59;61,71;72};Q},[33]={{54;53;52,47;48;49,45;44;28;29;31,32,33},Q},[69]={{54;53;52,47,48,49;45;44,28,29,31;32,34,35,39,41,60;69},Q};[65]={{54,53,52,47,48,49,45,44;28,29;31,32,34,35;39;41;30,56;58,20,19;66;64,65};Q};[26]={{54,53,52,47,48,49,45;44,28;27;26};Q},[68]={{54,53,52;47,48,49,45,44;28;29;31;32,34,35,39;41;30;56;58;20,19,66,64;67;68},Q},[76]={{54;53;52;47,48,49,45,44,28;29;31;32;34,35;39;41,59;61;71;72;76};Q},[50]={{54;53;52;50},Q};[66]={{54;53;52;47;48;49,45;44;28,29,31;32;34;35,39;41;30,56,58;20,19;66},Q},[10]={G;Y};[24]={{54;53,52,47,48,49,45;44,28,27;26;25;24},Q};[23]={{54,53,52;47;48,49;45;44,28;29,31;32;34;35,39,41;30;56,58;23};Q};[44]={{54;53;52;47;48;49;45,44};Q};[39]={{54;53;52,47,48,49,45,44,28;29,31,32,34;35;39};Q};[32]={{54,53,52,47;48;49;45;44,28,29;31,32};Q},[3]={G,Y};[30]={{54;53,52;47;48;49;45,44;28,29;31,32;34,35;39;41;30};Q};[51]={{54;55;51},Q};[18]={G,Y};[67]={{54;53,52;47,48;49,45;44,28;29;31;32,34;35;39;41,30,56,58,20;19;66;64;67};Q};[61]={{54,53,52,47,48;49;45;44,28,29,31;32;34;35,39;41,59,61},Q},[55]={{54;55};Q};[46]={{54,53,52,47,46};Q},[42]={{54;53,52,47;48,49,45;44,28,29;31;32;34,35;38;42};Q};[40]={{54,53,52;47;48;49;45,44;28;29,31,32,34,35;40},Q};[52]={{54,53,52};Q},[54]={{54};Q};[43]={G,Y},[7]={G,Y};[9]={G,Y};[41]={{54;53,52,47,48;49,45,44,28;29;31;32,34,35,39;41};Q};[17]={G,Y},[38]={{54;53,52,47;48,49,45,44;28,29;31,32;34,35;38};Q};[28]={{54,53,52;47;48,49;45,44;28},Q};[5]={G,Y};[64]={{54;53;52,47,48;49,45,44;28,29;31,32,34;35;39;41,30;56;58,20,19;66;64};Q}}return L
--Precalculated paths local t, f, n = true, false, {} local r = { [58] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58 }, t }, [49] = { { 54, 53, 52, 47, 48, 49 }, t }, [16] = { n, f }, [19] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 20, 19 }, t }, [59] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 59 }, t }, [63] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 23, 62, 63 }, t }, [34] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34 }, t }, [21] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 20, 21 }, t }, [48] = { { 54, 53, 52, 47, 48 }, t }, [27] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 27 }, t }, [14] = { n, f }, [31] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31 }, t }, [56] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56 }, t }, [29] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29 }, t }, [13] = { n, f }, [47] = { { 54, 53, 52, 47 }, t }, [12] = { n, f }, [45] = { { 54, 53, 52, 47, 48, 49, 45 }, t }, [57] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 57 }, t }, [36] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 33, 36 }, t }, [25] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 27, 26, 25 }, t }, [71] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 59, 61, 71 }, t }, [20] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 20 }, t }, [60] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 60 }, t }, [8] = { n, f }, [4] = { n, f }, [75] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 59, 61, 71, 72, 76, 73, 75 }, t }, [22] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 20, 21, 22 }, t }, [74] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 59, 61, 71, 72, 76, 73, 74 }, t }, [62] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 23, 62 }, t }, [1] = { n, f }, [6] = { n, f }, [11] = { n, f }, [15] = { n, f }, [37] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 33, 36, 37 }, t }, [2] = { n, f }, [35] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35 }, t }, [53] = { { 54, 53 }, t }, [73] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 59, 61, 71, 72, 76, 73 }, t }, [72] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 59, 61, 71, 72 }, t }, [33] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 33 }, t }, [69] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 60, 69 }, t }, [65] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 20, 19, 66, 64, 65 }, t }, [26] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 27, 26 }, t }, [68] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 20, 19, 66, 64, 67, 68 }, t }, [76] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 59, 61, 71, 72, 76 }, t }, [50] = { { 54, 53, 52, 50 }, t }, [66] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 20, 19, 66 }, t }, [10] = { n, f }, [24] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 27, 26, 25, 24 }, t }, [23] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 23 }, t }, [44] = { { 54, 53, 52, 47, 48, 49, 45, 44 }, t }, [39] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39 }, t }, [32] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32 }, t }, [3] = { n, f }, [30] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30 }, t }, [51] = { { 54, 55, 51 }, t }, [18] = { n, f }, [67] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 20, 19, 66, 64, 67 }, t }, [61] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 59, 61 }, t }, [55] = { { 54, 55 }, t }, [46] = { { 54, 53, 52, 47, 46 }, t }, [42] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 38, 42 }, t }, [40] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 40 }, t }, [52] = { { 54, 53, 52 }, t }, [54] = { { 54 }, t }, [43] = { n, f }, [7] = { n, f }, [9] = { n, f }, [41] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41 }, t }, [17] = { n, f }, [38] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 38 }, t }, [28] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28 }, t }, [5] = { n, f }, [64] = { { 54, 53, 52, 47, 48, 49, 45, 44, 28, 29, 31, 32, 34, 35, 39, 41, 30, 56, 58, 20, 19, 66, 64 }, t }, } return r
local Q={}Q.__index=Q function Q.new(Y)local G=setmetatable({_handlerListHead=false},Q)if Y then G.totalConnections=0 G.connectionsChanged=Q.new()end return G end function Q.Connect(Y,Q)local G=Connection.new(Y,Q)if Y._handlerListHead then G._next=Y._handlerListHead Y._handlerListHead=G else Y._handlerListHead=G end if Y.connectionsChanged then Y.totalConnections+=1 Y.connectionsChanged:Fire(1)end return G end
-- Signal class local Signal = {} Signal.__index = Signal function Signal.new(createConnectionsChangedSignal) local self = setmetatable({ _handlerListHead = false, }, Signal) if createConnectionsChangedSignal then self.totalConnections = 0 self.connectionsChanged = Signal.new() end return self end function Signal:Connect(fn) local connection = Connection.new(self, fn) if self._handlerListHead then connection._next = self._handlerListHead self._handlerListHead = connection else self._handlerListHead = connection end if self.connectionsChanged then self.totalConnections += 1 self.connectionsChanged:Fire(1) end return connection end
Debris=game:GetService("\068\101\098\114\105\115")Camera=(game:GetService("\087\111\114\107\115\112\097\099\101")).CurrentCamera Sounds={RayHit=script:WaitForChild("\072\105\116")}BasePart=Instance.new("\080\097\114\116")BasePart.Shape=Enum.PartType.Block BasePart.Material=Enum.Material.Plastic BasePart.TopSurface=Enum.SurfaceType.Smooth BasePart.BottomSurface=Enum.SurfaceType.Smooth BasePart.FormFactor=Enum.FormFactor.Custom BasePart.Size=Vector3.new(.2,.2,.2)BasePart.CanCollide=true BasePart.Locked=true BasePart.Anchored=false BaseRay=BasePart:Clone()BaseRay.Name="\076\097\115\101\114"BaseRay.BrickColor=BrickColor.new("\076\105\109\101 \103\114\101\101\110")BaseRay.Material=Enum.Material.SmoothPlastic BaseRay.Size=Vector3.new(.2,.2,.2)BaseRay.Anchored=true BaseRay.CanCollide=false BaseRayMesh=Instance.new("\083\112\101\099\105\097\108\077\101\115\104")BaseRayMesh.Name="\077\101\115\104"BaseRayMesh.MeshType=Enum.MeshType.Brick BaseRayMesh.Scale=Vector3.new(.2,.2,1)BaseRayMesh.Offset=Vector3.new(0,0,0)BaseRayMesh.VertexColor=Vector3.new(1,1,1)BaseRayMesh.Parent=BaseRay function PlaySound(Q,Y)local G=BasePart:Clone()G.Name="\080\097\114\116\105\099\108\101\080\097\114\116"G.Transparency=1 G.Anchored=true G.CanCollide=false local L=Y:Clone()L.Parent=G Debris:AddItem(G,1.5)G.Parent=game:GetService("\087\111\114\107\115\112\097\099\101")G.CFrame=CFrame.new(Q)L:Play()end function FireRay(Q,Y,G)local L=Y-Q local H=L.magnitude local j=L.unit local i=Q+(.25*H)*j local s=Q+(.5*H)*j local q=Q+(.75*H)*j local d=(Q-i).magnitude local E=(i-s).magnitude local r=(s-q).magnitude local O=2 local z=i+Vector3.new(math.random(math.max(-O,-0.21*d),math.min(O,.21*d)),math.random(math.max(-O,-0.21*d),math.min(O,.21*d)),math.random(math.max(-O,-0.21*d),math.min(O,.21*d)))local S=s+Vector3.new(math.random(math.max(-O,-0.21*E),math.min(O,.21*E)),math.random(math.max(-O,-0.21*E),math.min(O,.21*E)),math.random(math.max(-O,-0.21*E),math.min(O,.21*E)))local D=q+Vector3.new(math.random(math.max(-O,-0.21*r),math.min(O,.21*r)),math.random(math.max(-O,-0.21*r),math.min(O,.21*r)),math.random(math.max(-O,-0.21*r),math.min(O,.21*r)))local I={{Distance=(z-Q).magnitude;Direction=CFrame.new(Q,z)};{Distance=(S-z).magnitude,Direction=CFrame.new(z,S)};{Distance=(D-S).magnitude,Direction=CFrame.new(S,D)},{Distance=(Y-D).magnitude;Direction=CFrame.new(D,Y)}}for Q,Y in pairs(I)do local G=BaseRay:Clone()G.BrickColor=BrickColor.new("\078\101\119 \089\101\108\108\101\114")G.Reflectance=.4 G.Transparency=.7 local L=G.Mesh L.Scale=Vector3.new(.15,.15,Y.Distance/1)*5 G.CFrame=Y.Direction*CFrame.new(0,0,-0.5*Y.Distance)Debris:AddItem(G,.1/(#I-(Q-1)))G.Parent=Camera end end pcall(function()local Q=(script:WaitForChild("\083\116\097\114\116\080\111\115\105\116\105\111\110")).Value local Y=(script:WaitForChild("\084\097\114\103\101\116\080\111\115\105\116\105\111\110")).Value local G=(script:WaitForChild("\082\097\121\072\105\116")).Value FireRay(Q,Y)if G then PlaySound(Y,Sounds.RayHit)end end)Debris:AddItem(script,1)
--Made by Luckymaxer Debris = game:GetService("Debris") Camera = game:GetService("Workspace").CurrentCamera Sounds = { RayHit = script:WaitForChild("Hit"), } BasePart = Instance.new("Part") BasePart.Shape = Enum.PartType.Block BasePart.Material = Enum.Material.Plastic BasePart.TopSurface = Enum.SurfaceType.Smooth BasePart.BottomSurface = Enum.SurfaceType.Smooth BasePart.FormFactor = Enum.FormFactor.Custom BasePart.Size = Vector3.new(0.2, 0.2, 0.2) BasePart.CanCollide = true BasePart.Locked = true BasePart.Anchored = false BaseRay = BasePart:Clone() BaseRay.Name = "Laser" BaseRay.BrickColor = BrickColor.new("Lime green") BaseRay.Material = Enum.Material.SmoothPlastic BaseRay.Size = Vector3.new(0.2, 0.2, 0.2) BaseRay.Anchored = true BaseRay.CanCollide = false BaseRayMesh = Instance.new("SpecialMesh") BaseRayMesh.Name = "Mesh" BaseRayMesh.MeshType = Enum.MeshType.Brick BaseRayMesh.Scale = Vector3.new(0.2, 0.2, 1) BaseRayMesh.Offset = Vector3.new(0, 0, 0) BaseRayMesh.VertexColor = Vector3.new(1, 1, 1) BaseRayMesh.Parent = BaseRay function PlaySound(Position, Sound) local SoundPart = BasePart:Clone() SoundPart.Name = "ParticlePart" SoundPart.Transparency = 1 SoundPart.Anchored = true SoundPart.CanCollide = false local SoundObject = Sound:Clone() SoundObject.Parent = SoundPart Debris:AddItem(SoundPart, 1.5) SoundPart.Parent = game:GetService("Workspace") SoundPart.CFrame = CFrame.new(Position) SoundObject:Play() end function FireRay(StartPosition, TargetPosition, Hit) local Vec = (TargetPosition - StartPosition) local Distance = Vec.magnitude local Direction = Vec.unit local PX = (StartPosition + (0.25 * Distance) * Direction) local PY = (StartPosition + (0.5 * Distance) * Direction) local PZ = (StartPosition + (0.75 * Distance) * Direction) local DX = (StartPosition - PX).magnitude local DY = (PX - PY).magnitude local DZ = (PY - PZ).magnitude local Limit = 2 local AX = ( PX + Vector3.new( math.random(math.max(-Limit, (-0.21 * DX)), math.min(Limit, (0.21 * DX))), math.random(math.max(-Limit, (-0.21 * DX)), math.min(Limit, (0.21 * DX))), math.random(math.max(-Limit, (-0.21 * DX)), math.min(Limit, (0.21 * DX))) ) ) local AY = ( PY + Vector3.new( math.random(math.max(-Limit, (-0.21 * DY)), math.min(Limit, (0.21 * DY))), math.random(math.max(-Limit, (-0.21 * DY)), math.min(Limit, (0.21 * DY))), math.random(math.max(-Limit, (-0.21 * DY)), math.min(Limit, (0.21 * DY))) ) ) local AZ = ( PZ + Vector3.new( math.random(math.max(-Limit, (-0.21 * DZ)), math.min(Limit, (0.21 * DZ))), math.random(math.max(-Limit, (-0.21 * DZ)), math.min(Limit, (0.21 * DZ))), math.random(math.max(-Limit, (-0.21 * DZ)), math.min(Limit, (0.21 * DZ))) ) ) local Rays = { { Distance = (AX - StartPosition).magnitude, Direction = CFrame.new(StartPosition, AX) }, { Distance = (AY - AX).magnitude, Direction = CFrame.new(AX, AY) }, { Distance = (AZ - AY).magnitude, Direction = CFrame.new(AY, AZ) }, { Distance = (TargetPosition - AZ).magnitude, Direction = CFrame.new(AZ, TargetPosition) }, } for i, v in pairs(Rays) do local Ray = BaseRay:Clone() Ray.BrickColor = BrickColor.new("New Yeller") Ray.Reflectance = 0.4 Ray.Transparency = 0.7 local Mesh = Ray.Mesh Mesh.Scale = (Vector3.new(0.15, 0.15, (v.Distance / 1)) * 5) Ray.CFrame = (v.Direction * CFrame.new(0, 0, (-0.5 * v.Distance))) Debris:AddItem(Ray, (0.1 / (#Rays - (i - 1)))) Ray.Parent = Camera end end pcall(function() local StartPosition = script:WaitForChild("StartPosition").Value local TargetPosition = script:WaitForChild("TargetPosition").Value local RayHit = script:WaitForChild("RayHit").Value FireRay(StartPosition, TargetPosition) if RayHit then PlaySound(TargetPosition, Sounds.RayHit) end end) Debris:AddItem(script, 1)
function Cmdr.Hide(Q)Interface.Window:Hide()end
--- Hides Cmdr window function Cmdr:Hide() Interface.Window:Hide() end
game.Players.PlayerAdded:Connect(function(Q)CheckPlayer(Q)end)
--- Player joined game.Players.PlayerAdded:Connect(function(player) --- Check for new gamepasses CheckPlayer(player) end)
function ShoulderCamera.setCurrentRecoilIntensity(G,Q,Y)G.currentRecoil=Vector2.new(Q,Y)end function ShoulderCamera.addRecoil(Y,Q)Y.currentRecoil=Y.currentRecoil+Q end
-- Recoil related functions function ShoulderCamera:setCurrentRecoilIntensity(x, y) self.currentRecoil = Vector2.new(x, y) end function ShoulderCamera:addRecoil(recoilAmount) self.currentRecoil = self.currentRecoil + recoilAmount end