the script wont work even if plr and plr2 are equal (its where is block) :
local CD = script.Parent
local deb = false
local plr2 = game.ServerStorage.Slot1.Owner.Value
print(plr2)
CD.MouseClick:Connect(function(plr)
print(plr, plr2)
if plr2 == plr then
print(“bruh”)
if deb == false then
game.ServerStorage.Slot1.Money.Value = game.ServerStorage.Slot1.Money.Value + 1
script.Parent.Parent.ParticleEmitter.Enabled = true
wait(0.1)
script.Parent.Parent.ParticleEmitter.EmissionDirection = false
deb = false
end
end
end)
any help?