function onTouch(part) if part.Parent.Humanoid ~=nil then part.Parent:MoveTo(script.Parent.Parent.Tele1.Position) script.Parent.Parent.Tele1.Script.Disabled = true wait(2) script.Parent.Parent.Tele1.Script.Disabled = false end end script.Parent.Touched:connect(onTouch)
it does not work and I cant see what is wrong.
function onTouch(part) if part.Parent:FindFirstChild("Humanoid") ~=nil then part.Parent:MoveTo(script.Parent.Parent.Tele1.Position) script.Parent.Parent.Tele1.Script.Disabled = true wait(2) script.Parent.Parent.Tele1.Script.Disabled = false end end script.Parent.Touched:connect(onTouch)
This should fix your problem
Closed as Not Constructive by WideSteal321, IAmNotTheReal_MePipe, and killerbrenden
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?