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

Can i duplicate my BasePlate?

Asked by 4 years ago

I want to duplicate my creaton to make another one of my world/BasePlate.

1 answer

Log in to vote
1
Answered by
Psudar 882 Moderation Voter
4 years ago
Edited by DeceptiveCaster 4 years ago

Assuming your basePlates name is "BasePlate": You would need to use the :Clone() function, and then set its properties after checking to make sure the original baseplate existed.

--Psudar
--June 4 2019

--Server script, place this anywhere server scripts can run

Baseplate = workspace:FindFirstChild("BasePlate")
if Baseplate then
    local newBaseplate = Baseplate:Clone()
    newBaseplate.Position = Vector3.new(x, y, z) --Position here 
    newBaseplate.Parent = workspace --Set the parent
end

1
Fixed your indentation. Otherwise, correct. DeceptiveCaster 3761 — 4y
Ad

Answer this question