I dont understand this error attempted to preform arithmetic (mul) on Instance and Number?
Hi. So i made a sell script in serverscriptservice and its not working. any idea why?
01 | game.ReplicatedStorage.SellEvent.OnServerEvent:Connect( function (player) |
03 | local leaderstats = player.leaderstats |
04 | local RoCoin = leaderstats [ "Ro-Coin" ] |
05 | local RoBucks = leaderstats.RoBucks |
06 | local Value = leaderstats.RoValue |
08 | RoBucks.Value = RoBucks.Value + RoCoin.Value * Value.Value |
12 | game.ReplicatedStorage.SellEventDesert.OnServerEvent:Connect( function (player) |
14 | local leaderstats = player.leaderstats |
15 | local RoCoin = leaderstats [ "Ro-Coin" ] |
16 | local RoBucks = leaderstats.RoBucks |
17 | local Value = leaderstats.RoValue |
18 | local selVal = Value * 2 |
20 | RoBucks.Value = RoBucks.Value + RoCoin.Value * Value.Value |