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

Changing parts into a Union brick?

Asked by 9 years ago

This script I have it kinda works? But i want it to change anything that touches it into a union part that I have set it to and this just idk. Any suggestions?

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

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

1 answer

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago

Unioning through scripts is not yet available

I have no idea how your code would work, unless the union in ReplicatedStorage was the exact same as the part.

Also, you shouldn't be doing this client sided. Use a server script in the workspace, or the part.

But ultimately what you're attempting to do(what it looks like at least) isn't possible.. maybe elaborate on what you're trying to accomplish here and I can help? Thanks.

Ad

Answer this question