Error
Players.Spiik3yViinH.PlayerGui.Radio.Wallet.Text.LocalScript:5: attempt to perform arithmetic on a string value
Local Script
while wait(0.1) do local amount = game.ReplicatedStorage.GetMoneyValue:InvokeServer("Timer") script.Parent.Text = "You will be payed 300 KR in "+amount+" seconds" end
Server Script
local moneyfolder = game.ServerStorage:WaitForChild("Cash") game.ReplicatedStorage.GetMoneyValue.OnServerInvoke = function(p,valuename) local playerfolder = moneyfolder:FindFirstChild(p.Name) local value = playerfolder:FindFirstChild(valuename) return(value.Value) end
You know java? because "+" is how we concatenate strings in java
For roblox, concatenating strings is done with ".."
script.Parent.Text = "You will be payed 300 KR in "..amount.." seconds"