local player = game.Players.LocalPlayer
local level = player.leaderstats1.Level
if level.valuechanged then
game.Workspace.guipart.Size = Vector3.new(999999,9999999,999999)
end
✓ ANSWER ACCEPTED
How should I use the function value changed?
1 answer
✓ Accepted answer
Value objects have a .Changed event, which fires when it's value changes. Your code can look like this with it:
local player = game.Players.LocalPlayer
local level = player.leaderstats1.Level
Level.Changed:Connect(function()
--Code that runs when the value changes would go here
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thx