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

how do i make mouse button a member of a text button?

script.Parent.MouseButton1:Connect(function()
game:GetService("TeleportService"):Teleport(game.Players.LocalPlayer,4944349183)
end)

THIS IS A LOCAL SCRIPT IN STARTER GUI

1 comment

0

Also you never closed the parenthesis in line two

1 answer

✓ Accepted answer

In your first line you misspelled that piece of code its supposed to be:

script.Parent.MouseButton1Click:Connect(function()

1 comment

0

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.