Script not working anymore, used to work

  1. Handcuff, grab script used to work a month ago but now does not work.

  2. Now not showing any errors and script is not working.

  3. I have no idea how to solve this.

``
local rs = game:GetService(“ReplicatedStorage”)
local folder = rs:WaitForChild(“remotes”)
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
repeat wait()until char.Head
local newValue = Instance.new(“BoolValue”, char)
newValue.Name = “HandcuffValue”
newValue.Value = false
char.Parent = game.Workspace:WaitForChild(“Players”)

end)

end)

local Player = game.Players.LocalPlayer
local Animation = game.Workspace.Animation
local Players = game:GetService(“Players”)

folder.handcuff.OnServerEvent:Connect(function(player,p)

p.HandcuffValue.Value = true
p.Humanoid.WalkSpeed = 8


local Weld1 = Instance.new("Weld")
Weld1.Name = "Tool_Weld2"
Weld1.Part0 = p.Torso
Weld1.Part1 = p['Right Arm']
Weld1.Parent = p.Torso
Weld1.C1 = CFrame.new(-1 * .65, -.35, -.35) * CFrame.fromEulerAnglesXYZ(math.rad(17.5), math.rad(0), math.rad(-1 * -40))
local Weld2 = Instance.new("Weld")
Weld2.Name = "Tool_Weld3"
Weld2.Part0 = p.Torso
Weld2.Part1 = p['Left Arm']
Weld2.Parent = p.Torso
Weld2.C1 = CFrame.new(1 * .65, -.35, -.35) * CFrame.fromEulerAnglesXYZ(math.rad(17.5), math.rad(0), math.rad(1 * -40))

end)

folder.uncuff.OnServerEvent:Connect(function(player,p)

p.HandcuffValue.Value = false
p.Humanoid.WalkSpeed = 16


p.Torso.Tool_Weld2:Destroy()
p.Torso.Tool_Weld3:Destroy()
end)

Code does not spontaneously break so I’d double check how you set it up. Make sure everything hasn’t changed. Also I’d edit the post to have the code better formatted, it’s hard to read as it is.

Tried reverting the version, still not working it has to be something that roblox changed.

it seems you need to work on it as if never worked.
Add some prints into it so you can determine where it ‘breaks’ and work from there.

I tried to, none of it works it worked and then it just stopped…

can you please update the post with your current script (then one with the prints in).
You should enter it with ‘’’ before and after the code so it gets formatted correctly for us to read it better and get more help.