Local handle = hat:WaitForChild("Handle", 30)
Do not touch the code below unless you known what you are doing! If your game has admin commands which require noclipping, set this to false. Here is a newer version which works: local Players = game:GetService("Players") However the version I uploaded is broken. If not Connection.Connected or Parent then Local RootJoint = Humanoid.RigType = 15 and Character:WaitForChild("LowerTorso"):WaitForChild("Root") or Humanoid.RigType = 6 and Character:WaitForChild("HumanoidRootPart"):WaitForChild("RootJoint")Ĭonnection = RootJoint.Ancestr圜hanged:Connect(function(_, Parent) Local Animator = Humanoid:WaitForChild("Animator")Īnimator.AnimationPlayed:Connect(function(Track) If Last = and State ~= thenĮlseif State = then Humanoid.StateChanged:Connect(function(Last, State) If Child = Humanoid and Character and (not Parent or not Character:IsAncestorOf(Humanoid)) then Humanoid.Ancestr圜hanged:Connect(function(Child, Parent) Local Humanoid = Character:FindFirstChildOfClass("Humanoid") or Character:WaitForChild("Humanoid") V.Parent = Plr:FindFirstChildOfClass("Backpack") or Instance.new("Backpack", Plr) Plr.CharacterAdded:Connect(function(Character)įor _, v in ipairs(Character:GetChildren()) doĬharacter.ChildAdded:Connect(function(Child) Players.PlayerAdded:Connect(function(Plr) If Handle:IsA("Part") and Handle:FindFirstChildOfClass("SpecialMesh") then Local Handle = Hat:WaitForChild("Handle", 20) 0 voters local Players = game:GetService("Players")