Does anyone on the DevForum know how to implement visible handcuffs (on the player’s arms), I have tried methods such as MoveTo:(), etc but they’re not effective at staying on the players arms (they don’t move with the character, and they don’t position properly). I was thinking of welding, but I’m not sure how to weld a model, if anyone could provide me some assistance, I’d greatly appreciate it.
If the handcuff is a tool, you can see it in firstperson.
You could use an accessory and an animation to keep their hands in place.
My idea would be to give the cuffed player a tool with a still, looped animation and custom grip that can only be equipped via a script. It would also stay on the player as well no matter where you position them.
No welding necessary!
How would you prevent them from unequipping this though?
I think the way to solve it might be assigning an animation to the character and welding the handcuffs to player’s arms.
Position it and use weld, since u dont know how to use weld lemme give a code example real quick
local Weld = Instance.new("WeldConstraint")
Weld.Part0 = HandCuff
Weld.Part1 = player.Character.RightHand--or left hand
Weld.Parent = HandCuff
An asset may be welded the following way:
local Player = indexyourplayer -- Change "indexyourplayer" to the player instance.
local Handcuffs = PathToCuffs:Clone() -- Clone the asset before welding it.
-- Do the following if the handcuffs is a model:
if Handcuffs:IsA("Model") then
local RandomBasePart = Handcuffs.Middle -- Just create a part that you would position and then weld to the character's limbs.
for _, Part in pairs(Handcuffs:GetDescendants) do
local Weld = Instance.new("WeldConstraint", RandomBasePart)
Weld.Part0 = RandomBasePart
Weld.Part1 = Part
end
end
if player.Character ~= nil then
Handcuffs.Middle.Position = player.Character:FindFirstChild("RightUpperHand").Position -- or player.Character:FindFirstChild("Right Hand"), depends on your character type.
local Weld = Instance.new("WeldConstraint", Handcuffs)
Weld.Part0 = Handcuffs.Middle
Weld.Part1 = player.Character:FindFirstChild("RightUpperHand") -- or player.Character:FindFirstChild("Right Hand"), depends on your character type.
Handcuffs.Parent = player.Character
else
Handcuffs:Destroy()
end
I will make an example asset for you.
I said this is a model, that would work with a part. I know how to weld a part, not a model.
Weld all the parts in the model to one MainPart, and weld that MainPart to the character…
Not putting the tool in players backpack then using tool:equip() to equip it would work better
I’ll try this, thanks. I’ll let you know what happens.