So im just trying to improve my scripting by creating games and this is a simulator game im trying to make just to gain some more experience the script is working but it wont multiply by the multiplier int value that i have in the player
local parent = script.Parent parent.Touched:Connect(function(part) local mark = part.Parent:FindFirstChild("Humanoid") local player = game.Players:GetPlayerFromCharacter(part.Parent) if mark then player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + player.leaderstats.Sand.Value * player.Values.Multiplier.Value player.leaderstats.Sand.Value = player.leaderstats.Sand.Value - player.leaderstats.Sand.Value end end)
ik my scripts are messy its just a bad habit i have