У вашего броузера проблема в совместимости с HTML5
In this video, I will show you how to make a teleport pad in which you touch a part that teleports you to another part.
If you found this video helpful, please leave a like and subscribe for more videos like this!
If you have suggestions, the best way to let me know them is by leaving a comment below!
Feel free to share this video:
https://youtu.be/19v2785nFYs
Check out my channel:
https://www.youtube.com/channel/UChClJkcVVqVz89_0FOSbD4g
SCRIPT:
local pad = script.Parent
local teleportTo = workspace.OtherSide
pad.Touched:connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
local humanoidRoot = hit.Parent:FindFirstChild("HumanoidRootPart")
if humanoidRoot then
humanoidRoot.CFrame = teleportTo.CFrame
end
end
end)