View difference between Paste ID: AxW7xhsx and AiPEGV0j
SHOW: | | - or go back to the newest paste.
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
7
-------------------------
8-
player = game.Players.LocalPlayer
8+
9
-------------------------
10
--Yet another script by--
11
--      CKbackup       --
12
-------------------------
13
14
player = owner
15
chara = player.Character
16
debby = game:GetService("Debris")
17
chara.Humanoid.MaxHealth = math.huge
18
chara.Humanoid.Health = math.huge
19
chara.Humanoid.WalkSpeed = 50
20
chara.Humanoid.JumpPower = 100
21
22
--Deleting what we don't want.--
23
if chara:FindFirstChild("Shirt") ~= nil then
24
chara.Shirt:Destroy()
25
end
26
if chara:FindFirstChild("Pants") ~= nil then
27
chara.Pants:Destroy()
28
end
29
if chara:FindFirstChild("ShirtGraphic") ~= nil then
30
chara.ShirtGraphic:Destroy()
31
end
32
local ch = chara:GetChildren()
33
for i = 1, #ch do
34
if ch[i].ClassName == "Shirt" or ch[i].ClassName == "Pants" or ch[i].ClassName == "ShirtGraphic" or ch[i].ClassName == "Accessory" then
35
ch[i]:Destroy()
36
elseif ch[i].ClassName == "Part" then
37
ch[i].BrickColor = BrickColor.new("Institutional white")
38
if ch[i].Name == "Torso" then
39
ch[i].roblox.Texture = ""
40
elseif ch[i].Name == "Head" then
41
ch[i].face.Texture = "http://www.roblox.com/asset/?id=679717479"
42
ch[i].Transparency = 1
43
end
44
end
45
end
46
47
--Za Clothing--
48
local shirt = Instance.new("Shirt",chara)
49
shirt.Name = "Shirt"
50
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=679629869"
51
local pants = Instance.new("Pants",chara)
52
pants.Name = "Pants"
53
pants.PantsTemplate = "http://www.roblox.com/asset/?id=679630079"
54
local p = Instance.new("Part",chara)
55
p.Name = "Ears"
56
p.BrickColor = BrickColor.new("Institutional white")
57
p.Size = Vector3.new(0,0,0)
58
p.BottomSurface = 0
59
p.TopSurface = 0
60
p.Position = chara.Head.Position
61
local pweld = Instance.new("Weld",p)
62
pweld.Part0 = chara.Head
63
pweld.Part1 = p
64
pweld.C0 = CFrame.new(0,.7,0)
65
pweld.C0 = pweld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(180),0,math.rad(180))
66
local earmesh = Instance.new("SpecialMesh",p)
67
earmesh.MeshType = "FileMesh"
68
earmesh.MeshId = "http://www.roblox.com/asset/?id=1374148"
69
earmesh.Scale = Vector3.new(1.1,1.5,3)
70
local hair = p:Clone()
71
hair.Name = "Hair"
72
hair.Parent = chara
73
hair.Position = chara.Head.Position
74
hair.Mesh.MeshId = "http://www.roblox.com/asset/?id=145283773"
75
hair.Mesh.Scale = Vector3.new(.7,.5,.7)
76
hair.Mesh.Offset = Vector3.new(0,-.2,0)
77
local hweld = Instance.new("Weld",hair)
78
hweld.Part0 = chara.Head
79
hweld.Part1 = hair
80
hweld.C0 = CFrame.new(0,0.7,0)
81
hweld.C0 = hweld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(180),math.rad(180),math.rad(180))
82
local fakehead = chara.Head:clone()
83
fakehead.Name = "FakeHead"
84
fakehead.Parent = chara
85
fakehead.Position = chara.Head.Position
86
fakehead.Transparency = 0
87
fakehead.face.Texture = "http://www.roblox.com/asset/?id=679717621"
88
local fakeweld = Instance.new("Weld",fakehead)
89
fakeweld.Part0 = chara.Head
90
fakeweld.Part1 = fakehead
91
local tail = Instance.new("Part",chara)
92
tail.Name = "Tail"
93
tail.Size = Vector3.new(0,0,0)
94
tail.Position = chara.Torso.Position
95
tail.BrickColor = BrickColor.new("Institutional white")
96
local tailmesh = Instance.new("SpecialMesh",tail)
97
tailmesh.MeshType = "FileMesh"
98
tailmesh.MeshId = "http://www.roblox.com/asset/?id=188635159"
99
tailmesh.Scale = Vector3.new(1,1,2)
100
local tailweld = Instance.new("Weld",tail)
101
tailweld.Part0 = chara.Torso
102
tailweld.Part1 = tail
103
tailweld.C0 = CFrame.new(-1.1,-1.5,.7)
104
tailweld.C0 = tailweld.C0 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180))
105
local sholpad = Instance.new("Part",chara)
106
sholpad.Name = "SholPads"
107
sholpad.Size = Vector3.new(1,.4,1)
108
sholpad.Reflectance = 0.3
109
sholpad.BottomSurface = 0
110
sholpad.TopSurface = 0
111
sholpad.BrickColor = BrickColor.new("Really red")
112
sholpad.Position = chara.Torso.Position
113
local padweld = Instance.new("Weld",sholpad)
114
padweld.Part0 = chara.Torso
115
padweld.Part1 = sholpad
116
padweld.C0 = CFrame.new(0,0.9,0)
117
local padmesh = Instance.new("SpecialMesh",sholpad)
118
padmesh.MeshType = "FileMesh"
119
padmesh.MeshId = "http://www.roblox.com/asset/?id=574448286"
120
padmesh.Scale = Vector3.new(1,.4,1)
121
local cape = Instance.new("Part",chara)
122
cape.Name = "Cape"
123
cape.CanCollide = false
124
cape.Size = Vector3.new(2,4,.2)
125
cape.Position = chara.Torso.Position
126
cape.BrickColor = BrickColor.new("Institutional white")
127
local capeweld = Instance.new("Weld",cape)
128
capeweld.Part0 = chara.Torso
129
capeweld.Part1 = cape
130
capeweld.C0 = CFrame.new(0,-1.1,0.8)
131
capeweld.C0 = capeweld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-10),0,0)
132
local hand1 = Instance.new("Part",chara)
133
hand1.Name = "Hand1"
134
hand1.Size = Vector3.new(.8,.8,.8)
135
hand1.Transparency = 1
136
hand1.Position = chara["Left Arm"].Position
137
local hand1weld = Instance.new("Weld",hand1)
138
hand1weld.Part0 = chara["Left Arm"]
139
hand1weld.Part1 = hand1
140
hand1weld.C0 = CFrame.new(0,-1,0)
141
local hand2 = hand1:Clone()
142
hand2.Name = "Hand2"
143
hand2.Parent = chara
144
hand2.Position = chara["Right Arm"].Position
145
local hand2weld = Instance.new("Weld",hand2)
146
hand2weld.Part0 = chara["Right Arm"]
147
hand2weld.Part1 = hand2
148
hand2weld.C0 = CFrame.new(0,-1,0)
149
local orbuu = Instance.new("Part", chara)
150
orbuu.Size = Vector3.new(0,0,0)
151
orbuu.Name = "DiamondPoint"
152
orbuu.Anchored = true
153
orbuu.CanCollide = false
154
orbuu.Transparency = 1
155
local orbuur = Instance.new("Part", chara)
156
orbuur.Size = Vector3.new(1,1,1)
157
orbuur.Name = "Diamond"
158
orbuur.Position = chara.Head.Position
159
orbuur.CanCollide = false
160
orbuur.BrickColor = BrickColor.new("Institutional white")
161
orbuur.Reflectance = 1
162
local orbforce = Instance.new("BodyPosition",orbuur)
163
orbforce.D = 1000
164
local meshooo = Instance.new("SpecialMesh", orbuur)
165
meshooo.MeshType = "FileMesh"
166
meshooo.MeshId = "http://www.roblox.com/asset/?id=9756362"
167
local RotationSpeed = 5
168
local BobSpeed = 2
169
local RotationDist = Vector3.new(10, 0, 0)
170
local dt = 0
171
local currentTime = 0
172
local laserpoint = orbuu:Clone()
173
laserpoint.Parent = chara
174
laserpoint.Position = chara.Torso.Position
175
laserpoint.Name = "LaserPoint"
176
laserpoint.Anchored = false
177
local lsptweld = Instance.new("Weld",laserpoint)
178
lsptweld.Part0 = chara.Torso
179
lsptweld.Part1 = laserpoint
180
lsptweld.C0 = CFrame.new(0,6,0)
181
182
--Za Sounds--
183
local summonsound = Instance.new("Sound", chara.Torso)
184
summonsound.SoundId = "http://www.roblox.com/asset/?id=367850772"
185
summonsound.Volume = 1
186
local lassnd = Instance.new("Sound", orbuur)
187
lassnd.SoundId = "http://www.roblox.com/asset/?id=228343271"
188
lassnd.Volume = 1
189
local blastsnd = Instance.new("Sound", chara.Torso)
190
blastsnd.SoundId = "http://www.roblox.com/asset/?id=200633327"
191
blastsnd.Volume = 1
192
local metsnd = Instance.new("Sound", chara.Torso)
193
metsnd.SoundId = "http://www.roblox.com/asset/?id=367850840"
194
metsnd.Volume = 1
195
local swdsnd = Instance.new("Sound", chara.Torso)
196
swdsnd.SoundId = "http://www.roblox.com/asset/?id=231917758"
197
swdsnd.Volume = 1
198
local swd2snd = Instance.new("Sound", chara.Torso)
199
swd2snd.SoundId = "http://www.roblox.com/asset/?id=154965962"
200
swd2snd.Volume = 1
201
local hitsnd = Instance.new("Sound", chara.Torso)
202
hitsnd.SoundId = "http://www.roblox.com/asset/?id=154965973"
203
hitsnd.Volume = 1
204
local eckssnd = Instance.new("Sound", chara.Torso)
205
eckssnd.SoundId = "http://www.roblox.com/asset/?id=258057783"
206
eckssnd.Volume = 1
207
local music1 = Instance.new("Sound", chara.Torso)
208
music1.SoundId = "http://www.roblox.com/asset/?id=547275939"
209
music1.Volume = 1
210
music1.Looped = true
211
music1:Play()
212
213
--Za Effects--
214
color3colour = {BrickColor.new("Really red").Color,BrickColor.new("Neon orange").Color,BrickColor.new("New yeller").Color,BrickColor.new("Lime green").Color,BrickColor.new("Really blue").Color,BrickColor.new("Alder").Color}
215
breekcolour = {BrickColor.new("Really red"),BrickColor.new("Neon orange"),BrickColor.new("New yeller"),BrickColor.new("Lime green"),BrickColor.new("Really blue"),BrickColor.new("Alder")}
216
firecolour = {ColorSequenceKeypoint.new(0,BrickColor.new("Really red").Color),ColorSequenceKeypoint.new(.05,BrickColor.new("Neon orange").Color),ColorSequenceKeypoint.new(.1,BrickColor.new("New yeller").Color),ColorSequenceKeypoint.new(.15,BrickColor.new("Lime green").Color),ColorSequenceKeypoint.new(.2,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(.25,BrickColor.new("Alder").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Alder").Color)}
217
barcolour = {ColorSequenceKeypoint.new(0,BrickColor.new("Really red").Color),ColorSequenceKeypoint.new(.2,BrickColor.new("Neon orange").Color),ColorSequenceKeypoint.new(.4,BrickColor.new("New yeller").Color),ColorSequenceKeypoint.new(.6,BrickColor.new("Lime green").Color),ColorSequenceKeypoint.new(.8,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Alder").Color)}
218
normallife = {NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)}
219
extendlife = {NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)}
220
function createrainbow(color,part,texture,size,trans,life,face,speed,accel,velsp,lock,name)
221
local fira = Instance.new("ParticleEmitter",part)
222
fira.Name = name
223
fira.Color = ColorSequence.new(color)
224
fira.Size = size
225
fira.Texture = texture
226
fira.Transparency = trans
227
fira.Lifetime = life
228
fira.EmissionDirection = face
229
fira.Rate = 100000000
230
fira.RotSpeed = NumberRange.new(100)
231
fira.Speed = speed
232
fira.VelocitySpread = velsp
233
fira.Acceleration = accel
234
fira.LightEmission = 1
235
fira.LockedToPart = lock
236
end
237
handfire1 = createrainbow(firecolour,hand1,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(1),Vector3.new(0,2,0),0,false,"FireEffect")
238
handfire2 = createrainbow(firecolour,hand2,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Right",NumberRange.new(1),Vector3.new(0,2,0),0,false,"FireEffect")
239
createrainbow(barcolour,orbuur,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.8,1),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Front",NumberRange.new(0),Vector3.new(0,0,0),0,false,"OrbEffect")
240
local spelleffect = Instance.new("ParticleEmitter",chara.Torso)
241
spelleffect.Texture = "http://www.roblox.com/asset/?id=679657454"
242
spelleffect.Speed = NumberRange.new(0)
243
spelleffect.LightEmission = 1
244
spelleffect.Transparency = NumberSequence.new(normallife)
245
spelleffect.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,10)})
246
spelleffect.Rate = 0.001
247
spelleffect.Rotation = NumberRange.new(0,359)
248
spelleffect.RotSpeed = NumberRange.new(100)
249
spelleffect.Lifetime = NumberRange.new(1)
250
createrainbow(barcolour,hand2,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(normallife),NumberRange.new(1),"Front",NumberRange.new(10),Vector3.new(0,0,0),1000,true,"PowerEffect")
251
powereffect = hand2.PowerEffect
252
powereffect.Enabled = false
253
254
--Za Name Tag--
255
local naeeym = Instance.new("BillboardGui",chara)
256
naeeym.Size = UDim2.new(0,100,0,40)
257
naeeym.StudsOffset = Vector3.new(0,2,0)
258
naeeym.Adornee = chara.Head
259
local tecks = Instance.new("TextLabel",naeeym)
260
tecks.BackgroundTransparency = 1
261
tecks.BorderSizePixel = 0
262
tecks.Text = "The Feluxinian of Absolute Divinity"
263
tecks.Font = "Fantasy"
264
tecks.FontSize = "Size24"
265
tecks.TextStrokeTransparency = 0
266
tecks.TextColor3 = Color3.new(1,1,1)
267
tecks.TextStrokeColor3 = BrickColor.new("Really red").Color
268
tecks.Size = UDim2.new(1,0,0.5,0)
269
270
--Za Magic "Circle"--
271
Void = nil
272
VoidParts = {}
273
Equipped = false
274
Counter = 1
275
276
function RayCast(Position, Direction, MaxDistance, IgnoreList)
277
	return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) 
