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

My Part is not appearing, and I don't know how to fix it. does someone here do?

Asked by 10 years ago

I'm pretty sure this is supposed to make a brick with these dimensions

-- position = 2,30,2
-- size = 288, 4, 204
post = 2, 30, 2

size = 288, 4, 204

Part:new(DRUMS)

if Workspace.DRUMS ~= nil then

Workspace.DRUMS:Position(post)

else
    print ("Part not found")
    return
end

if Workspace.DRUMS ~= nil then

    Workspace.DRUMS:Size(size)
else
    return

end



-- if this is to not work, thank you for helping me fix it

Dose this not? How do a make a part with a script? Is there a tutorial for it? Do locals have anything to do with it?

1 answer

Log in to vote
-1
Answered by
Hybric 271 Moderation Voter
10 years ago
local part= Instance.new("Part",Workspace)
part.Name = "DRUMS"
part.Anchored = true
part.Position = Vector3.new(2, 30, 2)
part.Size = Vector3.new(288,8,204)
game:GetService("RunService").RenderStepped:wait()
if part ~= nil then
print("Worked")
else
print("Part is not found")
return
end

0
thanks xXxCONBOY456xXx 15 — 10y
Ad

Answer this question