Advertisement
lafur

Untitled

Nov 6th, 2018
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.76 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --[[
  6. Controls
  7. Q = Mini Ball Blasts
  8. E = Yellow Shield
  9. R = SuperBall Blast
  10. F = Teleport
  11. --]]
  12. player = game.Players.LocalPlayer
  13. char = player.Character
  14. torso = char.Torso
  15. neckp = char.Torso.Neck.C0
  16. neck = char.Torso.Neck
  17. m=player:GetMouse()
  18. human = char.Humanoid
  19. local ChatService = game:GetService("Chat")
  20. ChatService:Chat(char.Head, "The Yellow Man Coming For Ya!!")
  21. local clothes = {}
  22. for _, clothes in pairs (char:GetChildren()) do
  23. if clothes:IsA("Accessory") then
  24. clothes:Remove()
  25. end
  26. if clothes:IsA("Shirt") then
  27. clothes:Remove()
  28. end
  29. if clothes:IsA("Pants") then
  30. clothes:Remove()
  31. end
  32. if clothes:IsA("ShirtGraphic") then
  33. clothes.Graphic = 0
  34. clothes:Remove()
  35. end
  36. end
  37. wait(1)
  38. local rng = Instance.new("Part", char)
  39. rng.Anchored = true
  40. rng.BrickColor = BrickColor.new("Deep orange")
  41. rng.CanCollide = false
  42. rng.Name = "Ring"
  43. rng.Size = Vector3.new(1, 1, 1)
  44. rng.Transparency = 0
  45. rng.TopSurface = 0
  46. rng.BottomSurface = 0
  47. rng.CFrame = char["Head"].CFrame * CFrame.new(0,0,0)
  48. --rng.Rotation = Vector3.new(math.pi/2,0,0)
  49. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  50. local rngm = Instance.new("SpecialMesh", rng)
  51. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  52. rngm.Scale = Vector3.new(1, 1, 1)
  53. wait(0.1)
  54. coroutine.wrap(function()
  55. for i = 1, 10, .4 do
  56. rngm.Scale = Vector3.new(1 + i*1, 1 + i*1, 1 + i*1)
  57. wait()
  58. end
  59. wait()
  60. rng:Destroy()
  61. wait()
  62. end)()
  63. local rng = Instance.new("Part", char)
  64. rng.Anchored = true
  65. rng.BrickColor = BrickColor.new("Deep orange")
  66. rng.CanCollide = false
  67. rng.Name = "Ring"
  68. rng.Size = Vector3.new(1, 1, 1)
  69. rng.Transparency = 0
  70. rng.TopSurface = 0
  71. rng.BottomSurface = 0
  72. rng.CFrame = char["Head"].CFrame * CFrame.new(0,-2,0)
  73. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  74. local rngm = Instance.new("SpecialMesh", rng)
  75. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  76. rngm.Scale = Vector3.new(1, 1, 1)
  77. wait(0.1)
  78. coroutine.wrap(function()
  79. for i = 1, 10, .4 do
  80. rngm.Scale = Vector3.new(1 + i*1, 1 + i*1, 1 + i*1)
  81. wait()
  82. end
  83. wait()
  84. rng:Destroy()
  85. wait()
  86. end)()
  87. local rng = Instance.new("Part", char)
  88. rng.Anchored = true
  89. rng.BrickColor = BrickColor.new("Deep orange")
  90. rng.CanCollide = false
  91. rng.Name = "Ring"
  92. rng.Size = Vector3.new(1, 1, 1)
  93. rng.Transparency = 0
  94. rng.TopSurface = 0
  95. rng.BottomSurface = 0
  96. rng.CFrame = char["Head"].CFrame * CFrame.new(0,-4,0)
  97. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  98. local rngm = Instance.new("SpecialMesh", rng)
  99. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  100. rngm.Scale = Vector3.new(1, 1, 1)
  101. wait(0.1)
  102. coroutine.wrap(function()
  103. for i = 1, 10, .4 do
  104. rngm.Scale = Vector3.new(1 + i*1, 1 + i*1, 1 + i*1)
  105. wait()
  106. end
  107. wait()
  108. rng:Destroy()
  109. wait()
  110. end)()
  111. wait(0.7)
  112. local rng = Instance.new("Part", char)
  113. rng.Anchored = true
  114. rng.BrickColor = BrickColor.new("Deep orange")
  115. rng.CanCollide = false
  116. rng.Name = "Ring"
  117. rng.Size = Vector3.new(1, 1, 1)
  118. rng.Transparency = 0
  119. rng.TopSurface = 0
  120. rng.BottomSurface = 0
  121. rng.CFrame = char["Head"].CFrame * CFrame.new(-1,-2.5,0)
  122. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  123. local rngm = Instance.new("SpecialMesh", rng)
  124. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  125. rngm.Scale = Vector3.new(1, 1, 1)
  126. wait(0.1)
  127. coroutine.wrap(function()
  128. for i = 1, 10, .4 do
  129. rngm.Scale = Vector3.new(1 + i*1, 1 + i*1, 1 + i*1)
  130. wait()
  131. end
  132. wait()
  133. rng:Destroy()
  134. wait()
  135. end)()
  136. char.Head.BrickColor = BrickColor.new("New Yeller")
  137. torso.BrickColor = BrickColor.new("New Yeller")
  138. char["Left Leg"].BrickColor = BrickColor.new("New Yeller")
  139. char["Left Arm"].BrickColor = BrickColor.new("New Yeller")
  140. char["Right Leg"].BrickColor = BrickColor.new("New Yeller")
  141. char["Right Arm"].BrickColor = BrickColor.new("New Yeller")
  142. char.Head.Material = "Neon"
  143. torso.Material = "Neon"
  144. char["Left Leg"].Material = "Neon"
  145. char["Left Arm"].Material = "Neon"
  146. char["Right Leg"].Material = "Neon"
  147. char["Right Arm"].Material = "Neon"
  148. human.MaxHealth = 2100000000
  149. wait(0.5)
  150. human.Health = human.MaxHealth
  151. wait(0.1)
  152. human.WalkSpeed = 50
  153. ---------------------------------------------------------------------------------------------------
  154. m.KeyDown:connect(function(key)
  155. if key == "q" then
  156. for i = 1,15 do
  157. local pos = m.Hit.p
  158. local pos1 = torso.Position
  159. torso.CFrame = CFrame.new(pos1, pos)
  160. local x = Instance.new("Part")
  161. x.BrickColor = BrickColor.new("New Yeller")
  162. x.FormFactor = "Custom"
  163. x.Size = Vector3.new(2,2,2)
  164. x.TopSurface = "Smooth"
  165. x.BottomSurface = "Smooth"
  166. x.Shape = "Ball"
  167. x.Name = "Yellow Balls"
  168. x.CanCollide = false
  169. x.Anchored = false
  170. x.Transparency = 0.1
  171. local y = Instance.new("BodyVelocity")
  172. y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  173. y.velocity = char.Torso.CFrame.lookVector*180
  174. y.Parent = x
  175. x.CFrame = player.Character.Torso.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-10,-5))* CFrame.Angles(0, math.pi, 0)
  176. x.Parent = workspace
  177. x.Touched:connect(function(h)
  178. local a = h.Parent.Humanoid
  179. if a.Parent.Name == game.Players.LocalPlayer.Name then
  180. a:TakeDamage(0)
  181. elseif h.Parent.ClassName == "Model" then if h.Parent:FindFirstChild("Humanoid") then
  182. wait(0.2)
  183. a:TakeDamage(math.huge)
  184. end
  185. wait()
  186. end
  187. end)
  188. game.Debris:AddItem(x,5)
  189. end
  190. end
  191. end)
  192. ---------------------------------------------------------------------------------------------------------
  193. m.KeyDown:connect(function(key)
  194. if key == "f" then
  195. char.Torso.CFrame = m.hit
  196. end
  197. end)
  198. -------------------------------------------------------------------------------------------------------------
  199. m.KeyDown:connect(function(key)
  200. if key == "e" then
  201. org = char.Torso["Left Shoulder"].C0
  202. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
  203. k = Instance.new("Part",char)
  204. k.Name = "Blue Shield"
  205. k.Size = Vector3.new(5,1,5)
  206. k.CanCollide = false
  207. k.BrickColor = BrickColor.new("New Yeller")
  208. k.TopSurface = 0
  209. k.BottomSurface = 0
  210. k.Material = "Neon"
  211. w = Instance.new("Weld", k)
  212. w.Part0 = k
  213. w.Part1 = char["Left Arm"]
  214. w.C0 = CFrame.new(0,1,0)
  215. k.Touched:connect(function(j)
  216. local s = j.Parent.Humanoid
  217. if s.Parent.Name == player.Name then
  218. s:TakeDamage(0)
  219. end
  220. if j.Parent.ClassName == "Model" then if j.Parent:FindFirstChild("Humanoid") then
  221. j.Parent.Torso.Velocity = CFrame.new(torso.Position,j.Parent.Torso.Position).lookVector * 900
  222. wait(0.2)
  223. s:TakeDamage(math.huge)
  224. wait()
  225. j.Parent.Torso.Velocity = stop
  226. end
  227. end
  228. end)
  229. wait(10)
  230. k:Destroy()
  231. torso["Left Shoulder"].C0 = org
  232. wait(0.1)
  233. end
  234. end)
  235. -----------------------------------------------------------------------------------------------------------
  236. m.KeyDown:connect(function(key)
  237. if key == "r" then
  238. local pos = m.Hit.p
  239. local pos1 = torso.Position
  240. torso.CFrame = CFrame.new(pos1, pos)
  241. q = Instance.new("Part", player.Character)
  242. q.Material = "Neon"
  243. q.Size = Vector3.new(1,1,1)
  244. q.Shape = "Ball"
  245. q.TopSurface = 0
  246. q.BottomSurface = 0
  247. q.Name = "Super Yellow Ball"
  248. q.BrickColor = BrickColor.new("New Yeller")
  249. q.CanCollide = false
  250. q.Anchored = true
  251. coroutine.wrap(function()
  252. for i = 1, 10, .1 do
  253. q.Size = Vector3.new(1 + i*10, 1 + i*10, 1 + i*10)
  254. local y = Instance.new("BodyVelocity", q)
  255. y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  256. y.velocity = char.Torso.CFrame.lookVector*180
  257. q.CFrame = torso.CFrame * CFrame.new(0,50,0)
  258. q.Touched:connect(function(e)
  259. local w = e.Parent.Humanoid
  260. if w.Parent.Name == game.Players.LocalPlayer.Name then
  261. w:TakeDamage(0)
  262. elseif e.Parent.ClassName == "Model" then if e.Parent:FindFirstChild("Humanoid") then
  263. wait(0.2)
  264. w:TakeDamage(math.huge)
  265. end
  266. wait()
  267. end
  268. end)
  269. game.Debris:AddItem(q,5)
  270. q.Anchored = false
  271. end
  272. end)()
  273. end
  274. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement