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

attempt to call a RBXScriptSignal value, why?

script.Parent.TextButton.MouseButton1Click(function()
	workspace.Gravity=300
end)
	

script.Parent.TextButton2.MouseButton1Click(function()
	workspace.Gravity=100
end)

if i try to run this script it returns this error in the title, Players.EpicEyeBall_007.PlayerGui.ScreenGui.Script:1: attempt to call a RBXScriptSignal value I suck at scripting plz help! <3

1 comment

0

can you put the script in a code block

1 answer

So the problem was that i used MouseButton1Click() which even though it passes as an event it doesn't pass parameters so it doesn't need the (). Hope this answers anyone else with this question!

3 comments

1

No, the problem is you forgot to use :Connect(

0

me, a very good scripter who has been coding for years, four months later realizing his dumb-butt forgot :Connect() lmbo

0

Also Button1Click passes a parameter. The parameter that it passes is the player that clicked it so... :)

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