Hello im a new scripter im still learning and im try to make a touch part teleport script for my game but when i run it and check the output it says invalid player i dont know how fix it
here code
local TeleportService = game:GetService("TeleportService")
local place = Removed place id
function onTouch(hit)
local Players = game:GetAttributes(hit)
TeleportService:Teleport(place, hit , Players)
end
script.Parent.Touched:connect(onTouch)
i really dont know how fix it i send help to my friend but he dont know too.

2 comments
Oh wow thanks!
No problem !