Josemmoya

jack

Jan 22nd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.04 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.Shirt.ShirtTemplate = "rbxassetid://188593791"
  8. workspace.Josemmoya.Pants.PantsTemplate = "rbxassetid://1168628297"
  9. workspace.Josemmoya.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 = 16
  93. hum.JumpPower = 50
  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")
  208. character.Humanoid.Health = 0
  209. local s = Instance.new("Sound", character.Head)
  210. s.SoundId = "rbxassetid://28976727"
  211. s.Volume = 10
  212. s:Play()
  213. end
  214. end)
  215. end)
  216. spawn(function()
  217. while wait() do
  218. if banpart.Parent ~= workspace then
  219. banpart = Instance.new("Part", workspace)
  220. banpart.Size = Vector3.new(1, 1, 1)
  221. banpart.CanCollide = true
  222. mesh = Instance.new("SpecialMesh", banpart)
  223. mesh.MeshType = "FileMesh"
  224. mesh.MeshId = "rbxassetid://470094777"
  225. mesh.TextureId = "http://www.roblox.com/asset/?id=470149026"
  226. mesh.Scale = Vector3.new(0.8, 0.8, 0.8)
  227. banpart.CFrame = bCFrame
  228. banpart.Velocity = bVel
  229. banpart.Touched:Connect(function(hit)
  230. if hit.Parent and game:GetService("Players"):FindFirstChild(hit.Parent.Name) then
  231. local character = hit.Parent
  232. character:FindFirstChildOfClass("Humanoid")
  233. character.Humanoid.Health = 0
  234. local s = Instance.new("Sound", character.Head)
  235. s.SoundId = "rbxassetid://28976727"
  236. s.Volume = 10
  237. s:Play()
  238. end
  239. end)
  240. else
  241. bCFrame = banpart.CFrame
  242. bVel = banpart.Velocity
  243. end
  244. end
  245. end)
  246. end
  247. local explosion = Instance.new("Explosion", bpart)
  248. explosion.Position = bpart.Position
  249. local sound2 = Instance.new("Sound", bpart)
  250. sound2.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  251. sound2.Volume = 5
  252. sound2:Play()
  253. bpart.CanCollide = false
  254. attackd = false
  255. end
  256. if key == Enum.KeyCode.C then
  257. sine = 0
  258. attackd = true
  259. normalanim = false
  260. hum.WalkSpeed = 16
  261. hum.JumpPower = 50
  262. for i = 1, 20 do
  263. game:GetService("RunService").Heartbeat:Wait()
  264. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
  265. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 4), 0.15)
  266. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, -4), 0.15)
  267. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  268. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  269. end
  270. local tpart = Instance.new("Part", char)
  271. tpart.Size = Vector3.new(5.523, 6.19, 22.966)
  272. tpart.Anchored = true
  273. tpart.BrickColor = BrickColor.new("Pine Cone")
  274. tpart.Material = "Wood"
  275. tpart.CanCollide = false
  276. tpart.CFrame = char["Right Arm"].CFrame * CFrame.Angles(math.pi, -math.pi / 2, 0) * CFrame.new(0, 4, 1)
  277. local mesh = Instance.new("SpecialMesh", tpart)
  278. mesh.MeshType = "FileMesh"
  279. mesh.MeshId = "rbxassetid://470094777"
  280. wait(0.5)
  281. for i = 1, 15 do
  282. game:GetService("RunService").Heartbeat:Wait()
  283. RS.C0 = RS.C0:Lerp(RS.C0 * CFrame.Angles(0, 0, -0.01), i)
  284. LS.C0 = LS.C0:Lerp(LS.C0 * CFrame.Angles(0, 0, 0.01), i)
  285. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  286. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  287. tpart.CFrame = char["Right Arm"].CFrame * CFrame.Angles(math.pi, -math.pi / 2, 0) * CFrame.new(0, 4, 1)
  288. end
  289. tpart.Anchored = false
  290. tpart.Velocity = char.HumanoidRootPart.CFrame.LookVector * 100
  291. tpart.CanCollide = true
  292. tpart.Parent = workspace
  293. spawn(function()
  294. wait(0.3)
  295. tpart.Touched:Connect(function(hit)
  296. if hit.Size.X + hit.Size.Y + hit.Size.Z < 1000 then
  297. hit:BreakJoints()
  298. hit.Anchored = false
  299. hit.Velocity = tpart.Velocity
  300. end
  301. end)
  302. end)
  303. for i = 1, 20 do
  304. game:GetService("RunService").Heartbeat:Wait()
  305. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
  306. RS.C0 = RS.C0:Lerp(RSnor, 0.15)
  307. LS.C0 = LS.C0:Lerp(LSnor, 0.15)
  308. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  309. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  310. end
  311. attackd = false
  312. normalanim = true
  313. hum.WalkSpeed = 16
  314. hum.JumpPower = 50
  315. end
  316. elseif Player.Name == plr.Name and number == 2 and throw == true and throwbutton == true then
  317. throwbutton = false
  318. throw = false
  319. end
  320. end)
  321.  
  322. ---------------------------------
  323. -----------Wrapping up-----------
  324. ---------------------------------
  325.  
  326. while game:GetService("RunService").Heartbeat:Wait() do
  327. if normalanim then
  328. sine = sine + 1
  329. end
  330. if crabrave.Parent == char.Torso then
  331. crabrave.SoundId = "rbxassetid://1609256184"
  332. crabrave.Playing = true
  333. crabrave.Volume = 1
  334. crabrave.Looped = true
  335. timepos = crabrave.TimePosition
  336. else
  337. crabrave = Instance.new("Sound", char.Torso)
  338. crabrave.TimePosition = timepos
  339. end
  340. if remote.Parent == char then
  341. remote.Name = "ReplicationEvent"
  342. else
  343. remote = Instance.new("RemoteEvent", char)
  344. end
  345. 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)
  346. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
  347. animpose = "Walking"
  348. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
  349. animpose = "Jumping"
  350. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
  351. animpose = "Falling"
  352. else
  353. animpose = "Idle"
  354. end
  355. if animpose == "Idle" and normalanim then
  356. RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5))
  357. LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5))
  358. RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  359. LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
  360. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
  361. elseif animpose == "Walking" and normalanim then
  362. RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5))
  363. LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5))
  364. 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)
  365. 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)
  366. rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
  367. elseif animpose == "Jumping" and normalanim then
  368. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-0.5, 0, 0), 0.15)
  369. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  370. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  371. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  372. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  373. elseif animpose == "Falling" and normalanim then
  374. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0), 0.15)
  375. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
  376. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
  377. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  378. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  379. end
  380. end
Add Comment
Please, Sign In to add comment