I am making a portal like game and this cube will fire an event when it touches the button, here. It keeps randomly firing the
TouchEnded
funcion and Im not sure why
for i,v in pairs(game.Workspace.Items:GetChildren()) do
v.Touched:Connect(function(hit)
if hit.Name == "ButtonPart" then
hit.Trigger:FireServer()
end
end)
v.TouchEnded:Connect(function(hit)
if hit.Name == "ButtonPart" then
hit.RTrigger:FireServer()
end
end)
end
Is this a physics bug or did I just pull a stupid