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 making a Tycoon and I am having a problem with my drop. I have a script in the drop that makes it shoot out a brick and I was getting help with that script so it put Decals on both sides of the brick when it is made then shot out. But the problem is when it shoots out the brick it says this " Image failed to load: 51041387: Unexpected URL" and then it just stop shooting out bricks. I tried to put in the full URL, the id, and even the asset id but nothing will work. Please help!! :) GOOD DAY!

The Drop script:

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 = "51041387"
    d.Face = "Front"
    local dd = d:clone()
    dd.Face = Back
    end


    while true do
        wait(2.5)
        fire()
    end


0
Get a decal open, put the number in there and it will change it to an url, copy that and paste it in for the texture. I don't believe you can just have the numbers. I know it auto converts when you put it in, i just don't know if it will do it automaticly through scripting. lomo0987 250 — 10y

1 answer

Log in to vote
1
Answered by
IcyEvil 260 Moderation Voter
10 years ago

Since I didnt have the full script I could only add on to what I saw, and or Improve your scripting

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("Earth green") -- Its Color3.new() for numbers
        p.BottomSurface = 0
        p.TopSurface = 0
        p.Name = "TycoonBrick"
        p.Parent = script.Parent
    d.Texture = "rbxassetid://51041387"
    d.Face = "Front"
    local dd = d:clone()
    dd.Texture = "rbxassetid://51041387" -- Didnt add what you wanted to texture to be
    dd.Face = "Back" -- Forgot to add " "s
    end

    while true do
        wait(2.5)
        fire()
    end


0
Thank you ! TixyScripter 115 — 10y
0
Did it work? IcyEvil 260 — 10y
Ad

Answer this question