workspace.Blueg.Touched:Connect(function(Part)
if Part.Parent:FindFirstChild(“Ball”) then
TeamR.Parent.ScoreValue.Value = TeamR.Parent.ScoreValue.Value + 1
TeamR.Parent.ScoreValue.Value = tostring(TeamR.Text)
end
end)
1 Like
Nvm srry I believe I fixed it!!!
1 Like
you would be using tostring()
to convert values into strings
It doesn’t seem necessary for your current code as you can easily apply Text, plus also Concat Values in strings:
local Number = 123
local String = "Todays Number is: "..Number
print(String) -- "Todays Number is: 123"
-- format version
local String = string.format("Todays Number is: %d", 123)
print(String) -- "Todays Number is: 123"
1 Like