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

How can I get a tycoon money giver drop a brick with a mesh?

Asked by 10 years ago

So I am making a tycoon and I am trying to get the Drop not just drop a part. I mean that as in I want it to drop it with a mesh like instead of just a brick a sword but I cant find out how to get my script to do so. If you know how to get it to be like this just let me know. Thank you have a good day! :)

Everything after the Drop script is the script to let you know.Sometimes this website doesn't always show it right.

My drop script:

function fire() local p = Instance.new("Part") p.Position = script.Parent.Position

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
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

Either clone the mesh and parent th clone to the brick, or use Instance.new() to create it and then set its properties before parenting it to the brick.

Both of these methods would go inside your fire function.

0
Thank you TixyScripter 115 — 10y
Ad

Answer this question