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

How do I make this work?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

I made a script. Below is the code on the script:

lol = script.Parent.Parent.Parent.Parent.hiuok.DropScript.StartValue.Value
wat = script.Parent.Text

wat.Text = lol.Value
lol.Changed:connect(function(pro)
    wat.Text = lol.Value
end)

then it said "attempt to index global 'lol' (a number value)" Help?

0
Please use the code block tag for your code. Sparker22 190 — 8y
0
Simple fix, you made "lol" an actual value, not a reference to an object. Just remove the .Value when stating what lol is :) legobuildermaster 220 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

What you did was, made lol a value not a referable "Thing". To fix this mistake remove the .Value at the end of line 1!

lol = script.Parent.Parent.Parent.Parent.hiuok.DropScript.StartValue

Hope This helped this is also stated by legomasterbuilder

Ad

Answer this question