Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make my Tycoon Drop do this?

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

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

2 comments

0

It doesnt work there is a error when I put the URL in...

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.