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

How do i make a GUI button that makes you jump once?

Could any1 help me make a script for a GUI button that makes you jump once and closes the GUI button for my game...

Greets Treinman123

DM ME ON DISCORD IF YOU CAN HELP Trein#4391

TY

4 comments

0

hmmmmm

0

do you want to close the UI or to Delete the UI?

0

close

0

uhh if you know how to make one could you contact me on discord Trein#4391

1 answer

I don't think your allowed to tell people your discord because it might be against the Community Guidelines.

So I'm posting it here!

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
player.Character.Humanoid.Jump = true
script.Parent.Visible = false
warn("Success!")
end)

5 comments

0

Also that's a LocalScript inside the button.

0

Your a life saver <3

0

OOF i tested it out and it didnt make me jump it only closed the Button

0

It does print ("Success") tho

0

Hmm... Ohhh your gonna have to fire a Remote Event on the client to the server so we can tell the server to make your character jump... This is because of Filtering Enabled. Read more about Remote Events here: https://developer.roblox.com/en-us/api-reference/class/RemoteEvent

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