Yes it currently is that code still dont work
Have you added a wait for child for the currency?
local player = game.Players.LocalPlayer
player:WaitForChild(“leaderstats”).Currency.Changed:Connect(function()
script.Parent.Visible = true
wait(5)
script.Parent.Visible = false
end
For the CURRENCY, not the leaderstats.
local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
local Currency = leaderstats:WaitForChild("Currency")
Currency.Changed:Connect(function()
script.Parent.Visible = true
wait(5)
script.Parent.Visible = false
end
Try this
Try this
local player = game.Players.LocalPlayer
player:WaitForChild("leaderstats"):WaitForChild("Currency").Changed:Connect(function()
print("running")
script.Parent.Visible = true
wait(5)
script.Parent.Visible = false
end
No he removed the .Parent because it is inside of the level up.
Nope it still doesnt work im not sure whats going on
Please screenshot the explorer with the leaderstats folder when you’re in-game
Yeah sorry I wrote it wrong. I just edited it, try that code now
It is a number/int value, correct? Does it not print anything? Any errors? Also, are you sure the frame is becoming visible, but you just don’t see it?
Do you know how to check for errors in the Output tab? If so could you check for errors.
That doesn’t answer all of the questions. It is a number/int value, correct? Any errors? Is the frame becoming visible but perhaps you did not position it correctly? Send the size/position of the frame.
Change it to Levels instead of Currency
Change it to Levels, as @xWaIsh suggested
Thank you ive been doing that lol
local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
local Currency = leaderstats:WaitForChild("Levels")
Currency.Changed:Connect(function()
script.Parent.Visible = true
wait(5)
script.Parent.Visible = false
end
Also, add a ) at the end of the last end.