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
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