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

Copying Int values?

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

✓ Accepted answer
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.

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