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

Regenerating Brick

Asked by 10 years ago

I would love for someone to provide a script I can use that will regen a brick that has fallen off a baseplate and deleted from the workspace.

Thanks!

1 answer

Log in to vote
1
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 years ago

Well, to start off, I'd make a copy of that brick and place it in lighting. Then, you would add this loop...

while true do
wait()
if not game.Workspace:findFirstChild("brick name here") then
a = game.Lighting["Brick Name Here"]
a:clone().Parent = game.Workspace
--a:MakeJoints() --if it's a model
end
end

-Thank me by accepting this answer/bumping up my reputation!

Ad

Answer this question