Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game:GetService("Players").LocalPlayer
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- Backpack = Player.Backpack
- Character = Player.Character
- Humanoid = Character.Humanoid
- Mouse = Player:GetMouse()
- RootPart = Character["HumanoidRootPart"]
- Torso = Character["Torso"]
- Head = Character["Head"]
- RightArm = Character["Right Arm"]
- LeftArm = Character["Left Arm"]
- RightLeg = Character["Right Leg"]
- LeftLeg = Character["Left Leg"]
- RootJoint = RootPart["RootJoint"]
- Neck = Torso["Neck"]
- RightShoulder = Torso["Right Shoulder"]
- LeftShoulder = Torso["Left Shoulder"]
- RightHip = Torso["Right Hip"]
- LeftHip = Torso["Left Hip"]
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- Character.Animate.Parent = nil
- for i,v in pairs(Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = 1/60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- end
- function Clerp(a,b,t)
- return a:lerp(b,t)
- end
- function PlayAnim(tablee, speed)
- RootJoint.Transform = Clerp(RootJoint.Transform, tablee[1], speed)
- Neck.Transform = Clerp(Neck.Transform, tablee[2], speed)
- RightShoulder.Transform = Clerp(RightShoulder.Transform, tablee[3], speed)
- LeftShoulder.Transform = Clerp(LeftShoulder.Transform, tablee[4], speed)
- RightHip.Transform = Clerp(RightHip.Transform, tablee[5], speed)
- LeftHip.Transform = Clerp(LeftHip.Transform, tablee[6], speed)
- end
- while true do
- wait(3)
- PlayAnim({
- CFrame.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- CFrame.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- CFrame.new0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- CFrame.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- CFrame.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- CFrame.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- }, 1, 1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement