idk how to explain this but i want the script to change the number with to a value but the text stays the same, so its like it changes from Happiness = 100% to Happiness = 99%
local Number = game.ReplicatedStorage.Happiness local Text = script.Parent Number.Changed:Connect(function() Text.Text = "Happiness = " tostring(Number.Value)"%" end)
You need to use string concatenation to join them, you can do this by using two dots ..
local Number = game.ReplicatedStorage.Happiness local Text = script.Parent Number.Changed:Connect(function() Text.Text = "Happiness = "..tostring(Number.Value).."%" end)