Re: Teleportation in mid 2007 client
Posted: 30 May 2024 16:22 PM
in modern roblox it would look something like this
local part = workspace.Part --this is the tp part
local endPosition = Vector3.new(10,10,10) -- this is where it would tp (x, y, z)
part.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent) -- get the player who touched the part
if player and player.Character then
player.Character:MoveTo(endPosition)
end
end)
it probably will be different in 2007 client but just try to researcj
|