#how do i make a script for when a player respawns they go to their death place?
17 messages · Page 1 of 1 (latest)
wher
use WalkToPart or WalkToPoint
so uh
wait(4)
hum:WalkToPoint hrp.CFrame??\
im gonna go on docs
hrp.Position
ook
WalkToPoint takes in Vector3
CFrame gives both orientation and position
Which you don’t need
so uh
local TS = game:GetService("TweenService") --Gets the TweenService
local info = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false)
print("hi")
local player = game.Players.LocalPlayer
local char = player.Character
local hrp = char:FindFirstChild("HumanoidRootPart")
local hum = char:FindFirstChild("Humanoid")
local oldpos = hrp.Position
local function ondied()
local oldpos = hrp.Position
hum:WalkToPoint oldpos
end
hum.Died:Connect(function()
oldpos = hrp.Position
end)
player.CharacterAdded:Connect(ondied)
end
end)
ill try that
ok nothing worked