Hello everyone so
-
What do you want to achieve?
I have done leaderstats door and I have surfacegui on it and I want to change image inside surfacegui dependings on leaderstats value? -
What is the issue? Include screenshots / videos if possible!
Image isnt changing when player has certain amount of leaderstats value.
Note: SurfaceGui is in StarterGui and its adorneed with the part inside of workspace.
Local script:
local player = game.Players.LocalPlayer
local Image = script.Parent
player.leaderstats.Prestige.Changed:Connect(function()
if player.leaderstats.Prestige.Value >= 5 then
Image.Image = "rbxassetid://something"
end
end)