278
end
279
280
	Player = player
281
	Character = chara
282
283
	Humanoid = Character:FindFirstChild("Humanoid")
284
	Torso = Character:FindFirstChild("Torso")
285
	if not Player or not Humanoid or Humanoid.Health == 0 or not chara.Torso then
286
		return
287
	end
288
	Equipped = true
289
	Void = Instance.new("Model")
290
	Void.Name = "Void"
291
	Angle = 0
292
	for i = 1, 1 do
293
		local VoidPart = Instance.new("Part")
294
		VoidPart.Name = "VoidPart"
295
		VoidPart.Transparency = 1
296
		VoidPart.BrickColor = BrickColor.new("Really black")
297
		VoidPart.Material = Enum.Material.Plastic
298
		VoidPart.Shape = Enum.PartType.Block
299
		VoidPart.FormFactor = Enum.FormFactor.Custom
300
		VoidPart.TopSurface = Enum.SurfaceType.Smooth
301
		VoidPart.BottomSurface = Enum.SurfaceType.Smooth
302
		VoidPart.Anchored = true
303
		VoidPart.CanCollide = false
304
		VoidPart.Locked = true
305
		VoidPart.Size = Vector3.new(10, 0.2, 10)
306
		fiyer = createrainbow(firecolour,VoidPart,"http://www.roblox.com/asset/?id=224413104",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.99,0),NumberSequenceKeypoint.new(1,1)}),NumberRange.new(10),"Top",NumberRange.new(2),Vector3.new(0,2,0),0,false,"FireEffect")
