Advertisement
5325325325

Untitled

Nov 13th, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.19 KB | None | 0 0
  1. ---------------------------------
  2. -----SO BASICALLY I'M MONKEY-----
  3. ---------------------------------
  4.  
  5. --This script is made by mrfunnylaughs4.
  6.  
  7. local plr = owner
  8. local char = plr.Character
  9. local hum = char:FindFirstChildOfClass("Humanoid")
  10. local idleanim = Instance.new("Animation")
  11. idleanim.Name = "Roblox Idle Animation"
  12. idleanim.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  13. local idleanimplay = hum:LoadAnimation(idleanim)
  14. idleanimplay:Play()
  15. wait(0.1)
  16. if char:FindFirstChild("Animate") then
  17. char.Animate:Destroy()
  18. end
  19. local remote = Instance.new("RemoteEvent", char)
  20. remote.Name = "ReplicationEvent"
  21. local client = NLS([==[
  22. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  23. local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  24. spawn(function()
  25. while game:GetService("RunService").Heartbeat:Wait() do
  26. remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  27. end
  28. end)
  29. game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
  30. if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
  31. remote:FireServer(1, input.KeyCode)
  32. end
  33. end)
  34. mouse.Button1Down:Connect(function()
  35. remote:FireServer(2)
  36. end)
  37. remote.OnClientEvent:Connect(function()
  38. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, mouse.Hit.Position.Z))
  39. end)
  40. --Hair
  41. p = game.Players.LocalPlayer
  42. char = p.Character
  43. torso = char.Torso
  44. hed = char.Head
  45. neck = char.Torso.Neck
  46. hum = char.Humanoid
  47. hum.MaxHealth = math.huge
  48. ypcall(function()
  49. shirt = Instance.new("Shirt", char)
  50. shirt.Name = "Shirt"
  51. pants = Instance.new("Pants", char)
  52. pants.Name = "Pants"
  53. end)
  54. function sbchat(msg,displayname)
  55. if not displayname then
  56. displayname = '<Bitch Smoke>'
  57. end
  58. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  59. local st = Instance.new('StringValue')
  60. st.Name = 'SB_Chat'
  61. st.Value = displayname..'/'..msg
  62. delay(0.2,function() st.Parent = v end)
  63. end
  64. end
  65. ]==], char)
  66. local crabrave = Instance.new("Sound", char.Torso)
  67. local RS = char.Torso["Right Shoulder"]
  68. local LS = char.Torso["Left Shoulder"]
  69. local RH = char.Torso["Right Hip"]
  70. local LH = char.Torso["Left Hip"]
  71. local rootj = char.HumanoidRootPart.RootJoint
  72. local throwbutton = false
  73. local throw = false
  74. local normalanim = true
  75. local attackd = false
  76. local animpose = "Idle"
  77. local timepos = 0
  78. local sine = 0
  79. local RSnor = RS.C0
  80. local LSnor = LS.C0
  81. local RHnor = RH.C0
  82. local LHnor = LH.C0
  83. local rootjnor = rootj.C0
  84.  
  85. ---------------------------------
  86. --------------Set up-------------
  87. ---------------------------------
  88.  
  89. local sur = Instance.new("BillboardGui", char.Head)
  90. sur.Name = "Billboard"
  91. sur.Adornee = char.Head
  92. sur.Size = UDim2.new(10, 0, 5, 0)
  93. sur.StudsOffset = Vector3.new(0, 5, 0)
  94. local text = Instance.new("TextLabel", sur)
  95. text.Text = "EDIT BY Artem09405Hack!"
  96. text.Size = UDim2.new(1, 0, 1, 0)
  97. text.TextScaled = true
  98. text.BackgroundTransparency = 1
  99. text.Font = Enum.Font.SourceSansLight
  100. text.TextColor3 = Color3.new(1, 1, 1)
  101. text.TextStrokeTransparency = 0
  102.  
  103. ---------------------------------
  104. -------------Attacks-------------
  105. ---------------------------------
  106.  
  107. remote.OnServerEvent:Connect(function(Player, number, key)
  108. if number == 1 and plr.Name == Player.Name and attackd == false then
  109. if key == Enum.KeyCode.Z then
  110. sine = 0
  111. attackd = true
  112. normalanim = false
  113. hum.WalkSpeed = 0
  114. hum.JumpPower = 0
  115. for i = 1, 15 do
  116. game:GetService("RunService").Heartbeat:Wait()
  117. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(1.2, 0, 0) + Vector3.new(0, -1.6, 0), 0.15)
  118. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 1.1) + Vector3.new(0, 0, -0.3), 0.15)
  119. LS.C0 = LS.C0:Lerp(LSnor, 0.15)
  120. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  121. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  122. end
  123. for i = 1, 20 do
  124. game:GetService("RunService").Heartbeat:Wait()
  125. LS.C0 = LS.C0 * CFrame.Angles(0, 0, -0.06) + Vector3.new(0, 0, -0.03)
  126. end
  127. local banpart = Instance.new("Part", char)
  128. banpart.Size = Vector3.new(1, 1, 1)
  129. banpart.CanCollide = false
  130. local mesh = Instance.new("SpecialMesh", banpart)
  131. mesh.MeshType = "FileMesh"
  132. mesh.MeshId = "rbxassetid://28937301"
  133. mesh.TextureId = "rbxassetid://28937670"
  134. mesh.Scale = Vector3.new(0.8, 0.8, 0.8)
  135. local weld = Instance.new("Weld", banpart)
  136. weld.Part0 = char["Left Arm"]
  137. weld.Part1 = banpart
  138. weld.C1 = CFrame.new(0, 1, 0)
  139. for i = 1, 20 do
  140. game:GetService("RunService").Heartbeat:Wait()
  141. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
  142. RS.C0 = RS.C0:Lerp(RSnor, 0.15)
  143. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, -4), 0.15)
  144. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  145. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  146. end
  147. throwbutton = true
  148. throw = true
  149. repeat game:GetService("RunService").Heartbeat:Wait()
  150. remote:FireClient(plr)
  151. until throw == false
  152. for i = 1, 15 do
  153. game:GetService("RunService").Heartbeat:Wait()
  154. LS.C0 = LS.C0:Lerp(LS.C0 * CFrame.Angles(0, 0, 0.01), i)
  155. end
  156. banpart.Parent = workspace
  157. weld:Destroy()
  158. banpart.CanCollide = true
  159. banpart.Velocity = char.HumanoidRootPart.CFrame.LookVector * 60
  160. local start = LS.C0
  161. for i = 1, 0, -1 / 15 do
  162. game:GetService("RunService").Heartbeat:Wait()
  163. LS.C0 = LSnor:Lerp(start, i * i)
  164. end
  165. normalanim = true
  166. attackd = false
  167. hum.WalkSpeed = 16
  168. hum.JumpPower = 50
  169. banpart.Touched:Connect(function(hit)
  170. if hit.Parent and game:GetService("Players"):FindFirstChild(hit.Parent.Name) then
  171. local character = hit.Parent
  172. character:FindFirstChildOfClass("Humanoid").Sit = true
  173. local s = Instance.new("Sound", character.Head)
  174. s.SoundId = "rbxassetid://137473066"
  175. s.Volume = 10
  176. s:Play()
  177. end
  178. end)
  179. spawn(function()
  180. wait(15)
  181. if banpart.Parent == workspace then
  182. banpart:Destroy()
  183. end
  184. end)
  185. end
  186. if key == Enum.KeyCode.X then
  187. attackd = true
  188. local bpart = Instance.new("Part", workspace)
  189. bpart.Size = Vector3.new(2.4, 3.5, 2.4)
  190. bpart.Locked = true
  191. bpart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2)
  192. bpart.Velocity = Vector3.new(0, 50, 0) + char.HumanoidRootPart.CFrame.LookVector * 50
  193. local mesh = Instance.new("SpecialMesh", bpart)
  194. mesh.MeshType = "FileMesh"
  195. mesh.MeshId = "http://www.roblox.com/asset/?id=29873142"
  196. mesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  197. mesh.TextureId = "http://www.roblox.com/asset/?id=31082268"
  198. local update = 0.4
  199. while update > 0.1 do
  200. local sound = Instance.new("Sound", bpart)
  201. sound.SoundId = "rbxasset://sounds\\clickfast.wav"
  202. sound.Volume = 15
  203. sound:Play()
  204. wait(update)
  205. update = update * 0.9
  206. end
  207. for i = 1, 50 do
  208. local banpart = Instance.new("Part", workspace)
  209. banpart.Size = Vector3.new(1, 1, 1)
  210. banpart.CanCollide = true
  211. banpart.CFrame = bpart.CFrame
  212. local bCFrame = CFrame.new(0, 0, 0)
  213. local bVel = Vector3.new(0, 0, 0)
  214. local mesh = Instance.new("SpecialMesh", banpart)
  215. mesh.MeshType = "FileMesh"
  216. mesh.MeshId = "rbxassetid://28937301"
  217. mesh.TextureId = "rbxassetid://28937670"
  218. mesh.Scale = Vector3.new(0.8, 0.8, 0.8)
  219. local weld = Instance.new("Weld", banpart)
  220. weld.Part0 = bpart
  221. weld.Part1 = banpart
  222. spawn(function()
  223. wait(1)
  224. banpart.Touched:Connect(function(hit)
  225. if hit.Parent and game:GetService("Players"):FindFirstChild(hit.Parent.Name) then
  226. local character = hit.Parent
  227. character:FindFirstChildOfClass("Humanoid").Sit = true
  228. local s = Instance.new("Sound", character.Head)
  229. s.SoundId = "rbxassetid://137473066"
  230. s.Volume = 10
  231. s:Play()
  232. end
  233. end)
  234. end)
  235. spawn(function()
  236. while wait() do
  237. if banpart.Parent ~= workspace then
  238. banpart = Instance.new("Part", workspace)
  239. banpart.Size = Vector3.new(1, 1, 1)
  240. banpart.CanCollide = true
  241. mesh = Instance.new("SpecialMesh", banpart)
  242. mesh.MeshType = "FileMesh"
  243. mesh.MeshId = "rbxassetid://28937301"
  244. mesh.TextureId = "rbxassetid://28937670"
  245. mesh.Scale = Vector3.new(0.8, 0.8, 0.8)
  246. banpart.CFrame = bCFrame
  247. banpart.Velocity = bVel
  248. banpart.Touched:Connect(function(hit)
  249. if hit.Parent and game:GetService("Players"):FindFirstChild(hit.Parent.Name) then
  250. local character = hit.Parent
  251. character:FindFirstChildOfClass("Humanoid").Sit = true
  252. local s = Instance.new("Sound", character.Head)
  253. s.SoundId = "rbxassetid://137473066"
  254. s.Volume = 10
  255. s:Play()
  256. end
  257. end)
  258. else
  259. bCFrame = banpart.CFrame
  260. bVel = banpart.Velocity
  261. end
  262. end
  263. end)
  264. end
  265. local explosion = Instance.new("Explosion", bpart)
  266. explosion.Position = bpart.Position
  267. local sound2 = Instance.new("Sound", bpart)
  268. sound2.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  269. sound2.Volume = 15
  270. sound2:Play()
  271. bpart.CanCollide = false
  272. attackd = false
  273. end
  274. if key == Enum.KeyCode.C then
  275. sine = 0
  276. attackd = true
  277. normalanim = false
  278. hum.WalkSpeed = 0
  279. hum.JumpPower = 0
  280. for i = 1, 20 do
  281. game:GetService("RunService").Heartbeat:Wait()
  282. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
  283. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 4), 0.15)
  284. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, -4), 0.15)
  285. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  286. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  287. end
  288. local tpart = Instance.new("Part", char)
  289. tpart.Size = Vector3.new(5.523, 6.19, 22.966)
  290. tpart.Anchored = true
  291. tpart.BrickColor = BrickColor.new("Pine Cone")
  292. tpart.Material = "Wood"
  293. tpart.CanCollide = false
  294. tpart.CFrame = char["Right Arm"].CFrame * CFrame.Angles(math.pi, -math.pi / 2, 0) * CFrame.new(0, 4, 1)
  295. local mesh = Instance.new("SpecialMesh", tpart)
  296. mesh.MeshType = "FileMesh"
  297. mesh.MeshId = "rbxassetid://1760841786"
  298. wait(0.5)
  299. for i = 1, 15 do
  300. game:GetService("RunService").Heartbeat:Wait()
  301. RS.C0 = RS.C0:Lerp(RS.C0 * CFrame.Angles(0, 0, -0.01), i)
  302. LS.C0 = LS.C0:Lerp(LS.C0 * CFrame.Angles(0, 0, 0.01), i)
  303. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  304. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  305. tpart.CFrame = char["Right Arm"].CFrame * CFrame.Angles(math.pi, -math.pi / 2, 0) * CFrame.new(0, 4, 1)
  306. end
  307. tpart.Anchored = false
  308. tpart.Velocity = char.HumanoidRootPart.CFrame.LookVector * 100
  309. tpart.CanCollide = true
  310. tpart.Parent = workspace
  311. spawn(function()
  312. wait(0.3)
  313. tpart.Touched:Connect(function(hit)
  314. if hit.Size.X + hit.Size.Y + hit.Size.Z < 1000 then
  315. hit:BreakJoints()
  316. hit.Anchored = false
  317. hit.Velocity = tpart.Velocity
  318. end
  319. end)
  320. end)
  321. for i = 1, 20 do
  322. game:GetService("RunService").Heartbeat:Wait()
  323. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
  324. RS.C0 = RS.C0:Lerp(RSnor, 0.15)
  325. LS.C0 = LS.C0:Lerp(LSnor, 0.15)
  326. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  327. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  328. end
  329. attackd = false
  330. normalanim = true
  331. hum.WalkSpeed = 16
  332. hum.JumpPower = 50
  333. end
  334. elseif Player.Name == plr.Name and number == 2 and throw == true and throwbutton == true then
  335. throwbutton = false
  336. throw = false
  337. end
  338. end)
  339.  
  340. ---------------------------------
  341. -----------Wrapping up-----------
  342. ---------------------------------
  343.  
  344. while game:GetService("RunService").Heartbeat:Wait() do
  345. if normalanim then
  346. sine = sine + 1
  347. end
  348. if crabrave.Parent == char.Torso then
  349. crabrave.SoundId = "rbxassetid://2556042199"
  350. crabrave.Playing = true
  351. crabrave.Volume = 15
  352. crabrave.Looped = true
  353. timepos = crabrave.TimePosition
  354. else
  355. crabrave = Instance.new("Sound", char.Torso)
  356. crabrave.TimePosition = timepos
  357. end
  358. if remote.Parent == char then
  359. remote.Name = "ReplicationEvent"
  360. else
  361. remote = Instance.new("RemoteEvent", char)
  362. end
  363. local touchfloor = 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)
  364. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
  365. animpose = "Walking"
  366. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
  367. animpose = "Jumping"
  368. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
  369. animpose = "Falling"
  370. else
  371. animpose = "Idle"
  372. end
  373. if animpose == "Idle" and normalanim then
  374. RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5))
  375. LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5))
  376. RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  377. LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  378. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
  379. elseif animpose == "Walking" and normalanim then
  380. RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5))
  381. LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5))
  382. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, math.sin(sine / 10)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  383. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.sin(sine / 10)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  384. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
  385. elseif animpose == "Jumping" and normalanim then
  386. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-0.5, 0, 0), 0.15)
  387. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  388. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  389. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  390. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  391. elseif animpose == "Falling" and normalanim then
  392. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0), 0.15)
  393. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
  394. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
  395. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  396. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  397. end
  398. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement