can someone help? i am trying to create an event that gives the player an amount of a currency when they finish a game but it errors:
00:26:32.985 - ServerScriptService.getClout:2: attempt to perform arithmetic (add) on number and Instance
00:26:32.986 - Stack Begin
00:26:32.986 - Script 'ServerScriptService.getClout', Line 2
00:26:32.986 - Stack End
server script:
-- server
game.ReplicatedStorage.getCloutEvent.OnServerEvent:Connect(function(player, award)
player.leaderstats.Clout.Value=player.leaderstats.Clout.Value+award
end)
on client:
-- client
local localplayer = game.Players.LocalPlayer
local score = scoreFrame.Score.Text
game.ReplicatedStorage.getCloutEvent:FireServer(localplayer,score)

1 comment
thanks!