Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Dropping Weapons as models?

Asked by 10 years ago

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

2 answers

Log in to vote
0
Answered by
3rdblox 30
10 years ago

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

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 :( :'( kapitanovaskapandr 0 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

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
0
am not sure if this would work though :/ kapitanovaskapandr 0 — 10y
0
also I forgot lol to put in the onHumanoid.Died part but anyway kapitanovaskapandr 0 — 10y

Answer this question