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

How can I create an "Electric Field" effect?

Asked by
Zerio920 285 Moderation Voter
9 years ago

I have two bricks that function as the sides of a gate. Between these bricks, I'd want an electric current running through them. I'm trying to make this out of actual bricks rather than decals, but as you may know electricity often forms unpredictable jags while going from point a to b. I was thinking about a script that would randomly place little invisible bricks between the two sides, then connect them with yellow, electricity-looking bricks which would suffice as that jagged static electricity effect, if anyone understands what I'm going on about. Not too sure how to accomplish this though. Ideas?

0
This would highly complicated to achieve as you would have to use multiple different angles and connect the corresponding ends of each part to the previous brick...Sorry to tell you, but you're likely to not get an answer on this. If you had a start to the script maybe someone might be able to help you farther on it. dyler3 1510 — 9y
0
It should be possible. There are functions for everything. How about raycasting? Except I'm not too sure how to use that. Or maybe part.Size = Vector3.new(1, 1, (a - b).magnitude) part.CFrame = CFrame.new((a + b)/2, a), except I'd have to adjust the angles accordingly so they face the corresponding brick... are there any free models I could maybe look to for inspirati Zerio920 285 — 9y

Answer this question