This is a LocalScript
local uis = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local root = char.HumanoidRootPart
local walkNor = hum.WalkSpeed
local JumpNor = hum.JumpPower
local count = 0
local isHoldingV = false
local Debounce = false
local isDash = false
local Movetype = 0
local TauntDebounce = false
local mod1 = false
local mod2 = false
local Keyed = nil
local InCombo = false
local rep = game.ReplicatedStorage
local rme = rep.RemoteEvents
local walk = rep.Animation.Movement.walk
local PlayAnim
local rig = rep.Rig
---For Clone Rig
function weld(main, Target)
print("ad")
local weld = Instance.new("Weld", Target)
weld.Part0 = Target
weld.Part1 = main
end
player.CharacterAdded:Connect(function() -- Reset and rigging when respawn
print("h")
local RigClone = rig:Clone()
RigClone.Parent = char
weld(RigClone["Right Arm"], char["Right Arm"])
weld(RigClone.Head, char.Head)
weld(RigClone.Torso, char.Torso)
weld(RigClone["Left Arm"], char["Left Arm"])
weld(RigClone["Right Leg"], char["Right Leg"])
weld(RigClone["Left Leg"], char["Left Leg"])
count = 0
isHoldingV = false
Debounce = false
isDash = false
Movetype = 0
TauntDebounce = false
end)
Tired to weld parts from “Rig” when Player’s Character is added to the game (When Joined or Respawned)
Nothing was printed