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

My script is not working even though there is no errors. Any help?

Asked by
pevdn 32
4 years ago
Edited 4 years ago

This script is meant to make its so when you touch the block it becomes transparent and CanCollide becomes false. Its not working. Please help!!!

script.Parent.Touched:Connect(function(p)

    p.Parent.Transparency (100)
    wait (0.2)
    p.Parent.CanCollide = false

    wait(1)
    p.Parent.Transpareny (0)
    wait (0.2)
    p.Parent.CanCollide = true
end)
0
On line 8, you wrote "p.Parent.Transpareny (0)", but you misspelled Transparency, maybe that's why it doesn't work Mathenotics 13 — 4y
0
It should be Transparency = 0 Spjureeedd 385 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
script.Parent.Touched:Connect(function(p)

    p.Parent.Transparency = 1
    wait (0.2)
    p.Parent.CanCollide = false

    wait(1)
    p.Parent.Transparency = 0
    wait (0.2)
    p.Parent.CanCollide = true
end)

why Transparency (100) ? a value between 0 and 1 will do.

Ad

Answer this question