Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local LOCKED_CFRAMES = {
- R6 = {
- Left = {C0 = CFrame.new(-1.5, 0.5, 0), C1 = CFrame.new(0.5, 0.5, 0)},
- Right = {C0 = CFrame.new(1.5, 0.5, 0), C1 = CFrame.new(-0.5, 0.5, 0)},
- },
- R15 = {
- LeftShoulder = {C0 = CFrame.new(-1, 0.5, 0), C1 = CFrame.new(0.5, 0.5, 0)},
- RightShoulder = {C0 = CFrame.new(1, 0.5, 0), C1 = CFrame.new(-0.5, 0.5, 0)},
- }
- }
- local function freezeArms()
- if character:FindFirstChild("Torso") then
- local ls = character.Torso:FindFirstChild("Left Shoulder")
- local rs = character.Torso:FindFirstChild("Right Shoulder")
- if ls then ls.C0 = LOCKED_CFRAMES.R6.Left.C0 ls.C1 = LOCKED_CFRAMES.R6.Left.C1 end
- if rs then rs.C0 = LOCKED_CFRAMES.R6.Right.C0 rs.C1 = LOCKED_CFRAMES.R6.Right.C1 end
- elseif character:FindFirstChild("UpperTorso") then
- local us = character.UpperTorso
- local ls = us:FindFirstChild("LeftShoulder")
- local rs = us:FindFirstChild("RightShoulder")
- if ls then ls.C0 = LOCKED_CFRAMES.R15.LeftShoulder.C0 ls.C1 = LOCKED_CFRAMES.R15.LeftShoulder.C1 end
- if rs then rs.C0 = LOCKED_CFRAMES.R15.RightShoulder.C0 rs.C1 = LOCKED_CFRAMES.R15.RightShoulder.C1 end
- end
- end
- local function disableAllAnimations()
- local animate = character:FindFirstChild("Animate")
- if animate then animate:Destroy() end
- local animator = humanoid:FindFirstChildOfClass("Animator")
- if animator then
- for _, track in pairs(animator:GetPlayingAnimationTracks()) do
- track:Stop()
- end
- end
- end
- RunService.RenderStepped:Connect(function()
- disableAllAnimations()
- freezeArms()
- end)
- player.CharacterAdded:Connect(function(char)
- character = char
- humanoid = character:WaitForChild("Humanoid")
- wait(0.5)
- local animate = character:FindFirstChild("Animate")
- if animate then animate:Destroy() end
- RunService.RenderStepped:Connect(function()
- disableAllAnimations()
- freezeArms()
- end)
- end)
- wait(1)
- disableAllAnimations()
- freezeArms()
Advertisement
Add Comment
Please, Sign In to add comment