307
		VoidPart.FireEffect.Rate = 10
308
		local BlockMesh = Instance.new("BlockMesh")
309
		BlockMesh.Scale = Vector3.new(1.5,1,1.5)
310
		BlockMesh.Parent = VoidPart
311
		VoidPart.Parent = Void
312
		local Star = Instance.new("Decal", VoidPart)
313
		Star.Texture = "http://www.roblox.com/asset/?id=685910499"
314
		Star.Face = "Top"
315
		local Light = Instance.new("PointLight", VoidPart)
316
		Light.Color = Color3.new(1,1,1)
317
		Light.Brightness = 100
318
		Light.Range = 10
319
		table.insert(VoidParts, VoidPart)
320
	end
321
	Spawn(function()
322
		while Equipped and Humanoid.Parent and Humanoid.Health > 0 and chara do
323
			if Angle == 360 then
324
				Angle = 0
325
			end
326
			Angle = Angle + .05
327
			chara.Humanoid.MaxHealth = math.huge
328
			chara.Humanoid.Health = math.huge
329
			Counter = Counter + 1
330
			if Counter == 7 then
331
			Counter = 1
332
			end
333
			tecks.TextStrokeColor3 = color3colour[Counter]
334
			fakehead.face.Color3 = color3colour[Counter]
335
			Void.VoidPart.Decal.Color3 = color3colour[Counter]
336
			Void.VoidPart.PointLight.Color = color3colour[Counter]
337
			sholpad.BrickColor = breekcolour[Counter]
338
			local parentPos = chara.Torso.CFrame
339
			--Rotate Fluffy around the player's head
340
			local rotation = CFrame.Angles(0 , RotationSpeed * currentTime, 0)
341
			local bob = Vector3.new(0, BobSpeed * math.sin(currentTime), 0)
342
			orbuu.CFrame =  ((parentPos + bob)  + (rotation * RotationDist))
343
			--Wait some time so we aren't going plaid
344
			dt, currentTime = wait(1/40)
345
			if activebeam == true then
346
			orbforce.Position = laserpoint.Position
347
			else
348
			orbforce.Position = orbuu.Position
349
			end	
350
			local Hit, EndPosition = RayCast(chara.Torso.Position, Vector3.new(0, -1, 0), (chara.Torso.Size.Y * 6.5), {Character})
351
			if Hit then
352
				if not Void.Parent then
353
					Void.Parent = Character
354
				end
355
				for i, v in pairs(VoidParts) do
356
					v.CFrame = CFrame.new(chara.Torso.Position.X, EndPosition.Y, chara.Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
357
				end
358
			else
359
				Void.Parent = nil
360
			end
361
			wait()
362
		end
363
	end)
364
	
365
--Za Chatting Function--
366
function chat(string)
367
--ch = game:GetService("Chat"):Chat(chara.Head, string, "Red")
368
if chara:FindFirstChild("TalkingBillBoard") ~= nil then
369
chara:FindFirstChild("TalkingBillBoard"):destroy()
370
end
371
local naeeym2 = Instance.new("BillboardGui",chara)
372
naeeym2.Size = UDim2.new(0,100,0,40)
373
naeeym2.StudsOffset = Vector3.new(0,4,0)
374
naeeym2.Adornee = chara.Head
375
naeeym2.Name = "TalkingBillBoard"
376
local tecks2 = Instance.new("TextLabel",naeeym2)
377
tecks2.BackgroundTransparency = 1
378
tecks2.BorderSizePixel = 0
379
tecks2.Text = string
380
tecks2.Font = "Fantasy"
381
tecks2.FontSize = "Size24"
382
tecks2.TextStrokeTransparency = 0
383
tecks2.TextColor3 = Color3.new(1,1,1)
384
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
385
tecks2.Size = UDim2.new(1,0,0.5,0)
386
debby:AddItem(naeeym2,1)
387
end
388
389
--Za Tool and Values--
390
local tool = Instance.new("Tool",player.Backpack)
391
tool.Name = "Holy Energy"
392
tool.RequiresHandle = false
393
tool.CanBeDropped = false
394
music = true
395
activebeam = false
396
activegrab = false
397
didgrab = false
398
399
--Za Animations--
400
local blasta = Instance.new("Animation", tool)
401
blasta.AnimationId = "http://www.roblox.com/asset/?id=86504773"
402
local blastanim = chara.Humanoid:LoadAnimation(blasta)
403
local summona = Instance.new("Animation", tool)
404
summona.AnimationId = "http://www.roblox.com/asset/?id=83994319"
405
local summonanim = chara.Humanoid:LoadAnimation(summona)
406
local spina = Instance.new("Animation", tool)
407
spina.AnimationId = "http://www.roblox.com/asset/?id=235542946"
408
local spinanim = chara.Humanoid:LoadAnimation(spina)
409
410
--Hurt Function--
411
function dealdmg(dude,dmg,spread)
412
local finaldmg = dmg + math.random(-spread,spread)
413
dude.Humanoid.Health = dude.Humanoid.Health - finaldmg
414
if chara:FindFirstChild("TalkingBillBoard") ~= nil then
415
chara:FindFirstChild("TalkingBillBoard"):destroy()
416
end
417
local naeeym2 = Instance.new("BillboardGui",dude)
418
naeeym2.Size = UDim2.new(0,100,0,40)
419
naeeym2.StudsOffset = Vector3.new(0,math.random(1,5),0)
420
naeeym2.Adornee = dude.Head
421
naeeym2.Name = "TalkingBillBoard"
422
local tecks2 = Instance.new("TextLabel",naeeym2)
423
tecks2.Position = UDim2.new(0,math.random(-50,50),0,math.random(-50,50))
424
tecks2.BackgroundTransparency = 1
425
tecks2.BorderSizePixel = 0
426
tecks2.Text = "-"..finaldmg
427
tecks2.Font = "Fantasy"
428
tecks2.FontSize = "Size12"
429
tecks2.TextStrokeTransparency = 0
430
tecks2.TextColor3 = Color3.new(1,1,1)
431
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
432
tecks2.Size = UDim2.new(1,0,0.5,0)
433
debby:AddItem(naeeym2,1)
434
end
435
436
--Heaven's Bolts--
437
local LIGHTNING_STRIKE_DURATION = 3
438
local LIGHTNING_STRIKE_COOLDOWN = 0
439
local LIGHTNING_STRIKE_HEIGHT = 500
440
local LIGHTNING_STRIKE_LAST_TIME = 0.2
441
local LIGHTNING_TICK_DAMAGE = 30
442
443
function WaitForChild(parent, child)
444
	while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end
445
	return parent[child]
446
end
447
448
local Tool2 = tool
449
local Character2 = nil
450
local Humanoid2 = nil
451
local Mouse = nil
452
453
local KeyDownConn = nil
454
local KeyUpConn = nil
455
456
457
local enabled = false
458
Tool2.Enabled = true
459
460
function checkLightningHit(newLightning, lightningStart, lightningEnd, EffectPart)
461
	newLightning.Transparency = 0
462
	newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)]
