Advertisement
lafur

Untitled

Sep 19th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.95 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. Z = Red Spike
  8. X = Red Slash
  9. C = Red Rain
  10. V = Red Boom
  11. --]]
  12. boom = true
  13. player = game.Players.LocalPlayer
  14. char = player.Character
  15. human = char.Humanoid
  16. torso = char.Torso
  17. m=player:GetMouse()
  18. ChatService = game:GetService("Chat")
  19. ChatService:Chat(char.Head ,"You're gonna die sorry.")
  20. local clothes = {}
  21. for _, clothes in pairs (char:GetChildren()) do
  22. if clothes:IsA("Accessory") then
  23. clothes:Remove()
  24. end
  25. if clothes:IsA("Shirt") then
  26. clothes:Remove()
  27. end
  28. if clothes:IsA("Pants") then
  29. clothes:Remove()
  30. end
  31. if clothes:IsA("ShirtGraphic") then
  32. clothes.Graphic = 0
  33. clothes:Remove()
  34. end
  35. end
  36. char.Head.BrickColor = BrickColor.new("Really red")
  37. torso.BrickColor = BrickColor.new("Really red")
  38. char["Left Leg"].BrickColor = BrickColor.new("Really red")
  39. char["Left Arm"].BrickColor = BrickColor.new("Really red")
  40. char["Right Leg"].BrickColor = BrickColor.new("Really red")
  41. char["Right Arm"].BrickColor = BrickColor.new("Really red")
  42. char.Head.Material = "Neon"
  43. torso.Material = "Neon"
  44. char["Left Leg"].Material = "Neon"
  45. char["Left Arm"].Material = "Neon"
  46. char["Right Leg"].Material = "Neon"
  47. char["Right Arm"].Material = "Neon"
  48. human.MaxHealth = 2000000000
  49. wait(0.5)
  50. human.Health = human.MaxHealth
  51. human.WalkSpeed = 50
  52. ---------------------------------------------------------------------------------------------------------
  53. m.KeyDown:connect(function(key)
  54. if key == "f" then
  55. torso.CFrame = m.hit
  56. end
  57. end)
  58. ---------------------------------------------------------------------------------------------------------
  59. m.KeyDown:connect(function(key)
  60. if key == "z" then
  61. ChatService:Chat(char.Head ,"Spike")
  62. local pos = m.Hit.p
  63. local pos1 = torso.Position
  64. torso.CFrame = CFrame.new(pos1, pos)
  65. x = Instance.new("Part", char)
  66. x.Shape = "Ball"
  67. x.Size = Vector3.new(4,4,4)
  68. x.Material = "Neon"
  69. x.BrickColor = BrickColor.new("Really red")
  70. x.Anchored = false
  71. x.CanCollide = false
  72. x.CFrame = char["Torso"].CFrame * CFrame.new(0,0,-2.5)
  73. z = Instance.new("SpecialMesh", x)
  74. z.MeshId = "http://www.roblox.com/asset/?id=9982590"
  75. z.Scale = Vector3.new(1,1,1)
  76. c = Instance.new("BodyVelocity", x)
  77. c.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  78. c.velocity = char.Torso.CFrame.lookVector*180
  79. x.Touched:connect(function(h)
  80. local a = h.Parent
  81. if a.Name ~= player.Name and a.ClassName == "Model" then
  82. for i = 1,10,.4 do
  83. z.Scale = Vector3.new(1 + i*0.8, 1 + i*0.8, 1 + i*0.8)
  84. x.Size = Vector3.new(4 + i*2.3, 4 + i*2.3, 4 + i*2.3)
  85. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 180
  86. end
  87. end
  88. if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
  89. a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
  90. end
  91. end)
  92. game.Debris:AddItem(x,5)
  93. end
  94. end)
  95. ----------------------------------------------------------------------------------------------------------
  96. m.KeyDown:connect(function(key)
  97. if key == "x" then
  98. ChatService:Chat(char.Head ,"Slash")
  99. local pos = m.Hit.p
  100. local pos1 = torso.Position
  101. torso.CFrame = CFrame.new(pos1, pos)
  102. k = Instance.new("Part", workspace)
  103. k.Shape = "Cylinder"
  104. k.Size = Vector3.new(21,3,4)
  105. k.Material = "Neon"
  106. k.BrickColor = BrickColor.new("Really red")
  107. k.Anchored = false
  108. k.CanCollide = false
  109. k.CFrame = char["Torso"].CFrame * CFrame.new(0,0,-2.5)
  110. j = Instance.new("SpecialMesh", k)
  111. j.MeshType = "Sphere"
  112. j.Scale = Vector3.new(1,1,1)
  113. h = Instance.new("BodyVelocity", k)
  114. h.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  115. h.velocity = char.Torso.CFrame.lookVector*180
  116. k.Touched:connect(function(h)
  117. local a = h.Parent
  118. if a.Name ~= player.Name and a.ClassName == "Model" then
  119. k.Anchored = true
  120. for i = 1,10,.4 do
  121. j.Scale = Vector3.new(1 + i*0.8, 1 + i*0.8, 1 + i*0.8)
  122. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 180
  123. end
  124. end
  125. if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
  126. a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
  127. end
  128. end)
  129. game.Debris:AddItem(k,5)
  130. end
  131. end)
  132. ----------------------------------------------------------------------------------------------------------
  133. m.KeyDown:connect(function(key)
  134. if key == "c" and boom == true then boom = false
  135. ChatService:Chat(char.Head ,"Get Ready..")
  136. char.Humanoid.JumpPower = 150
  137. char.Humanoid.Jump = true
  138. wait(1)
  139. torso.Anchored = true
  140. torso.CFrame = torso.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  141. ChatService:Chat(char.Head ,"Red Rain!!")
  142. for i = 1,100 do
  143. local g = Instance.new("Part", workspace)
  144. g.Transparency = 0.1
  145. g.Name = "lalala"
  146. g.FormFactor = "Custom"
  147. g.Anchored = false
  148. g.CanCollide = false
  149. g.BrickColor = BrickColor.new("Really red")
  150. g.Shape = "Ball"
  151. g.Size = Vector3.new(15,15,15)
  152. g.Material = "Neon"
  153. g.TopSurface = 0
  154. g.BottomSurface = 0
  155. local y = Instance.new("BodyVelocity", g)
  156. y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  157. y.velocity = char.Torso.CFrame.lookVector*180
  158. g.CFrame = torso.CFrame*CFrame.new(math.random(-30,30),math.random(-30,30),math.random(-20,-10))* CFrame.Angles(0, 0, 0)
  159. local c = Instance.new("SpecialMesh",g)
  160. c.MeshType = "Sphere"
  161. c.Scale = Vector3.new(1,1,1)
  162. for i = 1,2 do
  163. c.Scale = c.Scale +Vector3.new(0,0,0)
  164. wait(0.0005)
  165. end
  166. g.Touched:connect(function(h)
  167. local a = h.Parent
  168. if a.Name ~= player.Name and a.ClassName == "Model" then
  169. g.Anchored = true
  170. for i = 1,10,.4 do
  171. c.Scale = Vector3.new(1 + i*0.4, 1 + i*0.4, 1 + i*0.4)
  172. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 180
  173. end
  174. end
  175. if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
  176. a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
  177. end
  178. end)
  179. game.Debris:AddItem(g,5)
  180. end
  181. torso.Anchored = false
  182. boom = true
  183. end
  184. end)
  185. ----------------------------------------------------------------------------------------------------------------------------
  186. m.KeyDown:connect(function(key)
  187. if key == "v" and boom == true then boom = false
  188. ChatService:Chat(char.Head ,"Grrrrr..")
  189. wait(1)
  190. ChatService:Chat(char.Head ,"RED BOOM!!")
  191. local pos = m.Hit.p
  192. local pos1 = torso.Position
  193. torso.CFrame = CFrame.new(pos1, pos)
  194. local qeqe = Instance.new("Part", char)
  195. qeqe.Anchored = false
  196. qeqe.BrickColor = BrickColor.new("Really red")
  197. qeqe.CanCollide = false
  198. qeqe.Name = "Boom"
  199. qeqe.Shape = "Ball"
  200. qeqe.Size = Vector3.new(100, 100, 100)
  201. qeqe.Transparency = 0
  202. qeqe.TopSurface = 0
  203. qeqe.BottomSurface = 0
  204. qeqe.Material = "Neon"
  205. qeqe.CFrame = char["Torso"].CFrame * CFrame.new(0,0,-2.5)
  206. awd = Instance.new("BodyVelocity", qeqe)
  207. awd.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  208. awd.velocity = char.Torso.CFrame.lookVector*360
  209. qeqe.Touched:connect(function(h)
  210. local a = h.Parent
  211. if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
  212. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
  213. wait(0.2)
  214. a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
  215. qeqe.Transparency = 1
  216. ChatService:Chat(char.Head ,"Red Boom Disappeared D:")
  217. end
  218. end)
  219. game.Debris:AddItem(qeqe,5)
  220. boom = true
  221. end
  222. end)
  223. ----------------------------------------------------------------------------------------------------------------------------
  224. while true do
  225. wait(0.3)
  226. local q = Instance.new("Part", char)
  227. q.Anchored = true
  228. q.BrickColor = BrickColor.new("Really red")
  229. q.CanCollide = false
  230. q.Name = "Ring"
  231. q.Size = Vector3.new(1, 1, 1)
  232. q.Transparency = 0
  233. q.TopSurface = 0
  234. q.BottomSurface = 0
  235. q.CFrame = torso.CFrame * CFrame.new(0,-2,0)
  236. q.CFrame = q.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  237. local e = Instance.new("SpecialMesh", q)
  238. e.MeshId = "http://www.roblox.com/asset/?id=3270017"
  239. e.Scale = Vector3.new(1, 1, 1)
  240. wait(0.1)
  241. coroutine.wrap(function()
  242. for i = 1, 10, .4 do
  243. e.Scale = Vector3.new(1 + i*5, 1 + i*5, 1 + i*2.5)
  244.  
  245. wait()
  246. end
  247. wait()
  248. q:Destroy()
  249. wait()
  250. end)()
  251. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement