I am trying to make a multiplier script that gives the player money by how many multipliers they have (so basically the money you are getting is multiplied by how many multipliers you have)
script
local give = 10
local plr = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
print(give)
local x = plr:WaitForChild("Multiplier").Value
plr.leaderstats.Coins.Value = plr.leaderstats.Coins.Value + give * x
end)
error
Players.JadtrugamingYT1.PlayerGui.moneyyyyy.TextButton.LocalScript:7: attempt to perform arithmetic (mul) on number and string - Client - LocalScript:7