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

How would i script this?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

I was wondering if there is anyway of doing this i know it may be a little odd but is there anyway of making a wall that players can pass trough but bricks cant?

0
Sorry im a bit of a noob in scripting... User#5597 0 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

You're supposed to make your own script and we edit it but okay,

function onTouch(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
script.Parent.CanCollide = false
wait(2)
script.Parent.CanCollide = true
end
end
script.Parent.Touched:connect(onTouch)
Ad

Answer this question