Hey!
Nevermind i fixed it min ago -_-.
I tried creating sell point in my game.
It doesn’t work even if it has no buggs.
Is it because of decimal units?
local SellPoint = script.Parent
local debounce = false
SellPoint.Touched:Connect(function(hit)
if not debounce then
debounce = true
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(character)
if player then
player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + player.leaderstats.BlockCoins.Value / 100
wait()
player.leaderstats.BlockCoins.Value = player.leaderstats.BlockCoins.Value - player.leaderstats.BlockCoins.Value
debounce = false
end
end
end)