local String = game.ReplicatedStorage.StValue -- StValue is my StringValue
Game.Players.PlayerAdded:Connect(Funcation() -- I want to add 1 evrey time a player Joined
String.Value = String.Value + "1" -- Am I doing anything Wrong here?
end)
Am getting this Message in the out put
ServerScriptService.Script:9: attempt to perform arithmetic (add) on Instance and string

4 comments
I'm pretty sure you need an integer Value
Try to do this on line 5: String.Value = String.Value + tostring("1"). Maybe that helps.
Thx but It did't Help
Check out my answer! I hope it works for you!