Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lp = game:GetService'Players'.LocalPlayer
- local char = lp.Character or lp.Character:Wait()
- _G.HUM = char:WaitForChild("Humanoid")
- _G.root = char:WaitForChild("HumanoidRootPart")
- local cframe
- local function GetCFrame()
- if _G.HUM and _G.root then
- cframe = _G.root.CFrame
- end
- end
- local function GotoCFrame()
- if char and _G.root and cframe then
- wait(0.5)
- _G.root.CFrame = cframe
- end
- end
- _G.HUM.Died:Connect(function()
- GetCFrame()
- end)
- lp.CharacterAdded:Connect(function(character)
- char = character
- root = char:WaitForChild("HumanoidRootPart")
- humanoid = char:WaitForChild("Humanoid")
- _G.HUM = humanoid
- _G.root = root
- wait(0.5)
- GotoCFrame()
- end)
- warn("loaded")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement