How to connect values with text

Ok, so I changed it to this


Yet it still has a issue with defining data

Change

local Player = game.Players.LocalPlayer.Data

to

local Player = Players.LocalPlayer:WaitForChild("Data")

local Players = game.Players.LocalPlayer

local Start = “What do you want?, You have”…Players.Data.CandyCounter.Value…“Candies”

remove data as you already put it in so now itll say player.data.data.candycounter… etc

You’re referencing the service.

Sorry forgot which one to use, haven’t used Players in a while

K i did that and now theres a error at local Player = Players.LocalPlayer:WaitForChild(“Data”)

Is this a LocalScript? LocalPlayer only works for them.

It’s FindFirstChild(“Data”) I believe

normal scripts can also do this

No, its a server script.
image

That’s why. Server scripts can’t access the local player property, as the server doesn’t have a local player.

WaitForChild is like FindFirstChild except it waits for something to exist if it doesn’t at the moment.

ah, I see now. Ill make a local script work.

Listen to @RensUnnecessaryAlt she’s more bright-minded than me.

This is the second time i’ve seen someone call me a girl lol i’m a guy

I believe your avatar hair was originally for girls, but my bad.

1 Like