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

Weapon drop in specific directory?

How can I make a tool drop into game.workspace.tools instead of the workspace? Any help is appreciated, thanks!

1 comment

0

Can you add more details please

2 answers

local tool = --where ever the tool is located
tool.Parent = game.workspace.tools

1 comment

0

Sorry but thats not what I am looking for... I need it to go into a certain directory when a player drops it.

tool.Changed:Connect(function()
	local player = game.Players:GetPlayerFromCharacter(tool.Parent)
	if not player then
		tool.Parent = game.Workspace.tools
	end
end)

Should do the trick

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