I am making a new game called "Clash of Roblox 2" and I want to make it where you buy a model "Gold Mine Level 1" and you get the tool from a tool collector one time only... I got that part covered, but I am testing the Gold Mine placer where you click somewhere and it places a Gold Mine, but on Studio Mode it runs smoothly and on Player Mode on the actual game it does not! Why?!
What I Did!
- In Starter Pack
- Hopper Bin Tool
- Inside Hopper Bin Tool is a Spawner Script and then a Figure Model
- Inside the Figure Model is the "Gold Mine"
- Studio Mode it Places
- Player Mode it doesn't!
Spawner Script
bin = script.Parent
function onButton1Down(mouse)
local model = bin.Figure:clone() --- "Figure" = Name of model
model.Parent = game.Workspace
model:MakeJoints()
model:MoveTo(mouse.hit.p)
script.Parent:Remove()
end
function onSelected(mouse)
mouse.Icon = "rbxasset://textures\\GunCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onSelected)

4 comments
Hopper Bins are deprecated you should use a tool instead.
Yea There is
RequiresHandleproperty set it to false and it will act like HopperBinDid you write this in a regular "Script" Or "LocalScript", try writing this in local script if you didn't already yet
I did it in a normal script... now I tried local, Thankyou it works :)