local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Air HUB V4 (last updated: Nov/24/2024)(Outdated)", LoadingTitle = "Air HUB is loading please wait", LoadingSubtitle = "by Air/eNPC_LeaderAir (eNPC_Leaderir#9031)", ConfigurationSaving = { Enabled = true, FolderName = nil, -- Create a custom folder for your hub/game FileName = "Air Hub" }, Discord = { Enabled = false, Invite = "85wenqp3", -- The Discord invite code, do not include discord.gg/ RememberJoins = true -- Set this to false to make them join the discord every time they load it up }, KeySystem = false, -- Set this to true to use our key system KeySettings = { Title = "Air HUB", Subtitle = "Key System", Note = "Join the discord for key (https://discord.gg/85wenqp3)", FileName = "Air", SaveKey = true, GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from Key = "Air is a God" } }) local Tab = Window:CreateTab("main", 4483362458) -- Title, Image local Section = Tab:CreateSection("Games") local Button = Tab:CreateButton({ Name = "Outlaster GUI NEEDS KEY (out of order)", Callback = function() repeat task.wait()until game:IsLoaded()if not IrisNotificationMrJack then loadstring(game:HttpGet"https://raw.githubusercontent.com/thedragonslayer2/hey/main/Misc./iris%20notification%20function")()elseif IrisNotificationUserMrJack then IrisNotificationUserMrJack.ClearAllNotifications()end;IrisNotificationMrJack(1,"Key System","Executed! Please wait...",9e9)task.wait(0.4)getgenv().gameslink="https://raw.githubusercontent.com/thedragonslayer2/Supported-Games/main/Mr%20Jack"loadstring(game:HttpGet"https://raw.githubusercontent.com/thedragonslayer2/Key-System/main/Load.lua")() end, }) local Button = Tab:CreateButton({ Name = "murder vs sherif insta kill", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/TheEmptynessProject/EmptynessProject/main/index.lua"))() end, }) local Button = Tab:CreateButton({ Name = "murder vs sherif esp key is( BestDuelsRoblox7832 )", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/LOLking123456/Duels7/main/Sheriffs56"))() end, }) local Button = Tab:CreateButton({ Name = "mm2 script (eclipse hub)", Callback = function() getgenv().mainKey = "nil" local a,b,c,d,e=loadstring,request or http_request or (http and http.request) or (syn and syn.request),assert,tostring,"https://api.eclipsehub.xyz/auth";c(a and b,"Executor not Supported")a(b({Url=e.."?\107e\121\61"..d(mainKey),Headers={["User-Agent"]="Eclipse"}}).Body)() end, }) local Button = Tab:CreateButton({ Name = "Breaking Point GUI", Callback = function() loadstring(game:HttpGet('https://raw.githubusercontent.com/tkorra/bp-gui/main/main.lua'))() end, }) local Button = Tab:CreateButton({ Name = "Auto piano for piano games", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/Madness676/3.2Lol/main/AutoPiano3-2.lua", true))() end, }) local Button = Tab:CreateButton({ Name = "INF Yeild/All games admin command", Callback = function() loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))() end, }) local Button = Tab:CreateButton({ Name = "Domain X", Callback = function() loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/DomainX/main/source',true))() end, }) local Button = Tab:CreateButton({ Name = "CMD-X", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/CMD-X/CMD-X/master/Source", true))() end, }) local Button = Tab:CreateButton({ Name = "Arsenal GUI", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/CriShoux/OwlHub/master/OwlHub.txt"))(); end, }) local Button = Tab:CreateButton({ Name = "Vxpe Hub (bedwars gui)", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/NewMainScript.lua", true))() end, }) local Button = Tab:CreateButton({ Name = "POOPDOORS / another doors gui ( open and turn on no lock a-1000 for room 60 in doors for rooms)", Callback = function() loadstring(game:HttpGet(("https://raw.githubusercontent.com/mstudio45/poopdoors_edited/main/poopdoors_edited.lua"),true))() end, }) local Button = Tab:CreateButton({ Name = "Doors GUI V.1.0", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Vynixius/main/Doors/Script.lua"))() end, }) local Button = Tab:CreateButton({ Name = "Doors GUI V.Old looks", Callback = function() loadstring(game:HttpGet("loadstring(game:HttpGet('https://raw.githubusercontent.com/plamen6789/DoorsEntitySummonerGUI/main/EntityGUI'))()"))() end, }) local Button = Tab:CreateButton({ Name = "Evade GUI", Callback = function() loadstring(game:HttpGet('https://raw.githubusercontent.com/zReal-King/Evade/main/Main.lua'))() end, }) local Button = Tab:CreateButton({ Name = "Pet Sim X GUI", Callback = function() loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/jmesfo0/RobloxScripts/main/psx-jmes.lua"))() end, }) local Button = Tab:CreateButton({ Name = "Da Hood GUI Pluto ", Callback = function() loadstring(game:HttpGet('https://raw.githubusercontent.com/Scrvpter/Pluto/Lua/Loader.Lua', true))() end, }) local Button = Tab:CreateButton({ Name = "Da Hood GUI Agent", Callback = function() loadstring(game:HttpGet('https://raw.githubusercontent.com/grekkk/relases/main/zapped.lua'))() end, }) local Button = Tab:CreateButton({ Name = "Stream sniper gui", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/Blissful4992/Miscellaneous/main/StreamSniper.lua"))() end, }) local Button = Tab:CreateButton({ Name = "Blox Fruits GUI", Callback = function() loadstring(game:HttpGet"https://raw.githubusercontent.com/xDepressionx/Free-Script/main/AllScript.lua")() end, }) local Button = Tab:CreateButton({ Name = "A Universal Time", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/TweedLeak/Scripts/main/A-Universal-Time"))() end, }) local Button = Tab:CreateButton({ Name = "Combat Warriors GUI", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/CheeseOnGithub/cheese-hook/main/main%20hydra%20ui.lua",true))() end, }) local Button = Tab:CreateButton({ Name = "Blox Fruits GUI v2", Callback = function() loadstring(game:HttpGet"https://raw.githubusercontent.com/xDepressionx/Free-Script/main/AllScript.lua")() end, }) local Button = Tab:CreateButton({ Name = "Phantom forces", Callback = function() loadstring(game:HttpGet(("https://raw.githubusercontent.com/Yousuck780/phantom-forces-new/main/noob"), true))() end, }) local Button = Tab:CreateButton({ Name = "Phantom forces V2", Callback = function() loadstring(game:HttpGet('https://raw.githubusercontent.com/1201for/V.G-Hub/main/V.Ghub'))() end, }) local Button = Tab:CreateButton({ Name = "Adopt me ALL PETS", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/lf4d7/daphie/main/ame.lua"))() end, }) local Button = Tab:CreateButton({ Name = "Pls Donate AUTOFARM/ROBUX", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/CF-Trail/tzechco-PlsDonateAutofarmBackup/main/autofarm"))() end, }) local Button = Tab:CreateButton({ Name = "Adopt me FE MEGA/NEON PET SCRIPT WORKING", Callback = function() loadstring(game:HttpGet(('https://raw.githubusercontent.com/rblxscriptsnet/scripts/main/adoptmegui1'),true))() end, }) local Button = Tab:CreateButton({ Name = "Pet Sim X Dupe/All pets", Callback = function() loadstring(game:HttpGet("https://raw.githubusercontent.com/kOapps1/roblox/main/psx"))(); end, }) local Button = Tab:CreateButton({ Name = "Doors A-1000 Auto walk", Callback = function() -- Auto walk -- Made by geodude#2619 -- Thanks lolcat, kardin! if game.PlaceId ~= 6839171747 or game.ReplicatedStorage.GameData.Floor.Value ~= "Rooms" then game.StarterGui:SetCore("SendNotification", { Title = "Invalid Place"; Text = "The game detected appears to not be rooms. Please execute this while in rooms!" }) local Sound = Instance.new("Sound") Sound.Parent = game.SoundService Sound.SoundId = "rbxassetid://550209561" Sound.Volume = 5 Sound.PlayOnRemove = true Sound:Destroy() return elseif workspace:FindFirstChild("PathFindPartsFolder") then game.StarterGui:SetCore("SendNotification", { Title = "Warning"; Text = "If you are having issues and the bot is broken, please contact me! geodude#2619" }) local Sound = Instance.new("Sound") Sound.Parent = game.SoundService Sound.SoundId = "rbxassetid://550209561" Sound.Volume = 5 Sound.PlayOnRemove = true Sound:Destroy() return end local PathfindingService = game:GetService("PathfindingService") local VirtualInputManager = game:GetService('VirtualInputManager') local LocalPlayer = game.Players.LocalPlayer local LatestRoom = game.ReplicatedStorage.GameData.LatestRoom local Cooldown = false local ScreenGui = Instance.new("ScreenGui") ScreenGui.Parent = game.CoreGui local TextLabel = Instance.new("TextLabel") TextLabel.Parent = ScreenGui TextLabel.Size = UDim2.new(0,350,0,100) TextLabel.TextSize = 48 TextLabel.TextStrokeColor3 = Color3.new(1,1,1) TextLabel.TextStrokeTransparency = 0 TextLabel.BackgroundTransparency = 1 local GC = getconnections or get_signal_cons if GC then for i,v in pairs(GC(LocalPlayer.Idled)) do if v["Disable"] then v["Disable"](v) elseif v["Disconnect"] then v["Disconnect"](v) end end end local Folder = Instance.new("Folder") Folder.Parent = workspace Folder.Name = "PathFindPartsFolder" if LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game.RemoteListener.Modules:FindFirstChild("A90") then LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game.RemoteListener.Modules.A90.Name = "lol" -- Fuck you A90 end function getLocker() local Closest for i,v in pairs(workspace.CurrentRooms:GetDescendants()) do if v.Name == "Rooms_Locker" then if v:FindFirstChild("Door") and v:FindFirstChild("HiddenPlayer") then if v.HiddenPlayer.Value == nil then if v.Door.Position.Y > -3 then -- Prevents going to the lower lockers in the room with the bridge if Closest == nil then Closest = v.Door else if (LocalPlayer.Character.HumanoidRootPart.Position - v.Door.Position).Magnitude < (Closest.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude then Closest = v.Door end end end end end end end return Closest end function getPath() local Part local Entity = workspace:FindFirstChild("A60") or workspace:FindFirstChild("A120") if Entity and Entity.Main.Position.Y > -4 then Part = getLocker() else Part = workspace.CurrentRooms[LatestRoom.Value].Door.Door end return Part end LatestRoom:GetPropertyChangedSignal("Value"):Connect(function() TextLabel.Text = "Room: "..math.clamp(LatestRoom.Value, 1,1000) if LatestRoom.Value ~= 1000 then LocalPlayer.DevComputerMovementMode = Enum.DevComputerMovementMode.Scriptable else LocalPlayer.DevComputerMovementMode = Enum.DevComputerMovementMode.KeyboardMouse Folder:ClearAllChildren() local Sound = Instance.new("Sound") Sound.Parent = game.SoundService Sound.SoundId = "rbxassetid://4590662766" Sound.Volume = 3 Sound.PlayOnRemove = true Sound:Destroy() game.StarterGui:SetCore("SendNotification", { Title = "youtube.com/geoduude"; Text = "Thank you for using my script!" }) return end end) game:GetService("RunService").RenderStepped:connect(function() LocalPlayer.Character.HumanoidRootPart.CanCollide = false LocalPlayer.Character.Collision.CanCollide = false LocalPlayer.Character.Collision.Size = Vector3.new(8,LocalPlayer.Character.Collision.Size.Y,8) LocalPlayer.Character.Humanoid.WalkSpeed = 21 local Path = getPath() local Entity = workspace:FindFirstChild("A60") or workspace:FindFirstChild("A120") if Entity then if Path then if Path.Parent.Name == "Rooms_Locker" then if Entity.Main.Position.Y > -4 then if (LocalPlayer.Character.HumanoidRootPart.Position - Path.Position).Magnitude < 2 then if LocalPlayer.Character.HumanoidRootPart.Anchored == false then fireproximityprompt(Path.Parent.HidePrompt) end end end end end if Entity.Main.Position.Y < -4 then if LocalPlayer.Character.HumanoidRootPart.Anchored == true then LocalPlayer.Character:SetAttribute("Hiding", false) end end else if LocalPlayer.Character.HumanoidRootPart.Anchored == true then LocalPlayer.Character:SetAttribute("Hiding", false) end end end) while true do local Destination = getPath() local path = PathfindingService:CreatePath({ WaypointSpacing = 1, AgentRadius = 0.1, AgentCanJump = false }) path:ComputeAsync(LocalPlayer.Character.HumanoidRootPart.Position - Vector3.new(0,2,0), Destination.Position) local Waypoints = path:GetWaypoints() if path.Status ~= Enum.PathStatus.NoPath then Folder:ClearAllChildren() for _, Waypoint in pairs(Waypoints) do local part = Instance.new("Part") part.Size = Vector3.new(1,1,1) part.Position = Waypoint.Position part.Shape = "Cylinder" part.Rotation = Vector3.new(0,0,90) part.Material = "SmoothPlastic" part.Anchored = true part.CanCollide = false part.Parent = Folder end for _, Waypoint in pairs(Waypoints) do if LocalPlayer.Character.HumanoidRootPart.Anchored == false then LocalPlayer.Character.Humanoid:MoveTo(Waypoint.Position) LocalPlayer.Character.Humanoid.MoveToFinished:Wait() end end end end end, }) local Button = Tab:CreateButton({ Name = "VR SCRIPT WORKS IN EVERY GAME( VR ONLY, R15 ONLY )", Callback = function() local handTransparency = 0 --transparency of your hands local handsOffset = CFrame.fromEulerAnglesXYZ(8, 0, 0) * CFrame.new(0, 0.7, 0.15) local headScale = 1.5 local flyspeed = headScale / 4 local flyFPS = 120 local disableVrLaserPointer = false --disables robloxes vr laser pointer local enableGunMod = false local flybutton = Enum.KeyCode.ButtonR1 local equipbutton = Enum.KeyCode.ButtonA local shootbutton = Enum.KeyCode.ButtonR2 --[[ VR SCRIPP MAED BY MyWorld#4430 discord.gg/pYVHtSJmEY tanks for testing Ren~#0724 (he literally fell asleep in vr while testing no joke) feel the power 😈 of good optimization boi. ]] --reanimate by MyWorld#4430 discord.gg/pYVHtSJmEY local Vector3_101 = Vector3.new(1, 0, 1) local netless_Y = Vector3.new(0, 25.1, 0) local function getNetlessVelocity(realPartVelocity) --edit this if you have a better netless method if (realPartVelocity.Y > 1) or (realPartVelocity.Y < -1) then return realPartVelocity * (25.1 / realPartVelocity.Y) end realPartVelocity *= Vector3_101 local mag = realPartVelocity.Magnitude if mag > 1 then realPartVelocity *= 100 / mag end return realPartVelocity + netless_Y end local simradius = "shp" --simulation radius (net bypass) method --"shp" - sethiddenproperty --"ssr" - setsimulationradius --false - disable local noclipAllParts = false --set it to true if you want noclip local flingpart = "HumanoidRootPart" --the part that will be used to fling (ctrl + F "fling function") local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character local newanimate = true --disables the animate script and enables after reanimation local discharscripts = true --disables all localScripts parented to your character before reanimation local R15toR6 = true --tries to convert your character to r6 if its r15 local hatcollide = false --makes hats cancollide (credit to ShownApe) (works only with reanimate method 0) local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState) local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation local hedafterneck = true --disable aligns for head and enable after neck or torso is removed local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay local method = 3 --reanimation method --methods: --0 - breakJoints (takes [loadtime] seconds to laod) --1 - limbs --2 - limbs + anti respawn --3 - limbs + breakJoints after [loadtime] seconds --4 - remove humanoid + breakJoints --5 - remove humanoid + limbs local alignmode = 2 --AlignPosition mode --modes: --1 - AlignPosition rigidity enabled true --2 - 2 AlignPositions rigidity enabled both true and false --3 - AlignPosition rigidity enabled false local lp = game:GetService("Players").LocalPlayer local rs = game:GetService("RunService") local stepped = rs.Stepped local heartbeat = rs.Heartbeat local renderstepped = rs.RenderStepped local sg = game:GetService("StarterGui") local ws = game:GetService("Workspace") local cf = CFrame.new local v3 = Vector3.new local v3_0 = v3(0, 0, 0) local inf = math.huge local c = lp.Character if not (c and c.Parent) then return end c.Destroying:Connect(function() c = nil end) local function gp(parent, name, className) if typeof(parent) == "Instance" then for i, v in pairs(parent:GetChildren()) do if (v.Name == name) and v:IsA(className) then return v end end end return nil end local function align(Part0, Part1) Part0.CustomPhysicalProperties = PhysicalProperties.new(0.0001, 0.0001, 0.0001, 0.0001, 0.0001) local att0 = Instance.new("Attachment", Part0) att0.Orientation = v3_0 att0.Position = v3_0 att0.Name = "att0_" .. Part0.Name local att1 = Instance.new("Attachment", Part1) att1.Orientation = v3_0 att1.Position = v3_0 att1.Name = "att1_" .. Part1.Name if (alignmode == 1) or (alignmode == 2) then local ape = Instance.new("AlignPosition", att0) ape.ApplyAtCenterOfMass = false ape.MaxForce = inf ape.MaxVelocity = inf ape.ReactionForceEnabled = false ape.Responsiveness = 200 ape.Attachment1 = att1 ape.Attachment0 = att0 ape.Name = "AlignPositionRtrue" ape.RigidityEnabled = true end if (alignmode == 2) or (alignmode == 3) then local apd = Instance.new("AlignPosition", att0) apd.ApplyAtCenterOfMass = false apd.MaxForce = inf apd.MaxVelocity = inf apd.ReactionForceEnabled = false apd.Responsiveness = 200 apd.Attachment1 = att1 apd.Attachment0 = att0 apd.Name = "AlignPositionRfalse" apd.RigidityEnabled = false end local ao = Instance.new("AlignOrientation", att0) ao.MaxAngularVelocity = inf ao.MaxTorque = inf ao.PrimaryAxisOnly = false ao.ReactionTorqueEnabled = false ao.Responsiveness = 200 ao.Attachment1 = att1 ao.Attachment0 = att0 ao.RigidityEnabled = false if type(getNetlessVelocity) == "function" then local realVelocity = v3_0 local steppedcon = stepped:Connect(function() Part0.Velocity = realVelocity end) local heartbeatcon = heartbeat:Connect(function() realVelocity = Part0.Velocity Part0.Velocity = getNetlessVelocity(realVelocity) end) Part0.Destroying:Connect(function() Part0 = nil steppedcon:Disconnect() heartbeatcon:Disconnect() end) end end local function respawnrequest() local ccfr = ws.CurrentCamera.CFrame local c = lp.Character lp.Character = nil lp.Character = c local con = nil con = ws.CurrentCamera.Changed:Connect(function(prop) if (prop ~= "Parent") and (prop ~= "CFrame") then return end ws.CurrentCamera.CFrame = ccfr con:Disconnect() end) end local destroyhum = (method == 4) or (method == 5) local breakjoints = (method == 0) or (method == 4) local antirespawn = (method == 0) or (method == 2) or (method == 3) hatcollide = hatcollide and (method == 0) addtools = addtools and gp(lp, "Backpack", "Backpack") local fenv = getfenv() local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.set_simulation_rad or fenv.setsimulationrad if shp and (simradius == "shp") then spawn(function() while c and heartbeat:Wait() do shp(lp, "SimulationRadius", inf) end end) elseif ssr and (simradius == "ssr") then spawn(function() while c and heartbeat:Wait() do ssr(inf) end end) end antiragdoll = antiragdoll and function(v) if v:IsA("HingeConstraint") or v:IsA("BallSocketConstraint") then v.Parent = nil end end if antiragdoll then for i, v in pairs(c:GetDescendants()) do antiragdoll(v) end c.DescendantAdded:Connect(antiragdoll) end if antirespawn then respawnrequest() end if method == 0 then wait(loadtime) if not c then return end end if discharscripts then for i, v in pairs(c:GetChildren()) do if v:IsA("LocalScript") then v.Disabled = true end end elseif newanimate then local animate = gp(c, "Animate", "LocalScript") if animate and (not animate.Disabled) then animate.Disabled = true else newanimate = false end end if addtools then for i, v in pairs(addtools:GetChildren()) do if v:IsA("Tool") then v.Parent = c end end end pcall(function() settings().Physics.AllowSleep = false settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled end) local OLDscripts = {} for i, v in pairs(c:GetDescendants()) do if v.ClassName == "Script" then table.insert(OLDscripts, v) end end local scriptNames = {} for i, v in pairs(c:GetDescendants()) do if v:IsA("BasePart") then local newName = tostring(i) local exists = true while exists do exists = false for i, v in pairs(OLDscripts) do if v.Name == newName then exists = true end end if exists then newName = newName .. "_" end end table.insert(scriptNames, newName) Instance.new("Script", v).Name = newName end end c.Archivable = true local hum = c:FindFirstChildOfClass("Humanoid") if hum then for i, v in pairs(hum:GetPlayingAnimationTracks()) do v:Stop() end end local cl = c:Clone() if hum and humState16 then hum:ChangeState(Enum.HumanoidStateType.Physics) if destroyhum then wait(1.6) end end if hum and hum.Parent and destroyhum then hum:Destroy() end if not c then return end local head = gp(c, "Head", "BasePart") local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart") local root = gp(c, "HumanoidRootPart", "BasePart") if hatcollide and c:FindFirstChildOfClass("Accessory") then local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script") if not (torso and root and anything) then return end torso:Destroy() root:Destroy() if shp then for i,v in pairs(c:GetChildren()) do if v:IsA("Accessory") then shp(v, "BackendAccoutrementState", 0) end end end anything:Destroy() end for i, v in pairs(cl:GetDescendants()) do if v:IsA("BasePart") then v.Transparency = 1 v.Anchored = false end end local model = Instance.new("Model", c) model.Name = model.ClassName model.Destroying:Connect(function() model = nil end) for i, v in pairs(c:GetChildren()) do if v ~= model then if addtools and v:IsA("Tool") then for i1, v1 in pairs(v:GetDescendants()) do if v1 and v1.Parent and v1:IsA("BasePart") then local bv = Instance.new("BodyVelocity", v1) bv.Velocity = v3_0 bv.MaxForce = v3(1000, 1000, 1000) bv.P = 1250 bv.Name = "bv_" .. v.Name end end end v.Parent = model end end if breakjoints then model:BreakJoints() else if head and torso then for i, v in pairs(model:GetDescendants()) do if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or v:IsA("Motor") or v:IsA("Motor6D") then local save = false if (v.Part0 == torso) and (v.Part1 == head) then save = true end if (v.Part0 == head) and (v.Part1 == torso) then save = true end if save then if hedafterneck then hedafterneck = v end else v:Destroy() end end end end if method == 3 then spawn(function() wait(loadtime) if model then model:BreakJoints() end end) end end cl.Parent = c for i, v in pairs(cl:GetChildren()) do v.Parent = c end cl:Destroy() local noclipmodel = (noclipAllParts and c) or model local noclipcon = nil local function uncollide() if noclipmodel then for i, v in pairs(noclipmodel:GetDescendants()) do if v:IsA("BasePart") then v.CanCollide = false end end else noclipcon:Disconnect() end end noclipcon = stepped:Connect(uncollide) uncollide() for i, scr in pairs(model:GetDescendants()) do if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then local Part0 = scr.Parent if Part0:IsA("BasePart") then for i1, scr1 in pairs(c:GetDescendants()) do if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then local Part1 = scr1.Parent if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then align(Part0, Part1) break end end end end end end local torso1 = torso torso = gp(c, "Torso", "BasePart") or ((not R15toR6) and gp(c, torso.Name, "BasePart")) if (typeof(hedafterneck) == "Instance") and head and torso and torso1 then local conNeck = nil local conTorso = nil local contorso1 = nil local aligns = {} local function enableAligns() conNeck:Disconnect() conTorso:Disconnect() conTorso1:Disconnect() for i, v in pairs(aligns) do v.Enabled = true end end conNeck = hedafterneck.Changed:Connect(function(prop) if table.find({"Part0", "Part1", "Parent"}, prop) then enableAligns() end end) conTorso = torso:GetPropertyChangedSignal("Parent"):Connect(enableAligns) conTorso1 = torso1:GetPropertyChangedSignal("Parent"):Connect(enableAligns) for i, v in pairs(head:GetDescendants()) do if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then i = tostring(i) aligns[i] = v v.Destroying:Connect(function() aligns[i] = nil end) v.Enabled = false end end end for i, v in pairs(c:GetDescendants()) do if v and v.Parent then if v.ClassName == "Script" then if table.find(scriptNames, v.Name) then v:Destroy() end elseif not v:IsDescendantOf(model) then if v:IsA("Decal") then v.Transparency = 1 elseif v:IsA("ForceField") then v.Visible = false elseif v:IsA("Sound") then v.Playing = false elseif v:IsA("BillboardGui") or v:IsA("SurfaceGui") or v:IsA("ParticleEmitter") or v:IsA("Fire") or v:IsA("Smoke") or v:IsA("Sparkles") then v.Enabled = false end end end end if newanimate then local animate = gp(c, "Animate", "LocalScript") if animate then animate.Disabled = false end end if addtools then for i, v in pairs(c:GetChildren()) do if v:IsA("Tool") then v.Parent = addtools end end end local hum0 = model:FindFirstChildOfClass("Humanoid") if hum0 then hum0.Destroying:Connect(function() hum0 = nil end) end local hum1 = c:FindFirstChildOfClass("Humanoid") if hum1 then hum1.Destroying:Connect(function() hum1 = nil end) end if hum1 then ws.CurrentCamera.CameraSubject = hum1 local camSubCon = nil local function camSubFunc() camSubCon:Disconnect() if c and hum1 then ws.CurrentCamera.CameraSubject = hum1 end end camSubCon = renderstepped:Connect(camSubFunc) if hum0 then hum0:GetPropertyChangedSignal("Jump"):Connect(function() if hum1 then hum1.Jump = hum0.Jump end end) else respawnrequest() end end local rb = Instance.new("BindableEvent", c) rb.Event:Connect(function() rb:Destroy() sg:SetCore("ResetButtonCallback", true) if destroyhum then c:BreakJoints() return end if hum0 and (hum0.Health > 0) then model:BreakJoints() hum0.Health = 0 end if antirespawn then respawnrequest() end end) sg:SetCore("ResetButtonCallback", rb) spawn(function() while c do if hum0 and hum1 then hum1.Jump = hum0.Jump end wait() end sg:SetCore("ResetButtonCallback", true) end) R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15) if R15toR6 then local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "LowerTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart") if part then local cfr = part.CFrame local R6parts = { head = { Name = "Head", Size = v3(2, 1, 1), R15 = { Head = 0 } }, torso = { Name = "Torso", Size = v3(2, 2, 1), R15 = { UpperTorso = 0.2, LowerTorso = -0.8 } }, root = { Name = "HumanoidRootPart", Size = v3(2, 2, 1), R15 = { HumanoidRootPart = 0 } }, leftArm = { Name = "Left Arm", Size = v3(1, 2, 1), R15 = { LeftHand = -0.85, LeftLowerArm = -0.2, LeftUpperArm = 0.4 } }, rightArm = { Name = "Right Arm", Size = v3(1, 2, 1), R15 = { RightHand = -0.85, RightLowerArm = -0.2, RightUpperArm = 0.4 } }, leftLeg = { Name = "Left Leg", Size = v3(1, 2, 1), R15 = { LeftFoot = -0.85, LeftLowerLeg = -0.15, LeftUpperLeg = 0.6 } }, rightLeg = { Name = "Right Leg", Size = v3(1, 2, 1), R15 = { RightFoot = -0.85, RightLowerLeg = -0.15, RightUpperLeg = 0.6 } } } for i, v in pairs(c:GetChildren()) do if v:IsA("BasePart") then for i1, v1 in pairs(v:GetChildren()) do if v1:IsA("Motor6D") then v1.Part0 = nil end end end end part.Archivable = true for i, v in pairs(R6parts) do local part = part:Clone() part:ClearAllChildren() part.Name = v.Name part.Size = v.Size part.CFrame = cfr part.Anchored = false part.Transparency = 1 part.CanCollide = false for i1, v1 in pairs(v.R15) do local R15part = gp(c, i1, "BasePart") local att = gp(R15part, "att1_" .. i1, "Attachment") if R15part then local weld = Instance.new("Weld", R15part) weld.Name = "Weld_" .. i1 weld.Part0 = part weld.Part1 = R15part weld.C0 = cf(0, v1, 0) weld.C1 = cf(0, 0, 0) R15part.Massless = true R15part.Name = "R15_" .. i1 R15part.Parent = part if att then att.Parent = part att.Position = v3(0, v1, 0) end end end part.Parent = c R6parts[i] = part end local R6joints = { neck = { Parent = R6parts.torso, Name = "Neck", Part0 = R6parts.torso, Part1 = R6parts.head, C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) }, rootJoint = { Parent = R6parts.root, Name = "RootJoint" , Part0 = R6parts.root, Part1 = R6parts.torso, C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) }, rightShoulder = { Parent = R6parts.torso, Name = "Right Shoulder", Part0 = R6parts.torso, Part1 = R6parts.rightArm, C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) }, leftShoulder = { Parent = R6parts.torso, Name = "Left Shoulder", Part0 = R6parts.torso, Part1 = R6parts.leftArm, C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) }, rightHip = { Parent = R6parts.torso, Name = "Right Hip", Part0 = R6parts.torso, Part1 = R6parts.rightLeg, C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) }, leftHip = { Parent = R6parts.torso, Name = "Left Hip" , Part0 = R6parts.torso, Part1 = R6parts.leftLeg, C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) } } for i, v in pairs(R6joints) do local joint = Instance.new("Motor6D") for prop, val in pairs(v) do joint[prop] = val end R6joints[i] = joint end hum1.RigType = Enum.HumanoidRigType.R6 hum1.HipHeight = 0 end end --[[ fling function usage: fling(target, duration, velocity) target can be set to: basePart, CFrame, Vector3, character model or humanoid duration (fling time) can be set to a number or a string containing the number (in seconds) will be set to 0.5 if not provided, velocity (fling part rotation velocity) can be set to a vector3 value (Vector3.new(20000, 20000, 20000) if not provided) ]] local flingpart0 = gp(model, flingpart, "BasePart") local flingpart1 = gp(c, flingpart, "BasePart") local fling = function() end if flingpart0 and flingpart1 then flingpart0.Destroying:Connect(function() flingpart0 = nil fling = function() end end) flingpart0.Archivable = true flingpart1.Destroying:Connect(function() flingpart1 = nil fling = function() end end) local att0 = gp(flingpart0, "att0_" .. flingpart0.Name, "Attachment") local att1 = gp(flingpart1, "att1_" .. flingpart1.Name, "Attachment") if att0 and att1 then att0.Destroying:Connect(function() att0 = nil fling = function() end end) att1.Destroying:Connect(function() att1 = nil fling = function() end end) local lastfling = nil fling = function(target, duration, rotVelocity) if typeof(target) == "Instance" then if target:IsA("BasePart") then target = target.Position elseif target:IsA("Model") then target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart") if target then target = target.Position else return end elseif target:IsA("Humanoid") then local parent = target.Parent if not (parent and parent:IsA("Model")) then return end target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart") if target then target = target.Position else return end else return end elseif typeof(target) == "CFrame" then target = target.Position elseif typeof(target) ~= "Vector3" then return end lastfling = target if type(duration) ~= number then duration = tonumber(duration) or 0.5 end if typeof(rotVelocity) ~= "Vector3" then rotVelocity = v3(20000, 20000, 20000) end if not (target and flingpart0 and flingpart1 and att0 and att1) then return end local flingpart = flingpart0:Clone() flingpart.Transparency = 1 flingpart.Size = v3(0.01, 0.01, 0.01) flingpart.CanCollide = false flingpart.Name = "flingpart_" .. flingpart0.Name flingpart.Anchored = true flingpart.Velocity = v3_0 flingpart.RotVelocity = v3_0 flingpart.Destroying:Connect(function() flingpart = nil end) flingpart.Parent = flingpart1 if flingpart0.Transparency > 0.5 then flingpart0.Transparency = 0.5 end att1.Parent = flingpart for i, v in pairs(att0:GetChildren()) do if v:IsA("AlignOrientation") then v.Enabled = false end end local con = nil con = heartbeat:Connect(function() if target and (lastfling == target) and flingpart and flingpart0 and flingpart1 and att0 and att1 then flingpart0.RotVelocity = rotVelocity flingpart.Position = target else con:Disconnect() end end) local steppedRotVel = v3( ((rotVelocity.X > 0) and -1) or 1, ((rotVelocity.Y > 0) and -1) or 1, ((rotVelocity.Z > 0) and -1) or 1 ) local con = nil con = stepped:Connect(function() if target and (lastfling == target) and flingpart and flingpart0 and flingpart1 and att0 and att1 then flingpart0.RotVelocity = steppedRotVel flingpart.Position = target else con:Disconnect() end end) wait(duration) if lastfling ~= target then if flingpart then if att1 and (att1.Parent == flingpart) then att1.Parent = flingpart1 end flingpart:Destroy() end return end target = nil if not (flingpart and flingpart0 and flingpart1 and att0 and att1) then return end flingpart0.RotVelocity = v3_0 att1.Parent = flingpart1 for i, v in pairs(att0:GetChildren()) do if v:IsA("AlignOrientation") then v.Enabled = true end end if flingpart then flingpart:Destroy() end end end end local lp = game:GetService("Players").LocalPlayer local renderstepped = game:GetService("RunService").RenderStepped local ws = game:GetService("Workspace") local uis = game:GetService("UserInputService") local cam = ws.CurrentCamera local cf = CFrame.new local v3 = Vector3.new local partsOffset = headScale - 1 local fenv = getfenv() if fenv.setfpscap then fenv.setfpscap(120) end local function gp(parent, name, className) if typeof(parent) == "Instance" then for i, v in pairs(parent:GetChildren()) do if (v.Name == name) and v:IsA(className) then return v end end end return nil end local c = lp.Character local model = gp(c, "Model", "Model") local head = gp(c, "Head", "BasePart") local root = gp(c, "HumanoidRootPart", "BasePart") local la = gp(c, "Left Arm", "BasePart") local ra = gp(c, "Right Arm", "BasePart") local hum = c:FindFirstChildOfClass("Humanoid") local ws = game:GetService("Workspace") if not (model and head and root and la and ra and hum) then return end if disableVrLaserPointer then local sg = game:GetService("StarterGui") sg:SetCore("VRLaserPointerMode", 0) sg:SetCore("VREnableControllerModels", false) end local cons = {} --gun mod: local att = enableGunMod and gp(gp(gp(c, "Meshes/HeavySniper (1)Accessory", "Accessory"), "Handle", "BasePart"), "att1_Handle", "Attachment") local racf = ra.CFrame if att then local handle0 = gp(gp(model, "Meshes/HeavySniper (1)Accessory", "Accessory"), "Handle", "BasePart") if not handle0 then return end spawn(function() wait() if handle0 and handle0.Parent then handle0.Transparency = 0 end end) local gunpart = ra:Clone() gunpart.Name = "gunpart" gunpart.Transparency = 1 gunpart.Anchored = true gunpart.Velocity = v3(0, 0, 0) gunpart.Parent = c att.Orientation = v3(0, 90, -90) att.Position = v3(0, -2.5, -0.6) att.Parent = gunpart local pointer = Instance.new("Part") pointer.Name = "pointer" pointer.Size = v3(0.1, 0.1, 0.1) pointer.Transparency = 1 pointer.Shape = "Ball" pointer.Color = Color3.new(0, 0, 1) pointer.Material = "Neon" pointer.Anchored = true pointer.CanCollide = false pointer.CFrame = racf pointer.Parent = c local raycastpar = RaycastParams.new() raycastpar.FilterType = Enum.RaycastFilterType.Blacklist raycastpar.FilterDescendantsInstances = {c} raycastpar.IgnoreWater = false local equipped = false local shooting = false cons.gunibegan = uis.InputBegan:Connect(function(key) key = key.KeyCode if equipped and (key == shootbutton) then shooting = true while shooting do fling(pointer.Position, 0.1) end elseif key == equipbutton then equipped = not equipped if equipped then att.Parent = ra pointer.Transparency = 0 else shooting = false gunpart.CFrame = racf att.Parent = gunpart pointer.Transparency = 1 end end end) cons.guniended = uis.InputEnded:Connect(function(key) if shooting and (key.KeyCode == shootbutton) then shooting = false end end) cons.gunpointer = renderstepped:Connect(function() if equipped then local raycastres = ws:Raycast(racf.Position + racf.LookVector * 0.75, racf.UpVector * -1000, raycastpar) if raycastres then pointer.Position = raycastres.Position end end end) cons.gunchanged = gunpart:GetPropertyChangedSignal("Parent"):Connect(function() for i, v in pairs(cons) do v:Disconnect() end cam.CameraType = Enum.CameraType.Custom end) cons.gunpointerchanged = pointer:GetPropertyChangedSignal("Parent"):Connect(function() for i, v in pairs(cons) do v:Disconnect() end equipped = false shooting = false cam.CameraType = Enum.CameraType.Custom end) end local event = Instance.new("BindableEvent", c) flyFPS = 1 / flyFPS local tf = 0 cons.flyStepped = renderstepped:Connect(function(s) tf += s if tf >= flyFPS then for i=1, math.floor(tf / flyFPS) do event:Fire(true) end tf = 0 end end) local event = event.Event cam.CameraSubject = nil cam.CameraType = Enum.CameraType.Scriptable cam.HeadScale = headScale cam.CFrame = cf(head.Position) for i, v in pairs(c:GetChildren()) do if v:IsA("BasePart") then v.Anchored = true v.CFrame = cam.CFrame end end local flymultiplier = 0 cons.fly = event:Connect(function() if flymultiplier < -0.01 then cam.CFrame += (racf * handsOffset).LookVector * flymultiplier end end) cons.ic = uis.InputChanged:Connect(function(key) if key.KeyCode == flybutton then flymultiplier = key.Position.Z * -flyspeed end end) for i, v in pairs(c:GetDescendants()) do pcall(function() v.Transparency = 1 end) end local function setHandTransparency(handName) local hand = gp(model, handName, "BasePart") if hand then hand.Transparency = handTransparency end end setHandTransparency("Left Arm") setHandTransparency("LeftUpperArm") setHandTransparency("LeftLowerArm") setHandTransparency("LeftHand") setHandTransparency("Right Arm") setHandTransparency("RightUpperArm") setHandTransparency("RightLowerArm") setHandTransparency("RightHand") local function removeCharPart(name) local part = gp(c, name, "BasePart") if part then part:Destroy() end end hum.BreakJointsOnDeath = false hum.RequiresNeck = false removeCharPart("Torso") removeCharPart("Left Leg") removeCharPart("Right Leg") local enumhead = Enum.UserCFrame.Head local enumrh = Enum.UserCFrame.RightHand local enumlh = Enum.UserCFrame.LeftHand local v3_5 = v3(0, 5, 0) cons.cfr = uis.UserCFrameChanged:Connect(function(part, move) if part == enumhead then head.CFrame = cam.CFrame * cf(move.p * partsOffset) * move root.Position = head.Position - v3_5 elseif part == enumlh then la.CFrame = cam.CFrame * cf(move.p * partsOffset) * move * handsOffset elseif part == enumrh then racf = cam.CFrame * cf(move.p * partsOffset) * move * handsOffset ra.CFrame = racf end end) local function addChanged(inst) cons["chg_" .. inst.Name] = inst:GetPropertyChangedSignal("Parent"):Connect(function() for i, v in pairs(cons) do v:Disconnect() end cam.CameraType = Enum.CameraType.Custom end) end addChanged(c) addChanged(model) addChanged(la) addChanged(ra) addChanged(root) addChanged(head) addChanged(cam); end, })