Hello, I just have a few questions.
- How can i make it use an already existing label, if that is even possible
- What am i doing wrong here -
local Players = game:GetService("Players")
local Replicated = game:GetService("ReplicatedStorage")
local Player = Players.LocalPlayer
local Cash = Player:WaitForChild("leaderstats").Cash
local Label = script.Parent
local NumberSpinner = require(Replicated:WaitForChild("NumberSpinner"))
local PriceSpinner = NumberSpinner.new()
PriceSpinner.Decimals = 0
PriceSpinner.Duration = 0.25
PriceSpinner.Parent = Label
Cash.Changed:Connect(function()
PriceSpinner.Value =("$"..Cash.Value)
end)
Just throws this
Attempted to set Spinner.Value to invalid value ($49)