463
	newLightning.Material = Enum.Material.Neon
464
	local newLightningSound = Instance.new("Sound", game.Workspace)
465
						newLightningSound.SoundId = "http://www.roblox.com/asset/?id=224339201"
466
						newLightningSound.Pitch = 1 + math.rad(-.1,.1)
467
						newLightningSound.Volume = 1
468
						newLightningSound.PlayOnRemove = true
469
						newLightningSound:Destroy()
470
471
	local hitParts = workspace:FindPartsInRegion3(Region3.new(lightningEnd - Vector3.new(2, 0, 2), lightningStart + Vector3.new(2, 0, 2)))
472
473
	--local hitPart = workspace:FindPartOnRay(lightningRay, newLightning)
474
	local hitHums = {}
475
	for _, hitPart in pairs(hitParts) do
476
		if hitPart then
477
			local char = hitPart.Parent
478
			if char and char.Parent then
479
				if not char:FindFirstChild("Humanoid") then char = char.Parent end
480
				local hum = char:FindFirstChild("Humanoid")
481
				if hum and not hitHums[hum] then
482
					if hum.Health > 0 then 
483
					end
484
					hitHums[hum] = true
485
					dealdmg(char,30,5)
486
				end
487
			end
488
		end
489
	end
490
491
	wait(.1)	
492
	EffectPart.PowerEffect.Enabled = false
493
	newLightning.Transparency = .25
494
	newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)]
495
	wait(.1)
496
	newLightning.Transparency = .5
497
	newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)]
498
	newLightning.Mesh.Scale = newLightning.Mesh.Scale - Vector3.new(1,0,1)	
499
	wait(.1)
500
	newLightning.Transparency = .75
501
	newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)]
502
	newLightning.Mesh.Scale = newLightning.Mesh.Scale - Vector3.new(1,0,1)	
503
	wait(.1)
504
	newLightning:Remove()
505
	newLightningSound:destroy()
506
end
507
508
function MakeLightningAt(targetPoint)
509
	print("make lightning at")
510
	local lightningStart = targetPoint + Vector3.new(0, LIGHTNING_STRIKE_HEIGHT, 0)
511
	local lightningRay = Ray.new(lightningStart, Vector3.new(0, -LIGHTNING_STRIKE_HEIGHT - 50, 0))
512
	local lightningHitPart, lightningEnd = workspace:FindPartOnRay(lightningRay)
513
514
	local ignoreTable = {}
515
	while (lightningHitPart and lightningHitPart.Parent and lightningHitPart.Parent:FindFirstChild("Humanoid")) or (lightningHitPart and lightningHitPart.Parent and lightningHitPart.Parent.Parent and lightningHitPart.Parent.Parent:FindFirstChild("Humanoid")) do
516
		table.insert(ignoreTable, lightningHitPart)
517
		lightningHitPart, lightningEnd = workspace:FindPartOnRayWithIgnoreList(lightningRay, ignoreTable)
518
	end
519
520
	if lightningHitPart then
521
		print("actually making some lightning")
522
		local EffectPart = Instance.new("Part",game.Workspace)
523
		EffectPart.Size = Vector3.new(1,1,1)
524
		EffectPart.Anchored = true
525
		EffectPart.Transparency = 1
526
		EffectPart.Position =  targetPoint
