Advertisement
AstroScripts

Untitled

Jan 23rd, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.13 KB | None | 0 0
  1. local plr = owner
  2. local char = plr.Character
  3. if char:FindFirstChild("Animate") then
  4. char.Animate:Destroy()
  5. end
  6. local hum = char:FindFirstChildOfClass("Humanoid")
  7. local tors = char.Torso
  8. local head = char.Head
  9. local rootpart = char.HumanoidRootPart
  10. local RS = tors["Right Shoulder"]
  11. local LS = tors["Left Shoulder"]
  12. local RH = tors["Right Hip"]
  13. local LH = tors["Left Hip"]
  14. local neck = tors.Neck
  15. local rootj = rootpart.RootJoint
  16. local RSnor = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  17. local LSnor = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  18. local RHnor = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  19. local LHnor = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  20. local necknor = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  21. local rootjnor = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  22. local sine = 0
  23. local music = Instance.new("Sound")
  24. music.Parent = tors
  25. local timepos = 0
  26. local attack = false
  27. local rooted = false
  28. local playing = true
  29. local speed = 16
  30.  
  31. local nokill = {
  32. "mrfunnylaughs4",
  33. "v_Sado"
  34. }
  35.  
  36.  
  37. local rem = Instance.new("RemoteEvent")
  38. rem.Name = "Events"
  39. rem.Parent = NLS([==[
  40. local plr = game:GetService("Players").LocalPlayer
  41. local char = plr.Character
  42. local hum = char:FindFirstChildOfClass("Humanoid")
  43. local rem = script:WaitForChild("Events")
  44.  
  45. game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
  46. if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
  47. rem:FireServer(string.lower(input.KeyCode.Name))
  48. end
  49. end)
  50.  
  51. while game:GetService("RunService").RenderStepped:Wait() do
  52. for i,v in pairs(hum:GetPlayingAnimationTracks()) do
  53. v:Stop()
  54. end
  55. end
  56. ]==], char)
  57. rem.OnServerEvent:Connect(function(player, key)
  58. if player == plr then
  59. if attack == false then
  60. if key == "t" then
  61. local sound = Instance.new("Sound")
  62. sound.SoundId = "rbxassetid://145757437"
  63. sound.Volume = 10
  64. sound.Parent = head
  65. local effect = Instance.new("PitchShiftSoundEffect")
  66. effect.Octave = 1.75
  67. effect.Parent = sound
  68. sound:Play()
  69. for i = 1, 120 do
  70. game:GetService("RunService").Stepped:Wait()
  71. head.Size = Vector3.new(2 + 1 * math.sin(sine / 5), 1 + 1 * math.sin(sine / 5), 1 + 1 * math.sin(sine / 5))
  72. neck.C0 = necknor * CFrame.new(0, 0, math.sin(sine / 5))
  73. end
  74. head.Size = Vector3.new(2, 1, 1)
  75. end
  76. if key == "r" then
  77. attack = true
  78. rooted = true
  79. playing = false
  80. local scream = Instance.new("Sound")
  81. scream.SoundId = "rbxassetid://176238381"
  82. scream.Parent = head
  83. scream:Play()
  84. repeat
  85. game:GetService("RunService").Stepped:Wait()
  86. RS.C0 = RSnor * CFrame.Angles(math.random(-100, 100) / 20, math.random(-100, 100) / 20, math.random(-100, 100) / 20)
  87. LS.C0 = LSnor * CFrame.Angles(math.random(-100, 100) / 20, math.random(-100, 100) / 20, math.random(-100, 100) / 20)
  88. RH.C0 = RHnor * CFrame.Angles(math.random(-100, 100) / 20, math.random(-100, 100) / 20, math.random(-100, 100) / 20)
  89. LH.C0 = LHnor * CFrame.Angles(math.random(-100, 100) / 20, math.random(-100, 100) / 20, math.random(-100, 100) / 20)
  90. rootj.C0 = rootjnor * CFrame.new(0, 0, 3 * math.sin(sine / 2)) * CFrame.Angles(sine / 2, 0, 0)
  91. neck.C0 = necknor * CFrame.Angles(math.random(-100, 100) / 20, math.random(-100, 100) / 20, math.random(-100, 100) / 20)
  92. until scream.Playing == false
  93. scream:Destroy()
  94. rooted = false
  95. if math.random(1, 3) == 1 then
  96. local sound = Instance.new("Sound")
  97. sound.SoundId = "rbxassetid://2878822762"
  98. sound.Volume = 10
  99. sound.PlaybackSpeed = 2
  100. sound.Parent = head
  101. sound:Play()
  102. repeat
  103. game:GetService("RunService").Stepped:Wait()
  104. head.Size = Vector3.new(2 + 1 * math.sin(sine / 2), 1 + 1 * math.sin(sine / 2), 1 + 1 * math.sin(sine / 2))
  105. RS.C0 = RSnor * CFrame.Angles(math.random(-100, 100) / 20, math.random(-100, 100) / 20, math.random(-100, 100) / 20)
  106. LS.C0 = LSnor * CFrame.Angles(math.random(-100, 100) / 20, math.random(-100, 100) / 20, math.random(-100, 100) / 20)
  107. RH.C0 = RHnor * CFrame.Angles(math.random(-100, 100) / 20, math.random(-100, 100) / 20, math.random(-100, 100) / 20)
  108. LH.C0 = LHnor * CFrame.Angles(math.random(-100, 100) / 20, math.random(-100, 100) / 20, math.random(-100, 100) / 20)
  109. rootj.C0 = rootjnor
  110. neck.C0 = necknor * CFrame.Angles(math.random(-100, 100) / 20, math.random(-100, 100) / 20, math.random(-100, 100) / 20)
  111. until sound.Playing == false
  112. head.Size = Vector3.new(2, 1, 1)
  113. end
  114. playing = true
  115. attack = false
  116. end
  117. if key == "y" then
  118. local sound = Instance.new("Sound")
  119. sound.SoundId = "rbxassetid://3475233802"
  120. sound.Volume = 10
  121. sound.Parent = head
  122. sound:Play()
  123. local thing = head.Touched:Connect(function(hit)
  124. local found = false
  125. for i,v in pairs(nokill) do
  126. if game:GetService("Players"):FindFirstChild(v) then
  127. if hit:IsDescendantOf(game:GetService("Players")[v].Character) then
  128. found = true
  129. end
  130. end
  131. end
  132. if found == false and hit.Size.Magnitude < 300 then
  133. local parent = hit.Parent
  134. hit.Parent = nil
  135. wait(math.random(20, 50) / 10)
  136. hit.Anchored = false
  137. hit.BrickColor = BrickColor.new("Bright green")
  138. hit.CFrame = head.CFrame
  139. hit.Velocity = head.CFrame.LookVector * 150
  140. hit.Parent = parent
  141. local sound = Instance.new("Sound")
  142. sound.SoundId = "rbxassetid://704088758"
  143. sound.Volume = 10
  144. sound.Parent = head
  145. sound:Play()
  146. end
  147. end)
  148. for i = 1, 180 do
  149. game:GetService("RunService").Stepped:Wait()
  150. head.Size = Vector3.new(20, 10, 10)
  151. neck.C0 = necknor * CFrame.new(0, -10, 0)
  152. end
  153. thing:Disconnect()
  154. head.Size = Vector3.new(2, 1, 1)
  155. end
  156. if key == "p" then
  157. attack = true
  158. playing = false
  159. local sound = Instance.new("Sound")
  160. sound.SoundId = "rbxassetid://2533880583"
  161. sound.Volume = 3
  162. sound.TimePosition = 20.15
  163. sound.Parent = head
  164. sound:Play()
  165. wig.Parent = nil
  166. local hat = Instance.new("Part")
  167. hat.Name = "JevilHat"
  168. hat.CanCollide = false
  169. hat.Size = Vector3.new(1, 1, 1)
  170. hat.Parent = char
  171. local mesh = Instance.new("SpecialMesh")
  172. mesh.MeshType = Enum.MeshType.FileMesh
  173. mesh.MeshId = "rbxassetid://193760002"
  174. mesh.TextureId = "rbxassetid://193760041"
  175. mesh.VertexColor = Vector3.new(0.5, 0, 0.5)
  176. mesh.Parent = hat
  177. local weld = Instance.new("Weld")
  178. weld.Part0 = head
  179. weld.Part1 = hat
  180. weld.C0 = CFrame.new(0, 0.5, 0.31)
  181. weld.Parent = hat
  182. for i,v in pairs(head:GetChildren()) do
  183. if v:IsA("Decal") then
  184. local old = v.Texture
  185. v.Texture = "rbxassetid://241553801"
  186. coroutine.resume(coroutine.create(function()
  187. repeat game:GetService("RunService").Stepped:Wait() until sound.Playing == false or sound.TimePosition > 30.35
  188. v.Texture = old
  189. end))
  190. end
  191. end
  192. local anything = Instance.new("Sound")
  193. anything.SoundId = "rbxassetid://2544975373"
  194. anything.Volume = 10
  195. anything.Parent = head
  196. anything:Play()
  197. speed = 50
  198. repeat
  199. game:GetService("RunService").Stepped:Wait()
  200. RS.C0 = RSnor * CFrame.Angles(0, 0, math.pi / 2 - 1 * math.sin(sine / 3))
  201. LS.C0 = LSnor * CFrame.Angles(0, 0, -math.pi / 2 + 1 * math.sin(sine / 3))
  202. RH.C0 = RHnor
  203. LH.C0 = LHnor
  204. rootj.C0 = rootjnor
  205. neck.C0 = necknor
  206. until sound.Playing == false or sound.TimePosition > 30.35
  207. speed = 16
  208. hat:Destroy()
  209. wig.Parent = head
  210. sound:Destroy()
  211. playing = true
  212. attack = false
  213. end
  214. if key == "f" then
  215. attack = true
  216. playing = false
  217. speed = 150
  218. local sound = Instance.new("Sound")
  219. sound.SoundId = "rbxassetid://2259766079"
  220. sound.Volume = 10
  221. sound.Parent = head
  222. sound:Play()
  223. local timepos = 0
  224. local thing = 1
  225. repeat
  226. game:GetService("RunService").Stepped:Wait()
  227. if sound.Parent ~= head then
  228. local sound = Instance.new("Sound")
  229. sound.TimePosition = timepos
  230. sound.Parent = head
  231. end
  232. sound.Volume = 10
  233. sound.PlaybackSpeed = 1
  234. sound.Playing = true
  235. timepos = sound.TimePosition
  236. RS.C0 = RSnor * CFrame.Angles(0, 0, math.pi / 2 - 1 * math.sin(sine / (15 / thing)))
  237. LS.C0 = LSnor * CFrame.Angles(0, 0, -math.pi / 2 + 1 * math.sin(sine / (15 / thing)))
  238. RH.C0 = RHnor
  239. LH.C0 = LHnor
  240. rootj.C0 = rootjnor
  241. neck.C0 = necknor
  242. thing = thing + 0.005
  243. until sound.Playing == false or sound.TimePosition > 10
  244. local old = head.BrickColor
  245. repeat
  246. game:GetService("RunService").Stepped:Wait()
  247. if sound.TimePosition > 20 then
  248. head.BrickColor = BrickColor.new("Sunrise")
  249. end
  250. sound.PlaybackSpeed = sound.PlaybackSpeed + 0.001
  251. head.Size = head.Size + Vector3.new(0.01, 0.01, 0.01)
  252. neck.C0 = necknor * CFrame.Angles(math.random(-100, 100) / 20, math.random(-100, 100) / 20, math.random(-100, 100) / 20)
  253. until sound.Playing == false
  254. for i = 1, 20 do
  255. local clone = head:Clone()
  256. clone.Parent = workspace
  257. clone.Velocity = Vector3.new(0, 200, 0)
  258. local sound = Instance.new("Sound")
  259. sound.SoundId = "rbxassetid://2878822762"
  260. sound.Volume = 0.5
  261. sound.Parent = head
  262. sound:Play()
  263. end
  264. head.Size = Vector3.new(2, 1, 1)
  265. head.BrickColor = old
  266. speed = 16
  267. playing = true
  268. attack = false
  269. end
  270. if key == "u" then
  271. local part = Instance.new("Part")
  272. part.CFrame = rootpart.CFrame * CFrame.new(0, 0, 5)
  273. part.Size = Vector3.new(3, 4, 3)
  274. part.Parent = workspace
  275. local click = Instance.new("ClickDetector")
  276. click.Parent = part
  277. local mesh = Instance.new("SpecialMesh")
  278. mesh.MeshType = Enum.MeshType.FileMesh
  279. mesh.MeshId = "rbxassetid://430897733"
  280. mesh.Scale = Vector3.new(4, 4, 4)
  281. mesh.TextureId = "rbxassetid://430897961"
  282. mesh.Parent = part
  283. local sound = Instance.new("Sound")
  284. sound.SoundId = "rbxassetid://741801027"
  285. sound.Volume = 3
  286. sound.Parent = part
  287. sound:Play()
  288. click.MouseClick:Connect(function()
  289. local banana = Instance.new("Part")
  290. banana.Size = Vector3.new(1, 1, 1)
  291. banana.CFrame = part.CFrame * CFrame.new(0, 5, 0)
  292. banana.Velocity = Vector3.new(math.random(-25, 25), 200, math.random(-25, 25))
  293. banana.Parent = workspace
  294. local mesh = Instance.new("SpecialMesh")
  295. mesh.MeshType = Enum.MeshType.FileMesh
  296. mesh.MeshId = "rbxassetid://28937301"
  297. mesh.TextureId = "rbxassetid://28937670"
  298. mesh.Scale = Vector3.new(0.8, 0.8, 0.8)
  299. mesh.Parent = banana
  300. local sound = Instance.new("Sound")
  301. sound.SoundId = "rbxassetid://28976727"
  302. sound.Volume = 2
  303. sound.Parent = banana
  304. sound:Play()
  305. local touched = false
  306. banana.Touched:Connect(function(hit)
  307. if hit.Parent and hit.Parent:FindFirstChild("Head") and not hit:IsDescendantOf(char) and touched == false then
  308. touched = true
  309. coroutine.resume(coroutine.create(function()
  310. for i = 1, 60 do
  311. game:GetService("RunService").Stepped:Wait()
  312. mesh.Scale = mesh.Scale + Vector3.new(0.3, 0.3, 0.3)
  313. banana.Size = banana.Size + Vector3.new(0.3, 0.3, 0.3)
  314. end
  315. banana:Destroy()
  316. end))
  317. local sound = Instance.new("Sound")
  318. sound.SoundId = "rbxassetid://168411776"
  319. sound.Volume = 10
  320. sound.Parent = hit.Parent.Head
  321. sound:Play()
  322. end
  323. end)
  324. end)
  325. repeat game:GetService("RunService").Stepped:Wait() until sound.Playing == false
  326. part:Destroy()
  327. end
  328. end
  329. end
  330. end)
  331.  
  332. while game:GetService("RunService").Stepped:Wait() do
  333. sine = sine + 1
  334. if attack then
  335. if rooted then
  336. hum.WalkSpeed = 0
  337. hum.JumpPower = 0
  338. else
  339. hum.WalkSpeed = speed
  340. hum.JumpPower = 50
  341. end
  342. else
  343. hum.WalkSpeed = 16
  344. hum.JumpPower = 50
  345. end
  346. if music.Parent ~= tors then
  347. music = Instance.new("Sound")
  348. music.Parent = tors
  349. music.TimePosition = timepos
  350. else
  351. timepos = music.TimePosition
  352. end
  353. music.PlaybackSpeed = 1
  354. music.Volume = 1
  355. music.SoundId = "rbxassetid://2744154867"
  356. music.Playing = playing
  357. local torsvel = (tors.Velocity * Vector3.new(1, 0, 1)).Magnitude
  358. local hitfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
  359. if attack == false then
  360. if torsvel < 1 and hitfloor then
  361. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, math.pi / 2 + 0.3 * math.cos(sine / 7) + 0.5 * math.sin(sine / 14)), 0.15)
  362. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, 0.5 + 0.2 * math.sin(sine / 7) + 0.15 * math.cos(sine / 14)), 0.15)
  363. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -0.5 + 1 * math.sin(sine / 14) - 0.5 * math.cos(sine / 28)), 0.15)
  364. LH.C0 = LH.C0:Lerp(LHnor * CFrame.new(0.1 * math.sin(sine / 3.5) + 0.2 * math.cos(sine / 14), 0, 0) * CFrame.Angles(0, 0.2 * math.cos(sine / 28) - 0.3 * math.sin(sine / 48) + 0.15 * math.cos(sine / 3.5) - 0.25 * math.sin(sine / 3.5), -0.1 * math.sin(sine / 3.5) - 0.2 * math.cos(sine / 14)), 0.15)
  365. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.3 * math.cos(sine / 4.5)), 0.15)
  366. neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(math.sin(sine / 10), math.cos(sine / 10), 0), 0.15)
  367. end
  368. if torsvel > 1 and hitfloor then
  369. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, sine / 5, -1 * math.sin(sine / 7)), 0.15)
  370. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, sine / 5, -1 * math.sin(sine / 7)), 0.15)
  371. RH.C0 = RH.C0:Lerp(RHnor * CFrame.new(1 * math.cos(sine / 7), 0.15 + 0.5 * math.cos(sine / 7), 0) * CFrame.Angles(0, 0.3 * math.sin(sine / 7), -0.23 + 1 * math.sin(sine / 7)), 0.15)
  372. LH.C0 = LH.C0:Lerp(LHnor * CFrame.new(1 * math.cos(sine / 7), 0.15 - 0.5 * math.cos(sine / 7), 0) * CFrame.Angles(0, 0.3 * math.sin(sine / 7), 0.23 + 1 * math.sin(sine / 7)), 0.15)
  373. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, -0.1 + 0.2 * math.cos(sine / 3.5)) * CFrame.Angles(0.2 - 0.4 * math.sin(sine / 3.5), rootpart.RotVelocity.Y / 50, -0.3 * math.sin(sine / 7)), 0.15)
  374. neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(0.4 * math.sin(sine / 3.5), 0, -head.RotVelocity.Y / 15 + 0.3 * math.sin(sine / 7)), 0.15)
  375. end
  376. if not hitfloor then
  377. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(math.clamp(tors.Velocity.Y / 200 - 0.3, -hum.JumpPower / 200 - 0.3, hum.JumpPower / 200 - 0.3), 0, math.pi / 1.5), 0.15)
  378. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(math.clamp(tors.Velocity.Y / 200 - 0.3, -hum.JumpPower / 200 - 0.3, hum.JumpPower / 200 - 0.3), 0, -math.pi / 1.5), 0.15)
  379. RH.C0 = RH.C0:Lerp(RHnor + Vector3.new(0, -0.6, 0.4), 0.15)
  380. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, -0.3) + Vector3.new(0, -0.1, 0), 0.15)
  381. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-math.clamp(tors.Velocity.Y / 100, -hum.JumpPower / 100, hum.JumpPower / 100), 0, 0), 0.15)
  382. neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(math.random(-100, 100) / 1000, math.random(-100, 100) / 1000, math.random(-100, 100) / 1000), 0.15)
  383. end
  384. end
  385. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement