Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

I got a virus and the main one script that got messed up is this one. Any errors? [closed]

Asked by 3 years ago
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.

0
This is Tele2 by the way. And Tele1 has the same thing. But each time it says Tele1 it is changed to Tele2 inside of Tele1. If that makes sense. Configuator 158 — 3y

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?

1 answer

Log in to vote
-1
Answered by 3 years ago
    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

0
Do not answer without explaining your code WideSteal321 773 — 3y
Ad