local textLabel = script.Parent
local function update(text)
textLabel.Text = text
end
update() --put what u would want to make it say in this update bracket.
local player = game.Players.LocalPlayer
local leaderstats = game:GetService("ServerScriptService"):WaitForChild("leaderstats")
local cash = leaderstats:WaitForChild("Coins")
local AbbreviateX = require(game.ReplicatedStorage.AbbreviateX)
local Output = AbbreviateX:Abbreviate(100000000, 1)
local textLabel = script.Parent
local function update()
textLabel.Text = Output.Value
end
while task.wait() do
update()
end
local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
local cash = leaderstats:WaitForChild("Coins")
local AbbreviateX = require(game.ReplicatedStorage.AbbreviateX)
local Output = AbbreviateX:Abbreviate(100000000, 1)
local textLabel = script.Parent
local function update()
textLabel.Text = Output
end
while task.wait() do
update()
end
I doubt that the modulescript that you’re requiring returns the abbreviated number as an instance. try removing the Output.Value and have it just be Output
I got an error: Players.Paracolity.PlayerGui.gui.coinDisplay.Script:3: attempt to index nil with ‘WaitForChild’
But it still doesn’t explain why the text wont show up