527
		debby:AddItem(EffectPart,3)		
528
		createrainbow(barcolour,EffectPart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(5),NumberSequence.new(normallife),NumberRange.new(1),"Front",NumberRange.new(50),Vector3.new(0,0,0),1000,false,"PowerEffect")
529
		-- make the lightning from lightningStart to lightningEnd, electrocutin' lightningHitPart
530
		local newLightning = Instance.new("Part")
531
		newLightning.Size = Vector3.new(1, 1, 1)
532
		--newLightning.Size = Vector3.new(2, lightningStart.Y - lightningEnd.Y, 2)
533
		newLightning.Transparency = .8
534
		newLightning.Anchored = false
535
		newLightning.BrickColor = BrickColor.new("Really red")  -- Toothpaste
536
537
		local newCylinderMesh = Instance.new("BlockMesh")
538
		newCylinderMesh.Scale = Vector3.new(3, lightningStart.Y - lightningEnd.Y, 3)
539
		newCylinderMesh.Parent = newLightning
540
541
		local newLightningFloatForce = Instance.new("BodyForce")
542
		newLightningFloatForce.force = Vector3.new(0, newLightning:GetMass()*196.2, 0)
543
		newLightningFloatForce.Parent = newLightning		
544
545
		local newBAV = Instance.new("BodyAngularVelocity")
546
		newBAV.angularvelocity = Vector3.new(0, 10, 0)
547
		newBAV.P = 1000
548
		newBAV.maxTorque = Vector3.new(0, newBAV.P, 0)
549
		newBAV.Parent = newLightning
550
551
		newLightning.CanCollide = false
552
		newLightning.CFrame = CFrame.new((lightningStart + lightningEnd) / 2)
553
554
--		for _, blockFace in pairs(BLOCK_FACES) do
555
--			local newLightningDecal = LightningDecal:Clone()
556
--			newLightningDecal.Face = blockFace
557
--			newLightningDecal.Parent = newLightning
558
--		end
559
		
560
		newLightning.Parent = workspace
561
--		game:GetService("Debris"):AddItem(newLightning, LIGHTNING_STRIKE_LAST_TIME+.2)
562
--		delay(LIGHTNING_STRIKE_LAST_TIME, function() checkLightningHit(newLightning, lightningRay) end)		
563
		delay(LIGHTNING_STRIKE_LAST_TIME, function() checkLightningHit(newLightning, lightningStart, lightningEnd, EffectPart) end)
564
--		for i = 0, 4 do
565
--			delay(i*LIGHTNING_STRIKE_LAST_TIME/4, function() checkLightningHit(newLightning, lightningRay) end)
566
--		end
567
		return true
568
	else
569
		return false
570
	end
571
end
572
573
local lightningStrikeCoroutine = nil
574
local lightningButtonDown = false
575
function LightningStrike()
576
	print("lightningStrike")
577
	local startTime = tick()
578
	while tick() - startTime < LIGHTNING_STRIKE_DURATION do
579
		if Mouse and lightningButtonDown then
580
			local mouseHit = Mouse.Hit
581
			if mouseHit and MakeLightningAt(mouseHit.p) then wait(.05) end
582
		end
583
		wait()
584
	end
585
	wait(LIGHTNING_STRIKE_COOLDOWN)
586
	Tool2.Enabled = true
587
	powereffect.Enabled = false
588
	summonanim:Stop()
589
	lightningStrikeCoroutine = nil
590
end
591
592
--Beam of Purity--
593
Tool3 = tool
594
Me = chara  
595
SHOOTOH = true
596
on = true 
597
mode = true 
598
local force = Instance.new("BodyPosition") 
599
force.Parent = nil 
600
local P2 = Instance.new("Part") 
601
P2.formFactor = 0 
602
P2.Parent = nil 
603
P2.BrickColor = BrickColor.new("White") 
604
P2.Anchored = true 
605
P2.CanCollide = false 
606
P2.TopSurface = "Smooth" 
607
P2.BottomSurface = "Smooth" 
608
P2.Name = "Laser"
609
function explodtouch(hit)
610
if hit.Parent:FindFirstChild("Humanoid")~=nil then
611
dealdmg(hit.Parent,5,3)
612
end
613
end
614
function Click(mouse)
615
if (SHOOTOH == true) then 
616
SHOOTOH = false
617
local EffectPart = Instance.new("Part",game.Workspace)
618
EffectPart.Size = Vector3.new(1,1,1)
619
EffectPart.Anchored = true
620
EffectPart.Transparency = 1
621
createrainbow(barcolour,EffectPart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(5),NumberSequence.new(normallife),NumberRange.new(.5),"Front",NumberRange.new(50),Vector3.new(0,0,0),1000,false,"PowerEffect")
622
lassnd:Play()
623
for i = 1,30 do
624
local P = Instance.new("Part") 
625
local Place0 = CFrame.new(orbuur.CFrame.x,orbuur.CFrame.y,orbuur.CFrame.z) 
626
local Place1 = Mouse.Hit.p 
627
EffectPart.Position = Place1
628
local meshla = Instance.new("BlockMesh", P)
629
meshla.Scale = Vector3.new(1,1,1)
630
P.formFactor = 0 
631
P.Size = Vector3.new(1,1,(Place0.p - Place1).magnitude) 
632
P.Name = "Laser" 
633
P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p) 
634
P.Parent = game.Workspace 
635
P.BrickColor = BrickColor.new("Institutional white")
636
P.Material = "Neon"
637
P.Anchored = true 
638
P.CanCollide = false 
639
P.Locked = true 
640
P.BottomSurface = "Smooth" 
641
P.TopSurface = "Smooth" 
642
local E = Instance.new("Explosion") 
643
E.Position = Place1 
644
E.Parent = game.Workspace 
645
E.BlastPressure = 0
646
E.Visible = false
647
E.Hit:connect(explodtouch)
648
wait(0.01)
649
P:remove()
650
end
651
----
652
EffectPart.PowerEffect.Enabled = false
653
wait(1)
654
SHOOTOH = true 
655
EffectPart:Destroy()
656
local cheeld = script:GetChildren()
657
tool.Enabled = true
658
summonanim:Stop()
659
powereffect.Enabled = false
660
activebeam = false
661
end
662
end 
663
664
--Holy Blast--
665
function fire(v)
666
	local vCharacter = chara
667
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
668
	local missile = Instance.new("Part",game.Workspace)
669
	local spawnPos = orbuur.Position
670
	missile.Position = spawnPos
671
	missile.Material = "Neon"
672
	missile.Size = Vector3.new(1,1,1)
673
	missile.Velocity = v * 100
674
	missile.BrickColor = BrickColor.new("Institutional white")
