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

Morph Bricks Into Union Bricks?

Asked by 9 years ago

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

Log in to vote
2
Answered by
Muoshuu 580 Moderation Voter
9 years ago

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)
0
Could you help me write the script? I am trying to learn how but this seems hard! Thanks! MULTACxlr8 20 — 9y
0
Edited Muoshuu 580 — 9y
0
how do i add the when the brick touches this brick it will then change it into the union? MULTACxlr8 20 — 9y
0
Edited again... Muoshuu 580 — 9y
0
sorry but thanks :P MULTACxlr8 20 — 9y
Ad

Answer this question