Advertisement
Ban43_GodOfEdits

fff

Nov 19th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.27 KB | None | 0 0
  1. --[[
  2. ______ __ __ ____ __ ______
  3. / _/ _/ / \/ \ / __/___ __ _______/ /_ / / /
  4. / // / / /\/ /\ \ __/ /_/ __ \/ / / / ___/ __ \ / // /
  5. / // / / / /_/ \ \/_ __/ /_/ / /_/ / / / /_/ / / // /
  6. / // / /_/ \_\/_/ \____/\__,_/_/ /_.___/ _/ // /
  7. /__/__/ /__/__/
  8.  
  9. --]]
  10. --https://github.com/Mokiros/roblox-FE-compatibility
  11. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  12. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  13. local RealPlayer = Player
  14. 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
  15.  
  16. wait()
  17. Player = game.Players.LocalPlayer
  18. Object = Player.Character.HumanoidRootPart
  19. Arm1 = Player.Character["Right Arm"]
  20. PreviousA1 = Arm1.CFrame.p
  21. Arm2 = Player.Character["Left Arm"]
  22. PreviousA2 = Arm2.CFrame.p
  23.  
  24. Leg1 = Player.Character["Right Leg"]
  25. PreviousL1 = Leg1.CFrame.p
  26. Leg2 = Player.Character["Left Leg"]
  27. PreviousL2 = Leg2.CFrame.p
  28.  
  29. Run = game["Run Service"]
  30.  
  31. PreviousP = Object.CFrame.p
  32. Running = false
  33. Phase = false
  34. PhaseActive = false
  35. Morph = false
  36. MorphActive = false
  37. Tornado = false
  38. TornadoRadius = 50
  39. TornadoActive = false
  40. Portal = false
  41. PortalEnd = false
  42. MaxZ = 0
  43. MinZ = 0
  44. LightMaxX =0
  45. LightMinX = 0
  46. LightMaxX2 = 0
  47. LightMinX2 = 0
  48. LightMaxY =0
  49. LightMinY = 0
  50. Rotation = 0
  51. Length = 0
  52. Color = BrickColor.Gray()
  53. PColor = Color3.new(255,255,0)
  54. PrevPoint1 = nil
  55. PrevPoint2 = nil
  56. PrevPoint3 = nil
  57. PrevPoint4 = nil
  58. PrevPoint5 = nil
  59. PrevPoint6 = nil
  60. PrevPoint7 = nil
  61. PrevPoint8 = nil
  62. PrevPoint9 = nil
  63. PrevPoint10 = nil
  64. PrevPoint11 = nil
  65. PrevPoint12 = nil
  66. angle = 0
  67. Mouse = Player:GetMouse()
  68. Player.Character.Humanoid.WalkSpeed = 16
  69. i = 0
  70. j = 0
  71. z = 0
  72. w = 0
  73. a = 0
  74. s = 0
  75. d = 0
  76. mouse = game.Players.LocalPlayer:GetMouse()
  77. player = game.Players.LocalPlayer
  78.  
  79. function onKeyDown(key)
  80. if (key~=nil) then
  81. key:lower()
  82. repeat
  83. if (key == "q") and player.Character.Humanoid.WalkSpeed<766 == true then
  84. i = 1
  85. wait(0.001)
  86. player.Character.Humanoid.WalkSpeed = player.Character.Humanoid.WalkSpeed+25
  87. else
  88. break
  89. end
  90. until i == 0
  91. end
  92. end
  93.  
  94. function onKeyUp(key)
  95.  
  96. if (key~=nil) then
  97. key:lower()
  98. if (key == "q") and player.Character.Humanoid.WalkSpeed > 766 and z == 0 then
  99. i = 0
  100. z = 1
  101. player.Character.Head.Smoke.Enabled = true
  102. wait(0.3)
  103. player.Character.Head.Boom:Play()
  104. player.Character.Head.Smoke.Enabled = false
  105. local boom = Instance.new("Explosion")
  106. boom.BlastPressure = 0
  107. boom.ExplosionType = "NoCraters"
  108. boom.Parent = player.Character.Head
  109. boom.Position = player.Character.Torso.Position
  110. wait(0.1)
  111. z = 0
  112. print("Boom Reloaded")
  113. elseif (key == "q") then
  114. i = 0
  115. end
  116. end
  117. end
  118.  
  119.  
  120. function onKeyDown2(key)
  121. if (key~=nil) then
  122. key:lower()
  123. repeat
  124. if (key == "e") and player.Character.Humanoid.WalkSpeed>=41 == true then
  125. j = 1
  126. wait(0.001)
  127. player.Character.Humanoid.WalkSpeed = player.Character.Humanoid.WalkSpeed-25
  128. else
  129. break
  130. end
  131. until j == 0
  132. end
  133. end
  134.  
  135. function onKeyUp2(key)
  136. if (key~=nil) then
  137. key:lower()
  138. if (key == "e") then
  139. j = 0
  140. end
  141. end
  142. end
  143.  
  144.  
  145. mouse.KeyDown:connect(onKeyDown)
  146. mouse.KeyUp:connect(onKeyUp)
  147. mouse.KeyDown:connect(onKeyDown2)
  148. mouse.KeyUp:connect(onKeyUp2)
  149. Nil = function()
  150. PrevPoint1 = "Empty"
  151. PrevPoint2 = "Empty"
  152. PrevPoint3 = "Empty"
  153. PrevPoint4 = "Empty"
  154. PrevPoint5 = "Empty"
  155. PrevPoint6 = "Empty"
  156. PrevPoint7 = "Empty"
  157. PrevPoint8 = "Empty"
  158. PrevPoint9 = "Empty"
  159. PrevPoint10 = "Empty"
  160. PrevPoint11 = "Empty"
  161. PrevPoint12 = "Empty"
  162. end
  163.  
  164. local Lightning = coroutine.wrap(function()
  165. while wait() do
  166. if Portal == false then
  167. angle = angle + 0.6
  168. local Model = Instance.new("Model",workspace)
  169. Model.Name = "Lightning"
  170. local Point1 = Instance.new("Part",Model)
  171. Point1.Transparency = 1
  172. Point1.Size = Vector3.new(0.2,0.2,0.2)
  173. Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
  174. Point1.Anchored = true
  175. Point1.CanCollide = false
  176. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  177.  
  178. local Point2 = Instance.new("Part",Model)
  179. Point2.Transparency = 1
  180. Point2.Size = Vector3.new(0.2,0.2,0.2)
  181. Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
  182. Point2.Anchored = true
  183. Point2.CanCollide = false
  184. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  185.  
  186. local Point3 = Instance.new("Part",Model)
  187. Point3.Transparency = 1
  188. Point3.Size = Vector3.new(0.2,0.2,0.2)
  189. Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
  190. Point3.Anchored = true
  191. Point3.CanCollide = false
  192. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  193.  
  194. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  195. local Light = Instance.new("Part",Model)
  196. local PointLight = Instance.new("PointLight",Light)
  197. PointLight.Range = 5
  198. PointLight.Color = PColor
  199. Light.Transparency = 0.5
  200. Light.BrickColor = Color
  201. Light.Material = "Neon"
  202. Light.Size = Vector3.new(0.25,0.25,distance)
  203. Light.Anchored = true
  204. Light.CanCollide = false
  205. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  206.  
  207. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  208. local Light = Instance.new("Part",Model)
  209. local PointLight = Instance.new("PointLight",Light)
  210. PointLight.Range = 5
  211. PointLight.Color = PColor
  212. Light.Transparency = 0.5
  213. Light.BrickColor = Color
  214. Light.Material = "Neon"
  215. Light.Size = Vector3.new(0.25,0.25,distance2)
  216. Light.Anchored = true
  217. Light.CanCollide = false
  218. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  219.  
  220. local Point1 = Instance.new("Part",Model)
  221. Point1.Transparency = 1
  222. Point1.Size = Vector3.new(0.2,0.2,0.2)
  223. Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
  224. Point1.Anchored = true
  225. Point1.CanCollide = false
  226. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  227.  
  228. local Point2 = Instance.new("Part",Model)
  229. Point2.Transparency = 1
  230. Point2.Size = Vector3.new(0.2,0.2,0.2)
  231. Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
  232. Point2.Anchored = true
  233. Point2.CanCollide = false
  234. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  235.  
  236. local Point3 = Instance.new("Part",Model)
  237. Point3.Transparency = 1
  238. Point3.Size = Vector3.new(0.2,0.2,0.2)
  239. Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
  240. Point3.Anchored = true
  241. Point3.CanCollide = false
  242. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  243.  
  244. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  245. local Light = Instance.new("Part",Model)
  246. local PointLight = Instance.new("PointLight",Light)
  247. PointLight.Range = 5
  248. PointLight.Color = PColor
  249. Light.Transparency = 0.5
  250. Light.BrickColor = Color
  251. Light.Material = "Neon"
  252. Light.Size = Vector3.new(0.25,0.25,distance)
  253. Light.Anchored = true
  254. Light.CanCollide = false
  255. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  256.  
  257. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  258. local Light = Instance.new("Part",Model)
  259. local PointLight = Instance.new("PointLight",Light)
  260. PointLight.Range = 5
  261. PointLight.Color = PColor
  262. Light.Transparency = 0.5
  263. Light.BrickColor = Color
  264. Light.Material = "Neon"
  265. Light.Size = Vector3.new(0.3,0.3,distance2)
  266. Light.Anchored = true
  267. Light.CanCollide = false
  268. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  269.  
  270. local Point1 = Instance.new("Part",Model)
  271. Point1.Transparency = 1
  272. Point1.Size = Vector3.new(0.2,0.2,0.2)
  273. Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  274. Point1.Anchored = true
  275. Point1.CanCollide = false
  276. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  277.  
  278. local Point2 = Instance.new("Part",Model)
  279. Point2.Transparency = 1
  280. Point2.Size = Vector3.new(0.2,0.2,0.2)
  281. Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  282. Point2.Anchored = true
  283. Point2.CanCollide = false
  284. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  285.  
  286. local Point3 = Instance.new("Part",Model)
  287. Point3.Transparency = 1
  288. Point3.Size = Vector3.new(0.2,0.2,0.2)
  289. Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  290. Point3.Anchored = true
  291. Point3.CanCollide = false
  292. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  293.  
  294. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  295. local Light = Instance.new("Part",Model)
  296. local PointLight = Instance.new("PointLight",Light)
  297. PointLight.Range = 5
  298. PointLight.Color = PColor
  299. Light.Transparency = 0.5
  300. Light.BrickColor = Color
  301. Light.Material = "Neon"
  302. Light.Size = Vector3.new(0.25,0.25,distance)
  303. Light.Anchored = true
  304. Light.CanCollide = false
  305. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  306.  
  307. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  308. local Light = Instance.new("Part",Model)
  309. local PointLight = Instance.new("PointLight",Light)
  310. PointLight.Range = 5
  311. PointLight.Color = PColor
  312. Light.Transparency = 0.5
  313. Light.BrickColor = Color
  314. Light.Material = "Neon"
  315. Light.Size = Vector3.new(0.25,0.25,distance2)
  316. Light.Anchored = true
  317. Light.CanCollide = false
  318. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  319.  
  320. local Point1 = Instance.new("Part",Model)
  321. Point1.Transparency = 1
  322. Point1.Size = Vector3.new(0.2,0.2,0.2)
  323. Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  324. Point1.Anchored = true
  325. Point1.CanCollide = false
  326. Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  327.  
  328. local Point2 = Instance.new("Part",Model)
  329. Point2.Transparency = 1
  330. Point2.Size = Vector3.new(0.2,0.2,0.2)
  331. Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  332. Point2.Anchored = true
  333. Point2.CanCollide = false
  334. Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  335.  
  336. local Point3 = Instance.new("Part",Model)
  337. Point3.Transparency = 1
  338. Point3.Size = Vector3.new(0.2,0.2,0.2)
  339. Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  340. Point3.Anchored = true
  341. Point3.CanCollide = false
  342. Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  343.  
  344. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  345. local Light = Instance.new("Part",Model)
  346. local PointLight = Instance.new("PointLight",Light)
  347. PointLight.Range = 5
  348. PointLight.Color = PColor
  349. Light.Transparency = 0.5
  350. Light.BrickColor = Color
  351. Light.Material = "Neon"
  352. Light.Size = Vector3.new(0.25,0.25,distance)
  353. Light.Anchored = true
  354. Light.CanCollide = false
  355. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  356.  
  357. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  358. local Light = Instance.new("Part",Model)
  359. local PointLight = Instance.new("PointLight",Light)
  360. PointLight.Range = 5
  361. PointLight.Color = PColor
  362. Light.Transparency = 0.5
  363. Light.BrickColor = Color
  364. Light.Material = "Neon"
  365. Light.Size = Vector3.new(0.25,0.25,distance2)
  366. Light.Anchored = true
  367. Light.CanCollide = false
  368. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  369.  
  370. local Children = Model:GetChildren()
  371. wait(0.1)
  372. for i = 1,#Children do
  373. if Children[i]:IsA("Part") then
  374. Children[i].Transparency = 1
  375. end
  376. game.Debris:AddItem(Children[i],0)
  377. end
  378.  
  379. end
  380. end
  381. end)
  382. Lightning()
  383.  
  384. TornadoFunction = function()
  385. local TornadoModel = Instance.new("Model",workspace)
  386. local Center = Instance.new("Part",TornadoModel)
  387. Center.Anchored = true
  388. Center.CanCollide = false
  389. Center.Transparency = 1
  390. Center.Size = Vector3.new(2,2,2)
  391. Center.CFrame = Object.CFrame * CFrame.new(0,0,-20)
  392. local Death = Instance.new("Part",TornadoModel)
  393. Death.Anchored = true
  394. Death.CanCollide = false
  395. Death.Transparency = 1
  396. Death.Size = Vector3.new(TornadoRadius+10,TornadoRadius+10,TornadoRadius+10)
  397. Death.CFrame = Center.CFrame
  398. Death.Touched:connect(function(Touch)
  399. if Touch.Parent:FindFirstChild("Humanoid") ~= nil and Touch.Parent.Name ~= Player.Name then
  400. Touch.Parent.Humanoid.Health = 0
  401. end
  402. end)
  403. local TornadoFunc = function()
  404. local Tornanimation = coroutine.wrap(function()
  405. while Run.Stepped:wait() do
  406. if Tornado == false then Death:Destroy() break end
  407. angle = angle + 0.1
  408. Object.Anchored = false
  409. Object.CFrame = Center.CFrame * CFrame.Angles(0,angle,0) * CFrame.new(0,0,TornadoRadius)
  410. Object.CFrame = Object.CFrame * CFrame.Angles(0,-math.rad(90),0)
  411. end
  412. end)
  413. Tornanimation()
  414. end
  415. TornadoFunc()
  416. end
  417.  
  418. PhaseFunction = function()
  419. local Phase = coroutine.wrap(function()
  420. while wait() do
  421. if Phase == false then break end
  422. if Player.Character.Humanoid.WalkSpeed > 50 and Phase == true then
  423. Object.CFrame = Object.CFrame * CFrame.new(0,0,-Player.Character.Humanoid.WalkSpeed/20)
  424. end
  425. end
  426. end)
  427. Phase()
  428. end
  429.  
  430.  
  431. PortalFunction = function()
  432. local PortalBlock = Instance.new("Part",workspace)
  433. PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,-100)
  434. PortalBlock.Transparency = 1
  435. PortalBlock.Anchored = true
  436. PortalBlock.CanCollide = false
  437. PortalBlock.Size = Vector3.new(20,20,0.2)
  438. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
  439. local Gui = Instance.new("SurfaceGui",PortalBlock)
  440. local Img = Instance.new("ImageLabel",Gui)
  441. Img.Size = UDim2.new(2,0,2,0)
  442. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  443. Img.Transparency = 1
  444. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  445. local Gui = Instance.new("SurfaceGui",PortalBlock)
  446. Gui.Face = "Back"
  447. local Img = Instance.new("ImageLabel",Gui)
  448. Img.Size = UDim2.new(2,0,2,0)
  449. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  450. Img.Transparency = 1
  451. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  452. Object.CFrame = PortalBlock.CFrame
  453. local Face = Object.Parent.Head.face.Texture
  454. local ObjectC = Object.Parent:GetChildren()
  455. for i = 1,#ObjectC do
  456. if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
  457. ObjectC[i].Transparency = 1
  458. elseif ObjectC[i]:IsA("Hat") then
  459. ObjectC[i].Handle.Transparency = 1
  460. end
  461. if ObjectC[i].Name == "Head" then
  462. ObjectC[i].face.Texture = ""
  463. end
  464. end
  465.  
  466. local PortalR = coroutine.wrap(function()
  467. wait(0.1)
  468. Portal = true
  469. PortalEnd = true
  470. while wait(0.001) do
  471. if Portal == false then
  472. break
  473. end
  474. Nil()
  475. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.Angles(0,0,-0.1)
  476. wait(0.01)
  477. end
  478. PortalBlock:Destroy()
  479. for i = 1,#ObjectC do
  480. if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
  481. ObjectC[i].Transparency = 0
  482. elseif ObjectC[i]:IsA("Hat") then
  483. ObjectC[i].Handle.Transparency = 0
  484. end
  485. if ObjectC[i].Name == "Head" then
  486. ObjectC[i].face.Texture = Face
  487. end
  488. end
  489. game.Players.LocalPlayer.Character.Part.Transparency = 1
  490. local PortalBlock = Instance.new("Part",workspace)
  491. PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,0)
  492. PortalBlock.Transparency = 1
  493. PortalBlock.Anchored = true
  494. PortalBlock.CanCollide = false
  495. PortalBlock.Size = Vector3.new(20,20,0.2)
  496. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
  497. local Gui = Instance.new("SurfaceGui",PortalBlock)
  498. local Img = Instance.new("ImageLabel",Gui)
  499. Img.Size = UDim2.new(2,0,2,0)
  500. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  501. Img.Transparency = 1
  502. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  503. local Gui = Instance.new("SurfaceGui",PortalBlock)
  504. Gui.Face = "Back"
  505. local Img = Instance.new("ImageLabel",Gui)
  506. Img.Size = UDim2.new(2,0,2,0)
  507. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  508. Img.Transparency = 1
  509. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  510. Object.CFrame = PortalBlock.CFrame
  511. PreviousA1 = Arm1.CFrame.p
  512. PreviousA2 = Arm2.CFrame.p
  513. PreviousL1 = Leg1.CFrame.p
  514. PreviousL2 = Leg2.CFrame.p
  515. PreviousP = Object.CFrame.p
  516. PortalEnd = false
  517. wait(2)
  518. PortalBlock:Destroy()
  519. end)
  520. PortalR()
  521. end
  522.  
  523. MorphFunction = function()
  524. local MaxX = 100
  525. local MinX = -100
  526. local MaxY = 100
  527. local MinY = -100
  528. local MaxZ = 100
  529. local MinZ = -100
  530. local Morph = coroutine.wrap(function()
  531. while Run.Stepped:wait(0.1) do
  532. if Morph == false then break end
  533. local Model = Instance.new("Model",workspace)
  534. if Player.Character:FindFirstChild("Shirt") then
  535. local Shirt = Player.Character.Shirt:Clone()
  536. Shirt.Parent = Model
  537. end
  538. if Player.Character:FindFirstChild("Pants") then
  539. local Pants = Player.Character.Pants:Clone()
  540. Pants.Parent = Model
  541. end
  542. local Humanoid = Instance.new("Humanoid",Model)
  543. local LeftArm = Player.Character["Left Arm"]:Clone()
  544. LeftArm.Parent = Model
  545. LeftArm.Transparency = 0.4
  546. LeftArm.Anchored = true
  547. LeftArm.CFrame = Player.Character["Left Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  548. local RightArm = Player.Character["Right Arm"]:Clone()
  549. RightArm.Parent = Model
  550. RightArm.Transparency = 0.4
  551. RightArm.Anchored = true
  552. RightArm.CFrame = Player.Character["Right Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  553. local LeftLeg = Player.Character["Left Leg"]:Clone()
  554. LeftLeg.Parent = Model
  555. LeftLeg.Transparency = 0.4
  556. LeftLeg.Anchored = true
  557. LeftLeg.CFrame = Player.Character["Left Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  558. local RightLeg = Player.Character["Right Leg"]:Clone()
  559. RightLeg.Parent = Model
  560. RightLeg.Transparency = 0.4
  561. RightLeg.Anchored = true
  562. RightLeg.CFrame = Player.Character["Right Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  563. local Children = Model:GetChildren()
  564. wait(0.01)
  565. for i = 1,#Children do
  566. if Children[i]:IsA("Part") then
  567. Children[i].Transparency = 1
  568. end
  569. game.Debris:AddItem(Children[i],0)
  570. end
  571. end
  572. end)
  573. Morph()
  574. end
  575.  
  576. local Guis = coroutine.wrap(function()
  577. local Gui = Instance.new("ScreenGui",Player.PlayerGui)
  578.  
  579. local Radius = Instance.new("TextBox",Gui)
  580. Radius.Text = "Tornado Radius"
  581. Radius.BackgroundColor3 = Color3.new(10, 0, 0)
  582. Radius.BorderColor3 = Color3.new(255, 25, 60)
  583. Radius.Size = UDim2.new(.2,1,0.08,1)
  584. Radius.Position = UDim2.new(0, 5.5,0.6, 0)
  585. Radius.FocusLost:connect(function(EnterPressed)
  586. if EnterPressed then
  587. TornadoRadius = Radius.Text
  588. end
  589. end)
  590. Mouse.KeyDown:connect(function(Key)
  591. if Key == "f" then
  592. if Portal == false then
  593. PortalFunction()
  594. Nil()
  595. else
  596. Portal = false
  597. end
  598. end
  599.  
  600. if Key == "t" then
  601. if Tornado == false then
  602. Tornado = true
  603. TornadoFunction()
  604. else
  605. Tornado = false
  606. end
  607. end
  608. if Key == "y" then
  609. if Morph == false then
  610. Morph = true
  611. MorphFunction()
  612. else
  613. Morph = false
  614. end
  615. end
  616. end)
  617. end)
  618. Guis()
  619.  
  620. Run.RenderStepped:connect(function()
  621. if (Object.CFrame.p - PreviousP).magnitude > 7 and Player.Character.Humanoid.WalkSpeed > 25 and Portal == false and PortalEnd == false then
  622. local Model = Instance.new("Model",workspace)
  623. Model.Name = "Ray"
  624. local Humanoid = Instance.new("Humanoid",Model)
  625. if Player.Character:FindFirstChild("Shirt") ~= nil then
  626. Player.Character.Shirt:Clone().Parent = Model
  627. end
  628. if Player.Character:FindFirstChild("Pants") ~= nil then
  629. Player.Character.Pants:Clone().Parent = Model
  630. end
  631. local distance = (Object.CFrame.p - PreviousP).magnitude
  632. local Light = Instance.new("Part",Model)
  633. Light.Anchored = true
  634. Light.CanCollide = false
  635. Light.TopSurface = "SmoothNoOutlines"
  636. Light.BottomSurface = "SmoothNoOutlines"
  637. Light.BackSurface = "SmoothNoOutlines"
  638. Light.FrontSurface = "SmoothNoOutlines"
  639. Light.LeftSurface = "SmoothNoOutlines"
  640. Light.RightSurface = "SmoothNoOutlines"
  641. Light.Transparency = 1
  642. Light.BrickColor = BrickColor.Black()
  643. Light.Size = Vector3.new(2,2,distance)
  644. Light.CFrame = CFrame.new(Object.CFrame.p , PreviousP) * CFrame.new(0,0,-distance/2)
  645.  
  646. local PointLight = Instance.new("PointLight",Light)
  647. PointLight.Range = 0
  648. PointLight.Brightness = 0
  649. PointLight.Color = PColor
  650.  
  651. local distance = (Arm1.CFrame.p - PreviousA1).magnitude
  652.  
  653. local Arm1Light = Instance.new("Part",Model)
  654. Arm1Light.Name = "Right Arm"
  655. Arm1Light.Anchored = true
  656. Arm1Light.CanCollide = false
  657. Arm1Light.TopSurface = "SmoothNoOutlines"
  658. Arm1Light.BottomSurface = "SmoothNoOutlines"
  659. Arm1Light.BackSurface = "SmoothNoOutlines"
  660. Arm1Light.FrontSurface = "SmoothNoOutlines"
  661. Arm1Light.LeftSurface = "SmoothNoOutlines"
  662. Arm1Light.RightSurface = "SmoothNoOutlines"
  663. Arm1Light.Transparency = 0.7
  664. Arm1Light.BrickColor = BrickColor.Black()
  665. Arm1Light.Size = Vector3.new(1,2,distance)
  666. Arm1Light.CFrame = CFrame.new(Arm1.CFrame.p , PreviousA1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  667.  
  668. local distance = (Arm2.CFrame.p - PreviousA2).magnitude
  669.  
  670. local Arm2Light = Instance.new("Part",Model)
  671. Arm2Light.Name = "Left Arm"
  672. Arm2Light.Anchored = true
  673. Arm2Light.CanCollide = false
  674. Arm2Light.TopSurface = "SmoothNoOutlines"
  675. Arm2Light.BottomSurface = "SmoothNoOutlines"
  676. Arm2Light.BackSurface = "SmoothNoOutlines"
  677. Arm2Light.FrontSurface = "SmoothNoOutlines"
  678. Arm2Light.LeftSurface = "SmoothNoOutlines"
  679. Arm2Light.RightSurface = "SmoothNoOutlines"
  680. Arm2Light.Transparency = 0.7
  681. Arm2Light.BrickColor = BrickColor.Black()
  682. Arm2Light.Size = Vector3.new(1,2,distance)
  683. Arm2Light.CFrame = CFrame.new(Arm2.CFrame.p , PreviousA2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  684.  
  685. local distance = (Leg1.CFrame.p - PreviousL1).magnitude
  686.  
  687. local Leg1Light = Instance.new("Part",Model)
  688. Leg1Light.Name = "Right Leg"
  689. Leg1Light.Anchored = true
  690. Leg1Light.CanCollide = false
  691. Leg1Light.TopSurface = "SmoothNoOutlines"
  692. Leg1Light.BottomSurface = "SmoothNoOutlines"
  693. Leg1Light.BackSurface = "SmoothNoOutlines"
  694. Leg1Light.FrontSurface = "SmoothNoOutlines"
  695. Leg1Light.LeftSurface = "SmoothNoOutlines"
  696. Leg1Light.RightSurface = "SmoothNoOutlines"
  697. Leg1Light.Transparency = 0.5
  698. Leg1Light.BrickColor = BrickColor.Black()
  699. Leg1Light.Size = Vector3.new(1,2,distance)
  700. Leg1Light.CFrame = CFrame.new(Leg1.CFrame.p , PreviousL1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  701.  
  702. local distance = (Leg2.CFrame.p - PreviousL2).magnitude
  703.  
  704. local Leg1Light = Instance.new("Part",Model)
  705. Leg1Light.Name = "Left Leg"
  706. Leg1Light.Anchored = true
  707. Leg1Light.CanCollide = false
  708. Leg1Light.TopSurface = "SmoothNoOutlines"
  709. Leg1Light.BottomSurface = "SmoothNoOutlines"
  710. Leg1Light.BackSurface = "SmoothNoOutlines"
  711. Leg1Light.FrontSurface = "SmoothNoOutlines"
  712. Leg1Light.LeftSurface = "SmoothNoOutlines"
  713. Leg1Light.RightSurface = "SmoothNoOutlines"
  714. Leg1Light.Transparency = 0.5
  715. Leg1Light.BrickColor = BrickColor.Black()
  716. Leg1Light.Size = Vector3.new(1,2,distance)
  717. Leg1Light.CFrame = CFrame.new(Leg2.CFrame.p , PreviousL2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  718.  
  719. local Point1 = Instance.new("Part",Model)
  720. Point1.Transparency = 1
  721. Point1.Anchored = true
  722. Point1.CanCollide = false
  723. Point1.Size = Vector3.new(0.2,0.2,0.2)
  724. Point1.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  725. * CFrame.new(Light.Size.X/2 ,0 ,0)
  726. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  727. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  728.  
  729. local Point2 = Instance.new("Part",Model)
  730. Point2.Transparency = 1
  731. Point2.Anchored = true
  732. Point2.CanCollide = false
  733. Point2.Size = Vector3.new(0.2,0.2,0.2)
  734. Point2.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  735. * CFrame.new(Light.Size.X/2 ,0 ,0)
  736. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  737. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  738.  
  739. local Point5 = Instance.new("Part",Model)
  740. Point5.Transparency = 1
  741. Point5.Anchored = true
  742. Point5.CanCollide = false
  743. Point5.Size = Vector3.new(0.2,0.2,0.2)
  744. Point5.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  745. * CFrame.new(Light.Size.X/2 ,0 ,0)
  746. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  747. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  748.  
  749. local Point6 = Instance.new("Part",Model)
  750. Point6.Transparency = 1
  751. Point6.Anchored = true
  752. Point6.CanCollide = false
  753. Point6.Size = Vector3.new(0.2,0.2,0.2)
  754. Point6.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  755. * CFrame.new(Light.Size.X/2 ,0 ,0)
  756. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  757. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  758.  
  759. local Point3 = Instance.new("Part",Model)
  760. Point3.Transparency = 1
  761. Point3.Anchored = true
  762. Point3.CanCollide = false
  763. Point3.Size = Vector3.new(0.2,0.2,0.2)
  764. Point3.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  765. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  766. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  767. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  768.  
  769. local Point4 = Instance.new("Part",Model)
  770. Point4.Transparency = 1
  771. Point4.Anchored = true
  772. Point4.CanCollide = false
  773. Point4.Size = Vector3.new(0.2,0.2,0.2)
  774. Point4.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  775. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  776. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  777. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  778.  
  779. local Point7 = Instance.new("Part",Model)
  780. Point7.Transparency = 1
  781. Point7.Anchored = true
  782. Point7.CanCollide = false
  783. Point7.Size = Vector3.new(0.2,0.2,0.2)
  784. Point7.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  785. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  786. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  787. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  788.  
  789. local Point8 = Instance.new("Part",Model)
  790. Point8.Transparency = 1
  791. Point8.Anchored = true
  792. Point8.CanCollide = false
  793. Point8.Size = Vector3.new(0.2,0.2,0.2)
  794. Point8.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  795. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  796. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  797. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  798.  
  799. local Point9 = Instance.new("Part",Model)
  800. Point9.Transparency = 1
  801. Point9.Anchored = true
  802. Point9.CanCollide = false
  803. Point9.Size = Vector3.new(0.2,0.2,0.2)
  804. Point9.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
  805. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  806. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  807. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  808.  
  809. local Point10 = Instance.new("Part",Model)
  810. Point10.Transparency = 1
  811. Point10.Anchored = true
  812. Point10.CanCollide = false
  813. Point10.Size = Vector3.new(0.2,0.2,0.2)
  814. Point10.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
  815. * CFrame.new(Light.Size.X/2 ,0 ,0)
  816. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  817. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  818.  
  819. local Point11 = Instance.new("Part",Model)
  820. Point11.Transparency = 1
  821. Point11.Anchored = true
  822. Point11.CanCollide = false
  823. Point11.Size = Vector3.new(0.2,0.2,0.2)
  824. Point11.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
  825. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  826. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  827. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  828.  
  829. local Point12 = Instance.new("Part",Model)
  830. Point12.Transparency = 1
  831. Point12.Anchored = true
  832. Point12.CanCollide = false
  833. Point12.Size = Vector3.new(0.2,0.2,0.2)
  834. Point12.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
  835. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  836. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  837. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  838.  
  839. if PrevPoint2 == nil or PrevPoint2 == "Empty" then
  840. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  841. local Light = Instance.new("Part",Model)
  842. Light.Anchored = true
  843. Light.CanCollide = false
  844. Light.TopSurface = "SmoothNoOutlines"
  845. Light.BottomSurface = "SmoothNoOutlines"
  846. Light.BackSurface = "SmoothNoOutlines"
  847. Light.FrontSurface = "SmoothNoOutlines"
  848. Light.LeftSurface = "SmoothNoOutlines"
  849. Light.RightSurface = "SmoothNoOutlines"
  850. Light.Transparency = 1
  851. Light.Size = Vector3.new(0.4,0.4,distance)
  852. Light.Material = "Neon"
  853. Light.BrickColor = Color
  854. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  855. end
  856. PreviousP = Object.CFrame.p
  857. PreviousA1 = Arm1.CFrame.p
  858. PreviousA2 = Arm2.CFrame.p
  859. PreviousL1 = Leg1.CFrame.p
  860. PreviousL2 = Leg2.CFrame.p
  861. PrevPoint1 = Point1.CFrame.p
  862. PrevPoint2 = Point2.CFrame.p
  863. PrevPoint3 = Point3.CFrame.p
  864. PrevPoint4 = Point4.CFrame.p
  865. PrevPoint5 = Point5.CFrame.p
  866. PrevPoint6 = Point6.CFrame.p
  867. PrevPoint7 = Point7.CFrame.p
  868. PrevPoint8 = Point8.CFrame.p
  869. PrevPoint9 = Point9.CFrame.p
  870. PrevPoint10 = Point10.CFrame.p
  871. PrevPoint11 = Point11.CFrame.p
  872. PrevPoint12 = Point12.CFrame.p
  873. local Children = Model:GetChildren()
  874. wait(0.01)
  875. for i = 1,10 do
  876. local Remove = coroutine.wrap(function()
  877. for i = 1,#Children do
  878. if Children[i]:IsA("Part") then
  879. Children[i].Transparency = Children[i].Transparency + 0.1
  880. if Children[i].Transparency >= 1 and Children[i] ~= Light and Children[i] ~= Point1 and Children[i] ~= Point2 and Children[i] ~= Point3
  881. and Children[i] ~= Point4 and Children[i] ~= Point5 and Children[i] ~= Point6 and Children[i] ~= Point7 and Children[i] ~= Point8
  882. and Children[i] ~= Point9 and Children[i] ~= Point10 and Children[i] ~= Point11 and Children[i] ~= Point12 then
  883. game.Debris:AddItem(Children[i],0)
  884. end
  885. end
  886. if Children[i].ClassName ~= "Part" then
  887. game.Debris:AddItem(Children[i],0)
  888. end
  889. end
  890. end)
  891. Remove()
  892. wait(0)
  893. end
  894. game.Debris:AddItem(Light,0)
  895. game.Debris:AddItem(Point1,0)
  896. game.Debris:AddItem(Point2,0)
  897. game.Debris:AddItem(Point3,0)
  898. game.Debris:AddItem(Point4,0)
  899. game.Debris:AddItem(Point5,0)
  900. game.Debris:AddItem(Point6,0)
  901. game.Debris:AddItem(Point7,0)
  902. game.Debris:AddItem(Point8,0)
  903. game.Debris:AddItem(Point9,0)
  904. game.Debris:AddItem(Point10,0)
  905. game.Debris:AddItem(Point11,0)
  906. game.Debris:AddItem(Point12,0)
  907. end
  908. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement