Advertisement
Goo345

Untitled

Jul 5th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.77 KB | None | 0 0
  1. wait(0.2)
  2.  
  3. Player = game:GetService("Players").LocalPlayer
  4. PlayerGui = Player.PlayerGui
  5. Cam = workspace.CurrentCamera
  6. Backpack = Player.Backpack
  7. Character = Player.Character
  8. Humanoid = Character.Humanoid
  9. Mouse = Player:GetMouse()
  10. RootPart = Character["HumanoidRootPart"]
  11. Torso = Character["Torso"]
  12. Head = Character["Head"]
  13. RightArm = Character["Right Arm"]
  14. LeftArm = Character["Left Arm"]
  15. RightLeg = Character["Right Leg"]
  16. LeftLeg = Character["Left Leg"]
  17. RootJoint = RootPart["RootJoint"]
  18. Neck = Torso["Neck"]
  19. RightShoulder = Torso["Right Shoulder"]
  20. LeftShoulder = Torso["Left Shoulder"]
  21. RightHip = Torso["Right Hip"]
  22. LeftHip = Torso["Left Hip"]
  23. local sick = Instance.new("Sound",Torso)
  24. sick.SoundId = "rbxassetid://848439234"
  25. sick.Looped = true
  26. sick.Pitch = 1
  27. sick.Volume = 3
  28. sick:Play()
  29.  
  30. IT = Instance.new
  31. CF = CFrame.new
  32. VT = Vector3.new
  33. RAD = math.rad
  34. C3 = Color3.new
  35. UD2 = UDim2.new
  36. BRICKC = BrickColor.new
  37. ANGLES = CFrame.Angles
  38. EULER = CFrame.fromEulerAnglesXYZ
  39. COS = math.cos
  40. ACOS = math.acos
  41. SIN = math.sin
  42. ASIN = math.asin
  43. ABS = math.abs
  44. MRANDOM = math.random
  45. FLOOR = math.floor
  46. --//=================================\\
  47. --|| USEFUL VALUES
  48. --\\=================================//
  49.  
  50. Animation_Speed = 3
  51. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  52. local Speed = 25
  53. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  54. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  55. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  56. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  57. local DAMAGEMULTIPLIER = 1
  58. local ANIM = "Idle"
  59. local ATTACK = false
  60. local EQUIPPED = false
  61. local HOLD = false
  62. local COMBO = 1
  63. local Rooted = false
  64. local SINE = 0
  65. local KEYHOLD = false
  66. local CHANGE = 2 / Animation_Speed
  67. local WALKINGANIM = false
  68. local VALUE1 = false
  69. local VALUE2 = false
  70. local ROBLOXIDLEANIMATION = IT("Animation")
  71. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  72. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  73. --ROBLOXIDLEANIMATION.Parent = Humanoid
  74. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  75. WEAPONGUI.Name = "Weapon GUI"
  76. local Effects = IT("Folder", Character)
  77. Effects.Name = "Effects"
  78. local ANIMATOR = Humanoid.Animator
  79. local ANIMATE = Character.Animate
  80. local UNANCHOR = true
  81. local PLAYMAINANIM = true
  82. local BOLTSOUNDS = {168586621,168586586,178452241}
  83.  
  84. --//=================================\\
  85. --\\=================================//
  86. --//=================================\\
  87. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  88. --\\=================================//
  89.  
  90. ArtificialHB = Instance.new("BindableEvent", script)
  91. ArtificialHB.Name = "ArtificialHB"
  92.  
  93. script:WaitForChild("ArtificialHB")
  94.  
  95. frame = Frame_Speed
  96. tf = 0
  97. allowframeloss = false
  98. tossremainder = false
  99. lastframe = tick()
  100. script.ArtificialHB:Fire()
  101.  
  102. game:GetService("RunService").Heartbeat:connect(function(s, p)
  103. tf = tf + s
  104. if tf >= frame then
  105. if allowframeloss then
  106. script.ArtificialHB:Fire()
  107. lastframe = tick()
  108. else
  109. for i = 1, math.floor(tf / frame) do
  110. script.ArtificialHB:Fire()
  111. end
  112. lastframe = tick()
  113. end
  114. if tossremainder then
  115. tf = 0
  116. else
  117. tf = tf - frame * math.floor(tf / frame)
  118. end
  119. end
  120. end)
  121.  
  122. if Key == "t" and ATTACK == false then
  123. Hat()
  124. end
  125. end
  126.  
  127. function KeyUp(Key)
  128. KEYHOLD = false
  129. end
  130.  
  131. Mouse.Button1Down:connect(function(NEWKEY)
  132. MouseDown(NEWKEY)
  133. end)
  134. Mouse.Button1Up:connect(function(NEWKEY)
  135. MouseUp(NEWKEY)
  136. end)
  137. Mouse.KeyDown:connect(function(NEWKEY)
  138. KeyDown(NEWKEY)
  139. end)
  140. Mouse.KeyUp:connect(function(NEWKEY)
  141. KeyUp(NEWKEY)
  142. end)
  143. elseif Key == "b" and ATTACK == false then
  144. Psyo()
  145. --//=================================\\
  146. --|| WRAP THE WHOLE SCRIPT UP
  147. --\\=================================//
  148.  
  149. Humanoid.Changed:connect(function(Jump)
  150. if Jump == "Jump" and (Disable_Jump == true) then
  151. Humanoid.Jump = false
  152. end
  153. end)
  154.  
  155. while true do
  156. Swait()
  157. script.Parent = WEAPONGUI
  158. Humanoid.Parent = Character
  159. if Humanoid then
  160. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  161. IDLEANIMATION:Play()
  162. end
  163. if ANIMATE.Parent == Character then
  164. ANIMATE:Destroy()
  165. end
  166. SINE = SINE + CHANGE
  167. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  168. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  169. Humanoid.HipHeight = 1
  170. Humanoid.Name = "Warden"
  171. Humanoid.PlatformStand = false
  172. if PLAYMAINANIM == true then
  173. if TORSOVELOCITY < 1 then
  174. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  175. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  176. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  177. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  178. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  179. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  180. elseif TORSOVELOCITY > 1 then
  181. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  182. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  183. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  184. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  185. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  186. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(10)), 0.15 / Animation_Speed)
  187. end
  188. end
  189. unanchor()
  190. Humanoid.MaxHealth = "inf"
  191. Humanoid.Health = "inf"
  192. if Rooted == false then
  193. Disable_Jump = false
  194. Humanoid.WalkSpeed = Speed
  195. elseif Rooted == true then
  196. Disable_Jump = true
  197. Humanoid.WalkSpeed = 0
  198. end
  199. for _, c in pairs(Character:GetChildren()) do
  200. if c.ClassName == "Part" and c.Name ~= "Eye" then
  201. c.Material = "Neon"
  202. if c:FindFirstChildOfClass("ParticleEmitter") then
  203. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  204. end
  205. c.Color = C3(1,1,1)
  206. if c == Head then
  207. if c:FindFirstChild("face") then
  208. c.face:remove()
  209. end
  210. end
  211. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  212. c:remove()
  213. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  214. c:remove()
  215. end
  216. end
  217. sick.SoundId = "rbxassetid://1494340971"
  218. sick.Looped = true
  219. sick.Pitch = 1
  220. sick.Volume = 3
  221. sick:Resume()
  222. sick.Parent = Torso
  223. refit()
  224. if Head:FindFirstChildOfClass("Sound") then
  225. Head:FindFirstChildOfClass("Sound"):remove()
  226. end
  227. end
  228.  
  229. --//=================================\\
  230. --\\=================================//
  231.  
  232.  
  233.  
  234.  
  235.  
  236. --//====================================================\\--
  237. --|| END OF SCRIPT
  238. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement