Advertisement
GalaxyDelta

Untitled

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