ive never really messed with teleprting to places that arent in the same place but that would likly be part of the problem
If it is, I feel like such an idiot right about now.
here i would look through this, if your trying to use teleport make sure your only teleporting to a public starting place or a place in the same game
Just came back from dinner, I didnât really understand that very much, but I think the reason why it wouldnât work before is because of the Places, in my group creations, the game I wanted to go to was not in Places.
Still doesnât work though, lol.
also i just noticed a mistake with my script, id comes before player thats not something you did wrong thats just me
so the fixed script would be
local part1 = script.Parent
local part2 = script.Parent.Parent
local id -- id here
local function touched(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
game:GetService('TeleportService'):Teleport(id,player)
end
end
part1.Touched:Connect(function(hit)
touched(hit)
end)
part2.Touched:Connect(function(hit)
touched(hit)
end)
Ill try it out now, I hope my suffering can be ended soon.
Is there supposed to be no = after local id? I donât know scripting but it doesnât look right to me.
no the id would be
local id = 6105017665
FINALLY IT WORKED! Thank you so much, you canât believe how annoyed I was getting over this.