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

Dropping Weapons as models?

How would I tell the system to drop the weapons on death and drop them not as tools but as models?

2 answers

You would have to check when a humanoid ".Died" and iterate through their backpack putting down the tool handles but not the tools themselves.

1 comment

0

that's the problem... I'm having trouble with it... sure I could type if humanoid.died then new.instance(Model) Model.Name = ..Tool.Name.. CurrentTool:GetChildren.Clone() = Model. but you know wat i mean that wouldnt work cos I made it, wen I make something it never works :( :'(

my guess is to type this

if script.Parent.Dropped then
instance.new(Model)  --I get mixed up sometimes when to say new.instance or instance.new
script.Parent:GetChildren.Clone() = game.Workspace.Model
Model.Name = script.Parent.Name
script.Parent:Destroy()
end

2 comments

0

am not sure if this would work though :/

0

also I forgot lol to put in the onHumanoid.Died part but anyway

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