Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

[SOLVED] Script had to teleport only the developers?

Asked by 4 years ago
Edited 4 years ago

So, I was hired to work in an obby game as the scripter and they wanted me to make a room for the developers of the game only. I have made this script but it works for anyone who touches the block:

script.Parent.Touched:Connect(function(object)
    if object.Parent:FindFirstChild("Humanoid") then
        if object.Parent.Name == "DangerousKillerTimur" or "Merryt" then
            object.Parent:MoveTo(game.Workspace.OCOTpPoint.Position)
        end
    end
end)

Please help.

1
I do understand the issue is in the 3 and 4 lines, I have tried to fix it but it seems it won't do anything. DangerousKillerTimur 54 — 4y
1
if object.Parent.Name == "DangerousKillerTimur" or object.Parent.Name == "Merryt" then killerbrenden 1537 — 4y
1
Thank you so much it worked. DangerousKillerTimur 54 — 4y

Answer this question