script.Parent.MouseButton1:Connect(function()
game:GetService("TeleportService"):Teleport(game.Players.LocalPlayer,4944349183)
end)
THIS IS A LOCAL SCRIPT IN STARTER GUI
script.Parent.MouseButton1:Connect(function()
game:GetService("TeleportService"):Teleport(game.Players.LocalPlayer,4944349183)
end)
THIS IS A LOCAL SCRIPT IN STARTER GUI
In your first line you misspelled that piece of code its supposed to be:
script.Parent.MouseButton1Click:Connect(function()
Also remember than when you did MouseButton1 you never specified what it was because it could be 'click' or 'hover'
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Also you never closed the parenthesis in line two