When this player touches this pad the touchended function triggers, is there any ways to stop this?
script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if isPlayerAlreadyInList(player) == false then
local listlength = #nextup
if listlength >= 3 then
removeplayerfrompad(player)
else
table.insert(nextup,player.Name)
table.insert(ready,0)
padcolour()
updateScreens()
end
end
end)
script.Parent.TouchEnded:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if game.Players:GetPlayerFromCharacter(hit.Parent) == player then
if isPlayerAlreadyInList(player) == true then
print(findItemPos(player.Name,nextup))
end
end
end)

1 comment
I use a custom magnitude script that isn't 100% accurate, but detects what part a player is touching.