Advertisement
Josemmoya

Untitled

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