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

Copying Int values?

Asked by 8 years ago

Is there a way I can copy an int value..? Something like this:

script.Parent.Money.Value = script.Parent.Parent.Parent.Parent.Parent.leaderstats.Money.Value

I'm trying to put this into a GUI but it keeps giving me an error when I run this:

script.Parent.Text = "Money:"..script.Parent.Parent.Parent.Parent.Parent.leaderstats.Money.Value..""

The GUI in StarterGUI looks like this: Money.Frame.Textlabel.script

1 answer

Log in to vote
0
Answered by 8 years ago
script.Parent.Text = (
"Money: ".. 
script.Parent.Parent.Parent.Parent.Parent:FindFirstChild(
"leaderstats").Money.Value
)

that should stop all the errors but it wont necessarily fix it entirely unless you set it up properly.

Ad

Answer this question