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

Need help about an invisible wall with cancollide script?

Asked by 6 years ago
Edited 6 years ago

Im making my own game at roblox, and i need a script about invisible wall with cancollide and after few 5 seconds the cancollide dissapears. Thanks for the helpers

0
What have you tried doing so far? NotInventedHere 158 — 6y
0
searched on youtube scripts about cancollide but nothing worked so far. Then, i went to roblox forums and this forum and reddit also. i found only door and key scripts. and when im trying to do the script at my own its not working. example: yair1321 0 — 6y
0
i tried like: wait(1) name.transparency = 1 name.cancollide = false. (im new at scripting so if its bad dont judge yair1321 0 — 6y
0
Do you want it to be a loop of on and off? Or just once when the server begins running? Ultimate_Piccolo 201 — 6y
View all comments (5 more)
0
Ultimate_Piccolo that worked thanks! but can u do it as a loop, when the round starts it will start again? yair1321 0 — 6y
0
If you mean when a round starts, when that round start it can set a value true and I can write a script for that? Ultimate_Piccolo 201 — 6y
0
yea i want the value at the beginning of the round to be true. if u can write a script for that i will very appreciate it yair1321 0 — 6y
0
Ultimate_Piccolo i dont find BoolValue... i think the round and the intermission is in a script. do u know how to solve that or making another script? yair1321 0 — 6y
0
Sorry I was gone for a few days and will be for the next 11 days. If you don't know, a boolean value is a true or false value. Put a boolean value named "round" in the script that does the rounds. In the script set the round value to true when the round starts. Ultimate_Piccolo 201 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Try this, assuming you understand the properties of a part...

Part = script.Parent

Part.Transparency = 0
Part.CanCollide = true
wait(5)
Part.Transparency = 1
Part.CanCollide = false

If you want it once the round stats,

if game.Workspace.RoundStarted == true then
Part = script.Parent

Part.Transparency = 0
Part.CanCollide = true
wait(5)
Part.Transparency = 1
Part.CanCollide = false

That should work, as long as there is a bool value in workspace named "RoundStarted" and when the "round" starts the value is set to true.

0
As much as that might work, using a localscript with FE-Enabled might be more efficient if you only want one person going through. I'm sure theres a way to allow players to go through but not other objects, I can't find it though. AdministratorReece 193 — 6y
0
Maybe, but it seemed like he was just starting out and I tried to make it extremely basic for the sake of him. Ultimate_Piccolo 201 — 6y
0
I'm new and im trying my best to script and learn. everyone was new to something and needed help. yair1321 0 — 6y
Ad

Answer this question