I have a GUI in my game that tells players what zone and floor they’re on (It’s a roguelike) but I can’t get it to work.
I tried using
GetPropertyChangedSignal but I got an error:
11:48:27.355 Players.Foxxive.PlayerGui.MainGui.RunStats.RunStats:8: attempt to index number with 'GetPropertyChangedSignal'
And I tried using
RenderStepped to try to update the text every frame but that didn’t work either.
This is my current code:
local replicatedStorage = game:GetService("ReplicatedStorage") local runStats = replicatedStorage.RoundSystem local floorStat = runStats.Floor.Value local floorText = script.Parent.Floor local zoneText = script.Parent.Zone floorStat:GetPropertyChangedSignal("Value"):Connect(function() floorText.Text = "floor " .. floorStat .. "" if floorStat <=5 then zoneText.Text = "Surface" elseif floorStat >=6 and floorStat < 11 then... --Cutting it off here because it's basically the same thing repeating
would appreciate any help, thanks in advance