Advertisement
EquinoxDiscord

aethr

May 31st, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.73 KB | None | 0 0
  1. local children = script:GetChildren()
  2. script = Instance.new("ModuleScript")
  3. for _, child in pairs(children) do
  4. child.Parent = script
  5. end
  6.  
  7. local module = {}
  8.  
  9. local plrsHave={}
  10.  
  11. function module:Load(plr,Type,color)
  12. --if not game.Workspace:FindFirstChild("WhalerBlink") then
  13. --script.WhalerBlink:Clone().Parent=game.Workspace
  14. -- script.WhalerBlink.Disabled=false
  15. --end
  16. --if checkVIP(plr) then
  17. local asda
  18. asda = game.Players[plr].CharacterAdded:connect(function() game.Players[plr].AetherColor:Destroy() game.Players[plr].AetherType:Destroy() asda:disconnect() end)
  19. if Type=="Aether" or Type=="Glass" then
  20.  
  21. if not game.Players[plr]:FindFirstChild("AetherType") then
  22. local va=Instance.new("StringValue",game.Players[plr])
  23. va.Name="AetherColor"
  24. va.Value=BrickColor.new(color).Name
  25. local va2=Instance.new("StringValue",game.Players[plr])
  26. va2.Name="AetherType"
  27. va2.Value=Type
  28. script.LocalScript:Clone().Parent=game.Players[plr].Backpack
  29. else
  30. game.Players[plr].AetherColor.Value=BrickColor.new(color).Name
  31. game.Players[plr].AetherType.Value=Type
  32. end
  33. elseif Type=="Lucky" then
  34. if not game.Players[plr]:FindFirstChild("AetherType") then
  35. local va=Instance.new("StringValue",game.Players[plr])
  36. va.Name="AetherColor"
  37. va.Value="White"
  38. local va2=Instance.new("StringValue",game.Players[plr])
  39. va2.Name="AetherType"
  40. va2.Value="Lucky"
  41. script.LocalScript:Clone().Parent=game.Players[plr].Backpack
  42. else
  43. game.Players[plr].AetherType.Value="Lucky"
  44. end
  45. elseif Type=="Sand" then
  46. if not game.Players[plr]:FindFirstChild("AetherType") then
  47. local va=Instance.new("StringValue",game.Players[plr])
  48. va.Name="AetherColor"
  49. va.Value="White"
  50. local va2=Instance.new("StringValue",game.Players[plr])
  51. va2.Name="AetherType"
  52. va2.Value="Sand"
  53. script.LocalScript:Clone().Parent=game.Players[plr].Backpack
  54. else
  55. game.Players[plr].AetherType.Value="Lucky"
  56. end
  57. elseif Type=="Mark" then
  58. if not game.Players[plr]:FindFirstChild("AetherType") then
  59. local va=Instance.new("StringValue",game.Players[plr])
  60. va.Name="AetherColor"
  61. va.Value="White"
  62. local va2=Instance.new("StringValue",game.Players[plr])
  63. va2.Name="AetherType"
  64. va2.Value="Mark"
  65. script.LocalScript:Clone().Parent=game.Players[plr].Backpack
  66. else
  67. game.Players[plr].AetherType.Value="Mark"
  68. end
  69. end
  70.  
  71. --[[if color~=nil then
  72. script.Saber.Sheath.Main.BrickColor=BrickColor.new(color)
  73. else
  74. script.Saber.Sheath.Main.BrickColor=BrickColor.new("Black")
  75. end]]
  76. --[[if givemark then
  77. giveTattoo(game.Players[plr].Character)
  78. end]]
  79. -- script.Book:Clone().Parent=game.Players[plr].Backpack
  80. --end
  81. end
  82.  
  83. ----------------player chatted system---------------------------------------------------------------
  84. --[[function Chatted(plr,txt)
  85. if string.lower(string.sub(txt,1,6)) == "/mark " then
  86. module:Load(plr,string.sub(txt,7,string.len(txt)),true)
  87. end
  88. end
  89. local players=game.Players:GetChildren()
  90. for i=1,#players do
  91. if checkVIP(players[i]) then
  92. players[i].Chatted:connect(function(txt)
  93. Chatted(players[i].Name,txt)
  94. end)
  95. end
  96. end
  97. game.Players.PlayerAdded:connect(function(plr)
  98. wait(2)
  99. if checkVIP(game.Players[plr.Name]) then
  100. players[i].Chatted:connect(function(txt)
  101. Chatted(players[i].Name,txt)
  102. end)
  103. end
  104. end)]]
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112. ------------------------------------------------------------------------------------------------------
  113.  
  114.  
  115.  
  116. --AetherColor-----------------------------------------------------------
  117. local CSKP=ColorSequenceKeypoint.new
  118. local BCN=BrickColor.new
  119. local ABS=math.abs
  120. local function nearFloat(number1,number2)
  121. if ABS(number2-number1)>0.01 then return true end
  122. return false
  123. end
  124.  
  125. local function adjustAetherColor(particle,key)
  126. local colors=particle.Color
  127. local newcolor={}
  128. for i=1,#colors.Keypoints do
  129. if nearFloat(key[1], colors.Keypoints[i].Time)then
  130. table.insert(newcolor,CSKP(colors.Keypoints[i].Time,colors.Keypoints[i].Value))
  131. else
  132. table.insert(newcolor,CSKP(key[1],key[2]))
  133. end
  134. end
  135. particle.Color=ColorSequence.new(newcolor)
  136. end
  137. ---------------------------------------------------------------------------
  138.  
  139. local partMem={}
  140. local plrMem={}
  141. local soundid="rbxassetid://218410588"
  142.  
  143. --[[
  144. if not game.ReplicatedStorage:FindFirstChild("WhalerMark") then
  145. local m=Instance.new("RemoteEvent",game.ReplicatedStorage)
  146. m.Name="WhalerMark"
  147. end]]
  148.  
  149. local re=Instance.new("RemoteEvent",game.ReplicatedStorage)
  150. re.Name="AetherEvent"
  151.  
  152. local res=Instance.new("BindableEvent",game.ReplicatedStorage)
  153. res.Name="AetherEventServer"
  154.  
  155. function giveTattoo(chr)
  156. if not chr:FindFirstChild("TheMark") then
  157. local s=script.TheMark:Clone()
  158. s.Parent=chr
  159. s.p1.Anchored=false
  160. local w =Instance.new("Weld")
  161. w.Part0=s.p1
  162. w.Part1=chr["Left Arm"]
  163. w.C0=CFrame.new(0, 0, 0, 1.68614687e-008, -0.963091552, -0.269174099, 1, -1.25006192e-008, 1.07368095e-007, -1.06770152e-007, -0.269174099, 0.963091552)
  164. w.C1=CFrame.new(-0.506748199, -0.594919682, -0.0331473351, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1)
  165. w.Parent=s.p1
  166. end
  167. end
  168. function RecieveMark(p,type)
  169. if type=="Create" then
  170. giveTattoo(p.Character)
  171. elseif type=="Destroy" then
  172. local x=p.Character:FindFirstChild("TheMark")
  173. if x then x:Destroy() end
  174. end
  175. end
  176.  
  177. local function CreateEffect(Part,Type,color)
  178. local effect="Aether"
  179. if Type=="Mark" then
  180. --effects={script:findFirstChild(effect.."1"),script:findFirstChild(effect.."2"),script:findFirstChild(effect.."3"),script:findFirstChild(effect.."4")}
  181. local effects={script:findFirstChild("Mark1"),script:findFirstChild("Mark2"),script:findFirstChild("Mark3"),script:findFirstChild("Mark4")}
  182. for b=1,#effects do
  183.  
  184. local e=effects[b]:Clone()
  185. e.Parent=Part
  186. spawn(function()
  187. for i=1,10 do
  188. wait()
  189. e:Emit(2)
  190. end
  191. end)
  192. game.Debris:AddItem(e,7)
  193. end
  194. elseif Type=="Aether" then
  195. local effects={script:findFirstChild(effect.."1"),script:findFirstChild(effect.."2"),script:findFirstChild(effect.."3"),script:findFirstChild(effect.."4")}
  196. for b=1,#effects do
  197. local e=effects[b]:Clone()
  198. e.Parent=Part
  199. adjustAetherColor(e,{0.298,BCN(color).Color})
  200. spawn(function()
  201. for i=1,10 do
  202. wait()
  203. e:Emit(2)
  204. end
  205. end)
  206. game.Debris:AddItem(e,7)
  207. end
  208. elseif Type=="Lucky" then
  209. effect="Lucky"
  210. local effects={script:findFirstChild(effect.."1"),script:findFirstChild(effect.."2"),script:findFirstChild(effect.."3"),script:findFirstChild(effect.."4")}
  211. for b=1,#effects do
  212. local e=effects[b]:Clone()
  213. e.Parent=Part
  214. local fxcount=2
  215. if b==3 then fxcount=5 end
  216. spawn(function()
  217. for i=1,10 do
  218. wait()
  219. e:Emit(fxcount)
  220. end
  221. end)
  222. game.Debris:AddItem(e,7)
  223. end
  224. elseif Type=="Sand" then
  225. effect="Sand"
  226. local effects={script:findFirstChild(effect.."1"),script:findFirstChild(effect.."2")}
  227. for b=1,#effects do
  228. local e=effects[b]:Clone()
  229. e.Parent=Part
  230. local fxcount=5
  231.  
  232. spawn(function()
  233. for i=1,10 do
  234. wait()
  235. e:Emit(fxcount)
  236. end
  237. end)
  238. game.Debris:AddItem(e,7)
  239. end
  240. elseif Type=="Glass" then
  241. local effects={script:findFirstChild(effect.."1"),script:findFirstChild(effect.."2"),script:findFirstChild(effect.."3"),script:findFirstChild(effect.."4")}
  242. local effects2={script:findFirstChild("Mark1"),script:findFirstChild("Mark2"),script:findFirstChild("Mark3"),script:findFirstChild("Mark4")}
  243. for b=1,#effects do
  244. local e=effects[b]:Clone()
  245. local e2=effects2[b]:Clone()
  246. e.Parent=Part
  247. e2.Parent=Part
  248. adjustAetherColor(e,{0.298,BCN(color).Color})
  249. spawn(function()
  250. for i=1,10 do
  251. wait()
  252. e:Emit(2)
  253. e2:Emit(1)
  254. end
  255. end)
  256. game.Debris:AddItem(e,7)
  257. end
  258. end
  259.  
  260. end
  261. function Hide(m,type,Type,color)
  262.  
  263. local x=m:GetChildren()
  264. for i=1,#x do
  265. Hide(x[i],type)
  266. if type then
  267. if x[i].ClassName=="BillboardGui" or x[i].ClassName=="ParticleEmitter" or x[i].ClassName=="SurfaceGui" or x[i].ClassName=="PointLight" then
  268. partMem[x[i]]=x[i].Enabled
  269. x[i].Enabled=false
  270. end
  271. if x[i]:IsA'BasePart' and x[i].Transparency~=1 then
  272. partMem[x[i]]=x[i].Transparency
  273. x[i].Transparency=1.1
  274. if x[i]:FindFirstChild("face") then
  275. x[i].face.Transparency=1.1
  276. end
  277. if x[i].Parent:FindFirstChild("HumanoidRootPart") then
  278. CreateEffect(x[i],Type,color)
  279. wait(.002)
  280. end
  281. end
  282. else
  283. if x[i]:IsA'BasePart' and x[i].Name~="HumanoidRootPart" and x[i].Transparency~=1 then x[i].Transparency=partMem[x[i]]
  284.  
  285. if x[i].Parent:FindFirstChild("HumanoidRootPart") then
  286. CreateEffect(x[i],Type,color)
  287. wait(.002)
  288. end
  289.  
  290. end
  291. if x[i].ClassName=="BillboardGui" or x[i].ClassName=="ParticleEmitter" then
  292. x[i].Enabled=partMem[x[i]]
  293. end
  294. if x[i]:FindFirstChild("face") then
  295. x[i].face.Transparency=0
  296. end
  297.  
  298.  
  299.  
  300.  
  301. end
  302. end
  303. end
  304. --local whaler=require(game.ReplicatedStorage.Modules.Whaler)
  305.  
  306. function Recieve(p,toggle,Type,asda2)
  307. local aethercolor
  308. if p:FindFirstChild("AetherColor") then
  309. aethercolor=p.AetherColor.Value
  310. else
  311. aethercolor="Pastel violet"
  312. end
  313. if not p.Character.HumanoidRootPart:FindFirstChild("WhalerBlinkSound1") then
  314. local s=Instance.new("Sound",p.Character.HumanoidRootPart)
  315. s.Name="WhalerBlinkSound1"
  316. s.SoundId=soundid
  317. local s2=Instance.new("Sound",p.Character.HumanoidRootPart)
  318. s2.Name="WhalerBlinkSound2"
  319. s2.SoundId="rbxassetid://416001005"
  320. local s3=Instance.new("Sound",p.Character.HumanoidRootPart)
  321. s3.Name="WhalerBlinkSound3"
  322. s3.SoundId="rbxassetid://418168618"
  323. end
  324. --effect=leffect
  325. p.Character.HumanoidRootPart["WhalerBlinkSound" .. tostring(math.random(1,3))]:Play()
  326. if toggle then
  327.  
  328. Hide(p.Character,true,Type,aethercolor)
  329. --whaler.Hide(p.Character,true)
  330. else
  331. plrMem[p.Name]=nil
  332. Hide(p.Character,false,Type,aethercolor)
  333. --whaler.Hide(p.Character,false)
  334. end
  335. end
  336. re.OnServerEvent:connect(Recieve)
  337.  
  338.  
  339. function RecieveServer(p,toggle)
  340. if p.Parent==game.Players then
  341. local aethercolor
  342. local aethertype
  343. if p:FindFirstChild("AetherColor") then
  344. aethercolor=p.AetherColor.Value
  345. else
  346. aethercolor="Pastel violet"
  347. end
  348. if p:FindFirstChild("AetherType") then
  349. aethertype=p.AetherType.Value
  350. else
  351. aethertype="Aether"
  352. end
  353. if not p.Character.HumanoidRootPart:FindFirstChild("WhalerBlinkSound1") then
  354. local s=Instance.new("Sound",p.Character.HumanoidRootPart)
  355. s.Name="WhalerBlinkSound1"
  356. s.SoundId=soundid
  357. local s2=Instance.new("Sound",p.Character.HumanoidRootPart)
  358. s2.Name="WhalerBlinkSound2"
  359. s2.SoundId="rbxassetid://416001005"
  360. local s3=Instance.new("Sound",p.Character.HumanoidRootPart)
  361. s3.Name="WhalerBlinkSound3"
  362. s3.SoundId="rbxassetid://418168618"
  363. end
  364. --effect=leffect
  365. p.Character.HumanoidRootPart["WhalerBlinkSound" .. tostring(math.random(1,3))]:Play()
  366. if toggle then
  367.  
  368. Hide(p.Character,true,aethertype,aethercolor)
  369. --whaler.Hide(p.Character,true)
  370. else
  371. plrMem[p.Name]=nil
  372. Hide(p.Character,false,aethertype,aethercolor)
  373. --whaler.Hide(p.Character,false)
  374. end
  375. else
  376. local aethercolor="Black"
  377. local aethertype="Mark"
  378. if not p.HumanoidRootPart:FindFirstChild("WhalerBlinkSound1") then
  379. local s=Instance.new("Sound",p.HumanoidRootPart)
  380. s.Name="WhalerBlinkSound1"
  381. s.SoundId=soundid
  382. local s2=Instance.new("Sound",p.HumanoidRootPart)
  383. s2.Name="WhalerBlinkSound2"
  384. s2.SoundId="rbxassetid://416001005"
  385. local s3=Instance.new("Sound",p.HumanoidRootPart)
  386. s3.Name="WhalerBlinkSound3"
  387. s3.SoundId="rbxassetid://418168618"
  388. end
  389. --effect=leffect
  390. p.HumanoidRootPart["WhalerBlinkSound" .. tostring(math.random(1,3))]:Play()
  391. if toggle then
  392. Hide(p,true,aethertype,aethercolor)
  393. --whaler.Hide(p.Character,true)
  394. else
  395. plrMem[p.Name]=nil
  396. Hide(p,false,aethertype,aethercolor)
  397. --whaler.Hide(p.Character,false)
  398. end
  399. end
  400. end
  401. res.Event:connect(RecieveServer)
  402.  
  403. ----------------------------------------------------------------------------------------------------------
  404. ----------------------------------------------whaler pull
  405. local GyroEvent=Instance.new("RemoteEvent",game.ReplicatedStorage)
  406. GyroEvent.Name="Gyro"
  407. local OwnerStore={}
  408.  
  409. local function checkInvisible(chr)
  410. local part = chr:FindFirstChild("Head") or chr:FindFirstChild("Left Arm")
  411. if part then
  412. if part.Transparency>=1 then return true end
  413. end
  414. return false
  415. end
  416.  
  417. GyroEvent.OnServerEvent:connect(function(p,Target,parent,toggle)
  418. if parent.Name=="HumanoidRootPart" then parent.Parent.Humanoid.PlatformStand=toggle end
  419. if toggle then
  420. local fx1=script.BaseSphere:Clone()
  421. local fx2=script.Deb:Clone()
  422. --local fx3=script.BasePull:Clone()
  423. OwnerStore[parent]=parent:GetNetworkOwner()
  424. parent:SetNetworkOwner(p)
  425. fx1.Parent=parent
  426. fx2.Parent=parent
  427. fx1.Enabled=true
  428. fx2.Enabled=true
  429.  
  430. if p.Character:FindFirstChild("TheMark") then if not checkInvisible(p.Character) then p.Character.TheMark.p1.PE.Enabled=true p.Character.TheMark.p1.PE2.Enabled=true end end
  431. else
  432. if p.Character:FindFirstChild("TheMark") then p.Character.TheMark.p1.PE.Enabled=false p.Character.TheMark.p1.PE2.Enabled=false end
  433. parent.Deb.Enabled=false
  434. parent.BaseSphere.Enabled=false
  435. game.Debris:AddItem(parent.Deb,10)
  436. parent.Deb.Acceleration=Vector3.new(0,-3,0)
  437. parent.Deb.Name="destroying"
  438. game.Debris:AddItem(parent.BaseSphere,5)
  439. parent.BaseSphere.Name="destroying"
  440. parent:SetNetworkOwner(OwnerStore[parent])
  441. --parent.FXBasePart.BasePull.Enabled=false
  442. --game.Debris:AddItemparent.FXBasePart,5)
  443. --[[gyro.Parent.FXBasePart.Name="destroying"
  444. gyro.Parent:SetNetworkOwner(OwnerStore[gyro.Parent])
  445. gyro:Destroy()]]
  446. end
  447. end)
  448.  
  449. -----------------------
  450.  
  451. return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement