Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Morph Bricks Into Union Bricks?

I am trying to make like a morph brick that when a brick passes through it, it will change the brick into a union part of my selection how do i do this? And if that is not possible would it be possible to then just replace the brick with the union part?

1 answer

✓ Accepted answer

Steps: Place the Union in ReplicatedStorage | Clone the Union when needed and parent it to workspace | Set the CFrame of the Union to the CFrame of the Part | Delete the Part

local Union=game.ReplicatedStorage.Union
local Part=workspace.Part

Part.Touched:connect(function()
	local New=Union:Clone()
	New.Parent=workspace
	New.CFrame=Part.CFrame
	Part:destroy()
end)

5 comments

0

Could you help me write the script? I am trying to learn how but this seems hard! Thanks!

0

Edited

0

how do i add the when the brick touches this brick it will then change it into the union?

0

Edited again...

0

sorry but thanks :P

This discussion is preserved as it was. New answers, comments, and votes are closed.