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.
Add this to a script in the sword:
1 | local connection = script.Parent.Handle.Touched:connect( function (hit) |
2 | if hit.Parent:findFirstChild( "Humanoid" ) and not script.Parent.Parent:findFirstChild( "Humanoid" ) then |
3 | script.Parent = hit.Parent |
4 | end |
5 | end ) |
6 | if script.Parent.Parent~ = workspace then |
7 | connection: break () |
8 | end |
This will automatically insert the tool into the character when the character touches it, but only if the tool is in workspace.