Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

IntValue loses count, how do i fix it?

Ive been making this roblox game which has a leaderboard and ive came across this glitch where if i set the value to zero and get a jewel it just thinks i had the value that i had before and adds one to it

1 answer

	local there = true
	script.Parent.Touched:Connect(function(pl)
	if there == true then
	if pl.Parent:FindFirstChild("Humanoid") ~= nil then
	there = false
	script.Parent.Transparency = 1
	local player = game.Players:GetPlayerFromCharacter(pl.Parent)
	player.leaderstats.Points.Value = player.leaderstats.Points.Value + 1
	wait(5)
	there = true
	script.Parent.Transparency = 0.4
	end
	end
	end)

1 comment

0

You should have edited your original answer. Please explain your question more thoroughly in the original post.

This discussion is preserved as it was. New answers, comments, and votes are closed.