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 this work?

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?

2 comments

0

Please use the code block tag for your code.

0

Simple fix, you made "lol" an actual value, not a reference to an object. Just remove the .Value when stating what lol is :)

1 answer

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

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