I honestly do not know what else to say other than what’s written in the title. Basically, the .Touched event keeps repeating itself while I’m in a part.
It’s stated over here that .Touched and .TouchEnded together don’t work that well. Though… since I’d like to learn from my mistakes, I wouldn’t really want to use any plugins.
workspace.LVL6.Touchy.Touched:Connect(function()
script.Parent.Parent.Enabled = true
if TrueOrFalse == false then TrueOrFalse = true
Animator.In:Play()
wait(0.4)
script.Parent.Position = UDim2.new(0.5, 0,0.85, 0)
end
end)
workspace.LVL6.Touchy.TouchEnded:Connect(function()
if TrueOrFalse == true then TrueOrFalse = false
Animator.Out:Play()
wait(0.5)
script.Parent.Parent.Enabled = false
script.Parent.Position = UDim2.new(0.5, 0,1.1, 0)
end
end)
Is there any easy solution to fix it? Should I use something else, which doesn’t require a lot of expertise in Lua?