Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

This script surpisely shuts down my server Can anyone help me?

This is to spawn a model so it's in HopperBin so I have no idea what is going on?

bin = script.Parent

function onButton1Down(mouse)

	local model = bin.Model:clone() --Change "Model" to What Ever Model Name You Have

	model.Parent = game.Workspace
	model:MakeJoints()
	model:MoveTo(mouse.hit.p)

end

function onSelected(mouse)
	mouse.Icon = "rbxasset://textures\\GunCursor.png"
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end

bin.Selected:connect(onSelected)

1 answer

✓ Accepted answer

I did not get any errors on a clean server

Click Her For Test Server

This is a local script

bin = script.Parent

function onButton1Down(mouse)

    local model = bin.Model:clone() --Change "Model" to What Ever Model Name You Have

    model.Parent = game.Workspace
    model:MakeJoints()
    model:MoveTo(mouse.hit.p)

end

function onSelected(mouse)
    mouse.Icon = "rbxasset://textures\\GunCursor.png"
    mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end

bin.Selected:connect(onSelected)

This discussion is preserved as it was. New answers, comments, and votes are closed.