Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

im trying to get a script that takes me into another roblox game?

I have tried many different scripts but none work! This is what I have.

endlocal TeleportService = game:GetService('TeleportService') local gameID = 4723545494

function onTouched (hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then TeleportService:Teleport(gameID, player) end

script.parent.touched:Connect(onTouched)

Can anybody help me? This is my first time posting on here.

1 comment

0

What is the error?

1 answer

Since you didn't give us the error, i'm going to assume it's because you wrote touched instead of Touched in the last line of your script.

Change it to:

script.Parent.Touched:Connect(onTouched)

This discussion is preserved as it was. New answers, comments, and votes are closed.