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

How can I make my Tycoon Drop do this?

Asked by 10 years ago

So I am in the making of Tycoons and I was wondering how I could make my Drop script Fire a brick with a Front Decal and Back Decal. I am trying to make it shoot out Robux because of what kind of tycoon it is. Please help it is highly appreciated!

Drop script:

function fire()
    local p = Instance.new("Part")
    p.Position = script.Parent.Position
    p.Size = Vector3.new(2, 0.4, 1) 
    p.BrickColor = BrickColor.new(37)
    p.BottomSurface = 0
    p.TopSurface = 0
    p.Name = "TycoonBrick" 
    p.Parent = script.Parent
end 


while true do
    wait(2.5) 
    fire()
end

1 answer

Log in to vote
0
Answered by 10 years ago
function fire()
    local p = Instance.new("Part")
local d = Instance.new("Decal", p)
    p.Position = script.Parent.Position
    p.Size = Vector3.new(2, 0.4, 1) 
    p.BrickColor = BrickColor.new(37)
    p.BottomSurface = 0
    p.TopSurface = 0
    p.Name = "TycoonBrick" 
    p.Parent = script.Parent
d.Texture = "DECAL ID HERE"
d.Face = "Front"
local dd = d:clone()
dd.Face = Back
end 


while true do
    wait(2.5) 
    fire()
end
0
It doesnt work there is a error when I put the URL in... TixyScripter 115 — 10y
0
You mean copy and paste? Just put the URL in. Type it by hand. If thats what you meant. It should work. Maybe you could do "local d = Instance.new("Decal") " and "d.Parent = p" or something. EzraNehemiah_TF2 3552 — 10y
Ad

Answer this question