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

how to make the brick invisible?

Asked by
techan0 -12
6 years ago
wait(2)
workspace:WaitForChild("PartStorage")

while true do
    wait(1.5) -- How long in between drops
    local part = Instance.new("Part",workspace.PartStorage)
    part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
    part.Material=script.Parent.Parent.Parent.MaterialValue.Value

    local mesh = game.ServerStorage.Mesh:clone() -- This clones the mesh,
    mesh.Parent = part   -- Into the part!

    local cash = Instance.new("IntValue",part)
    cash.Name = "Cash"
    cash.Value = 5 -- How much the drops are worth
    part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.4,0)
    part.FormFactor = "Custom"
    part.Size=Vector3.new(1, 1, 0.25) -- Size of the drops 
    part.TopSurface = 0
    part.BottomSurface = 0
    game.Debris:AddItem(part,20) -- How long until the drops expire
end

ok so a brick comes out along with the item i wish just need to make the brick invisible please help!

0
Got the answer just added part.Transparency = 1 before end techan0 -12 — 6y
4
Stupidest question I have ever seen on this site xD silverminer226 4 — 6y
0
@silverminer226 That's very rude. Please read this: https://scriptinghelpers.org/help/community-guidelines TheeDeathCaster 2368 — 6y
0
Give the poor kiddie a break doesnt even know how to do it properly you its not in a variable or anything so do this instead game.Workspace.Part.Transparency = 1 simple unlike you coolants19 1 — 1y

1 answer

Log in to vote
10
Answered by 6 years ago

To make the part Invisible do this:

Part.Transparency = 1

~Greatneil80 here, enjoy

put that anywhere in the script to make the part invisible

0
hii raid6n 2196 — 3y
0
heck greatneil80 2647 — 3y
Ad

Answer this question