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

My tool is not connected to the handle?

Asked by 6 years ago
Edited 6 years ago

So i made a tool and i am using the qPerfectionWeld script to weld the pieces together.

to get the sword in the game you must buy it from the shop owner on a gui that copies the tool from replicated storage.

everything works fine in studio play, but when i take it to the real server only the handle is in my characters hand and the other part of the sword is like a mile away. HOWEVER, once i spawn again with the item, the sword is completely fine!

here is the damage script.. there is a part in the tool called 'Blade' which is just an invisible block used for the hitbox of the sword.

local findblade = script.Parent:WaitForChild('Blade')
if findblade then
    script.Parent.Blade.Touched:connect(function(p)
        if script.Parent.canDamage.Value == true then
            script.Parent.canDamage.Value = false
            p.Parent.Humanoid:TakeDamage(20)
        end
    end)
end

this is a normal script not a local script.

1 answer

Log in to vote
0
Answered by 6 years ago

You need to weld other parts to the handle or use qPerfectionWeld script

Ad

Answer this question