675
	missile.Shape = 1
676
	missile.Name = "Blast"
677
	createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect")
678
	--createrainbow(barcolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(1),NumberSequence.new(normallife),NumberRange.new(.5),"Front",NumberRange.new(10),Vector3.new(0,0,0),1000,false,"PowerEffect")
679
	--missile.PowerEffect.Enabled = false	
680
	local mesh1 = Instance.new("SpecialMesh",missile)
681
	mesh1.MeshType = "Sphere"
682
	local force = Instance.new("BodyForce")
683
	force.force = Vector3.new(0,missile:GetMass()*196.2,0)
684
	force.Parent = missile
685
	missile.Touched:connect(function (hit)
686
	if (hit ~= orbuur and hit ~= orbuu and hit ~= laserpoint and hit.Name ~= "Blast" and missile.Anchored == false) then
687
	missile.Anchored = true
688
	missile.CanCollide = false
689
	missile.FireEffect:Destroy()
690
	--missile.PowerEffect.Enabled = true
691
	local E = Instance.new("Explosion") 
692
	E.Position = missile.Position
693
	E.Parent = game.Workspace 
694
	E.BlastPressure = 0
695
	E.Visible = false
696
	E.Hit:connect(explodtouch)
697
	wait(0.1)
698
	--missile.PowerEffect.Enabled = false
699
	missile.Transparency = .25
700
	missile.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
701
	wait(0.1)
702
	missile.Transparency = .5
703
	missile.Mesh.Scale = Vector3.new(2,2,2)
704
	wait(0.1)
705
	missile.Transparency = .75
706
	missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5)
707
	wait(0.1)
708
	missile:Destroy()
709
	end
710
	end)
711
	debby:AddItem(missile,10)
712
end
713
714
--Gaia Shatterer--
715
function meteorfire(v)
716
	local vCharacter = chara
717
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
718
	local missile = Instance.new("Part",game.Workspace)
719
	local spawnPos = chara.Head.Position + Vector3.new(0,100,0)
720
	missile.Position = spawnPos
721
	missile.Material = "Neon"
722
	missile.Size = Vector3.new(5,5,5)
723
	missile.Velocity = v * 100
724
	missile.BrickColor = BrickColor.new("Institutional white")
725
	missile.Shape = 1
726
	missile.Name = "Blast"
727
	createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(5),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect")
728
	createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(10),NumberSequence.new(normallife),NumberRange.new(5),"Front",NumberRange.new(30),Vector3.new(0,0,0),1000,false,"PowerEffect")
729
	missile.PowerEffect.Enabled = false	
730
	local mesh1 = Instance.new("SpecialMesh",missile)
731
	mesh1.MeshType = "Sphere"
732
	mesh1.Scale = Vector3.new(2,2,2)
733
	local force = Instance.new("BodyForce")
734
	force.force = Vector3.new(0,missile:GetMass()*196.2,0)
735
	force.Parent = missile
736
	missile.Touched:connect(function (hit)
737
	if (hit ~= orbuur and hit ~= orbuu and hit ~= laserpoint and hit.Name ~= "Blast" and missile.Anchored == false) then
738
	missile.Anchored = true
739
	missile.CanCollide = false
740
	missile.FireEffect:Destroy()
741
	missile.PowerEffect.Enabled = true
742
	local exsnd = Instance.new("Sound",missile)
743
	exsnd.SoundId = "http://www.roblox.com/asset/?id=142070127"
744
	exsnd.Volume = 1
745
	exsnd.PlayOnRemove = true
746
	exsnd:Destroy()
747
	local E = Instance.new("Explosion") 
748
	E.Position = missile.Position
749
	E.Parent = game.Workspace 
750
	E.BlastPressure = 0
751
	E.BlastRadius = 15
752
	E.Visible = false
753
	E.Hit:connect(explodtouch2)
754
	wait(0.1)
755
	missile.Transparency = .25
756
	missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5)
757
	wait(0.1)
758
	missile.Transparency = .5
759
	missile.Mesh.Scale = Vector3.new(3,3,3)
760
	wait(0.1)
761
	missile.Transparency = .75
762
	missile.Mesh.Scale = Vector3.new(3.5,3.5,3.5)
763
	wait(0.1)
764
	missile.PowerEffect.Enabled = false
765
	missile.Transparency = 1
766
	wait(6)
767
	missile:Destroy()
768
	end
769
	end)
770
	debby:AddItem(missile,10)
771
end
772
function meteor2fire(v)
773
	local vCharacter = chara
774
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
775
	local missile = Instance.new("Part",game.Workspace)
776
	local spawnPos = chara.Head.Position + Vector3.new(0,100,0)
777
	missile.Position = spawnPos
778
	missile.Material = "Neon"
779
	missile.Size = Vector3.new(10,10,10)
780
	missile.Velocity = v * 50
781
	missile.BrickColor = BrickColor.new("Institutional white")
782
	missile.Shape = 1
783
	missile.Name = "Blast"
784
	createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,15),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(5),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect")
785
	createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(15),NumberSequence.new(normallife),NumberRange.new(5),"Front",NumberRange.new(50),Vector3.new(0,0,0),1000,false,"PowerEffect")
786
	missile.PowerEffect.Enabled = false	
787
	local mesh1 = Instance.new("SpecialMesh",missile)
788
	mesh1.MeshType = "Sphere"
789
	mesh1.Scale = Vector3.new(2,2,2)
790
	local force = Instance.new("BodyForce")
791
	force.force = Vector3.new(0,missile:GetMass()*196.2,0)
792
	force.Parent = missile
793
	missile.Touched:connect(function (hit)
794
	if (hit ~= orbuur and hit ~= orbuu and hit ~= laserpoint and hit.Name ~= "Blast" and missile.Anchored == false) then
795
	missile.Anchored = true
796
	missile.CanCollide = false
797
	missile.FireEffect:Destroy()
798
	missile.PowerEffect.Enabled = true
799
	local exsnd = Instance.new("Sound",missile)
800
	exsnd.SoundId = "http://www.roblox.com/asset/?id=142070127"
801
	exsnd.Volume = 1
802
	exsnd.Pitch = 0.5
803
	exsnd.PlayOnRemove = true
804
	exsnd:Destroy()
805
	local E = Instance.new("Explosion") 
806
	E.Position = missile.Position
807
	E.Parent = game.Workspace 
808
	E.BlastPressure = 0
809
	E.BlastRadius = 30
810
	E.Visible = false
811
	E.Hit:connect(explodtouch3)
812
	wait(0.1)
813
	missile.Transparency = .25
814
	missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5)
815
	wait(0.1)
816
	missile.Transparency = .5
