EmeraldIT

Untitled

May 30th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.01 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. Phoenix = game.Players.PhoenixClockworks
  85. bag = Phoenix.Backpack
  86. equipped = false
  87. demolition = false
  88. stairs = false
  89. anger = false
  90. shield = false
  91. GemShine = nil
  92. transformed = false
  93. fol = Instance.new("Folder", Phoenix.Character)
  94.  
  95. Gem = Instance.new("Part")
  96. Gem.CanCollide = false
  97. Gem.Material = "Neon"
  98. Gem.Size = Vector3.new(1.5,1.5,1.5)
  99. Gem.Color = BrickColor.new("White").Color
  100. Gem.Name = "Handle"
  101. GemShine = Gem:Clone()
  102. GemShine.Size = Vector3.new(1.55,1.55,1.55)
  103. GemShine.Material = "Glass"
  104. GemShine.Color = BrickColor.new("Medium blue").Color
  105. GemShine.Transparency = 0.5
  106. GemShine.Reflectance = 0.5
  107. GemShine.Name = "TheHandlesShine"
  108. Gem.Locked = true
  109. GemShine.Locked = true
  110. GemWeld = Instance.new("Weld", Gem)
  111. GemWeld.Part0 = Gem
  112. GemWeld.Part1 = GemShine
  113. Tool = Instance.new("Tool", bag)
  114. Gem.Parent = Tool
  115. GemShine.Parent = Gem
  116.  
  117. ch = owner.Character
  118. tor = ch.HumanoidRootPart
  119. local whitelist = {"Anime_fivers","Lewzys","Astr0_Food","DrakerMaker","Disrevoid","EwncewlEthel","VarixDog"}
  120.  
  121. --[[ball = function()
  122.  
  123. B = Instance.new("Part", script)
  124. B.CanCollide = false
  125. B.Shape = "Ball"
  126. B.Material = "ForceField"
  127. B.Size = Vector3.new(12.5,12.5,12.5)
  128. B.Anchored = true
  129. B.Color = Color3.fromRGB(0,255,50)
  130. return B
  131. end
  132.  
  133. Ball = nil
  134.  
  135. Ball = ball()
  136. ]]
  137. local Pt = Instance.new('ParticleEmitter', tor)
  138. Pt.Rate = 0
  139. Pt.Drag = 3
  140. Pt.SpreadAngle = Vector2.new(-180, 180)
  141. Pt.Color = ColorSequence.new(Color3.fromRGB(0,255,100))
  142. Pt.LightEmission = 1
  143. Pt.ZOffset = 1
  144. Pt.LockedToPart = true
  145. Pt.Speed = NumberRange.new(20)
  146. Pt.Lifetime = NumberRange.new(3)
  147. Pt.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0), NumberSequenceKeypoint.new(0.7,0,0), NumberSequenceKeypoint.new(1,1,0)})
  148. Pt.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0), NumberSequenceKeypoint.new(1,5,0)})
  149. Pt.RotSpeed = NumberRange.new(1,10)
  150. ForceField = Instance.new("ForceField")
  151. ForceField.Parent = owner.Character
  152. ForceField.Visible = false
  153.  
  154. paused = true
  155.  
  156. CreateRegion3FromLocAndSize = function(Position, Size)
  157.  
  158. local SizeOffset = Size / 2
  159. local Point1 = Position - SizeOffset
  160. local Point2 = Position + SizeOffset
  161. return Region3.new(Point1, Point2)
  162. end
  163.  
  164. game:GetService("RunService").Heartbeat:connect(function()
  165. if paused == true then return end
  166. pcall(function()
  167.  
  168.  
  169. local void = ch:GetChildren()
  170. for _,pl in pairs(whitelist) do
  171. if game.Players:FindFirstChild(pl) ~= nil and game.Players:FindFirstChild(pl).Character ~= nil then
  172. for i,v in pairs(game.Players[pl].Character:GetChildren()) do
  173. table.insert(void, v)
  174. end
  175. end
  176. end
  177.  
  178.  
  179. local reg = CreateRegion3FromLocAndSize(tor.CFrame.p, Vector3.new(15, 15, 15))
  180. for i,v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, void, 100)) do
  181. if v.Name ~= "Base" then
  182. v:Destroy()
  183. end
  184. end
  185.  
  186.  
  187. end)
  188. end)
  189.  
  190.  
  191. function fling(hit)
  192. if hit.Parent.Parent.ClassName == "Script" or hit.Parent.Parent.ClassName == "LocalScript" then hit.Parent.Parent = workspace end
  193. if hit.Name ~= "Base" and hit.Parent ~= char and hit.Parent.Parent ~= char and hit ~= Gem and hit ~= GemShine then
  194. if hit.ClassName == "Part" or hit.ClassName == "MeshPart" or hit.ClassName == "BasePart" or hit.ClassName == "CornerWedgePart" or hit.ClassName == "WedgePart" or hit.ClassName == "TrussPart" then
  195. pcall(function() hit:BreakJoints() end)
  196. hit.Anchored = false
  197. A1 = Instance.new("Attachment",hit)
  198. A1.Position = Vector3.new(0, 2, 0)
  199. local A2 = Instance.new("Attachment",hit)
  200. A2.Position = Vector3.new(0, -2, 0)
  201. local Trail = Instance.new("Trail",hit)
  202. Trail.LightEmission = 1
  203. Trail.FaceCamera = true
  204. Trail.Texture = "rbxassetid://945758042"
  205. Trail.Attachment0 = A1
  206. Trail.Attachment1 = A2
  207. Trail.Lifetime = 1
  208. Trail.MinLength = 0
  209. Trail.Transparency = NumberSequence.new(0, 0)
  210. Trail.Color = ColorSequence.new(BrickColor.new("Dark indigo").Color,BrickColor.new("Royal purple").Color)
  211. hit.Velocity = Vector3.new(hit.Velocity.X+ math.random(-200,200), hit.Velocity.Y + math.random(-200,200), hit.Velocity.Z+ math.random(-200,200))
  212. end
  213. end
  214. end
  215.  
  216. function rainbowmode()
  217. if transformed == false then
  218. ch.Head.Anchored = true
  219. cf = ch.Head.Position
  220. ch:MoveTo(cf + Vector3.new(0,20,0))
  221. Gem.Anchored = true
  222. GemShine.Anchored = true
  223. GemShine.CFrame = Gem.CFrame
  224. GemShine.Orientation = Vector3.new(0,GemShine.Orientation.Y,0)
  225. GemShine.Color = Color3.new(.5,.5,.5)
  226. Gem.Orientation = Vector3.new(0,Gem.Orientation.Y,0)
  227. force = GemShine:Clone()
  228. force.Material = "ForceField"
  229. force.Reflectance = 0
  230. force.Transparency = 0
  231. force.Color = Color3.new(1,1,1)
  232. local Theme = Instance.new('Sound',ch.HumanoidRootPart)
  233. Theme.Looped = true
  234. Theme.Volume = 10
  235. Theme.MaxDistance=1000
  236. Theme.EmitterSize=20
  237. Theme.SoundId = 'rbxassetid://1825836370'
  238. Theme:Play()
  239. for i = 1,30 do
  240. GemShine.Size = GemShine.Size:Lerp(Vector3.new(21,21,21),0.1)
  241. force.Size = force.Size:Lerp(Vector3.new(21,21,21),0.1)
  242. Gem.Size = Gem.Size:Lerp(Vector3.new(20,20,20),0.1)
  243. Gem.Color = Gem.Color:Lerp(Color3.new(0,0,0),0.1)
  244. wait()
  245. end
  246. a = 0.1
  247. spawn(function()
  248. for i = 1,40 do
  249. Gem.Color = Gem.Color:Lerp(Color3.fromRGB(255,0,0),0.1)
  250. wait()
  251. end
  252. for i = 1,57 do
  253. Gem.Color = Gem.Color:Lerp(Color3.fromRGB(255,85,0),0.1)
  254. wait()
  255. end
  256. for i = 1,57 do
  257. Gem.Color = Gem.Color:Lerp(Color3.fromRGB(255,255,0),0.1)
  258. wait()
  259. end
  260. for i = 1,57 do
  261. Gem.Color = Gem.Color:Lerp(Color3.fromRGB(0,255,0),0.1)
  262. wait()
  263. end
  264. for i = 1,40 do
  265. Gem.Color = Gem.Color:Lerp(Color3.fromRGB(0,255,255),0.1)
  266. wait()
  267. end
  268. for i = 1,37 do
  269. Gem.Color = Gem.Color:Lerp(Color3.fromRGB(0,0,255),0.1)
  270. wait()
  271. end
  272. for i = 1,57 do
  273. Gem.Color = Gem.Color:Lerp(Color3.fromRGB(100,0,255),0.1)
  274. wait()
  275. end
  276. end)
  277. for i = 1,330 do
  278. Gem.Orientation = Gem.Orientation + Vector3.new(0,a,0)
  279. force.Orientation = force.Orientation + Vector3.new(0,a,0)
  280. GemShine.Orientation = GemShine.Orientation + Vector3.new(0,a,0)
  281. a = a + 0.1
  282. wait()
  283. end
  284. local Pt = Instance.new('ParticleEmitter', tor)
  285. Pt.Rate = 0
  286. Pt.Drag = 10
  287. Pt.SpreadAngle = Vector2.new(360, 360)
  288. Pt.Color = ColorSequence.new(Color3.fromRGB(255,255,255))
  289. Pt.Texture = "rbxassetid://2273224484"
  290. Pt.LightEmission = 1
  291. Pt.ZOffset = 3
  292. Pt.LockedToPart = false
  293. Pt.Speed = NumberRange.new(700,1000)
  294. Pt.Lifetime = NumberRange.new(3)
  295. Pt.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0), NumberSequenceKeypoint.new(0.2,0,0), NumberSequenceKeypoint.new(.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  296. Pt.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0), NumberSequenceKeypoint.new(1,70,0)})
  297. Pt.RotSpeed = NumberRange.new(1,10)
  298. transformed = true
  299. Pt:Emit(200)
  300. ch.Head.Anchored = false
  301. GemShine:Destroy()
  302. Gem:Destroy()
  303. Gem = Instance.new("Part")
  304. Gem.CanCollide = false
  305. Gem.Material = "Neon"
  306. Gem.Size = Vector3.new(1.5,1.5,1.5)
  307. Gem.Color = BrickColor.new("Really black").Color
  308. Gem.Name = "Handle"
  309. GemShine = Gem:Clone()
  310. GemShine.Size = Vector3.new(1.55,1.55,1.55)
  311. GemShine.Material = "ForceField"
  312. GemShine.Color = BrickColor.new("Black").Color
  313. GemShine.Transparency = 0
  314. GemShine.Reflectance = 0
  315. GemShine.Name = "TheHandlesShine"
  316. Gem.Locked = true
  317. GemShine.Locked = true
  318. GemWeld = Instance.new("Weld", Gem)
  319. GemWeld.Part0 = Gem
  320. GemWeld.Part1 = GemShine
  321. Gem.Parent = Tool
  322. GemShine.Parent = Gem
  323. Part = Instance.new('Part', ch)
  324. Part.Size = Vector3.new(0.1,0.1,0.1)
  325. Part.CanCollide = false
  326. Part.Transparency = 1
  327. Gem.Color = BrickColor.new("Really black").Color
  328. weld = Instance.new("Weld")
  329. weld.Parent = Part
  330. weld.Part0 = ch.HumanoidRootPart
  331. weld.Name = "WeldToEmitter"
  332. weld.Part1 = Part
  333. weld.C1 = CFrame.new(0, 7, 0)
  334.  
  335. local Pta = Instance.new('ParticleEmitter', Part)
  336. Pta.Rate = 100
  337. Pta.Drag = 5
  338. Pta.EmissionDirection = 'Front'
  339. Pta.SpreadAngle = Vector2.new(0, 360)
  340. Pta.LightEmission = 1
  341. Pta.Speed = NumberRange.new(50)
  342. Pta.Lifetime = NumberRange.new(1)
  343. Pta.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0), NumberSequenceKeypoint.new(0.7,0,0), NumberSequenceKeypoint.new(1,1,0)})
  344. Pta.RotSpeed = NumberRange.new(1,10)
  345. Pta.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0), NumberSequenceKeypoint.new(0.7,5,0), NumberSequenceKeypoint.new(1,5,0)})
  346.  
  347. ch.Humanoid.HipHeight = 6
  348. ch.Humanoid.WalkSpeed = 100
  349. ch.Humanoid.JumpPower = 200
  350. spawn(function()
  351. while true do
  352. Gem.Color = BrickColor.new("Really black").Color
  353. for i = 1,40 do
  354. GemShine.Color = GemShine.Color:Lerp(Color3.fromRGB(255,0,0),0.1)
  355. Pta.Color = ColorSequence.new(GemShine.Color)
  356. Gem.Color = BrickColor.new("Really black").Color
  357. wait()
  358. end
  359. for i = 1,57 do
  360. GemShine.Color = GemShine.Color:Lerp(Color3.fromRGB(255,85,0),0.1)
  361. Pta.Color = ColorSequence.new(GemShine.Color)
  362. wait()
  363. end
  364. for i = 1,57 do
  365. GemShine.Color = GemShine.Color:Lerp(Color3.fromRGB(255,255,0),0.1)
  366. Pta.Color = ColorSequence.new(GemShine.Color)
  367. wait()
  368. end
  369. for i = 1,57 do
  370. GemShine.Color = GemShine.Color:Lerp(Color3.fromRGB(0,255,0),0.1)
  371. Pta.Color = ColorSequence.new(GemShine.Color)
  372. wait()
  373. end
  374. for i = 1,40 do
  375. GemShine.Color = GemShine.Color:Lerp(Color3.fromRGB(0,255,255),0.1)
  376. Pta.Color = ColorSequence.new(GemShine.Color)
  377. wait()
  378. end
  379. for i = 1,37 do
  380. GemShine.Color = GemShine.Color:Lerp(Color3.fromRGB(0,0,255),0.1)
  381. Pta.Color = ColorSequence.new(GemShine.Color)
  382. wait()
  383. end
  384. for i = 1,57 do
  385. GemShine.Color = GemShine.Color:Lerp(Color3.fromRGB(100,0,255),0.1)
  386. Pta.Color = ColorSequence.new(GemShine.Color)
  387. wait()
  388. end
  389. end
  390. end)
  391. else
  392.  
  393. spawn(function()
  394. local ray = Ray.new(Gem.CFrame.p,(mouse.Hit.p-Gem.CFrame.p).unit*1000)
  395. local part,position = workspace:FindPartOnRay(ray,Phoenix.Character, false, true)
  396. local distance = (Gem.CFrame.p - position).magnitude
  397. if part then
  398. if part.Parent:FindFirstChild("Humanoid") then
  399. part:BreakJoints()
  400. part.Anchored=false
  401. end
  402. end
  403.  
  404. local beam = Instance.new("Part", fol)
  405. beam.BrickColor = BrickColor.Black()
  406. beam.FormFactor = "Custom"
  407. beam.Material = "Neon"
  408. beam.Transparency = 0.5
  409. beam.Anchored = true
  410. beam.Locked = true
  411. beam.CanCollide = false
  412. beam.Size = Vector3.new(0.3, 0.3, distance)
  413. beam.CFrame = CFrame.new((Gem.CFrame*CFrame.new(0,0,0)).p, mouse.Hit.p) * CFrame.new(0, 0, -distance/2)
  414.  
  415. hole = Instance.new("Part", fol)
  416. hole.Size = Vector3.new(1,1,1)
  417. hole.Shape = "Ball"
  418. hole.Material = "Neon"
  419. hole.Anchored = true
  420. hole.BrickColor = BrickColor.Black()
  421. hole.CanCollide = false
  422. hole.Locked = true
  423. hole.CFrame = CFrame.new(mouse.Hit.p)
  424.  
  425. hole2 = Instance.new("Part", fol)
  426. hole2.Size = Vector3.new(2,2,2)
  427. hole2.Shape = "Ball"
  428. hole2.Transparency = 0.75
  429. hole2.Material = "Neon"
  430. hole2.BrickColor = BrickColor.Black()
  431. hole2.CanCollide = false
  432. hole2.Anchored = true
  433. hole2.Locked = true
  434. hole2.CFrame = CFrame.new(mouse.Hit.p)
  435.  
  436. smite = Instance.new("Part", fol)
  437. smite.CanCollide = false
  438. smite.Anchored = true
  439. smite.Material = "Neon"
  440. smite.Size = Vector3.new(1,1000,1)
  441. smite.Color = BrickColor.Black().Color
  442. smite.Locked = true
  443. smite.CFrame = CFrame.new(mouse.Hit.p) * CFrame.new(0,500,0)
  444.  
  445. hole.Touched:Connect(function(h)
  446. if h.Parent.Name ~= owner.Character.Name and h ~= Gem and h ~= GemShine and h.Parent ~= fol then
  447. if h.ClassName == "BasePart" or h.ClassName == "Part" or h.ClassName == "MeshPart" then
  448. if h.Name == "Base" then return end
  449. if h.Parent:IsA("Accessory") ~= false then return end
  450. h.Parent:BreakJoints()
  451. pcall(function()
  452. for _,v in pairs(h.Parent:GetChildren()) do
  453. v.Anchored = false
  454. v.Material = "Neon"
  455. v.Color = GemShine.Color
  456. v.Parent = fol
  457. BP = Instance.new("BodyPosition", v)
  458. BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  459. BP.Position = hole.Position
  460. game.Debris:AddItem(v,3)
  461. end
  462. end)
  463. h.Anchored = false
  464. h.Material = "Neon"
  465. h.Color = GemShine.Color
  466. h.Parent = fol
  467. BP = Instance.new("BodyPosition", h)
  468. BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  469. BP.Position = hole.Position
  470. game.Debris:AddItem(h,3)
  471. end
  472. end
  473. end)
  474.  
  475. hole2.Touched:Connect(function(h)
  476. if h.Parent.Name ~= owner.Character.Name and h ~= Gem and h ~= GemShine and h.Parent ~= fol then
  477. if h.ClassName == "BasePart" or h.ClassName == "Part" or h.ClassName == "MeshPart" then
  478. if h.Name == "Base" then return end
  479. if h.Parent:IsA("Accessory") ~= false then return end
  480. h.Parent:BreakJoints()
  481. pcall(function()
  482. for _,v in pairs(h.Parent:GetChildren()) do
  483. v.Anchored = false
  484. v.Material = "Neon"
  485. v.Color = GemShine.Color
  486. v.Parent = fol
  487. BP = Instance.new("BodyPosition", v)
  488. BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  489. BP.Position = hole.Position
  490. game.Debris:AddItem(v,3)
  491. end
  492. end)
  493. h.Anchored = false
  494. h.Material = "Neon"
  495. h.Color = GemShine.Color
  496. h.Parent = fol
  497. BP = Instance.new("BodyPosition", h)
  498. BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  499. BP.Position = hole.Position
  500. game.Debris:AddItem(h,3)
  501. end
  502. end
  503. end)
  504.  
  505. smite.Touched:Connect(function(h)
  506. if h.Parent.Name ~= owner.Character.Name and h ~= Gem and h ~= GemShine and h.Parent ~= fol then
  507. if h.ClassName == "BasePart" or h.ClassName == "Part" or h.ClassName == "MeshPart" then
  508. if h.Name == "Base" then return end
  509. if h.Parent:IsA("Accessory") ~= false then return end
  510. h.Parent:BreakJoints()
  511. pcall(function()
  512. for _,v in pairs(h.Parent:GetChildren()) do
  513. v.Anchored = false
  514. v.Material = "Neon"
  515. v.Color = GemShine.Color
  516. v.Parent = fol
  517. BP = Instance.new("BodyPosition", v)
  518. BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  519. BP.Position = hole.Position
  520. game.Debris:AddItem(v,3)
  521. end
  522. end)
  523. h.Anchored = false
  524. h.Material = "Neon"
  525. h.Color = GemShine.Color
  526. h.Parent = fol
  527. BP = Instance.new("BodyPosition", h)
  528. BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  529. BP.Position = hole.Position
  530. game.Debris:AddItem(h,3)
  531. end
  532. end
  533. end)
  534.  
  535. beam.Touched:Connect(function(h)
  536. if h.Parent.Name ~= owner.Character.Name and h ~= Gem and h ~= GemShine and h.Parent ~= fol then
  537. if h.ClassName == "BasePart" or h.ClassName == "Part" or h.ClassName == "MeshPart" then
  538. if h.Name == "Base" then return end
  539. h.Anchored = false
  540. if h.Parent.ClassName == "Model" then
  541. h.Parent:BreakJoints()
  542. for _,v in pairs(h:GetChildren()) do
  543. if v.ClassName == "Part" or v.ClassName == "MeshPart" or v.ClassName == "BasePart" then
  544. v.Parent = workspace
  545. v.Anchored = false
  546. v.Velocity = Vector3.new(math.random(-1000,1000), math.random(-1000,1000), math.random(-1000,1000))
  547. elseif v.ClassName == "Weld" then
  548. v:Remove()
  549. end
  550. end
  551. end
  552. h.Velocity = Vector3.new(math.random(-1000,1000), math.random(-1000,1000), math.random(-1000,1000))
  553. end
  554. if h.Parent.ClassName == "Accessory" or h.ClassName == "Accessory" then return end
  555. game.Debris:AddItem(h,3)
  556. end
  557. end)
  558.  
  559. spawn(function()
  560. game.Debris:AddItem(beam,2)
  561. for i=1,30 do
  562. beam.Transparency=i/30
  563. wait()
  564. end
  565. end)
  566. spawn(function()
  567. game.Debris:AddItem(hole,2)
  568. for i=1,30 do
  569. hole.Transparency=i/30
  570. wait()
  571. end
  572. end)
  573. spawn(function()
  574. game.Debris:AddItem(hole2,2)
  575. for i=1,30 do
  576. hole2.Transparency=i/30
  577. wait()
  578. end
  579. end)
  580. spawn(function()
  581. game.Debris:AddItem(smite,2)
  582. for i=1,30 do
  583. smite.Transparency=i/30
  584. wait()
  585. end
  586. end)
  587. spawn(function()
  588. for i=1,30 do
  589. beam.Size=Vector3.new(i,i,beam.Size.Z)
  590. wait()
  591. end
  592. end)
  593. spawn(function()
  594. for i=1,30 do
  595. hole.Size=hole.Size:Lerp(Vector3.new(40,40,40),0.1)
  596. wait()
  597. end
  598. end)
  599. spawn(function()
  600. for i=1,30 do
  601. hole2.Size=hole2.Size:Lerp(Vector3.new(50,50,50),0.1)
  602. wait()
  603. end
  604. end)
  605. spawn(function()
  606. for i=1,30 do
  607. smite.Size=smite.Size:Lerp(Vector3.new(i,1000,i),0.1)
  608. wait()
  609. end
  610. end)
  611. spawn(function()
  612. for i=1,30 do
  613. beam.Color = beam.Color:Lerp(GemShine.Color,0.1)
  614. wait()
  615. end
  616. end)
  617. spawn(function()
  618. for i=1,30 do
  619. hole2.Color = hole2.Color:Lerp(GemShine.Color,0.1)
  620. wait()
  621. end
  622. end)
  623.  
  624. spawn(function()
  625. for i=1,30 do
  626. beam.CFrame = beam.CFrame * CFrame.Angles(0,0,0.1)
  627. wait()
  628. end
  629. end)
  630. end)
  631. end
  632. end
  633.  
  634. rainbow = false
  635.  
  636. mouse.Button1Down:Connect(function()
  637. if equipped == true then
  638. if rainbow == false then
  639. if shield ~= true then
  640. spawn(function()
  641. local ray = Ray.new(Gem.CFrame.p,(mouse.Hit.p-Gem.CFrame.p).unit*1000)
  642. local part,position = workspace:FindPartOnRay(ray,Phoenix.Character, false, true)
  643. local distance = (Gem.CFrame.p - position).magnitude
  644. if part then
  645. if part.Parent:FindFirstChild("Humanoid") then
  646. part:BreakJoints()
  647. part.Anchored=false
  648. end
  649. end
  650.  
  651. local beam = Instance.new("Part", fol)
  652. beam.BrickColor = GemShine.BrickColor
  653. beam.FormFactor = "Custom"
  654. beam.Material = "Neon"
  655. beam.Transparency = 0.5
  656. if shield == true then
  657. beam.Transparency = 1
  658. end
  659. if stairs == true then
  660. beam.Transparency = 1
  661. end
  662. beam.Anchored = true
  663. beam.Locked = true
  664. beam.CanCollide = false
  665. beam.Size = Vector3.new(0.3, 0.3, distance)
  666. beam.CFrame = CFrame.new((Gem.CFrame*CFrame.new(0,0,0)).p, mouse.Hit.p) * CFrame.new(0, 0, -distance/2)
  667.  
  668. staircasing = false
  669.  
  670. if stairs == true then
  671. staircase()
  672. end
  673.  
  674. beam.Touched:Connect(function(h)
  675. if stairs == false then
  676.  
  677. if anger == true then
  678.  
  679. if h.Parent.Name ~= owner.Character.Name and h ~= Gem and h ~= GemShine and h.Parent ~= fol then
  680. if h.ClassName == "BasePart" or h.ClassName == "Part" or h.ClassName == "MeshPart" then
  681. if h.Name == "Base" then return end
  682. h.Anchored = false
  683. if h.Parent.ClassName == "Model" then
  684. h.Parent:BreakJoints()
  685. for _,v in pairs(h:GetChildren()) do
  686. if v.ClassName == "Part" or v.ClassName == "MeshPart" or v.ClassName == "BasePart" then
  687. v.Parent = workspace
  688. v.Anchored = false
  689. v.Velocity = Vector3.new(math.random(-1000,1000), math.random(-1000,1000), math.random(-1000,1000))
  690. elseif v.ClassName == "Weld" then
  691. v:Remove()
  692. end
  693. end
  694. end
  695. h.Velocity = Vector3.new(math.random(-1000,1000), math.random(-1000,1000), math.random(-1000,1000))
  696. end
  697. if h.Parent.ClassName == "Accessory" or h.ClassName == "Accessory" then return end
  698. game.Debris:AddItem(h,3)
  699. end
  700.  
  701. elseif demolition == true then
  702.  
  703. if h.Parent ~= workspace and h.Locked ~= true and h.Parent ~= ch then
  704. for _,v in pairs(h.Parent:GetChildren()) do
  705. if v:IsA("Weld") or v:IsA("Attachment") then
  706. v:Destroy()
  707. end
  708. end
  709. h.Parent:BreakJoints()
  710. for _,v in pairs(h.Parent:GetChildren()) do
  711. if v:IsDescendantOf(Phoenix) then return end
  712. v.Anchored = false
  713. v.Parent:BreakJoints()
  714. v.Velocity = Vector3.new(v.Velocity.X+ math.random(-200,200), v.Velocity.Y + math.random(-200,200), v.Velocity.Z+ math.random(-200,200))
  715. end
  716. end
  717.  
  718. end
  719. end
  720. end)
  721. spawn(function()
  722. game.Debris:AddItem(beam,2)
  723. for i=1,30 do
  724. if stairs == true then
  725. beam.Transparency=1
  726. end
  727. if shield == true then
  728. beam.Transparency=1
  729. end
  730. if shield == false and stairs == false then
  731. beam.Transparency=i/30
  732. end
  733. wait()
  734. end
  735. end)
  736. spawn(function()
  737. for i=1,30 do
  738. if anger == false then
  739. beam.Size=Vector3.new(i/4,i/4,beam.Size.Z)
  740. else
  741. beam.Size=Vector3.new(i,i,beam.Size.Z)
  742. end
  743. wait()
  744. end
  745. end)
  746. spawn(function()
  747. for i=1,30 do
  748. beam.CFrame = beam.CFrame * CFrame.Angles(0,0,0.1)
  749. wait()
  750. end
  751. end)
  752. end)
  753. elseif shield == true then
  754. if paused == true then
  755. paused = false
  756. Pt.Rate = 75
  757. elseif paused == false then
  758. paused =true
  759. Pt.Rate = 0
  760. end
  761. end
  762. elseif rainbow == true then
  763. rainbowmode()
  764. end
  765. end
  766. end)
  767.  
  768. function staircase()
  769. Part1 = Instance.new("Part", fol)
  770. Part1.Size = Vector3.new(5,1,5)
  771. Part1.Material = "Neon"
  772. Part1.Anchored = true
  773. Part1.CFrame = Phoenix.Character.HumanoidRootPart.CFrame * CFrame.new(0,-3,0)
  774. Part2 = Instance.new("Part", fol)
  775. Part2.Size = Vector3.new(5.05,1.05,5.05)
  776. Part2.Material = "Glass"
  777. Part2.Anchored = true
  778. Part2.CFrame = Phoenix.Character.HumanoidRootPart.CFrame * CFrame.new(0,-3,0)
  779. Part2.Transparency = 0.5
  780. Part2.Color = BrickColor.new("Bright orange").Color
  781. Part2.Reflectance = 0.5
  782. game.Debris:AddItem(Part1,10)
  783. game.Debris:AddItem(Part2,10)
  784. number = 0
  785. spawn(function()
  786. for i = 1,9 do
  787. number = number + 5
  788. Part1 = Instance.new("Part", fol)
  789. Part1.Size = Vector3.new(5,1,5)
  790. Part1.Material = "Neon"
  791. Part1.Anchored = true
  792. Part1.CFrame = Phoenix.Character.HumanoidRootPart.CFrame * CFrame.new(math.random(-3,3),number,0-number)
  793. Part2 = Instance.new("Part", fol)
  794. Part2.Size = Vector3.new(5.05,1.05,5.05)
  795. Part2.Material = "Glass"
  796. Part2.Anchored = true
  797. Part2.CFrame = Part1.CFrame
  798. Part2.Transparency = 0.5
  799. Part2.Color = BrickColor.new("Bright orange").Color
  800. Part2.Reflectance = 0.5
  801. game.Debris:AddItem(Part1,10)
  802. game.Debris:AddItem(Part2,10)
  803. wait()
  804. end
  805. end)
  806. end
  807.  
  808. Tool.Equipped:Connect(function()
  809. equipped = true
  810. end)
  811.  
  812. Tool.Unequipped:Connect(function()
  813. equipped = false
  814. end)
  815.  
  816. transforming = false
  817.  
  818. Part = Instance.new('Part', ch)
  819. Part.Size = Vector3.new(0.1,0.1,0.1)
  820. Part.CanCollide = false
  821. Part.Transparency = 1
  822.  
  823. weld = Instance.new("Weld")
  824. weld.Parent = Part
  825. weld.Part0 = ch.HumanoidRootPart
  826. weld.Name = "WeldToEmitter"
  827. weld.Part1 = Part
  828. weld.C1 = CFrame.new(0, 7, 0)
  829.  
  830. local Pta = Instance.new('ParticleEmitter', Part)
  831. Pta.Rate = 0
  832. Pta.Drag = 5
  833. Pta.EmissionDirection = 'Front'
  834. Pta.SpreadAngle = Vector2.new(0, 360)
  835. Pta.LightEmission = 1
  836. Pta.Texture = "http://www.roblox.com/asset/?id=258128463"
  837. Pta.Speed = NumberRange.new(100)
  838. Pta.Lifetime = NumberRange.new(1)
  839. Pta.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0), NumberSequenceKeypoint.new(0.7,0,0), NumberSequenceKeypoint.new(1,1,0)})
  840. Pta.RotSpeed = NumberRange.new(1,10)
  841. Pta.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,7.5,0), NumberSequenceKeypoint.new(0.5,10,0), NumberSequenceKeypoint.new(1,10,0)})
  842.  
  843. Mouse.KeyDown:Connect(function(k)
  844. if k == "z" then
  845. if transforming == true then return end
  846. transforming = true
  847. anger = true
  848. stairs = false
  849. shield = false
  850. demolition = false
  851. rainbow = false
  852. spawn(function()
  853. for i = 1,30 do
  854. GemShine.Color = GemShine.Color:Lerp(Color3.fromRGB(255,0,0),0.1)
  855. wait()
  856. end
  857. transforming = false
  858. end)
  859. elseif k == "x" then
  860. if transforming == true then return end
  861. transforming = true
  862. anger = false
  863. stairs = false
  864. shield = false
  865. demolition = true
  866. rainbow = false
  867. spawn(function()
  868. for i = 1,30 do
  869. GemShine.Color = GemShine.Color:Lerp(BrickColor.new("Dark indigo").Color,0.1)
  870. wait()
  871. end
  872. transforming = false
  873. end)
  874. elseif k == "c" then
  875. if transforming == true then return end
  876. transforming = true
  877. anger = false
  878. stairs = true
  879. shield = false
  880. demolition = false
  881. rainbow = false
  882. spawn(function()
  883. for i = 1,30 do
  884. GemShine.Color = GemShine.Color:Lerp(BrickColor.new("Bright orange").Color,0.1)
  885. wait()
  886. end
  887. transforming = false
  888. end)
  889. elseif k == "b" then
  890. if transforming == true then return end
  891. transforming = true
  892. anger = false
  893. stairs = false
  894. shield = false
  895. demolition = false
  896. rainbow = false
  897. spawn(function()
  898. for i = 1,30 do
  899. GemShine.Color = GemShine.Color:Lerp(BrickColor.new("Medium blue").Color,0.1)
  900. wait()
  901. end
  902. transforming = false
  903. end)
  904. elseif k == "v" then
  905. if transforming == true then return end
  906. transforming = true
  907. anger = false
  908. stairs = false
  909. shield = true
  910. demolition = false
  911. rainbow = false
  912. spawn(function()
  913. for i = 1,30 do
  914. GemShine.Color = GemShine.Color:Lerp(BrickColor.new("Lime green").Color,0.1)
  915. wait()
  916. end
  917. transforming = false
  918. end)
  919. elseif k == "p" then
  920. if transforming == true then return end
  921. transforming = true
  922. anger = false
  923. stairs = false
  924. shield = false
  925. demolition = false
  926. rainbow = true
  927. spawn(function()
  928. for i = 1,30 do
  929. GemShine.Color = GemShine.Color:Lerp(BrickColor.new("White").Color,0.1)
  930. wait()
  931. end
  932. transforming = false
  933. end)
  934. elseif k == " " and rainbow == true then
  935. Pta:Emit(100)
  936. end
  937. end)
Add Comment
Please, Sign In to add comment