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

Backpack nil Sword?

Let do ask question again.

I made mistaken grammar.

Since I removed backpack, health at the fort.

But problem is, backpack is gone, sword cannot be pick up.

How I can insert sword in the character?

By the way, I am not script writer.

1 answer

Add this to a script in the sword:

local connection=script.Parent.Handle.Touched:connect(function(hit)
	if hit.Parent:findFirstChild("Humanoid")and not script.Parent.Parent:findFirstChild("Humanoid")then
		script.Parent=hit.Parent
	end
end)
if script.Parent.Parent~=workspace then
	connection:break()
end

This will automatically insert the tool into the character when the character touches it, but only if the tool is in workspace.

3 comments

0

Nope, when you respawn, a sword automatically holding

0

That wasn't your question.

0

Well well, I will ask my friend then. Thank you for your advice and help!

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