#how do i make a script for when a player respawns they go to their death place?

17 messages · Page 1 of 1 (latest)

past prawn
#

wada

#

I can see3 useless ends already

proud minnow
#

wher

gray jackal
#

use WalkToPart or WalkToPoint

proud minnow
#

so uh

proud minnow
#

im gonna go on docs

gray jackal
proud minnow
#

ook

gray jackal
#

WalkToPoint takes in Vector3

#

CFrame gives both orientation and position

#

Which you don’t need

proud minnow
#

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)

gray jackal
proud minnow
#

ill try that

proud minnow
#

ok nothing worked