I gave up my understanding

Please help me

script.Parent.Parent.ProximityPrompt.Triggered:Connect(function(plr)
	if plr.leaderstats.BOMB >= 5 then
	local r = game.ReplicatedStorage.File.event
	r:FireClient(plr, "galaxy")
	end
	plr.leaderstats.BOMB -= 5
end)

w

Assuming its a ValueBase:

plr.leaderstats.BOMB.Value

Value would give you the Data that the ValueBase Holds.

1 Like

A lot of people make this mistake by not comparing a value, but an instance instead.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.