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

attempt to call a RBXScriptSignal value, why?

Asked by 3 years ago
Edited 3 years ago
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

0
can you put the script in a code block Omzure 94 — 3y

1 answer

Log in to vote
-1
Answered by 3 years ago
Edited 3 years ago

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!

1
No, the problem is you forgot to use :Connect( Amiaa16 3227 — 3y
0
me, a very good scripter who has been coding for years, four months later realizing his dumb-butt forgot :Connect() lmbo Heavenlyblobmaster 271 — 3y
0
Also Button1Click passes a parameter. The parameter that it passes is the player that clicked it so... :) Heavenlyblobmaster 271 — 3y
Ad

Answer this question