817
	missile.Mesh.Scale = Vector3.new(3,3,3)
818
	wait(0.1)
819
	missile.Transparency = .75
820
	missile.Mesh.Scale = Vector3.new(3.5,3.5,3.5)
821
	wait(0.1)
822
	missile.PowerEffect.Enabled = false
823
	missile.Transparency = 1
824
	wait(6)
825
	missile:Destroy()
826
	end
827
	end)
828
	debby:AddItem(missile,20)
829
end
830
function explodtouch2(hit)
831
if hit.Parent:FindFirstChild("Humanoid")~=nil then
832
dealdmg(hit.Parent,10,5)
833
end
834
end
835
function explodtouch3(hit)
836
if hit.Parent:FindFirstChild("Humanoid")~=nil then
837
dealdmg(hit.Parent,20,5)
838
end
839
end
840
841
--Swords of Light--
842
function swordsummon()
843
spinanim:Play()
844
local sword1 = Instance.new("Part",chara)
845
sword1.Size = Vector3.new(1,10,1)
846
sword1.BottomSurface = 0
847
sword1.TopSurface = 1
848
sword1.BrickColor = BrickColor.new("Institutional white")
849
sword1.Reflectance = 1
850
sword1.CanCollide = false
851
sword1.Position = chara["Left Arm"].Position
852
local swordmesh = Instance.new("SpecialMesh",sword1)
853
swordmesh.MeshId = "http://www.roblox.com/asset/?id=181327453"
854
swordmesh.Offset = Vector3.new(0,-1,0)
855
swordmesh.Scale = Vector3.new(3,3,3)
856
createrainbow(firecolour,sword1,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect")
857
local sword2 = sword1:Clone()
858
sword2.Parent = chara
859
sword2.Position = chara["Right Arm"].Position
860
local sw1weld = Instance.new("Weld",sword1)
861
sw1weld.Part0 = chara["Left Arm"]
862
sw1weld.Part1 = sword1
863
sw1weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0)
864
sw1weld.C0 = CFrame.new(0,10,0)
865
local sw2weld = Instance.new("Weld",sword2)
866
sw2weld.Part0 = chara["Right Arm"]
867
sw2weld.Part1 = sword2
868
sw2weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0)
869
sw2weld.C0 = CFrame.new(0,10,0)
870
sword1.Touched:connect(swordTouched)
871
sword2.Touched:connect(swordTouched)
872
for i = 1, 20 do
873
wait(0.5)
874
swdsnd:Play()
875
swd2snd:Play()
876
end
877
sword1.FireEffect.Enabled = false
878
sword2.FireEffect.Enabled = false
879
wait(1)
880
sword1.FireEffect:Destroy()
881
sword2.FireEffect:Destroy()
882
wait(.5)
883
sword1.Transparency = 0.5
884
sword2.Transparency = 0.5
885
wait(.1)
886
sword1:Destroy()
887
sword2:Destroy()
888
spinanim:Stop()
889
tool.Enabled = true
890
end
891
function swordTouched(hit)
892
if hit.Parent:FindFirstChild("Humanoid")~=nil then
893
dealdmg(hit.Parent,10,5)
894
hitsnd:Play()
895
end
896
end
897
898
--Grab--
899
function grabTouch(hit)
900
if activegrab == true and didgrab == false then
901
if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent ~= chara then
902
local standstillf = nil
903
activegrab = false
904
didgrab = true
905
powereffect.Enabled = false
906
summonanim:Stop()
907
local hitdude = hit.Parent
908
hitdude.Humanoid.Health = 100
909
hitdude.Humanoid.MaxHealth = 100
910
hitdude.Humanoid.PlatformStand = true
911
hitdude.Humanoid.WalkSpeed = 0
912
chara.Humanoid.WalkSpeed = 0
913
if hitdude:FindFirstChild("Torso") ~= nil then
914
hitdude.Torso.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*5)
915
local standstill = Instance.new("BodyPosition", hitdude.Torso)
916
standstill.Position = hitdude.Torso.Position
917
standstillf = standstill
918
end
919
--if hitdude:FindFirstChild("Left Arm") ~= nil then
920
--hitdude["Left Arm"]:destroy()
921
--end
922
--if hitdude:FindFirstChild("Right Arm") ~= nil then
923
--hitdude["Right Arm"]:destroy()
924
--end
925
local spellcirclepart = Instance.new("Part",chara)
926
spellcirclepart.Size = Vector3.new(1,1,1)
927
spellcirclepart.Anchored = true
928
spellcirclepart.Transparency = 1
929
spellcirclepart.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*5) - Vector3.new(0,2.5,0)
930
local spreadpart = Instance.new("Part",chara)
931
spreadpart.Size = Vector3.new(1,1,1)
932
spreadpart.Anchored = true
933
spreadpart.Transparency = 1
934
spreadpart.CFrame = spellcirclepart.CFrame + Vector3.new(0,100,0)
935
local scmesh = Instance.new("BlockMesh",spellcirclepart)
936
scmesh.Scale = Vector3.new(1,1.1,1)
937
local scdec = Instance.new("Decal",spellcirclepart)
938
scdec.Texture = "http://www.roblox.com/asset/?id=685910499"
939
scdec.Face = "Top"
940
scdec.Transparency = 1
941
local lite = Instance.new("PointLight",spellcirclepart)
942
lite.Enabled = false
943
lite.Brightness = 100
944
chat("You are not going away...")
945
wait(1)
946
chara.Torso.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*50)
947
wait(1)
948
summonanim:Play()
949
summonsound:Play()
950
activebeam = true
951
powereffect.Texture = "http://www.roblox.com/asset/?id=454403109"
952
powereffect.Enabled = true
953
standstillf.Position = standstillf.Position + Vector3.new(0,10,0)
954
scdec.Transparency = 0.9
955
lite.Enabled = true
956
lite.Range = 1
957
for i = 1, 19 do
958
wait(.05)
959
scmesh.Scale = scmesh.Scale + Vector3.new(1,0,1)
960
scdec.Transparency = scdec.Transparency - 0.05
961
lite.Range = lite.Range + 1
962
end
963
wait(1)
964
chat("Crucify.")
965
wait(.5)
966
lassnd:Play()
967
eckssnd:Play()
968
createrainbow(barcolour,spellcirclepart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(.9,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(.75),"Top",NumberRange.new(200),Vector3.new(0,0,0),0,false,"FireEffect")
969
createrainbow(barcolour,spreadpart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(.9,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(.25),"Right",NumberRange.new(200),Vector3.new(0,0,0),0,false,"FireEffect")
970
createrainbow(barcolour,spreadpart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(.9,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(.25),"Left",NumberRange.new(200),Vector3.new(0,0,0),0,false,"FireEffect2")
971
for i = 1, 10 do
972
dealdmg(hitdude,666,0)
973
end
974
for i = 1, 9 do
975
wait(.1)
976
local che = hitdude:GetChildren()
977
for i = 1, #che do
978
if che[i].ClassName == "Part" then
979
che[i].Transparency = che[i].Transparency + .1
980
end
981
end
982
end
983
wait(.1)
984
local che = hitdude:GetChildren()
985
for i = 1, #che do
986
if che[i].ClassName == "Part" then
987
che[i]:Destroy()
988
end
989
end
990
wait(3)
991
spellcirclepart.FireEffect.Enabled = false
992
spreadpart.FireEffect.Enabled = false
993
spreadpart.FireEffect2.Enabled = false
994
for i = 1, 19 do
995
wait(.05)
996
scmesh.Scale = scmesh.Scale - Vector3.new(1,0,1)
997
scdec.Transparency = scdec.Transparency + 0.05
998
lite.Range = lite.Range - 1
999
end
1000
wait(.05)
1001
spellcirclepart:Destroy()
1002
spreadpart:Destroy()
1003
summonanim:Stop()
1004
activebeam = false
1005
powereffect.Enabled = false
1006
tool.Enabled = true
1007
chara.Humanoid.WalkSpeed = 50
1008
didgrab = false
1009
end
1010
end
1011
end
1012
chara["Right Arm"].Touched:connect(grabTouch)
1013
1014
--Equip Unequip and Keys Function--
1015
1016
function keydowns(key)
1017
if tool.Enabled == true then
1018
	if key == "z" then
1019
	tool.Enabled = false
1020
	chat("Swords of Light!")
1021
	summonsound:Play()
1022
	swordsummon()
1023
	end
1024
	if key == "x" then
1025
	summonanim:Play()
1026
	summonsound:Play()
1027
	chat("Heaven's Bolts!")
1028
	powereffect.Texture = "http://www.roblox.com/asset/?id=14459921"
1029
	powereffect.Enabled = true
1030
	tool.Enabled = false
1031
	wait(2)
1032
	if not lightningStrikeCoroutine then
1033
	lightningStrikeCoroutine = coroutine.create(LightningStrike)
1034
	coroutine.resume(lightningStrikeCoroutine)
1035
	end
1036
	lightningButtonDown = true
1037
	end
1038
	if key == "c" then
1039
	summonanim:Play()
1040
	summonsound:Play()
1041
	activebeam = true
1042
	chat("Beam of Purity!")
1043
	powereffect.Texture = "rbxasset://textures/particles/sparkles_main.dds"
1044
	powereffect.Enabled = true
1045
	tool.Enabled = false
1046
	wait(2)
1047
	Click()
1048
	end
1049
	if key == "v" then
1050
	summonanim:Play()
1051
	summonsound:Play()
1052
	activebeam = true
1053
	chat("Holy Blast!")
1054
	powereffect.Texture = "http://www.roblox.com/asset/?id=224413104"
1055
	powereffect.Enabled = true
1056
	tool.Enabled = false
1057
	wait(2)
1058
	for i = 1, 6 do
1059
	wait(0.2)
1060
	local saund = blastsnd:Clone()
1061
	saund.Parent = orbuur
1062
	saund.PlayOnRemove = true
1063
	saund:Destroy()
1064
	local targetPos = chara.Humanoid.TargetPoint
1065
	local lookAt = (targetPos - orbuur.Position).unit
1066
	fire(lookAt)
1067
	end
1068
	summonanim:Stop()
1069
	activebeam = false
1070
	powereffect.Enabled = false
1071
	tool.Enabled = true
1072
	end
1073
	if key == "b" then
1074
	summonanim:Play()
1075
	summonsound:Play()
1076
	chat("Gaia Shatterer!")
1077
	powereffect.Texture = "http://www.roblox.com/asset/?id=26356341"
1078
	powereffect.Enabled = true
1079
	tool.Enabled = false
1080
	wait(2)
1081
	for i = 1, 5 do
1082
	wait(0.5)
1083
	local saund = metsnd:Clone()
1084
	saund.Parent = orbuur
1085
	saund.PlayOnRemove = true
1086
	saund:Destroy()
1087
	local targetPos = chara.Humanoid.TargetPoint
1088
	local lookAt = (targetPos - (chara.Head.Position + Vector3.new(0,100,0))).unit
1089
	meteorfire(lookAt)
1090
	end
1091
	wait(0.7)
1092
	local saund = metsnd:Clone()
1093
	saund.Parent = orbuur
1094
	saund.Pitch = 0.5
1095
	saund.PlayOnRemove = true
1096
	saund:Destroy()
1097
	local targetPos = chara.Humanoid.TargetPoint
1098
	local lookAt = (targetPos - (chara.Head.Position + Vector3.new(0,100,0))).unit
1099
	meteor2fire(lookAt)
1100
	wait(1)
1101
	summonanim:Stop()
1102
	powereffect.Enabled = false
1103
	tool.Enabled = true
1104
	end
1105
	if key == "n" then
1106
	activegrab = true
1107
	summonanim:Play()
1108
	summonsound:Play()
1109
	chat("Get over here...")
1110
	powereffect.Texture = "http://www.roblox.com/asset/?id=224413104"
1111
	powereffect.Enabled = true
1112
	tool.Enabled = false
1113
	wait(5)
1114
	if didgrab == false then
1115
	chat("Agh.")
1116
	powereffect.Enabled = false
1117
	tool.Enabled = true
1118
	summonanim:Stop()
1119
	activegrab = false
1120
	elseif didgrab == true then
1121
	end
1122
	end
1123
	if key == "m" then
1124
	if music == false then
1125
	music1:Play()
1126
	music = true
1127
	elseif music == true then
1128
	music1:Stop()
1129
	music = false
1130
	end
1131
	end
1132
end
1133
end
1134
1135
function onEquipped(mouse)
1136
	print("onEquipped")
1137
	Mouse = player:GetMouse()
1138
	if not Mouse then return end
1139
	if Mouse then Mouse.KeyDown:connect(keydowns) end
1140
	Character2 = chara
1141
	Humanoid2 = Character:FindFirstChild("Humanoid")
1142
	Torso2 = Character:FindFirstChild("Torso")
1143
	if Humanoid2 and Torso2 then
1144
	end
1145
end
1146
1147
function onUnequipped()
1148
	print("onUnequipped")
1149
1150
	Torso2 = nil
1151
	Humanoid2 = nil
1152
	Character2 = nil
1153
	Mouse = nil
1154
end
1155
1156
tool.Equipped:connect(onEquipped)
1157
tool.Unequipped:connect(onUnequipped)