I am tryingto use a TextLabel to display the player’s multiplier, using the Rebirth leaderstat, and I have been looking at a few devforum and youtube posts/tutorials and none of the scripts mentioned are working.
I have tried about 7 different scripts neither of which worked.
Current script:
local money = player:WaitForChild("leaderstats"):WaitForChild("Rebirths")
local text = script.Parent
local function update()
text.Text = "$" .. money.Value
end
update()
money.Changed:Connect(update)
local money = player:WaitForChild("leaderstats"):WaitForChild("Rebirths")
local text = script.Parent
money.Changed:Connect(function(Value)
text.Text = "$"..Value
end
text.Text = "$"..money.Value
local player = game.Players.LocalPlayer
local money = player:WaitForChild("leaderstats"):WaitForChild("Rebirths")
local text = script.Parent
money.Changed:Connect(function(Value)
text.Text = "$"..Value
end
text.Text = "$"..money.Value
local player = game.Players.LocalPlayer
local money = player:WaitForChild("leaderstats"):WaitForChild("Rebirths")
money.Changed:Connect(function(Value)
print("$"..Value)
end)
print("$"..money.Value)
-- Services
local Players = game:GetService("Players")
-- Player Instance
local Player = Players.LocalPlayer
-- Leaderstats
local Money = player:WaitForChild("leaderstats"):WaitForChild("Rebirth")
-- Text
local TextLabel = script.Parent
local function Update()
TextLabel.Text = "$"..Money.Value
end
Money.Changed:Connect(Update)
Update()