of     1   

Phyclops
#140854895Saturday, July 19, 2014 5:02 PM GMT

This won't work in play but it works in play solo. bin = script.Parent shelter = game.ServerStorage.Shelter amt = bin:FindFirstChild("Amount") function onButton1Down(mouse) local model = shelter:clone() model.Parent = game.Workspace model:MakeJoints() model:MoveTo(mouse.hit.p) amt.Value=amt.Value-1 if amt.Value==0 then bin:Destroy() end end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected) I also tried adding a handle and converting it to a tool but it doesn't work, probably because I didn't change the script to match a tool (since I have no idea how to do that) If someone can fix my hopperbin script or make it work with a tool then that'll be great thanks
DataStore
#140854990Saturday, July 19, 2014 5:03 PM GMT

Use a LocalScript when dealing with the mouse. Move the 'Shelter' model from ServerStorage to ReplicatedStorage.
Phyclops
#140855382Saturday, July 19, 2014 5:08 PM GMT

Worked! thanks so much <3
Phyclops
#140856932Saturday, July 19, 2014 5:26 PM GMT

I was looking to make a ghost part before building it so I could preview where it was placing the model down. Could this work? bin = script.Parent shelter = game.ServerStorage.Shelter amt = bin:FindFirstChild("Amount") function onButton1Down(mouse) local model = shelter:clone() model.Parent = game.Workspace model:MakeJoints() model:MoveTo(mouse.hit.p) amt.Value=amt.Value-1 if amt.Value==0 then bin:Destroy() end end function onSelected(mouse) local ghost = shelter:clone() ghost.Parent = game.Workspace.CurrentCamera ghost:MakeJoints() ghost.Position = mouse.p -- help me with this part datastore i want it to follow mouse for _, sd in pairs(ghost:GetChildren()) if ghost:IsA("Part") then ghost.Transparency=0.6 ghost.BrickColor=BrickColor.new("Bright green") mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected)
Phyclops
#140857026Saturday, July 19, 2014 5:27 PM GMT

also, somehow i want to handle rotation but not sure how
Phyclops
#140859345Saturday, July 19, 2014 5:51 PM GMT

anyone? just wanna sort out ghost bricks. basically i want to clone the model into currentcamera but it has a transparency of 0.6 (or whatever) and ghost brick disappears when it's placed.
Phyclops
#140862598Saturday, July 19, 2014 6:31 PM GMT

someone help me
Phyclops
#140863065Saturday, July 19, 2014 6:36 PM GMT

SOMEONE HELP ME omg
OldGoldie
#140945512Sunday, July 20, 2014 1:13 PM GMT

ghost:MoveTo(mouse.p) --i think However you'll have to do a repeat

    of     1