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

How can I make a basic dropper? [closed]

Asked by 6 years ago

Well i'm new in scripts i'm trying to get some beginner information.Dont close my question please: D

So can someone explain me how can I make a basic dropper? thanks

0
This is not a request website. No script should = no help. Please refrain from asking questions that violate the communtiy guidelines in the future. User#21908 42 — 6y

Closed as Not Constructive by User#21908 and User#19524

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
Shematics 117
6 years ago
Edited 6 years ago

First you will need to put your part inside the ReplicatedStorage, and after put a script inside ur dropper models

after try to use this script inside

wait(2)
workspace:WaitForChild("PartStorage")



deb = true 
script.Parent.Clicker.ClickDetector.MouseClick:connect(function(wat)
    if deb == true then
        deb = false
            local part = Instance.new("Part",workspace.PartStorage)
            part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
            part.Material=script.Parent.Parent.Parent.MaterialValue.Value
            local cash = Instance.new("IntValue",part)
            cash.Name = "Cash"
            cash.Value = 1 -- How much the drops are worth
            part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.3,0)
            part.FormFactor = "Custom"
            part.Size=Vector3.new(1, 1, 1) -- Size of the drops
            part.TopSurface = "Smooth"
            part.BottomSurface = "Smooth"
            game.Debris:AddItem(part,20) -- How long until the drops expire
            wait(.15)
            deb = true
    end
end)

You should be good, then you will need more tutorial if you want to make a tycoon

0
Don't give the script, just give the way he will create it Leamir 3138 — 6y
0
It would be too long to explain via chat, with this he can do what he want next Shematics 117 — 6y
0
Do not provide a script for people who request one. It is against the community guidelines. User#21908 42 — 6y
Ad
Log in to vote
2
Answered by
Leamir 3138 Moderation Voter Community Moderator
6 years ago
Edited 6 years ago

Hello, BlackCheap!

First of all, you have to create the part will drop others... Then, you need to add a script that creates a part, resizes it(or no) and then you set the position...

Don't forget to place the script on a loop(Or use a click detector)

Useful Links:

Instance (Data Structure)

API:Class/Part

Good Luck with your games

0
the loop is that I dont need to click ? BlackCheap 14 — 6y
1
Yes, you can simply place a while loop to don't need to click Leamir 3138 — 6y
0
oh okay thanks! BlackCheap 14 — 6y