I want to register one touch on a part so I can put how many people have touched it on a GUI. Right now, it's registering 2 or 3 parts every time I touch it
local TPWallLeft = script.Parent.Parent.Parent
local Billboard = script.Parent.Parent
local PlayerGUI = script.Parent
local PlayerCount = Instance.new("IntValue")
TPWallLeft.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("HumanoidRootPart") then
PlayerCount.Value = PlayerCount.Value + 1
end
end)
wait(15)
print(PlayerCount.Value)

3 comments
if u want to do that add a debounce
for example when u do a touched add a value restricting more touches , then make a touchended that resets that value easy!
thx i cant believe i didnt think of something as simple as that lol