ControlC
· Pastebin
Login
Register
ControlC
/
Create paste
Paste content
Up to 100 KB of text. BBCode formatting is supported.
Title
- optional
Content
B
I
U
S
</>
Colors ↓
Sizes ↓
Size 1
Size 2
Size 3
Size 4
Size 5
Size 6
Size 7
--[[---------Settings---------]]--\r\nspawn(function()\r\n while wait() do\r\n sethiddenproperty(game.Players.LocalPlayer, \"SimulationRadius\", math.huge)\r\n sethiddenproperty(game.Players.LocalPlayer, \"MaximumSimulationRadius\", math.huge)\r\n end\r\nend)\r\ngame.RunService.Stepped:Connect(function()\r\nsethiddenproperty(game.Players.LocalPlayer, \"SimulationRadius\", math.huge)\r\ngame.Players.LocalPlayer.MaximumSimulationRadius = math.huge\r\nend)\r\nlocal bodyTransparency = 0 --Change the transparency of your character (0 - 1)\r\nlocal bodyVelocity = {-17.7, 0, -17.7} --Change your body parts velocity. First number value is the X value. Second number value is the Y value. Third number value is the Z value.\r\nlocal hatVelocity = {-17.7, 0, -17.7} --Change your accessory's velocity. First number value is the X value. Second number value is the Y value. Third number value is the Z value.\r\n--Velocity is not recommended to be (-17.7, 0, -17.7) in R15 since body parts often fall in R15.\r\n--[[--------------------------]]--\r\n\r\nlocal player1 = game.Players.LocalPlayer\r\nlocal character1 = player1.Character\r\n\r\n--Fake Character--\r\n--Create Attachment Function\r\nlocal function CreateAttachment(parent, position, orientation, axis, secondaryAxis, name)\r\n local newAttchment = Instance.new(\"Attachment\", parent)\r\n newAttchment.Position = position\r\n newAttchment.Orientation = orientation\r\n newAttchment.Axis = axis\r\n newAttchment.SecondaryAxis = secondaryAxis\r\n newAttchment.Name = name\r\nend\r\n\r\n--Variables\r\nlocal player1 = game:GetService(\"Players\").LocalPlayer\r\nlocal character1 = player1.Character\r\nlocal hrp = character1.HumanoidRootPart\r\n\r\nfor i,v in pairs(character1:GetChildren()) do\r\n if v:IsA(\"LocalScript\") then\r\n v:Destroy()\r\n end\r\nend\r\n\r\nlocal camera = workspace.CurrentCamera\r\n\r\nlocal reanimFolder = Instance.new(\"Folder\", character1)\r\nreanimFolder.Name = \"FakeCharacter\"\r\n\r\nlocal model = Instance.new(\"Model\", reanimFolder)\r\nmodel.Name = \"Reanimation\"\r\n\r\nlocal userInputService = game:GetService(\"UserInputService\")\r\nlocal movingW, movingA, movingS, movingD, jumping = false\r\n\r\n--Body Parts--\r\n--Head\r\nlocal cHead = Instance.new(\"Part\", model)\r\ncHead.Size = Vector3.new(2, 1, 1)\r\ncHead.Name = \"Head\"\r\n\r\n--Torso\r\nlocal cTorso = Instance.new(\"Part\", model)\r\ncTorso.Size = Vector3.new(2, 2, 1)\r\ncTorso.Name = \"Torso\"\r\n\r\n--Left Arm\r\nlocal cLArm = Instance.new(\"Part\", model)\r\ncLArm.Size = Vector3.new(1, 2, 1)\r\ncLArm.Name = \"Left Arm\"\r\n\r\n--Right Arm\r\nlocal cRArm = Instance.new(\"Part\", model)\r\ncRArm.Size = Vector3.new(1, 2, 1)\r\ncRArm.Name = \"Right Arm\"\r\n\r\n--Left Leg\r\nlocal cLLeg = Instance.new(\"Part\", model)\r\ncLLeg.Size = Vector3.new(1, 2, 1)\r\ncLLeg.Name = \"Left Leg\"\r\n\r\n--Right Leg\r\nlocal cRLeg = Instance.new(\"Part\", model)\r\ncRLeg.Size = Vector3.new(1, 2, 1)\r\ncRLeg.Name = \"Right Leg\"\r\n\r\n--HumanoidRootPart\r\nlocal cHRP = Instance.new(\"Part\", model)\r\ncHRP.Size = Vector3.new(2, 2, 1)\r\ncHRP.Name = \"HumanoidRootPart\"\r\ncHRP.Transparency = 1\r\ncHRP.CanCollide = false\r\n\r\n--Transparency\r\nfor i,v in pairs(model:GetChildren()) do\r\n if v:IsA(\"Part\") and v.Name ~= \"HumanoidRootPart\" then\r\n v.Transparency = 1--0.5\r\n end\r\nend\r\n\r\n--Joints--\r\n--Right Shoulder\r\nlocal rShoulder = Instance.new(\"Motor6D\", cTorso)\r\nrShoulder.Part0 = cTorso\r\nrShoulder.Part1 = cRArm\r\nrShoulder.Name = \"Right Shoulder\"\r\nrShoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)\r\nrShoulder.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)\r\n\r\n--Left Shoulder\r\nlocal lShoulder = Instance.new(\"Motor6D\", cTorso)\r\nlShoulder.Part0 = cTorso\r\nlShoulder.Part1 = cLArm\r\nlShoulder.Name = \"Left Shoulder\"\r\nlShoulder.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)\r\nlShoulder.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)\r\n\r\n--Right Hip\r\nlocal rHip = Instance.new(\"Motor6D\", cTorso)\r\nrHip.Part0 = cTorso\r\nrHip.Part1 = cRLeg\r\nrHip.Name = \"Right Hip\"\r\nrHip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)\r\nrHip.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)\r\n\r\n--Left Hip\r\nlocal lHip = Instance.new(\"Motor6D\", cTorso)\r\nlHip.Part0 = cTorso\r\nlHip.Part1 = cLLeg\r\nlHip.Name = \"Left Hip\"\r\nlHip.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)\r\nlHip.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)\r\n\r\n--Neck\r\nlocal neck = Instance.new(\"Motor6D\", cTorso)\r\nneck.Part0 = cTorso\r\nneck.Part1 = cHead\r\nneck.Name = \"Neck\"\r\nneck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)\r\nneck.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)\r\n\r\n--RootJoint\r\nlocal rootJoint = Instance.new(\"Motor6D\", cHRP)\r\nrootJoint.Part0 = cHRP\r\nrootJoint.Part1 = cTorso\r\nrootJoint.Name = \"RootJoint\"\r\nrootJoint.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)\r\nrootJoint.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)\r\n\r\n--Humanoid--\r\nlocal cHumanoid = Instance.new(\"Humanoid\", model)\r\ncHumanoid.DisplayDistanceType = \"None\"\r\n\r\n--Head Mesh--\r\nlocal headMesh = Instance.new(\"SpecialMesh\", cHead)\r\nheadMesh.Scale = Vector3.new(1.25, 1.25, 1.25)\r\n\r\nlocal reanimation = model\r\n\r\n--Creating Attachments\r\nCreateAttachment(cHead, Vector3.new(0,0.60000002384186,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"HairAttachment\")\r\nCreateAttachment(cHead, Vector3.new(0,0.60000002384186,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"HatAttachment\")\r\nCreateAttachment(cHead, Vector3.new(0,0,-0.60000002384186), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"FaceFrontAttachment\")\r\nCreateAttachment(cHead, Vector3.new(0,0,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"FaceCenterAttachment\")\r\nCreateAttachment(cTorso, Vector3.new(0,1,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"NeckAttachment\")\r\nCreateAttachment(cTorso, Vector3.new(0,0,-0.5), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"BodyFrontAttachment\")\r\nCreateAttachment(cTorso, Vector3.new(0,0,0.5), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"BodyBackAttachment\")\r\nCreateAttachment(cTorso, Vector3.new(-1,1,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"LeftCollarAttachment\")\r\nCreateAttachment(cTorso, Vector3.new(1,1,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"RightCollarAttachment\")\r\nCreateAttachment(cTorso, Vector3.new(0,-1,-0.5), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"WaistFrontAttachment\")\r\nCreateAttachment(cTorso, Vector3.new(0,-1,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"WaistCenterAttachment\")\r\nCreateAttachment(cTorso, Vector3.new(0,-1,0.5), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"WaistBackAttachment\")\r\nCreateAttachment(cLArm, Vector3.new(0,1,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"LeftShoulderAttachment\")\r\nCreateAttachment(cLArm, Vector3.new(0,-1,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"LeftGripAttachment\")\r\nCreateAttachment(cRArm, Vector3.new(0,1,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"RightShoulderAttachment\")\r\nCreateAttachment(cRArm, Vector3.new(0,-1,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"RightGripAttachment\")\r\nCreateAttachment(cLLeg, Vector3.new(0,-1,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"LeftFootAttachment\")\r\nCreateAttachment(cRLeg, Vector3.new(0,-1,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"RightFootAttachment\")\r\nCreateAttachment(cHRP, Vector3.new(0,0,0), Vector3.new(-0,0,0), Vector3.new(1,0,0), Vector3.new(0,1,0), \"RootAttachment\")\r\n\r\n--Cloning Hats (For Netless)\r\nfor i,v in pairs(character1:GetChildren()) do\r\n if v:IsA(\"Accessory\") then\r\n local clone = v:Clone()\r\n local weld = v.Handle:FindFirstChildWhichIsA(\"Weld\")\r\n local weldPart1 = weld.Part1\r\n local newWeld = Instance.new(\"Weld\", clone.Handle)\r\n local CFrame0 = v.Handle.AccessoryWeld.C0\r\n local CFrame1 = v.Handle.AccessoryWeld.C1\r\n \r\n clone.Handle:FindFirstChild(\"AccessoryWeld\"):Destroy()\r\n clone.Parent = reanimation\r\n newWeld.Name = \"AccessoryWeld\"\r\n newWeld.C0 = CFrame0\r\n newWeld.C1 = CFrame1\r\n newWeld.Part0 = clone.Handle\r\n newWeld.Part1 = character1:FindFirstChild(weldPart1.Name)\r\n clone.Handle.Transparency = 1\r\n end\r\nend\r\n\r\ncHRP.CFrame = hrp.CFrame\r\n\r\n-- CLOVR - FE FULL-BODY VR SCRIPT\r\n\r\n-- April 21st Update - TOOL HOLDING ADDED\r\n\r\n-- | made by 0866 and Abacaxl\r\n-- | tysm unverified\r\n\r\n--RagDollEnabled is set to true, DON'T set it to false or CLOVR won't work. Feel free to change the other settings though. -Abacaxl\r\n\r\n--|| Settings:\r\nlocal StudsOffset = 0 -- Character height (negative if you're too high)\r\nlocal Smoothness = .5 -- Character interpolation (0.1 - 1 = smooth - rigid)\r\nlocal AnchorCharacter = false -- Prevent physics from causing inconsistencies\r\nlocal HideCharacter = false -- Hide character on a platform\r\nlocal NoCollision = true-- Disable player collision\r\nlocal ChatEnabled = true -- See chat on your left hand in-game\r\nlocal ChatLocalRange = 75 -- Local chat range\r\nlocal ViewportEnabled = true -- View nearby players in a frame\r\nlocal ViewportRange = 30 -- Maximum distance players are updated\r\nlocal RagdollEnabled = true -- Use your character instead of hats (NetworkOwner vulnerability)\r\nlocal RagdollHeadMovement = true -- Move your head separately from your body (+9 second wait)\r\nlocal AutoRun = false -- Run script on respawn\r\nlocal AutoRespawn = true -- Kill your real body when your virtual body dies\r\nlocal WearAllAccessories = true -- Use all leftover hats for the head\r\nlocal AccurateHandPosition = true -- Move your Roblox hands according to your real hands\r\nlocal AccessorySettings = {\r\n LeftArm = \"\",\r\n RightArm = \"\",\r\n LeftLeg = \"\",\r\n RightLeg = \"\",\r\n Torso = \"\",\r\n Head = true,\r\n BlockArms = true,\r\n BlockLegs = true,\r\n BlockTorso = true,\r\n LimbOffset = CFrame.Angles(math.rad(90), 0, 0)\r\n}\r\nlocal FootPlacementSettings = {\r\n RightOffset = Vector3.new(.5, 0, 0),\r\n LeftOffset = Vector3.new(-.5, 0, 0)\r\n}\r\n--|| Script:\r\nlocal Script = nil\r\nScript = function()\r\n --[[\r\n Variables\r\n--]]\r\n local Players = game:GetService(\"Players\")\r\n local Client = Players.LocalPlayer\r\n local Character = Client.Character or Client.CharacterAdded:Wait()\r\n local WeldBase = Character:WaitForChild(\"HumanoidRootPart\")\r\n local ArmBase = Character:FindFirstChild(\"RightHand\") or Character:FindFirstChild(\"Right Arm\") or WeldBase\r\n local Backpack = Client:WaitForChild(\"Backpack\")\r\n local Mouse = Client:GetMouse()\r\n local Camera = workspace.CurrentCamera\r\n local VRService = game:GetService(\"VRService\")\r\n local VRReady = VRService.VREnabled\r\n local UserInputService = game:GetService(\"UserInputService\")\r\n local RunService = game:GetService(\"RunService\")\r\n local HttpService = game:GetService(\"HttpService\")\r\n local StarterGui = game:GetService(\"StarterGui\")\r\n local HeadAccessories = {}\r\n local UsedAccessories = {}\r\n local Pointer = false\r\n local Point1 = false\r\n local Point2 = false\r\n local VirtualRig = game:GetObjects(\"rbxassetid://4468539481\")[1]\r\n local VirtualBody = game:GetObjects(\"rbxassetid://4464983829\")[1]\r\n local Anchor = Instance.new(\"Part\")\r\n Anchor.Anchored = true\r\n Anchor.Transparency = 1\r\n Anchor.CanCollide = false\r\n Anchor.Parent = workspace\r\n --[[\r\n if RagdollEnabled then\r\n print(\"RagdollEnabled, thank you for using CLOVR!\")\r\n local NetworkAccess =\r\n coroutine.create(\r\n function()\r\n settings().Physics.AllowSleep = false\r\n while true do\r\n game:GetService(\"RunService\").RenderStepped:Wait()\r\n for _, Players in next, game:GetService(\"Players\"):GetChildren() do\r\n if Players ~= game:GetService(\"Players\").LocalPlayer then\r\n Players.MaximumSimulationRadius = 0.1\r\n Players.SimulationRadius = 0\r\n end\r\n end\r\n game:GetService(\"Players\").LocalPlayer.MaximumSimulationRadius = math.pow(math.huge, math.huge)\r\n game:GetService(\"Players\").LocalPlayer.SimulationRadius = math.huge * math.huge\r\n end\r\n end\r\n )\r\n coroutine.resume(NetworkAccess)\r\n end\r\n ]]\r\n StarterGui:SetCore(\"VRLaserPointerMode\", 3)\r\n --[[\r\n Character Protection\r\n--]]\r\n local CharacterCFrame = WeldBase.CFrame\r\n if not RagdollEnabled then\r\n Character.Humanoid.AnimationPlayed:Connect(\r\n function(Animation)\r\n Animation:Stop()\r\n end\r\n )\r\n for _, Track in next, Character.Humanoid:GetPlayingAnimationTracks() do\r\n Track:Stop()\r\n end\r\n if HideCharacter then\r\n local Platform = Instance.new(\"Part\")\r\n Platform.Anchored = true\r\n Platform.Size = Vector3.new(100, 5, 100)\r\n Platform.CFrame = CFrame.new(0, 10000, 0)\r\n Platform.Transparency = 1\r\n Platform.Parent = workspace\r\n Character:MoveTo(Platform.Position + Vector3.new(0, 5, 0))\r\n wait(.5)\r\n end\r\n if AnchorCharacter then\r\n for _, Part in pairs(Character:GetChildren()) do\r\n if Part:IsA(\"BasePart\") then\r\n Part.Anchored = true\r\n end\r\n end\r\n end\r\n end\r\n --[[\r\n Functions\r\n--]]\r\n function Tween(Object, Style, Direction, Time, Goal)\r\n local tweenInfo = TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction])\r\n local tween = game:GetService(\"TweenService\"):Create(Object, tweenInfo, Goal)\r\n tween.Completed:Connect(\r\n function()\r\n tween:Destroy()\r\n end\r\n )\r\n tween:Play()\r\n return tween\r\n end\r\n local function GetMotorForLimb(Limb)\r\n for _, Motor in next, Character:GetDescendants() do\r\n if Motor:IsA(\"Motor6D\") and Motor.Part1 == Limb then\r\n return Motor\r\n end\r\n end\r\n end\r\n local function CreateAlignment(Limb, Part0)\r\n local Attachment0 = Instance.new(\"Attachment\", Part0 or Anchor)\r\n local Attachment1 = Instance.new(\"Attachment\", Limb)\r\n local Orientation = Instance.new(\"AlignOrientation\")\r\n local Position = Instance.new(\"AlignPosition\")\r\n Orientation.Attachment0 = Attachment1\r\n Orientation.Attachment1 = Attachment0\r\n Orientation.RigidityEnabled = false\r\n Orientation.MaxTorque = 20000\r\n Orientation.Responsiveness = 40\r\n Orientation.Parent = reanimation[\"HumanoidRootPart\"]\r\n \r\n Orientation.Name = Limb.Name..\"'s AlignRot\"\r\n Orientation.MaxAngularVelocity = 100\r\n \r\n Position.Attachment0 = Attachment1\r\n Position.Attachment1 = Attachment0\r\n Position.RigidityEnabled = false\r\n Position.MaxForce = 40000\r\n Position.Responsiveness = 40\r\n Position.Parent = reanimation[\"HumanoidRootPart\"]\r\n \r\n Position.Name = Limb.Name..\"'s AlignPos\"\r\n Position.MaxVelocity = 100\r\n \r\n Limb.Massless = false\r\n local Motor = GetMotorForLimb(Limb)\r\n if Motor then\r\n Motor:Destroy()\r\n end\r\n return function(CF, Local)\r\n if Local then\r\n Attachment0.CFrame = CF\r\n else\r\n Attachment0.WorldCFrame = CF\r\n end\r\n end\r\n end\r\n local function GetExtraTool()\r\n for _, Tool in next, Character:GetChildren() do\r\n if Tool:IsA(\"Tool\") and not Tool.Name:match(\"LIMB_TOOL\") then\r\n return Tool\r\n end\r\n end\r\n end\r\n local function GetGripForHandle(Handle)\r\n for _, Weld in next, Character:GetDescendants() do\r\n if Weld:IsA(\"Weld\") and (Weld.Part0 == Handle or Weld.Part1 == Handle) then\r\n return Weld\r\n end\r\n end\r\n wait(.2)\r\n for _, Weld in next, Character:GetDescendants() do\r\n if Weld:IsA(\"Weld\") and (Weld.Part0 == Handle or Weld.Part1 == Handle) then\r\n return Weld\r\n end\r\n end\r\n end\r\n local function CreateRightGrip(Handle)\r\n local RightGrip = Instance.new(\"Weld\")\r\n RightGrip.Name = \"RightGrip\"\r\n RightGrip.Part1 = Handle\r\n RightGrip.Part0 = WeldBase\r\n RightGrip.Parent = WeldBase\r\n return RightGrip\r\n end\r\n local function CreateAccessory(Accessory, DeleteMeshes)\r\n if not Accessory then\r\n return\r\n end\r\n local HatAttachment = Accessory.Handle:FindFirstChildWhichIsA(\"Attachment\")\r\n local HeadAttachment = VirtualRig:FindFirstChild(HatAttachment.Name, true)\r\n local BasePart = HeadAttachment.Parent\r\n local HatAtt = HatAttachment.CFrame\r\n local HeadAtt = HeadAttachment.CFrame\r\n if DeleteMeshes then\r\n if Accessory.Handle:FindFirstChild(\"Mesh\") then\r\n Accessory.Handle.Mesh:Destroy()\r\n end\r\n end\r\n wait()\r\n local Handle = Accessory:WaitForChild(\"Handle\")\r\n if Handle:FindFirstChildWhichIsA(\"Weld\", true) then\r\n Handle:FindFirstChildWhichIsA(\"Weld\", true):Destroy()\r\n Handle:BreakJoints()\r\n else\r\n Handle:BreakJoints()\r\n end\r\n Handle.Massless = true\r\n Handle.Transparency = 0.5\r\n UsedAccessories[Accessory] = true\r\n local RightGrip = CreateRightGrip(Handle)\r\n wait()\r\n for _, Object in pairs(Handle:GetDescendants()) do\r\n if not Object:IsA(\"BasePart\") then\r\n pcall(\r\n function()\r\n Object.Transparency = 1\r\n end\r\n )\r\n pcall(\r\n function()\r\n Object.Enabled = false\r\n end\r\n )\r\n end\r\n end\r\n return Handle, RightGrip, HatAtt, HeadAtt, BasePart\r\n end\r\n local function GetHeadAccessories()\r\n for _, Accessory in next, Character:GetChildren() do\r\n if Accessory:IsA(\"Accessory\") and not UsedAccessories[Accessory] then\r\n local Handle, RightGrip, HatAtt, HeadAtt, BasePart = CreateAccessory(Accessory)\r\n table.insert(HeadAccessories, {Handle, RightGrip, HatAtt, HeadAtt, BasePart})\r\n do\r\n Handle.Transparency = 1\r\n end\r\n if not WearAllAccessories then\r\n break\r\n end\r\n end\r\n end\r\n end\r\n --[[\r\n VR Replication Setup\r\n--]]\r\n if not RagdollEnabled then\r\n LeftHandle, LeftHandGrip =\r\n CreateAccessory(Character:FindFirstChild(AccessorySettings.LeftArm), AccessorySettings.BlockArms)\r\n RightHandle, RightHandGrip =\r\n CreateAccessory(Character:FindFirstChild(AccessorySettings.RightArm), AccessorySettings.BlockArms)\r\n LeftHipHandle, LeftLegGrip =\r\n CreateAccessory(Character:FindFirstChild(AccessorySettings.LeftLeg), AccessorySettings.BlockLegs)\r\n RightHipHandle, RightLegGrip =\r\n CreateAccessory(Character:FindFirstChild(AccessorySettings.RightLeg), AccessorySettings.BlockLegs)\r\n TorsoHandle, TorsoGrip =\r\n CreateAccessory(Character:FindFirstChild(AccessorySettings.Torso), AccessorySettings.BlockTorso)\r\n GetHeadAccessories()\r\n elseif RagdollEnabled then\r\n if RagdollHeadMovement then\r\n Permadeath()\r\n MoveHead = CreateAlignment(reanimation[\"Head\"])\r\n end\r\n MoveRightArm = CreateAlignment(reanimation[\"Right Arm\"])\r\n MoveLeftArm = CreateAlignment(reanimation[\"Left Arm\"])\r\n MoveRightLeg = CreateAlignment(reanimation[\"Right Leg\"])\r\n MoveLeftLeg = CreateAlignment(reanimation[\"Left Leg\"])\r\n MoveTorso = CreateAlignment(reanimation[\"Torso\"])\r\n MoveRoot = CreateAlignment(reanimation[\"HumanoidRootPart\"])\r\n --\r\n if RagdollHeadMovement then\r\n for _, Accessory in next, reanimation:GetChildren() do\r\n if Accessory:IsA(\"Accessory\") and Accessory:FindFirstChild(\"Handle\") then\r\n local Attachment1 = Accessory.Handle:FindFirstChildWhichIsA(\"Attachment\")\r\n local Attachment0 = reanimation:FindFirstChild(tostring(Attachment1), true)\r\n local Orientation = Instance.new(\"AlignOrientation\")\r\n local Position = Instance.new(\"AlignPosition\")\r\n print(Attachment1, Attachment0, Accessory)\r\n \r\n Orientation.Attachment0 = Attachment1\r\n Orientation.Attachment1 = Attachment0\r\n Orientation.RigidityEnabled = false\r\n Orientation.ReactionTorqueEnabled = true\r\n Orientation.MaxTorque = 20000\r\n Orientation.Responsiveness = 40\r\n Orientation.Parent = reanimation[\"Head\"]\r\n \r\n Position.Attachment0 = Attachment1\r\n Position.Attachment1 = Attachment0\r\n Position.RigidityEnabled = false\r\n Position.ReactionForceEnabled = true\r\n Position.MaxForce = 40000\r\n Position.Responsiveness = 40\r\n Position.Parent = reanimation[\"Head\"]\r\n end\r\n end\r\n end\r\n \r\n end\r\n --[[\r\n Movement\r\n--]]\r\n VirtualRig.Name = \"VirtualRig\"\r\n VirtualRig.RightFoot.BodyPosition.Position = CharacterCFrame.p\r\n VirtualRig.LeftFoot.BodyPosition.Position = CharacterCFrame.p\r\n VirtualRig.Parent = workspace\r\n VirtualRig:SetPrimaryPartCFrame(CharacterCFrame)\r\n VirtualRig.Humanoid.Health = 0\r\n --VirtualRig:FindFirstChild(\"HumanoidRootPart\").CFrame = character1.HumanoidRootPart.CFrame\r\n VirtualRig:BreakJoints()\r\n for i,v in pairs(VirtualRig:GetChildren()) do\r\n if v:IsA(\"BasePart\") then\r\n v.CFrame = character1.HumanoidRootPart.CFrame\r\n end\r\n end\r\n --\r\n VirtualBody.Parent = workspace\r\n VirtualBody.Name = \"VirtualBody\"\r\n VirtualBody.Humanoid.WalkSpeed = 8\r\n VirtualBody.Humanoid.CameraOffset = Vector3.new(0, StudsOffset, 0)\r\n VirtualBody:SetPrimaryPartCFrame(CharacterCFrame)\r\n VirtualBody.Humanoid.Died:Connect(\r\n function()\r\n print(\"Virtual death\")\r\n if AutoRespawn then\r\n Character:BreakJoints()\r\n if RagdollHeadMovement and RagdollEnabled then\r\n --Network:Unclaim()\r\n Respawn()\r\n end\r\n end\r\n end\r\n )\r\n --\r\n Camera.CameraSubject = VirtualBody.Humanoid\r\n Character.Humanoid.WalkSpeed = 0\r\n Character.Humanoid.JumpPower = 1\r\n for _, Part in next, VirtualBody:GetChildren() do\r\n if Part:IsA(\"BasePart\") then\r\n Part.Transparency = 1\r\n end\r\n end\r\n for _, Part in next, VirtualRig:GetChildren() do\r\n if Part:IsA(\"BasePart\") then\r\n Part.Transparency = 1\r\n end\r\n end\r\n if not VRReady then\r\n VirtualRig.RightUpperArm.ShoulderConstraint.RigidityEnabled = true\r\n VirtualRig.LeftUpperArm.ShoulderConstraint.RigidityEnabled = true\r\n end\r\n local OnMoving =\r\n RunService.Stepped:Connect(\r\n function()\r\n local Direction = Character.Humanoid.MoveDirection\r\n local Start = VirtualBody.HumanoidRootPart.Position\r\n local Point = Start + Direction * 6\r\n VirtualBody.Humanoid:MoveTo(Point)\r\n end\r\n )\r\n Character.Humanoid.Jumping:Connect(\r\n function()\r\n VirtualBody.Humanoid.Jump = true\r\n end\r\n )\r\n UserInputService.JumpRequest:Connect(\r\n function()\r\n VirtualBody.Humanoid.Jump = true\r\n end\r\n )\r\n --[[\r\n VR Replication\r\n--]]\r\n if RagdollEnabled then\r\n for _, Part in pairs(Character:GetDescendants()) do\r\n if Part:IsA(\"BasePart\") and Part.Name == \"Handle\" and Part.Parent:IsA(\"Accessory\") then\r\n Part.LocalTransparencyModifier = 1\r\n elseif Part:IsA(\"BasePart\") and Part.Transparency < 0.5 and Part.Name ~= \"Head\" then\r\n Part.LocalTransparencyModifier = bodyTransparency\r\n elseif Part:IsA(\"BasePart\") and Part.Name == \"Head\" then\r\n Part.LocalTransparencyModifier = 1\r\n end\r\n if not Part:IsA(\"BasePart\") and not Part:IsA(\"AlignPosition\") and not Part:IsA(\"AlignOrientation\") then\r\n pcall(\r\n function()\r\n Part.Transparency = 1\r\n end\r\n )\r\n pcall(\r\n function()\r\n Part.Enabled = false\r\n end\r\n )\r\n end\r\n end\r\n end\r\n local FootUpdateDebounce = tick()\r\n local function FloorRay(Part, Distance)\r\n local Position = Part.CFrame.p\r\n local Target = Position - Vector3.new(0, Distance, 0)\r\n local Line = Ray.new(Position, (Target - Position).Unit * Distance)\r\n local FloorPart, FloorPosition, FloorNormal =\r\n workspace:FindPartOnRayWithIgnoreList(Line, {VirtualRig, VirtualBody, Character})\r\n if FloorPart then\r\n return FloorPart, FloorPosition, FloorNormal, (FloorPosition - Position).Magnitude\r\n else\r\n return nil, Target, Vector3.new(), Distance\r\n end\r\n end\r\n local function Flatten(CF)\r\n local X, Y, Z = CF.X, CF.Y, CF.Z\r\n local LX, LZ = CF.lookVector.X, CF.lookVector.Z\r\n return CFrame.new(X, Y, Z) * CFrame.Angles(0, math.atan2(LX, LZ), 0)\r\n end\r\n local FootTurn = 1\r\n local function FootReady(Foot, Target)\r\n local MaxDist\r\n if Character.Humanoid.MoveDirection.Magnitude > 0 then\r\n MaxDist = .5\r\n else\r\n MaxDist = 1\r\n end\r\n local PastThreshold = (Foot.Position - Target.Position).Magnitude > MaxDist\r\n local PastTick = tick() - FootUpdateDebounce >= 2\r\n if PastThreshold or PastTick then\r\n FootUpdateDebounce = tick()\r\n end\r\n return PastThreshold or PastTick\r\n end\r\n local function FootYield()\r\n local RightFooting = VirtualRig.RightFoot.BodyPosition\r\n local LeftFooting = VirtualRig.LeftFoot.BodyPosition\r\n local LowerTorso = VirtualRig.LowerTorso\r\n local Yield = tick()\r\n repeat\r\n RunService.Stepped:Wait()\r\n if\r\n (LowerTorso.Position - RightFooting.Position).Y > 4 or\r\n (LowerTorso.Position - LeftFooting.Position).Y > 4 or\r\n ((LowerTorso.Position - RightFooting.Position) * Vector3.new(1, 0, 1)).Magnitude > 4 or\r\n ((LowerTorso.Position - LeftFooting.Position) * Vector3.new(1, 0, 1)).Magnitude > 4\r\n then\r\n break\r\n end\r\n until tick() - Yield >= .17\r\n end\r\n local function UpdateFooting()\r\n if not VirtualRig:FindFirstChild(\"LowerTorso\") then\r\n wait()\r\n return\r\n end\r\n local Floor, FloorPosition, FloorNormal, Dist = FloorRay(VirtualRig.LowerTorso, 3)\r\n Dist = math.clamp(Dist, 0, 5)\r\n local FootTarget =\r\n VirtualRig.LowerTorso.CFrame * CFrame.new(FootPlacementSettings.RightOffset) - Vector3.new(0, Dist, 0) +\r\n Character.Humanoid.MoveDirection * (VirtualBody.Humanoid.WalkSpeed / 8) * 2\r\n if FootReady(VirtualRig.RightFoot, FootTarget) then\r\n VirtualRig.RightFoot.BodyPosition.Position = FootTarget.p\r\n VirtualRig.RightFoot.BodyGyro.CFrame = Flatten(VirtualRig.LowerTorso.CFrame)\r\n end\r\n FootYield()\r\n local FootTarget =\r\n VirtualRig.LowerTorso.CFrame * CFrame.new(FootPlacementSettings.LeftOffset) - Vector3.new(0, Dist, 0) +\r\n Character.Humanoid.MoveDirection * (VirtualBody.Humanoid.WalkSpeed / 8) * 2\r\n if FootReady(VirtualRig.LeftFoot, FootTarget) then\r\n VirtualRig.LeftFoot.BodyPosition.Position = FootTarget.p\r\n VirtualRig.LeftFoot.BodyGyro.CFrame = Flatten(VirtualRig.LowerTorso.CFrame)\r\n end\r\n end\r\n local function UpdateTorsoPosition()\r\n if not RagdollEnabled then\r\n if TorsoHandle then\r\n local Positioning = VirtualRig.UpperTorso.CFrame\r\n if not TorsoGrip or not TorsoGrip.Parent then\r\n TorsoGrip = CreateRightGrip(TorsoHandle)\r\n end\r\n local Parent = TorsoGrip.Parent\r\n TorsoGrip.C1 = CFrame.new()\r\n TorsoGrip.C0 =\r\n TorsoGrip.C0:Lerp(\r\n WeldBase.CFrame:ToObjectSpace(Positioning * CFrame.new(0, -0.25, 0) * AccessorySettings.LimbOffset),\r\n Smoothness\r\n )\r\n TorsoGrip.Parent = nil\r\n TorsoGrip.Parent = Parent\r\n end\r\n else\r\n local Positioning = VirtualRig.UpperTorso.CFrame\r\n MoveTorso(Positioning * CFrame.new(0, -0.25, 0))\r\n MoveRoot(Positioning * CFrame.new(0, -0.25, 0))\r\n end\r\n end\r\n local function UpdateLegPosition()\r\n if not RagdollEnabled then\r\n if RightHipHandle then\r\n local Positioning =\r\n VirtualRig.RightLowerLeg.CFrame:Lerp(VirtualRig.RightFoot.CFrame, 0.5) + Vector3.new(0, 0.5, 0)\r\n if not RightHipHandle or not RightHipHandle.Parent then\r\n RightLegGrip = CreateRightGrip(RightHipHandle)\r\n end\r\n local Parent = RightLegGrip.Parent\r\n RightLegGrip.C1 = CFrame.new()\r\n RightLegGrip.C0 =\r\n RightLegGrip.C0:Lerp(\r\n WeldBase.CFrame:ToObjectSpace(Positioning * AccessorySettings.LimbOffset),\r\n Smoothness\r\n )\r\n RightLegGrip.Parent = nil\r\n RightLegGrip.Parent = Parent\r\n end\r\n if LeftHipHandle then\r\n local Positioning =\r\n VirtualRig.LeftLowerLeg.CFrame:Lerp(VirtualRig.LeftFoot.CFrame, 0.5) + Vector3.new(0, 0.5, 0)\r\n if not LeftLegGrip or not LeftLegGrip.Parent then\r\n LeftLegGrip = CreateRightGrip(LeftHipHandle)\r\n end\r\n local Parent = LeftLegGrip.Parent\r\n LeftLegGrip.C1 = CFrame.new()\r\n LeftLegGrip.C0 =\r\n LeftLegGrip.C0:Lerp(\r\n WeldBase.CFrame:ToObjectSpace(Positioning * AccessorySettings.LimbOffset),\r\n Smoothness\r\n )\r\n LeftLegGrip.Parent = nil\r\n LeftLegGrip.Parent = Parent\r\n end\r\n else\r\n do\r\n local Positioning =\r\n VirtualRig.RightLowerLeg.CFrame:Lerp(VirtualRig.RightFoot.CFrame, 0.5) *\r\n CFrame.Angles(0, math.rad(180), 0) +\r\n Vector3.new(0, 0.5, 0)\r\n MoveRightLeg(Positioning)\r\n end\r\n do\r\n local Positioning =\r\n VirtualRig.LeftLowerLeg.CFrame:Lerp(VirtualRig.LeftFoot.CFrame, 0.5) *\r\n CFrame.Angles(0, math.rad(180), 0) +\r\n Vector3.new(0, 0.5, 0)\r\n MoveLeftLeg(Positioning)\r\n end\r\n end\r\n end\r\n warn(\"VRReady is\", VRReady)\r\n local function OnUserCFrameChanged(UserCFrame, Positioning, IgnoreTorso)\r\n local Positioning = Camera.CFrame * Positioning\r\n if not IgnoreTorso then\r\n UpdateTorsoPosition()\r\n UpdateLegPosition()\r\n end\r\n if not RagdollEnabled then\r\n if UserCFrame == Enum.UserCFrame.Head and AccessorySettings.Head then\r\n for _, Table in next, HeadAccessories do\r\n local Handle, RightGrip, HatAtt, HeadAtt, BasePart = unpack(Table)\r\n local LocalPositioning = Positioning\r\n if not RightGrip or not RightGrip.Parent then\r\n RightGrip = CreateRightGrip(Handle)\r\n Table[2] = RightGrip\r\n end\r\n local Parent = RightGrip.Parent\r\n if BasePart then\r\n LocalPositioning = BasePart.CFrame * HeadAtt\r\n end\r\n RightGrip.C1 = HatAtt\r\n RightGrip.C0 = RightGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(LocalPositioning), Smoothness)\r\n RightGrip.Parent = nil\r\n RightGrip.Parent = Parent\r\n end\r\n elseif RightHandle and UserCFrame == Enum.UserCFrame.RightHand and AccessorySettings.RightArm then\r\n local HandPosition = Positioning\r\n local LocalPositioning = Positioning\r\n if not RightHandGrip or not RightHandGrip.Parent then\r\n RightHandGrip = CreateRightGrip(RightHandle)\r\n end\r\n if AccurateHandPosition then\r\n HandPosition = HandPosition * CFrame.new(0, 0, 1)\r\n end\r\n if not VRReady then\r\n local HeadRotation = Camera.CFrame - Camera.CFrame.p\r\n HandPosition =\r\n VirtualRig.RightUpperArm.CFrame:Lerp(VirtualRig.RightLowerArm.CFrame, 0.5) *\r\n AccessorySettings.LimbOffset\r\n --LocalPositioning = (HeadRotation + (HandPosition * CFrame.new(0, 0, 1)).p) * CFrame.Angles(math.rad(-45), 0, 0)\r\n LocalPositioning = HandPosition * CFrame.new(0, 0, 1) * CFrame.Angles(math.rad(-180), 0, 0)\r\n if Point2 then\r\n VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)\r\n VirtualRig.RightUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset\r\n elseif VirtualRig.RightUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then\r\n VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)\r\n end\r\n elseif AccurateHandPosition then\r\n LocalPositioning = HandPosition\r\n end\r\n local Parent = RightHandGrip.Parent\r\n RightHandGrip.C1 = CFrame.new()\r\n RightHandGrip.C0 = RightHandGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(HandPosition), Smoothness)\r\n RightHandGrip.Parent = nil\r\n RightHandGrip.Parent = Parent\r\n --\r\n local EquippedTool = GetExtraTool()\r\n if EquippedTool and EquippedTool:FindFirstChild(\"Handle\") then\r\n local EquippedGrip = GetGripForHandle(EquippedTool.Handle)\r\n local Parent = EquippedGrip.Parent\r\n local ArmBaseCFrame = ArmBase.CFrame\r\n if ArmBase.Name == \"Right Arm\" then\r\n ArmBaseCFrame = ArmBaseCFrame\r\n end\r\n EquippedGrip.C1 = EquippedTool.Grip\r\n EquippedGrip.C0 = EquippedGrip.C0:Lerp(ArmBaseCFrame:ToObjectSpace(LocalPositioning), Smoothness)\r\n EquippedGrip.Parent = nil\r\n EquippedGrip.Parent = Parent\r\n end\r\n elseif LeftHandle and UserCFrame == Enum.UserCFrame.LeftHand and AccessorySettings.LeftArm then\r\n local HandPosition = Positioning\r\n if not LeftHandGrip or not LeftHandGrip.Parent then\r\n LeftHandGrip = CreateRightGrip(LeftHandle)\r\n end\r\n if AccurateHandPosition then\r\n HandPosition = HandPosition * CFrame.new(0, 0, 1)\r\n end\r\n if not VRReady then\r\n HandPosition =\r\n VirtualRig.LeftUpperArm.CFrame:Lerp(VirtualRig.LeftLowerArm.CFrame, 0.5) *\r\n AccessorySettings.LimbOffset\r\n --warn(\"Setting HandPosition to hands\")\r\n if Point1 then\r\n VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)\r\n VirtualRig.LeftUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset\r\n elseif VirtualRig.LeftUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then\r\n VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)\r\n end\r\n end\r\n local Parent = LeftHandGrip.Parent\r\n LeftHandGrip.C1 = CFrame.new()\r\n LeftHandGrip.C0 = LeftHandGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(HandPosition), Smoothness)\r\n LeftHandGrip.Parent = nil\r\n LeftHandGrip.Parent = Parent\r\n end\r\n end\r\n if RagdollEnabled then\r\n if UserCFrame == Enum.UserCFrame.Head and RagdollHeadMovement then\r\n MoveHead(Positioning)\r\n elseif UserCFrame == Enum.UserCFrame.RightHand then\r\n local Positioning = Positioning\r\n if not VRReady then\r\n Positioning = VirtualRig.RightUpperArm.CFrame:Lerp(VirtualRig.RightLowerArm.CFrame, 0.5)\r\n elseif AccurateHandPosition then\r\n Positioning = Positioning * CFrame.new(0, 0, 1)\r\n end\r\n if VRReady then\r\n Positioning = Positioning * AccessorySettings.LimbOffset\r\n end\r\n MoveRightArm(Positioning)\r\n if Point2 then\r\n VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)\r\n VirtualRig.RightUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset\r\n elseif VirtualRig.RightUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then\r\n VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)\r\n end\r\n elseif UserCFrame == Enum.UserCFrame.LeftHand then\r\n local Positioning = Positioning\r\n if not VRReady then\r\n Positioning = VirtualRig.LeftUpperArm.CFrame:Lerp(VirtualRig.LeftLowerArm.CFrame, 0.5)\r\n elseif AccurateHandPosition then\r\n Positioning = Positioning * CFrame.new(0, 0, 1)\r\n end\r\n if VRReady then\r\n Positioning = Positioning * AccessorySettings.LimbOffset\r\n end\r\n MoveLeftArm(Positioning)\r\n if Point1 then\r\n VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)\r\n VirtualRig.LeftUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset\r\n elseif VirtualRig.LeftUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then\r\n VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)\r\n end\r\n end\r\n end\r\n if UserCFrame == Enum.UserCFrame.Head then\r\n VirtualRig.Head.CFrame = Positioning\r\n elseif UserCFrame == Enum.UserCFrame.RightHand and VRReady then\r\n VirtualRig.RightHand.CFrame = Positioning\r\n elseif UserCFrame == Enum.UserCFrame.LeftHand and VRReady then\r\n VirtualRig.LeftHand.CFrame = Positioning\r\n end\r\n if not VRReady and VirtualRig.LeftHand.Anchored then\r\n VirtualRig.RightHand.Anchored = false\r\n VirtualRig.LeftHand.Anchored = false\r\n elseif VRReady and not VirtualRig.LeftHand.Anchored then\r\n VirtualRig.RightHand.Anchored = true\r\n VirtualRig.LeftHand.Anchored = true\r\n end\r\n end\r\n local CFrameChanged = VRService.UserCFrameChanged:Connect(OnUserCFrameChanged)\r\n local OnStepped =\r\n RunService.Stepped:Connect(\r\n function()\r\n for _, Part in pairs(VirtualRig:GetChildren()) do\r\n if Part:IsA(\"BasePart\") then\r\n Part.CanCollide = false\r\n end\r\n end\r\n if RagdollEnabled then\r\n for _, Part in pairs(Character:GetChildren()) do\r\n if Part:IsA(\"BasePart\") then\r\n Part.CanCollide = false\r\n end\r\n end\r\n end\r\n if NoCollision then\r\n for _, Player in pairs(Players:GetPlayers()) do\r\n if Player ~= Client and Player.Character then\r\n local Descendants = Player.Character:GetDescendants()\r\n for i = 1, #Descendants do\r\n local Part = Descendants[i]\r\n if Part:IsA(\"BasePart\") then\r\n Part.CanCollide = false\r\n Part.Velocity = Vector3.new()\r\n Part.RotVelocity = Vector3.new()\r\n end\r\n end\r\n end\r\n end\r\n end\r\n end\r\n )\r\n local OnRenderStepped =\r\n RunService.Stepped:Connect(\r\n function()\r\n Camera.CameraSubject = VirtualBody.Humanoid\r\n if RagdollEnabled then\r\n Character.HumanoidRootPart.CFrame = VirtualRig.UpperTorso.CFrame\r\n --Character.HumanoidRootPart.Velocity = Vector3.new(0, 0, 0)\r\n end\r\n if not VRReady then\r\n OnUserCFrameChanged(Enum.UserCFrame.Head, CFrame.new(0, 0, 0))\r\n OnUserCFrameChanged(Enum.UserCFrame.RightHand, CFrame.new(0, 0, 0), true)\r\n OnUserCFrameChanged(Enum.UserCFrame.LeftHand, CFrame.new(0, 0, 0), true)\r\n end\r\n end\r\n )\r\n spawn(\r\n function()\r\n while Character and Character.Parent do\r\n FootYield()\r\n UpdateFooting()\r\n end\r\n end\r\n )\r\n --[[\r\n Non-VR Support + VR Mechanics\r\n--]]\r\n local OnInput =\r\n UserInputService.InputBegan:Connect(\r\n function(Input, Processed)\r\n if not Processed then\r\n if Input.KeyCode == Enum.KeyCode.LeftControl or Input.KeyCode == Enum.KeyCode.ButtonL2 then\r\n Tween(\r\n VirtualBody.Humanoid,\r\n \"Elastic\",\r\n \"Out\",\r\n 1,\r\n {\r\n CameraOffset = Vector3.new(0, StudsOffset - 1.5, 0)\r\n }\r\n )\r\n end\r\n if Input.KeyCode == Enum.KeyCode.X then\r\n if RagdollEnabled and RagdollHeadMovement then\r\n --Network:Unclaim()\r\n Respawn()\r\n end\r\n end\r\n if Input.KeyCode == Enum.KeyCode.C then\r\n VirtualBody:MoveTo(Mouse.Hit.p)\r\n VirtualRig:MoveTo(Mouse.Hit.p)\r\n end\r\n end\r\n if Input.KeyCode == Enum.KeyCode.LeftShift or Input.KeyCode == Enum.KeyCode.ButtonR2 then\r\n Tween(\r\n VirtualBody.Humanoid,\r\n \"Sine\",\r\n \"Out\",\r\n 1,\r\n {\r\n WalkSpeed = 16\r\n }\r\n )\r\n end\r\n if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton1 then\r\n Point1 = true\r\n end\r\n if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton2 then\r\n Point2 = true\r\n end\r\n if VRReady and Input.KeyCode == Enum.KeyCode.ButtonY then\r\n Character:BreakJoints()\r\n if RagdollEnabled and RagdollHeadMovement then\r\n --Network:Unclaim()\r\n Respawn()\r\n end\r\n end\r\n end\r\n )\r\n local OnInputEnded =\r\n UserInputService.InputEnded:Connect(\r\n function(Input, Processed)\r\n if not Processed then\r\n if Input.KeyCode == Enum.KeyCode.LeftControl or Input.KeyCode == Enum.KeyCode.ButtonL2 then\r\n Tween(\r\n VirtualBody.Humanoid,\r\n \"Elastic\",\r\n \"Out\",\r\n 1,\r\n {\r\n CameraOffset = Vector3.new(0, StudsOffset, 0)\r\n }\r\n )\r\n end\r\n end\r\n if Input.KeyCode == Enum.KeyCode.LeftShift or Input.KeyCode == Enum.KeyCode.ButtonR2 then\r\n Tween(\r\n VirtualBody.Humanoid,\r\n \"Sine\",\r\n \"Out\",\r\n 1,\r\n {\r\n WalkSpeed = 8\r\n }\r\n )\r\n end\r\n if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton1 then\r\n Point1 = false\r\n end\r\n if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton2 then\r\n Point2 = false\r\n end\r\n end\r\n )\r\n --[[\r\n Proper Cleanup\r\n--]]\r\n local OnReset\r\n OnReset =\r\n Client.CharacterAdded:Connect(\r\n function()\r\n OnReset:Disconnect()\r\n CFrameChanged:Disconnect()\r\n OnStepped:Disconnect()\r\n OnRenderStepped:Disconnect()\r\n OnMoving:Disconnect()\r\n OnInput:Disconnect()\r\n OnInputEnded:Disconnect()\r\n VirtualRig:Destroy()\r\n VirtualBody:Destroy()\r\n if RagdollEnabled then\r\n --Network:Unclaim()\r\n end\r\n if AutoRun then\r\n delay(\r\n 2,\r\n function()\r\n Script()\r\n end\r\n )\r\n end\r\n end\r\n )\r\n if ChatEnabled then\r\n spawn(ChatHUDFunc)\r\n end\r\n if ViewportEnabled then\r\n spawn(ViewHUDFunc)\r\n end\r\n do\r\n --[[\r\n Functions\r\n --]]\r\n local Players = game:GetService(\"Players\")\r\n local Client = Players.LocalPlayer\r\n local VRService = game:GetService(\"VRService\")\r\n local VRReady = VRService.VREnabled\r\n local UserInputService = game:GetService(\"UserInputService\")\r\n local RunService = game:GetService(\"RunService\")\r\n local Camera = workspace.CurrentCamera\r\n --[[\r\n Code\r\n --]]\r\n if VRReady then\r\n local Pointer = game:GetObjects(\"rbxassetid://4476173280\")[1]\r\n Pointer.Parent = workspace\r\n Pointer.Beam.Enabled = false\r\n Pointer.Target.ParticleEmitter.Enabled = false\r\n local RenderStepped =\r\n RunService.RenderStepped:Connect(\r\n function()\r\n if Pointer.Beam.Enabled then\r\n local RightHand = Camera.CFrame * VRService:GetUserCFrame(Enum.UserCFrame.RightHand)\r\n local Target = RightHand * CFrame.new(0, 0, -10)\r\n local Line = Ray.new(RightHand.p, (Target.p - RightHand.p).Unit * 128)\r\n local Part, Position =\r\n workspace:FindPartOnRayWithIgnoreList(Line, {VirtualRig, VirtualBody, Character, Pointer})\r\n local Distance = (Position - RightHand.p).Magnitude\r\n Pointer.Target.Position = Vector3.new(0, 0, -Distance)\r\n Pointer.CFrame = RightHand\r\n end\r\n end\r\n )\r\n local Input =\r\n UserInputService.InputBegan:Connect(\r\n function(Input)\r\n if Input.KeyCode == Enum.KeyCode.ButtonB then\r\n Pointer.Beam.Enabled = not Pointer.Beam.Enabled\r\n Pointer.Target.ParticleEmitter.Enabled = not Pointer.Target.ParticleEmitter.Enabled\r\n end\r\n end\r\n )\r\n --\r\n local CharacterAdded\r\n CharacterAdded =\r\n Client.CharacterAdded:Connect(\r\n function()\r\n RenderStepped:Disconnect()\r\n Input:Disconnect()\r\n CharacterAdded:Disconnect()\r\n Pointer:Destroy()\r\n Pointer = nil\r\n end\r\n )\r\n else\r\n return\r\n end\r\n end\r\nend\r\nPermadeath = function()\r\n local ch = game.Players.LocalPlayer.Character\r\n local prt = Instance.new(\"Model\", workspace)\r\n local z1 = Instance.new(\"Part\", prt)\r\n z1.Name = \"Torso\"\r\n z1.CanCollide = false\r\n z1.Anchored = true\r\n local z2 = Instance.new(\"Part\", prt)\r\n z2.Name = \"Head\"\r\n z2.Anchored = true\r\n z2.CanCollide = false\r\n local z3 = Instance.new(\"Humanoid\", prt)\r\n z3.Name = \"Humanoid\"\r\n z1.Position = Vector3.new(0, 9999, 0)\r\n z2.Position = Vector3.new(0, 9991, 0)\r\n game.Players.LocalPlayer.Character = prt\r\n wait(game.Players.RespawnTime/2)\r\n warn(\"50%\")\r\n game.Players.LocalPlayer.Character = ch\r\n wait(game.Players.RespawnTime/2 + 0.5)\r\n warn(\"100%\")\r\nend\r\nRespawn = function()\r\n local ch = game.Players.LocalPlayer.Character\r\n local prt = Instance.new(\"Model\", workspace)\r\n local z1 = Instance.new(\"Part\", prt)\r\n z1.Name = \"Torso\"\r\n z1.CanCollide = false\r\n z1.Anchored = true\r\n local z2 = Instance.new(\"Part\", prt)\r\n z2.Name = \"Head\"\r\n z2.Anchored = true\r\n z2.CanCollide = false\r\n local z3 = Instance.new(\"Humanoid\", prt)\r\n z3.Name = \"Humanoid\"\r\n z1.Position = Vector3.new(0, 9999, 0)\r\n z2.Position = Vector3.new(0, 9991, 0)\r\n game.Players.LocalPlayer.Character = prt\r\n wait(game.Players.RespawnTime)\r\n game.Players.LocalPlayer.Character = ch\r\nend\r\nChatHUDFunc = function()\r\n --[[\r\n Variables\r\n --]]\r\n local UserInputService = game:GetService(\"UserInputService\")\r\n local RunService = game:GetService(\"RunService\")\r\n local VRService = game:GetService(\"VRService\")\r\n local VRReady = VRService.VREnabled\r\n local Players = game:GetService(\"Players\")\r\n local Client = Players.LocalPlayer\r\n local ChatHUD = game:GetObjects(\"rbxassetid://4476067885\")[1]\r\n local GlobalFrame = ChatHUD.GlobalFrame\r\n local Template = GlobalFrame.Template\r\n local LocalFrame = ChatHUD.LocalFrame\r\n local Global = ChatHUD.Global\r\n local Local = ChatHUD.Local\r\n local Camera = workspace.CurrentCamera\r\n Template.Parent = nil\r\n ChatHUD.Parent = game:GetService(\"CoreGui\")\r\n --[[\r\n Code\r\n --]]\r\n local Highlight = Global.Frame.BackgroundColor3\r\n local Deselected = Local.Frame.BackgroundColor3\r\n local OpenGlobalTab = function()\r\n Global.Frame.BackgroundColor3 = Highlight\r\n Local.Frame.BackgroundColor3 = Deselected\r\n Global.Font = Enum.Font.SourceSansBold\r\n Local.Font = Enum.Font.SourceSans\r\n GlobalFrame.Visible = true\r\n LocalFrame.Visible = false\r\n end\r\n local OpenLocalTab = function()\r\n Global.Frame.BackgroundColor3 = Deselected\r\n Local.Frame.BackgroundColor3 = Highlight\r\n Global.Font = Enum.Font.SourceSans\r\n Local.Font = Enum.Font.SourceSansBold\r\n GlobalFrame.Visible = false\r\n LocalFrame.Visible = true\r\n end\r\n Global.MouseButton1Down:Connect(OpenGlobalTab)\r\n Local.MouseButton1Down:Connect(OpenLocalTab)\r\n Global.MouseButton1Click:Connect(OpenGlobalTab)\r\n Local.MouseButton1Click:Connect(OpenLocalTab)\r\n OpenLocalTab()\r\n --\r\n local function GetPlayerDistance(Sender)\r\n if Sender.Character and Sender.Character:FindFirstChild(\"Head\") then\r\n return math.floor((Sender.Character.Head.Position - Camera:GetRenderCFrame().p).Magnitude + 0.5)\r\n end\r\n end\r\n local function NewGlobal(Message, Sender, Color)\r\n local Frame = Template:Clone()\r\n Frame.Text = (\"[%s]: %s\"):format(Sender.Name, Message)\r\n Frame.User.Text = (\"[%s]:\"):format(Sender.Name)\r\n Frame.User.TextColor3 = Color\r\n Frame.BackgroundColor3 = Color\r\n Frame.Parent = GlobalFrame\r\n delay(\r\n 60,\r\n function()\r\n Frame:Destroy()\r\n end\r\n )\r\n end\r\n local function NewLocal(Message, Sender, Color, Dist)\r\n local Frame = Template:Clone()\r\n Frame.Text = (\"(%s) [%s]: %s\"):format(tostring(Dist), Sender.Name, Message)\r\n Frame.User.Text = (\"(%s) [%s]:\"):format(tostring(Dist), Sender.Name)\r\n Frame.User.TextColor3 = Color\r\n Frame.BackgroundColor3 = Color\r\n Frame.Parent = LocalFrame\r\n delay(\r\n 60,\r\n function()\r\n Frame:Destroy()\r\n end\r\n )\r\n end\r\n local function OnNewChat(Message, Sender, Color)\r\n if not ChatHUD or not ChatHUD.Parent then\r\n return\r\n end\r\n NewGlobal(Message, Sender, Color)\r\n local Distance = GetPlayerDistance(Sender)\r\n if Distance and Distance <= ChatLocalRange then\r\n NewLocal(Message, Sender, Color, Distance)\r\n end\r\n end\r\n local function OnPlayerAdded(Player)\r\n if not ChatHUD or not ChatHUD.Parent then\r\n return\r\n end\r\n local Color = BrickColor.Random().Color\r\n Player.Chatted:Connect(\r\n function(Message)\r\n OnNewChat(Message, Player, Color)\r\n end\r\n )\r\n end\r\n Players.PlayerAdded:Connect(OnPlayerAdded)\r\n for _, Player in pairs(Players:GetPlayers()) do\r\n OnPlayerAdded(Player)\r\n end\r\n --\r\n local ChatPart = ChatHUD.Part\r\n ChatHUD.Adornee = ChatPart\r\n if VRReady then\r\n ChatHUD.Parent = game:GetService(\"CoreGui\")\r\n ChatHUD.Enabled = true\r\n ChatHUD.AlwaysOnTop = true\r\n local OnInput =\r\n UserInputService.InputBegan:Connect(\r\n function(Input, Processed)\r\n if not Processed then\r\n if Input.KeyCode == Enum.KeyCode.ButtonX then\r\n ChatHUD.Enabled = not ChatHUD.Enabled\r\n end\r\n end\r\n end\r\n )\r\n local RenderStepped =\r\n RunService.RenderStepped:Connect(\r\n function()\r\n local LeftHand = VRService:GetUserCFrame(Enum.UserCFrame.LeftHand)\r\n ChatPart.CFrame = Camera.CFrame * LeftHand\r\n end\r\n )\r\n local CharacterAdded\r\n CharacterAdded =\r\n Client.CharacterAdded:Connect(\r\n function()\r\n OnInput:Disconnect()\r\n RenderStepped:Disconnect()\r\n CharacterAdded:Disconnect()\r\n ChatHUD:Destroy()\r\n ChatHUD = nil\r\n end\r\n )\r\n end\r\n wait(9e9)\r\nend\r\nViewHUDFunc = function()\r\n --[[\r\n Variables\r\n --]]\r\n local ViewportRange = ViewportRange or 32\r\n local UserInputService = game:GetService(\"UserInputService\")\r\n local RunService = game:GetService(\"RunService\")\r\n local VRService = game:GetService(\"VRService\")\r\n local VRReady = VRService.VREnabled\r\n local Players = game:GetService(\"Players\")\r\n local Client = Players.LocalPlayer\r\n local Mouse = Client:GetMouse()\r\n local Camera = workspace.CurrentCamera\r\n local CameraPort = Camera.CFrame\r\n local ViewHUD = script:FindFirstChild(\"ViewHUD\") or game:GetObjects(\"rbxassetid://4480405425\")[1]\r\n local Viewport = ViewHUD.Viewport\r\n local Viewcam = Instance.new(\"Camera\")\r\n local ViewPart = ViewHUD.Part\r\n ViewHUD.Parent = game:GetService(\"CoreGui\")\r\n Viewcam.Parent = Viewport\r\n Viewcam.CameraType = Enum.CameraType.Scriptable\r\n Viewport.CurrentCamera = Viewcam\r\n Viewport.BackgroundTransparency = 1\r\n --[[\r\n Code\r\n --]]\r\n local function Clone(Character)\r\n local Arc = Character.Archivable\r\n local Clone\r\n Character.Archivable = true\r\n Clone = Character:Clone()\r\n Character.Archivable = Arc\r\n return Clone\r\n end\r\n local function GetPart(Name, Parent, Descendants)\r\n for i = 1, #Descendants do\r\n local Part = Descendants[i]\r\n if Part.Name == Name and Part.Parent.Name == Parent then\r\n return Part\r\n end\r\n end\r\n end\r\n local function OnPlayerAdded(Player)\r\n if not ViewHUD or not ViewHUD.Parent then\r\n return\r\n end\r\n local function CharacterAdded(Character)\r\n if not ViewHUD or not ViewHUD.Parent then\r\n return\r\n end\r\n Character:WaitForChild(\"Head\")\r\n Character:WaitForChild(\"Humanoid\")\r\n wait(3)\r\n local FakeChar = Clone(Character)\r\n local Root = FakeChar:FindFirstChild(\"HumanoidRootPart\") or FakeChar:FindFirstChild(\"Head\")\r\n local RenderConnection\r\n local Descendants = FakeChar:GetDescendants()\r\n local RealDescendants = Character:GetDescendants()\r\n local Correspondents = {}\r\n FakeChar.Humanoid.DisplayDistanceType = \"None\"\r\n for i = 1, #Descendants do\r\n local Part = Descendants[i]\r\n local Real = Part:IsA(\"BasePart\") and GetPart(Part.Name, Part.Parent.Name, RealDescendants)\r\n if Part:IsA(\"BasePart\") and Real then\r\n Part.Anchored = true\r\n Part:BreakJoints()\r\n if Part.Parent:IsA(\"Accessory\") then\r\n Part.Transparency = 0\r\n end\r\n table.insert(Correspondents, {Part, Real})\r\n end\r\n end\r\n RenderConnection =\r\n RunService.RenderStepped:Connect(\r\n function()\r\n if not Character or not Character.Parent then\r\n RenderConnection:Disconnect()\r\n FakeChar:Destroy()\r\n return\r\n end\r\n if\r\n (Root and (Root.Position - Camera.CFrame.p).Magnitude <= ViewportRange) or Player == Client or\r\n not Root\r\n then\r\n for i = 1, #Correspondents do\r\n local Part, Real = unpack(Correspondents[i])\r\n if Part and Real and Part.Parent and Real.Parent then\r\n Part.CFrame = Real.CFrame\r\n elseif Part.Parent and not Real.Parent then\r\n Part:Destroy()\r\n end\r\n end\r\n end\r\n end\r\n )\r\n FakeChar.Parent = Viewcam\r\n end\r\n Player.CharacterAdded:Connect(CharacterAdded)\r\n if Player.Character then\r\n spawn(\r\n function()\r\n CharacterAdded(Player.Character)\r\n end\r\n )\r\n end\r\n end\r\n local PlayerAdded = Players.PlayerAdded:Connect(OnPlayerAdded)\r\n for _, Player in pairs(Players:GetPlayers()) do\r\n OnPlayerAdded(Player)\r\n end\r\n ViewPart.Size = Vector3.new()\r\n if VRReady then\r\n Viewport.Position = UDim2.new(.62, 0, .89, 0)\r\n Viewport.Size = UDim2.new(.3, 0, .3, 0)\r\n Viewport.AnchorPoint = Vector2.new(.5, 1)\r\n else\r\n Viewport.Size = UDim2.new(0.3, 0, 0.3, 0)\r\n end\r\n local RenderStepped =\r\n RunService.RenderStepped:Connect(\r\n function()\r\n local Render = Camera.CFrame\r\n local Scale = Camera.ViewportSize\r\n if VRReady then\r\n Render = Render * VRService:GetUserCFrame(Enum.UserCFrame.Head)\r\n end\r\n CameraPort = CFrame.new(Render.p + Vector3.new(5, 2, 0), Render.p)\r\n Viewport.Camera.CFrame = CameraPort\r\n ViewPart.CFrame = Render * CFrame.new(0, 0, -16)\r\n ViewHUD.Size = UDim2.new(0, Scale.X - 6, 0, Scale.Y - 6)\r\n end\r\n )\r\n --\r\n local CharacterAdded\r\n CharacterAdded =\r\n Client.CharacterAdded:Connect(\r\n function()\r\n RenderStepped:Disconnect()\r\n CharacterAdded:Disconnect()\r\n PlayerAdded:Disconnect()\r\n ViewHUD:Destroy()\r\n ViewHUD = nil\r\n end\r\n )\r\n \r\n ------------------------Part of modification------------------------\r\n for i,v in pairs(character1:GetDescendants()) do\r\n if v:IsA(\"Motor6D\") then\r\n v:Destroy()\r\n end\r\n end\r\n \r\n if character1.Humanoid.RigType == Enum.HumanoidRigType.R15 then\r\n character1:BreakJoints()\r\n end\r\n \r\n for i,v in pairs(reanimation:GetChildren()) do\r\n if v:IsA(\"BasePart\") then\r\n v.Anchored = false\r\n end\r\n end\r\n \r\n game:GetService(\"RunService\").Heartbeat:Connect(function()\r\n for i,v in pairs(character1:GetChildren()) do\r\n if v:IsA(\"BasePart\") then\r\n v.Velocity = Vector3.new(bodyVelocity[1], bodyVelocity[2], bodyVelocity[3])\r\n if character1.Humanoid.RigType == Enum.HumanoidRigType.R6 then\r\n v.CFrame = reanimation:FindFirstChild(v.Name).CFrame\r\n else\r\n --Head\r\n if character1:FindFirstChild(\"Head\") then\r\n character1.Head.CFrame = reanimation.Head.CFrame\r\n end\r\n \r\n --Torso\r\n if character1:FindFirstChild(\"UpperTorso\") then\r\n character1.UpperTorso.CFrame = reanimation.Torso.CFrame * CFrame.new(0, 0.185, 0)\r\n end\r\n if character1:FindFirstChild(\"LowerTorso\") then\r\n character1.LowerTorso.CFrame = reanimation.Torso.CFrame * CFrame.new(0, -0.8, 0)\r\n end\r\n \r\n --HumanoidRootPart\r\n if character1:FindFirstChild(\"HumanoidRootPart\") then\r\n character1.HumanoidRootPart.CFrame = cHRP.CFrame\r\n end\r\n \r\n --Left Arm\r\n if character1:FindFirstChild(\"LeftUpperArm\") then\r\n character1.LeftUpperArm.CFrame = reanimation[\"Left Arm\"].CFrame * CFrame.new(0, 0.4, 0)\r\n end\r\n if character1:FindFirstChild(\"LeftLowerArm\") then\r\n character1.LeftLowerArm.CFrame = reanimation[\"Left Arm\"].CFrame * CFrame.new(0, -0.19, 0)\r\n end\r\n if character1:FindFirstChild(\"LeftHand\") then\r\n character1.LeftHand.CFrame = reanimation[\"Left Arm\"].CFrame * CFrame.new(0, -0.84, 0)\r\n end\r\n \r\n --Right Arm\r\n if character1:FindFirstChild(\"RightUpperArm\") then\r\n character1.RightUpperArm.CFrame = reanimation[\"Right Arm\"].CFrame * CFrame.new(0, 0.4, 0)\r\n end\r\n if character1:FindFirstChild(\"RightLowerArm\") then\r\n character1.RightLowerArm.CFrame = reanimation[\"Right Arm\"].CFrame * CFrame.new(0, -0.19, 0)\r\n end\r\n if character1:FindFirstChild(\"RightHand\") then\r\n character1.RightHand.CFrame = reanimation[\"Right Arm\"].CFrame * CFrame.new(0, -0.84, 0)\r\n end\r\n \r\n --Left Leg\r\n if character1:FindFirstChild(\"LeftUpperLeg\") then\r\n character1.LeftUpperLeg.CFrame = reanimation[\"Left Leg\"].CFrame * CFrame.new(0, 0.55, 0)\r\n end\r\n if character1:FindFirstChild(\"LeftLowerLeg\") then\r\n character1.LeftLowerLeg.CFrame = reanimation[\"Left Leg\"].CFrame * CFrame.new(0, -0.19, 0)\r\n end\r\n if character1:FindFirstChild(\"LeftFoot\") then\r\n character1.LeftFoot.CFrame = reanimation[\"Left Leg\"].CFrame * CFrame.new(0, -0.85, 0)\r\n end\r\n \r\n --Right Leg\r\n if character1:FindFirstChild(\"RightUpperLeg\") then\r\n character1.RightUpperLeg.CFrame = reanimation[\"Right Leg\"].CFrame * CFrame.new(0, 0.55, 0)\r\n end\r\n if character1:FindFirstChild(\"RightLowerLeg\") then\r\n character1.RightLowerLeg.CFrame = reanimation[\"Right Leg\"].CFrame * CFrame.new(0, -0.19, 0)\r\n end\r\n if character1:FindFirstChild(\"RightFoot\") then\r\n character1.RightFoot.CFrame = reanimation[\"Right Leg\"].CFrame * CFrame.new(0, -0.85, 0)\r\n end\r\n end\r\n end\r\n \r\n if v:IsA(\"Accessory\") then\r\n v.Handle.Velocity = Vector3.new(hatVelocity[1], hatVelocity[2], hatVelocity[3])\r\n v.Handle.CFrame = reanimation:FindFirstChild(v.Name).Handle.CFrame\r\n end\r\n end\r\n end)\r\n \r\n game:GetService(\"RunService\").Stepped:Connect(function()\r\n for i,v in pairs(reanimation:GetChildren()) do\r\n if v:IsA(\"BasePart\") then\r\n v.CanCollide = false\r\n end\r\n end\r\n end)\r\n \r\n \r\n --------------------------------------------------------------------\r\n \r\n wait(9e9)\r\nend\r\nScript()\r\nwait(2)\r\nlocal Players = game:GetService(\"Players\")\r\nlocal lp = Players.LocalPlayer\r\nlocal character = reanimation--lp.Character\r\nlocal A0LL = Instance.new(\"Attachment\", character[\"Left Leg\"])\r\nA0LL.Position = Vector3.new(0, 1, 0)\r\nlocal A1LL = Instance.new(\"Attachment\", character[\"Torso\"])\r\nA1LL.Position = Vector3.new(-0.5, -1, 0)\r\nlocal socket1 = Instance.new(\"BallSocketConstraint\", character[\"Left Leg\"])\r\nsocket1.Attachment0 = A0LL\r\nsocket1.Attachment1 = A1LL\r\nlocal A0RL = Instance.new(\"Attachment\", character[\"Right Leg\"])\r\nA0RL.Position = Vector3.new(0, 1, 0)\r\nlocal A1RL = Instance.new(\"Attachment\", character[\"Torso\"])\r\nA1RL.Position = Vector3.new(0.5, -1, 0)\r\nlocal socket2 = Instance.new(\"BallSocketConstraint\", character[\"Right Leg\"])\r\nsocket2.Attachment0 = A0RL\r\nsocket2.Attachment1 = A1RL\r\nlocal A0H = Instance.new(\"Attachment\", character[\"Head\"])\r\nA0H.Position = Vector3.new(0, -0.5, 0)\r\nlocal A1H = Instance.new(\"Attachment\", character[\"Torso\"])\r\nA1H.Position = Vector3.new(0, 1, 0)\r\nlocal socket5 = Instance.new(\"BallSocketConstraint\", character[\"Head\"])\r\nsocket5.Attachment0 = A0H\r\nsocket5.Attachment1 = A1H\r\n--loadstring(game:HttpGet(\"https://ghostbin.co/paste/krmyf/raw\", true))()\r\n-----------------------------------------------------------\r\nwait(9e9)\r\nspawn(function()\r\n while wait() do\r\n sethiddenproperty(game.Players.LocalPlayer, \"SimulationRadius\", math.huge)\r\n sethiddenproperty(game.Players.LocalPlayer, \"MaximumSimulationRadius\", math.huge)\r\n end\r\nend)\r\ngame.RunService.Stepped:Connect(function()\r\nsethiddenproperty(game.Players.LocalPlayer, \"SimulationRadius\", math.huge)\r\ngame.Players.LocalPlayer.MaximumSimulationRadius = math.huge\r\nend)
Password
Anyone with the link will still need this password to view.
Expires
1 hour
3 hours
6 hours
12 hours
24 hours
48 hours
72 hours
Sign in to enable "Never expires".
Create paste
Please verify you are human
Cancel