SHOW:
|
|
- or go back to the newest paste.
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 | local RealPlayer = Player | |
4 | 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()}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;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 t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)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 self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({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")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end | |
5 | ------------------------------------------------- | |
6 | --Black Onslaught by CKbackup (ChocolateKnight)-- | |
7 | ------------------------------------------------- | |
8 | --Player stuff-- | |
9 | player = game:GetService("Players").LocalPlayer | |
10 | chara = player.Character | |
11 | hitdude = nil | |
12 | debby = game:GetService("Debris") | |
13 | chara.Humanoid.MaxHealth = math.huge | |
14 | chara.Humanoid.Health = math.huge | |
15 | chara.Humanoid.JumpPower = 100 | |
16 | local moosek = 0 | |
17 | local prevthing = 0 | |
18 | local timeofday = "Day" | |
19 | taip = 1 | |
20 | ||
21 | --Objects-- | |
22 | local tool = Instance.new("Tool",player.Backpack) | |
23 | tool.Name = "Hellma" | |
24 | tool.GripForward = Vector3.new(-1,0,0) | |
25 | tool.GripPos = Vector3.new(0,-2,0) | |
26 | tool.GripRight = Vector3.new(0,0,-1) | |
27 | tool.GripUp = Vector3.new(0,-1,0) | |
28 | tool.CanBeDropped = false | |
29 | local tool2 = Instance.new("Tool",player.Backpack) | |
30 | tool2.Name = "Nilshade" | |
31 | tool2.GripForward = Vector3.new(0,0,-1) | |
32 | tool2.GripPos = Vector3.new(0.1,-2.2,0.1) | |
33 | tool2.GripRight = Vector3.new(1,0,0) | |
34 | tool2.GripUp = Vector3.new(0,1,0) | |
35 | tool2.CanBeDropped = false | |
36 | local handle = Instance.new("Part", tool) | |
37 | handle.Name = "Handle" | |
38 | handle.Size = Vector3.new(1,5,1) | |
39 | local mesh = Instance.new("SpecialMesh", handle) | |
40 | mesh.MeshId = "http://www.roblox.com/asset/?id=83509558" | |
41 | mesh.TextureId = "http://www.roblox.com/asset/?id=83509797" | |
42 | mesh.VertexColor = Vector3.new(0.7,0,1) | |
43 | local mesh2 = Instance.new("SpecialMesh", tool) | |
44 | mesh2.MeshId = "http://www.roblox.com/asset/?id=95891318" | |
45 | mesh2.TextureId = "http://www.roblox.com/asset/?id=95891299" | |
46 | mesh2.VertexColor = Vector3.new(0.7,0,1) | |
47 | mesh2.Scale = Vector3.new(-0.8,0.8,-0.8) | |
48 | mesh2.Offset = Vector3.new(1,0.5,0) | |
49 | local handle2 = Instance.new("Part", tool2) | |
50 | handle2.Name = "Handle" | |
51 | handle2.Size = Vector3.new(1,5,1) | |
52 | local mesh3 = Instance.new("SpecialMesh", handle2) | |
53 | mesh3.MeshId = "http://www.roblox.com/asset/?id=86290540" | |
54 | mesh3.TextureId = "http://www.roblox.com/asset/?id=86290896" | |
55 | mesh3.Scale = Vector3.new(0.6,1,0.6) | |
56 | mesh3.VertexColor = Vector3.new(0.7,0,1) | |
57 | local spt1 = NumberSequenceKeypoint.new(0,1,0) | |
58 | local spt2 = NumberSequenceKeypoint.new(.8,1,0) | |
59 | local spt3 = NumberSequenceKeypoint.new(1,0,0) | |
60 | local cpt1 = ColorSequenceKeypoint.new(0,BrickColor.new("Royal purple").Color) | |
61 | local cpt2 = ColorSequenceKeypoint.new(1,BrickColor.new("Alder").Color) | |
62 | local fira = Instance.new("ParticleEmitter",handle) | |
63 | fira.Texture = "rbxasset://textures/particles/fire_main.dds" | |
64 | fira.Color = ColorSequence.new({cpt1,cpt2}) | |
65 | fira.LightEmission = 1 | |
66 | fira.Lifetime = NumberRange.new(2,2) | |
67 | fira.Size = NumberSequence.new({spt1,spt2,spt3}) | |
68 | fira.Speed = NumberRange.new(0,0) | |
69 | fira.Rate = 10000 | |
70 | fira.RotSpeed = NumberRange.new(100,100) | |
71 | fira.Enabled = false | |
72 | local rpt1 = NumberSequenceKeypoint.new(0,1,0) | |
73 | local rpt2 = NumberSequenceKeypoint.new(1,0,0) | |
74 | local deffecto = Instance.new("ParticleEmitter",chara["Left Arm"]) | |
75 | deffecto.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
76 | deffecto.Color = ColorSequence.new(Color3.new(0,0,0)) | |
77 | deffecto.Rate = 10000 | |
78 | deffecto.Lifetime = NumberRange.new(1,1) | |
79 | deffecto.Size = NumberSequence.new({rpt1,rpt2}) | |
80 | deffecto.Speed = NumberRange.new(0,0) | |
81 | deffecto.RotSpeed = NumberRange.new(100,100) | |
82 | deffecto.Enabled = false | |
83 | local sspt1 = NumberSequenceKeypoint.new(0,0,0) | |
84 | local sspt2 = NumberSequenceKeypoint.new(1,10,0) | |
85 | local tspt1 = NumberSequenceKeypoint.new(0,0,0) | |
86 | local tspt2 = NumberSequenceKeypoint.new(1,1,0) | |
87 | local eeeffecto = Instance.new("ParticleEmitter",chara.Torso) | |
88 | eeeffecto.Texture = "http://www.roblox.com/asset/?id=205525524" | |
89 | eeeffecto.LightEmission = 1 | |
90 | eeeffecto.LockedToPart = true | |
91 | eeeffecto.Rate = 1 | |
92 | eeeffecto.Lifetime = NumberRange.new(5,5) | |
93 | eeeffecto.Size = NumberSequence.new({sspt1,sspt2}) | |
94 | eeeffecto.Transparency = NumberSequence.new({tspt1,tspt2}) | |
95 | eeeffecto.Speed = NumberRange.new(0,0) | |
96 | eeeffecto.RotSpeed = NumberRange.new(100,100) | |
97 | --local musictool = Instance.new("Tool",player.Backpack) | |
98 | --musictool.Name = "Music" | |
99 | --musictool.RequiresHandle = false | |
100 | --musictool.CanBeDropped = false | |
101 | --local taunttool = Instance.new("Tool",player.Backpack) | |
102 | --taunttool.Name = "Taunt" | |
103 | --taunttool.RequiresHandle = false | |
104 | --taunttool.CanBeDropped = false | |
105 | --local changetool = Instance.new("Tool",player.Backpack) | |
106 | --changetool.Name = "Turn Sexy" | |
107 | --changetool.RequiresHandle = false | |
108 | --changetool.CanBeDropped = false | |
109 | ||
110 | local naeeym = Instance.new("BillboardGui",chara) | |
111 | naeeym.Size = UDim2.new(0,100,0,40) | |
112 | naeeym.StudsOffset = Vector3.new(0,2,0) | |
113 | naeeym.Adornee = chara.Head | |
114 | local tecks = Instance.new("TextLabel",naeeym) | |
115 | tecks.BackgroundTransparency = 1 | |
116 | tecks.BorderSizePixel = 0 | |
117 | tecks.Text = "Master of Star" | |
118 | tecks.Font = "Fantasy" | |
119 | tecks.FontSize = "Size24" | |
120 | tecks.TextStrokeTransparency = 0 | |
121 | tecks.TextColor3 = Color3.new(0,0,0) | |
122 | tecks.TextStrokeColor3 = BrickColor.new("Royal purple").Color | |
123 | tecks.Size = UDim2.new(1,0,0.5,0) | |
124 | fhandle = handle:clone() | |
125 | fhandle.CanCollide = false | |
126 | fhandle.Name = "FakeHandle" | |
127 | fhandle.Parent = chara | |
128 | local weld = Instance.new("Weld") | |
129 | weld.Name = "BackWeld" | |
130 | weld.Part0 = chara.Torso | |
131 | weld.Part1 = fhandle | |
132 | weld.C0 = CFrame.new(0,-.6,.4) | |
133 | weld.C0 = weld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(180),math.rad(0),math.rad(80)) | |
134 | weld.Parent = fhandle | |
135 | fhandle2 = handle2:clone() | |
136 | fhandle2.CanCollide = false | |
137 | fhandle2.Name = "FakeHandle2" | |
138 | fhandle2.Parent = chara | |
139 | local weld2 = Instance.new("Weld") | |
140 | weld2.Name = "BackWeld" | |
141 | weld2.Part0 = chara.Torso | |
142 | weld2.Part1 = fhandle2 | |
143 | weld2.C0 = CFrame.new(0,-.6,.6) | |
144 | weld2.C0 = weld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(180),math.rad(180),math.rad(60)) | |
145 | weld2.Parent = fhandle2 | |
146 | fhandle3 = handle2:clone() | |
147 | fhandle3.CanCollide = false | |
148 | fhandle3.Name = "FakeHandle3" | |
149 | fhandle3.Parent = chara | |
150 | fhandle3.BrickColor = BrickColor.new("Really black") | |
151 | fhandle3.Mesh.MeshId = "rbxasset://fonts/torso.mesh" | |
152 | fhandle3.Mesh.Offset = Vector3.new(0, 0.8, 0) | |
153 | fhandle3.Mesh.Scale = Vector3.new(0.05, 2.5, 0.3) | |
154 | fhandle3.Mesh.TextureId = "" | |
155 | local weld3 = Instance.new("Weld") | |
156 | weld3.Name = "BackWeld" | |
157 | weld3.Part0 = chara.Torso | |
158 | weld3.Part1 = fhandle3 | |
159 | weld3.C0 = CFrame.new(0,-.6,.6) | |
160 | weld3.C0 = weld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(180),math.rad(180),math.rad(60)) | |
161 | weld3.Parent = fhandle3 | |
162 | ||
163 | local orbuu = Instance.new("Part", chara) | |
164 | orbuu.Size = Vector3.new(1,1,1) | |
165 | orbuu.Name = "Diamond" | |
166 | orbuu.Anchored = true | |
167 | orbuu.CanCollide = false | |
168 | orbuu.BrickColor = BrickColor.new("Really black") | |
169 | local meshooo = Instance.new("SpecialMesh", orbuu) | |
170 | meshooo.MeshType = "FileMesh" | |
171 | meshooo.MeshId = "http://www.roblox.com/asset/?id=9756362" | |
172 | local RotationSpeed = 6 | |
173 | local BobSpeed = 1 | |
174 | local RotationDist = Vector3.new(5, 0, 0) | |
175 | local dt = 0 | |
176 | local currentTime = 0 | |
177 | ||
178 | local enablehit = Instance.new("BoolValue", tool) | |
179 | enablehit.Value = false | |
180 | local didhit = Instance.new("BoolValue", tool) | |
181 | didhit.Value = false | |
182 | local dreadecl = Instance.new("BoolValue", tool) | |
183 | dreadecl.Value = false | |
184 | local zanny = Instance.new("BoolValue", tool2) | |
185 | zanny.Value = false | |
186 | local revoruva = Instance.new("BoolValue", tool) | |
187 | revoruva.Value = false | |
188 | local blawk = Instance.new("BoolValue", tool2) | |
189 | blawk.Value = false | |
190 | local enablehit2 = Instance.new("BoolValue", tool) | |
191 | enablehit2.Value = false | |
192 | local didhit2 = Instance.new("BoolValue", tool) | |
193 | didhit2.Value = false | |
194 | ||
195 | local equipanim = Instance.new("Animation", tool) | |
196 | equipanim.AnimationId = "http://www.roblox.com/asset/?id=66702743" | |
197 | local scytheanim = Instance.new("Animation", tool) | |
198 | scytheanim.AnimationId = "http://www.roblox.com/asset/?id=96065457" | |
199 | local scytheleft = Instance.new("Animation", tool) | |
200 | scytheleft.AnimationId = "http://www.roblox.com/asset/?id=184573779" | |
201 | local scytheright = Instance.new("Animation", tool) | |
202 | scytheright.AnimationId = "http://www.roblox.com/asset/?id=184573748" | |
203 | local scythedown = Instance.new("Animation", tool) | |
204 | scythedown.AnimationId = "http://www.roblox.com/asset/?id=94160738" | |
205 | local swordabsorb = Instance.new("Animation", tool) | |
206 | swordabsorb.AnimationId = "http://www.roblox.com/asset/?id=83994319" | |
207 | local swordstab = Instance.new("Animation", tool) | |
208 | swordstab.AnimationId = "http://www.roblox.com/asset/?id=54504034" | |
209 | local stormv = Instance.new("Animation", tool) | |
210 | stormv.AnimationId = "http://www.roblox.com/asset/?id=184574340" | |
211 | local blasta = Instance.new("Animation", tool) | |
212 | blasta.AnimationId = "http://www.roblox.com/asset/?id=86504773" | |
213 | local equipanim2 = Instance.new("Animation", tool) | |
214 | equipanim2.AnimationId = "http://www.roblox.com/asset/?id=184572142" | |
215 | local kickanim = Instance.new("Animation", tool) | |
216 | kickanim.AnimationId = "http://www.roblox.com/asset/?id=45738282" | |
217 | local katsla1 = Instance.new("Animation", tool2) | |
218 | katsla1.AnimationId = "http://www.roblox.com/asset/?id=93060724" | |
219 | local katsla2 = Instance.new("Animation", tool2) | |
220 | katsla2.AnimationId = "http://www.roblox.com/asset/?id=93060716" | |
221 | local katsla3 = Instance.new("Animation", tool2) | |
222 | katsla3.AnimationId = "http://www.roblox.com/asset/?id=93060712" | |
223 | local katsla4 = Instance.new("Animation", tool2) | |
224 | katsla4.AnimationId = "http://www.roblox.com/asset/?id=93060709" | |
225 | ||
226 | local equipa = chara.Humanoid:LoadAnimation(equipanim) | |
227 | local scythea = chara.Humanoid:LoadAnimation(scytheanim) | |
228 | local scytheal = chara.Humanoid:LoadAnimation(scytheleft) | |
229 | local scythear = chara.Humanoid:LoadAnimation(scytheright) | |
230 | local scythead = chara.Humanoid:LoadAnimation(scythedown) | |
231 | local swordabs = chara.Humanoid:LoadAnimation(swordabsorb) | |
232 | local swordstb = chara.Humanoid:LoadAnimation(swordstab) | |
233 | local stormvip = chara.Humanoid:LoadAnimation(stormv) | |
234 | local blastanim = chara.Humanoid:LoadAnimation(blasta) | |
235 | local equipa2 = chara.Humanoid:LoadAnimation(equipanim2) | |
236 | local kicka = chara.Humanoid:LoadAnimation(kickanim) | |
237 | local ktsl1 = chara.Humanoid:LoadAnimation(katsla1) | |
238 | local ktsl2 = chara.Humanoid:LoadAnimation(katsla2) | |
239 | local ktsl3 = chara.Humanoid:LoadAnimation(katsla3) | |
240 | local ktsl4 = chara.Humanoid:LoadAnimation(katsla4) | |
241 | ||
242 | local swordequip = Instance.new("Sound", tool) | |
243 | swordequip.SoundId = "rbxasset://sounds/unsheath.wav" | |
244 | swordequip.PlaybackSpeed = 0.6 | |
245 | swordequip.Volume = 1 | |
246 | local chargesound = Instance.new("Sound", tool) | |
247 | chargesound.SoundId = "http://www.roblox.com/asset/?id=2101137" | |
248 | chargesound.PlaybackSpeed = 0.6 | |
249 | chargesound.Volume = 1 | |
250 | local swordsound = Instance.new("Sound", tool) | |
251 | swordsound.SoundId = "rbxasset://sounds/swordlunge.wav" | |
252 | swordsound.PlaybackSpeed = 0.6 | |
253 | swordsound.Volume = 1 | |
254 | local swordland = Instance.new("Sound", tool) | |
255 | swordland.SoundId = "http://www.roblox.com/asset/?id=46153268" | |
256 | swordland.PlaybackSpeed = 0.5 | |
257 | swordland.Volume = 1 | |
258 | local scytheland = Instance.new("Sound", tool) | |
259 | scytheland.SoundId = "http://www.roblox.com/asset/?id=28144425" | |
260 | scytheland.PlaybackSpeed = 0.265 | |
261 | scytheland.Volume = 1 | |
262 | local finalhits1 = Instance.new("Sound", tool) | |
263 | finalhits1.SoundId = "http://www.roblox.com/asset/?id=62339698" | |
264 | finalhits1.PlaybackSpeed = 0.3 | |
265 | finalhits1.Volume = 1 | |
266 | local finalhits2 = Instance.new("Sound", tool) | |
267 | finalhits2.SoundId = "http://www.roblox.com/asset/?id=2697431" | |
268 | finalhits2.PlaybackSpeed = 0.3 | |
269 | finalhits2.Volume = 1 | |
270 | local blasts = Instance.new("Sound", tool) | |
271 | blasts.SoundId = "http://www.roblox.com/asset/?id=2248511" | |
272 | blasts.PlaybackSpeed = .5 | |
273 | blasts.Volume = 1 | |
274 | local katanaslash = Instance.new("Sound", tool) | |
275 | katanaslash.SoundId = "http://www.roblox.com/asset/?id=62339698" | |
276 | katanaslash.PlaybackSpeed = 0.8 | |
277 | katanaslash.Volume = 1 | |
278 | local foxs = Instance.new("Sound", tool) | |
279 | foxs.SoundId = "http://www.roblox.com/asset/?id=501536185" | |
280 | foxs.PlaybackSpeed = 1 | |
281 | foxs.Volume = 1 | |
282 | local music1 = Instance.new("Sound", chara.Torso) | |
283 | music1.SoundId = "http://www.roblox.com/asset/?id=157916553" | |
284 | music1.PlaybackSpeed = 1 | |
285 | music1.Volume = 1 | |
286 | music1.Looped = true | |
287 | local music2 = Instance.new("Sound", chara.Torso) | |
288 | music2.SoundId = "http://www.roblox.com/asset/?id=248249480" | |
289 | music2.PlaybackSpeed = 1 | |
290 | music2.Volume = 1 | |
291 | music2.Looped = true | |
292 | local music3 = Instance.new("Sound", chara.Torso) | |
293 | music3.SoundId = "http://www.roblox.com/asset/?id=432543624" | |
294 | music3.PlaybackSpeed = 1 | |
295 | music3.Volume = 1 | |
296 | music3.Looped = true | |
297 | ||
298 | function scythehold() | |
299 | tool.GripForward = Vector3.new(-1,0,0) | |
300 | tool.GripPos = Vector3.new(0,-2,0) | |
301 | tool.GripRight = Vector3.new(0,0,-1) | |
302 | tool.GripUp = Vector3.new(0,-1,0) | |
303 | end | |
304 | function posslashleft() | |
305 | tool.GripForward = Vector3.new(1,0,0) | |
306 | tool.GripPos = Vector3.new(0,-4,0) | |
307 | tool.GripRight = Vector3.new(0,1,0) | |
308 | tool.GripUp = Vector3.new(0,0,-1) | |
309 | end | |
310 | function posslashright() | |
311 | tool.GripForward = Vector3.new(-1,0,0) | |
312 | tool.GripPos = Vector3.new(0,-4,0) | |
313 | tool.GripRight = Vector3.new(0,1,0) | |
314 | tool.GripUp = Vector3.new(0,0,1) | |
315 | end | |
316 | function posslashdown() | |
317 | tool.GripForward = Vector3.new(0,1,-.5) | |
318 | tool.GripPos = Vector3.new(0,-4,0) | |
319 | tool.GripRight = Vector3.new(0,0,1) | |
320 | tool.GripUp = Vector3.new(-1,0,0) | |
321 | end | |
322 | function regularswordpos() | |
323 | tool.GripForward = Vector3.new(-1,0,0) | |
324 | tool.GripPos = Vector3.new(0,-2,0) | |
325 | tool.GripRight = Vector3.new(0,0,-1) | |
326 | tool.GripUp = Vector3.new(0,-1,0) | |
327 | end | |
328 | function absorbswordm() | |
329 | tool.GripForward = Vector3.new(1,1,0) | |
330 | tool.GripPos = Vector3.new(0,-2,0) | |
331 | tool.GripRight = Vector3.new(0,0,1) | |
332 | tool.GripUp = Vector3.new(-1,1,0) | |
333 | end | |
334 | function createblack(part) | |
335 | local pt1 = NumberSequenceKeypoint.new(0,1,0) | |
336 | local pt2 = NumberSequenceKeypoint.new(1,0,0) | |
337 | local effecto = Instance.new("ParticleEmitter",part) | |
338 | effecto.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
339 | effecto.Color = ColorSequence.new(Color3.new(0,0,0)) | |
340 | effecto.Rate = 10000 | |
341 | effecto.Lifetime = NumberRange.new(1,1) | |
342 | effecto.Size = NumberSequence.new({pt1,pt2}) | |
343 | effecto.Speed = NumberRange.new(0,0) | |
344 | effecto.RotSpeed = NumberRange.new(100,100) | |
345 | end | |
346 | function createhugeblack(part) | |
347 | local pt1 = NumberSequenceKeypoint.new(0,10,0) | |
348 | local pt2 = NumberSequenceKeypoint.new(1,0,0) | |
349 | local effecto = Instance.new("ParticleEmitter",part) | |
350 | effecto.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
351 | effecto.Color = ColorSequence.new(Color3.new(0,0,0)) | |
352 | effecto.Rate = 10000 | |
353 | effecto.Lifetime = NumberRange.new(1,1) | |
354 | effecto.Size = NumberSequence.new({pt1,pt2}) | |
355 | effecto.Speed = NumberRange.new(0,0) | |
356 | effecto.RotSpeed = NumberRange.new(100,100) | |
357 | end | |
358 | ||
359 | createblack(orbuu) | |
360 | orbuu.ParticleEmitter.Color = ColorSequence.new(Color3.new(1,0,1)) | |
361 | orbuu.ParticleEmitter.LightEmission = 1 | |
362 | --Spell Circle-- | |
363 | ||
364 | Void = nil | |
365 | VoidParts = {} | |
366 | Equipped = false | |
367 | ||
368 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
369 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
370 | end | |
371 | ||
372 | Player = player | |
373 | Character = chara | |
374 | ||
375 | Humanoid = Character:FindFirstChild("Humanoid") | |
376 | Torso = Character:FindFirstChild("Torso") | |
377 | if not Player or not Humanoid or Humanoid.Health == 0 or not Torso then | |
378 | return | |
379 | end | |
380 | Equipped = true | |
381 | Void = Instance.new("Model") | |
382 | Void.Name = "Void" | |
383 | Angle = 0 | |
384 | for i = 1, 1 do | |
385 | local VoidPart = Instance.new("Part") | |
386 | VoidPart.Name = "VoidPart" | |
387 | VoidPart.Transparency = 1 | |
388 | VoidPart.BrickColor = BrickColor.new("Really black") | |
389 | VoidPart.Material = Enum.Material.Plastic | |
390 | VoidPart.Shape = Enum.PartType.Block | |
391 | VoidPart.FormFactor = Enum.FormFactor.Custom | |
392 | VoidPart.TopSurface = Enum.SurfaceType.Smooth | |
393 | VoidPart.BottomSurface = Enum.SurfaceType.Smooth | |
394 | VoidPart.Anchored = true | |
395 | VoidPart.CanCollide = false | |
396 | VoidPart.Locked = true | |
397 | VoidPart.Size = Vector3.new(10, 0.2, 10) | |
398 | local BlockMesh = Instance.new("BlockMesh") | |
399 | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) | |
400 | BlockMesh.Parent = VoidPart | |
401 | VoidPart.Parent = Void | |
402 | local Star = Instance.new("Decal", VoidPart) | |
403 | Star.Texture = "http://www.roblox.com/asset/?id=205525524" | |
404 | Star.Face = "Top" | |
405 | local Light = Instance.new("PointLight", VoidPart) | |
406 | Light.Color = Color3.new(1,0,1) | |
407 | Light.Brightness = 100 | |
408 | Light.Range = 10 | |
409 | table.insert(VoidParts, VoidPart) | |
410 | end | |
411 | Spawn(function() | |
412 | while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Torso.Parent do | |
413 | if Angle == 360 then | |
414 | Angle = 0 | |
415 | end | |
416 | Angle = Angle + 0.05 | |
417 | chara.Humanoid.MaxHealth = math.huge | |
418 | chara.Humanoid.Health = math.huge | |
419 | local parentPos = chara.Torso.CFrame | |
420 | --Rotate Fluffy around the player's head | |
421 | local rotation = CFrame.Angles(0 , RotationSpeed * currentTime, 0) | |
422 | local bob = Vector3.new(0, BobSpeed * math.sin(currentTime), 0) | |
423 | orbuu.CFrame = ((parentPos + bob) + (rotation * RotationDist)) | |
424 | --Wait some time so we aren't going plaid | |
425 | dt, currentTime = wait(1/40) | |
426 | local cheeed = chara:GetChildren() | |
427 | for i = 1, #cheeed do | |
428 | if cheeed[i].ClassName == "Part" then | |
429 | if cheeed[i].Name ~= "Right Arm" and cheeed[i].Name ~= "Left Arm" and cheeed[i].Name ~= "Right Leg" and cheeed[i].Name ~= "Left Leg" and cheeed[i].Name ~= "Torso" and cheeed[i].Name ~= "HumanoidRootPart" and cheeed[i].Name ~= "Head" and cheeed[i].Name ~= "FakeHandle" and cheeed[i].Name ~= "FakeHandle2" and cheeed[i].Name ~= "FakeHandle3" and cheeed[i].Name ~= "Diamond" then | |
430 | cheeed[i]:Destroy() | |
431 | else end | |
432 | end | |
433 | end | |
434 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character}) | |
435 | if Hit then | |
436 | if not Void.Parent then | |
437 | Void.Parent = Character | |
438 | end | |
439 | for i, v in pairs(VoidParts) do | |
440 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
441 | end | |
442 | else | |
443 | Void.Parent = nil | |
444 | end | |
445 | wait() | |
446 | end | |
447 | end) | |
448 | ||
449 | --Now the real stuff!-- | |
450 | ||
451 | function chat(string) | |
452 | --ch = game:GetService("Chat"):Chat(chara.Head, string, "Red") | |
453 | if chara:FindFirstChild("TalkingBillBoard") ~= nil then | |
454 | chara:FindFirstChild("TalkingBillBoard"):destroy() | |
455 | end | |
456 | local naeeym2 = Instance.new("BillboardGui",chara) | |
457 | naeeym2.Size = UDim2.new(0,100,0,40) | |
458 | naeeym2.StudsOffset = Vector3.new(0,4,0) | |
459 | naeeym2.Adornee = chara.Head | |
460 | naeeym2.Name = "TalkingBillBoard" | |
461 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
462 | tecks2.BackgroundTransparency = 1 | |
463 | tecks2.BorderSizePixel = 0 | |
464 | tecks2.Text = string | |
465 | tecks2.Font = "Fantasy" | |
466 | tecks2.FontSize = "Size24" | |
467 | tecks2.TextStrokeTransparency = 0 | |
468 | tecks2.TextColor3 = Color3.new(0,0,0) | |
469 | tecks2.TextStrokeColor3 = BrickColor.new("Royal purple").Color | |
470 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
471 | debby:AddItem(naeeym2,1) | |
472 | end | |
473 | ||
474 | function createorb(origin,target) | |
475 | local orb = Instance.new("Part", game.Workspace) | |
476 | orb.Shape = "Ball" | |
477 | orb.CanCollide = false | |
478 | orb.Size = Vector3.new(1,1,1) | |
479 | orb.BrickColor = BrickColor.new("White") | |
480 | orb.Material = "Neon" | |
481 | orb.Position = origin.Position | |
482 | orb.Velocity = Vector3.new(math.random() - .5, 0, math.random() - .5).unit * 80 | |
483 | local firr = Instance.new("Fire", orb) | |
484 | firr.Color = Color3.new(1,1,1) | |
485 | firr.SecondaryColor = Color3.new(1,1,1) | |
486 | firr.Size = 2 | |
487 | local gotoforce = Instance.new("BodyPosition", orb) | |
488 | gotoforce.Position = target.Position | |
489 | debby:AddItem(orb,1) | |
490 | end | |
491 | ||
492 | function kicktouch(hit) | |
493 | if revoruva.Value == true then | |
494 | if hit ~= nil and hit.Parent:FindFirstChild("kicko") == nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
495 | swordland:Play() | |
496 | hitdude = hit.Parent | |
497 | valood = Instance.new("NumberValue", hit.Parent) | |
498 | valood.Name = "kicko" | |
499 | hitdude.Humanoid.Health = hitdude.Humanoid.Health - 20 | |
500 | hitdude.Humanoid.PlatformStand = true | |
501 | faws = Instance.new("BodyVelocity", hit.Parent.Torso) | |
502 | faws.Velocity = (hitdude.Torso.Position - chara.HumanoidRootPart.Position) * 20 | |
503 | wait(.5) | |
504 | hitdude.Humanoid.PlatformStand = false | |
505 | valood:Destroy() | |
506 | faws:Destroy() | |
507 | end | |
508 | end | |
509 | end | |
510 | ||
511 | function onTouched(hit) | |
512 | --EENFERNOH DEEVAIDER!-- | |
513 | if dreadecl.Value == true then | |
514 | if hit ~= nil and hit.Parent:FindFirstChild("dreaded") == nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
515 | finalhits1:Play() | |
516 | hitdude = hit.Parent | |
517 | valood = Instance.new("NumberValue", hit.Parent) | |
518 | valood.Name = "dreaded" | |
519 | hitdude.Humanoid.Health = hitdude.Humanoid.Health - 30 | |
520 | hitdude.Humanoid.PlatformStand = true | |
521 | faws = Instance.new("BodyVelocity", hit.Parent.Torso) | |
522 | faws.Velocity = Vector3.new(0,50,0) | |
523 | wait(1) | |
524 | hitdude.Humanoid.PlatformStand = false | |
525 | valood:Destroy() | |
526 | faws:Destroy() | |
527 | end | |
528 | end | |
529 | --BLEK AWNSLOT!-- | |
530 | if enablehit.Value == true then | |
531 | if hit ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
532 | swordland:play() | |
533 | didhit.Value = true | |
534 | enablehit.Value = false | |
535 | hitdude = hit.Parent | |
536 | if hitdude.Name == "grgrgry21" then | |
537 | chat("I'm sorry, you were a great man, Gry.") | |
538 | elseif hitdude then | |
539 | chat("Sorry, but you need to die.") | |
540 | end | |
541 | hitdude.Humanoid.Health = 80 | |
542 | hitdude.Humanoid.MaxHealth = 100 | |
543 | hitdude.Humanoid.PlatformStand = true | |
544 | hitdude.Humanoid.WalkSpeed = 0 | |
545 | chara.Humanoid.WalkSpeed = 0 | |
546 | if hitdude:FindFirstChild("Torso") ~= nil then | |
547 | hitdude.Torso.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*5) | |
548 | local standstill = Instance.new("BodyPosition", hitdude.Torso) | |
549 | standstill.Position = hitdude.Torso.Position | |
550 | end | |
551 | if hitdude:FindFirstChild("Left Arm") ~= nil then | |
552 | hitdude["Left Arm"]:destroy() | |
553 | end | |
554 | if hitdude:FindFirstChild("Right Arm") ~= nil then | |
555 | hitdude["Right Arm"]:destroy() | |
556 | end | |
557 | wait(1) | |
558 | chat("Hell Zagan!") | |
559 | swordequip:play() | |
560 | swordabs:Stop() | |
561 | scythea:Play() | |
562 | fira.Enabled = true | |
563 | --fira.Size = 5 | |
564 | mesh.Parent = tool | |
565 | mesh2.Parent = handle | |
566 | wait(1) | |
567 | scythea:Stop() | |
568 | posslashleft() | |
569 | for i = 1,2 do | |
570 | handle.CanCollide = true | |
571 | scytheland:play() | |
572 | scytheal:Play() | |
573 | posslashleft() | |
574 | swordsound:play() | |
575 | swordland:play() | |
576 | hitdude.Humanoid.Health = hitdude.Humanoid.Health - 2 | |
577 | createorb(hitdude.Torso,chara.Torso) | |
578 | chara.Humanoid.Health = chara.Humanoid.Health + 10 | |
579 | --fira.Size = fira.Size + .5 | |
580 | wait(0.4) | |
581 | scytheal:Stop() | |
582 | scythear:Play() | |
583 | posslashright() | |
584 | swordsound:play() | |
585 | swordland:play() | |
586 | hitdude.Humanoid.Health = hitdude.Humanoid.Health - 2 | |
587 | createorb(hitdude.Torso,chara.Torso) | |
588 | chara.Humanoid.Health = chara.Humanoid.Health + 10 | |
589 | --fira.Size = fira.Size + .5 | |
590 | wait(0.4) | |
591 | handle.CanCollide = false | |
592 | scythear:Stop() | |
593 | scythead:Play() | |
594 | posslashdown() | |
595 | swordsound:play() | |
596 | swordland:play() | |
597 | hitdude.Humanoid.Health = hitdude.Humanoid.Health - 2 | |
598 | createorb(hitdude.Torso,chara.Torso) | |
599 | chara.Humanoid.Health = chara.Humanoid.Health + 10 | |
600 | --fira.Size = fira.Size + .5 | |
601 | wait(0.4) | |
602 | scythead:Stop() | |
603 | end | |
604 | chat("Hell Reign!") | |
605 | mesh2.Parent = tool | |
606 | mesh.Parent = handle | |
607 | chargesound:play() | |
608 | swordabs:Play() | |
609 | absorbswordm() | |
610 | for i = 1, 4 do | |
611 | wait(.25) | |
612 | hitdude.Humanoid.Health = hitdude.Humanoid.Health - 2 | |
613 | createorb(hitdude.Torso,handle) | |
614 | --fira.Size = fira.Size + 1 | |
615 | chara.Humanoid.Health = chara.Humanoid.Health + 10 | |
616 | finalhits2:play() | |
617 | end | |
618 | regularswordpos() | |
619 | swordabs:Stop() | |
620 | swordstb:Play() | |
621 | for i = 1, 4 do | |
622 | wait(.25) | |
623 | hitdude.Humanoid.Health = hitdude.Humanoid.Health - 2 | |
624 | createorb(hitdude.Torso,handle) | |
625 | --fira.Size = fira.Size + 1 | |
626 | chara.Humanoid.Health = chara.Humanoid.Health + 10 | |
627 | finalhits2:play() | |
628 | end | |
629 | chat("OBLITERATION!") | |
630 | finalhits1:play() | |
631 | finalhits2:play() | |
632 | hitdude.Humanoid.Health = 0 | |
633 | local childs = hitdude:GetChildren() | |
634 | for i=1,#childs do | |
635 | if (childs[i].className == "Part") then | |
636 | childs[i].BrickColor = BrickColor.new("Really black") | |
637 | childs[i]:BreakJoints() | |
638 | local b = Instance.new("BodyVelocity") | |
639 | b.velocity = Vector3.new(math.random() - .5, 0, math.random() - .5).unit * 80 | |
640 | b.maxForce = Vector3.new(1e5,1e5,1e5) | |
641 | b.Parent = childs[i] | |
642 | createblack(childs[i]) | |
643 | end | |
644 | end | |
645 | wait(2) | |
646 | if hitdude.Name == "grgrgry21" then | |
647 | chat("I'm sorry...") | |
648 | elseif hitdude then | |
649 | chat("Die.") | |
650 | end | |
651 | wait(1) | |
652 | tool.Enabled = true | |
653 | didhit.Value = false | |
654 | fira.Enabled = false | |
655 | chara.Humanoid.WalkSpeed = 50 | |
656 | end | |
657 | end | |
658 | end | |
659 | ||
660 | function onTouched2(hit) | |
661 | if zanny.Value == true then | |
662 | if hit ~= nil and hit.Parent:FindFirstChild("zanned") == nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
663 | hitdude = hit.Parent | |
664 | valood = Instance.new("NumberValue", hit.Parent) | |
665 | valood.Name = "zanned" | |
666 | hitdude.Humanoid.Health = hitdude.Humanoid.Health - 10 | |
667 | faws = Instance.new("BodyVelocity", hit.Parent.Torso) | |
668 | faws.Velocity = (hitdude.Torso.Position - chara.HumanoidRootPart.Position) * 1 | |
669 | wait(.3) | |
670 | valood:Destroy() | |
671 | faws:Destroy() | |
672 | end | |
673 | else end | |
674 | if blawk.Value == true then | |
675 | if hit ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
676 | blawk.Value = false | |
677 | chara.Torso.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*20) | |
678 | tool2.Enabled = false | |
679 | hitdude = hit.Parent | |
680 | hitdude.Humanoid.Health = hitdude.Humanoid.Health - 50 | |
681 | hitdude.Torso.Anchored = true | |
682 | chat("Demonic Riposte!") | |
683 | ktsl1:Play() | |
684 | local sspt1 = NumberSequenceKeypoint.new(0,1,0) | |
685 | local sspt2 = NumberSequenceKeypoint.new(1,0,0) | |
686 | local ddeffecto = Instance.new("ParticleEmitter",hitdude.Torso) | |
687 | ddeffecto.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
688 | ddeffecto.Color = ColorSequence.new(Color3.new(0,0,0)) | |
689 | ddeffecto.Rate = 10000 | |
690 | ddeffecto.Lifetime = NumberRange.new(1,1) | |
691 | ddeffecto.Size = NumberSequence.new({sspt1,sspt2}) | |
692 | ddeffecto.Speed = NumberRange.new(50,50) | |
693 | ddeffecto.RotSpeed = NumberRange.new(100,100) | |
694 | ddeffecto.VelocitySpread = 50 | |
695 | ddeffecto.EmissionDirection = "Front" | |
696 | finalhits1:Play() | |
697 | finalhits2:Play() | |
698 | wait(1) | |
699 | ddeffecto:Destroy() | |
700 | scythea:Stop() | |
701 | ktsl1:Stop() | |
702 | hitdude.Torso.Anchored = false | |
703 | chara.Humanoid.WalkSpeed = 50 | |
704 | tool2.Enabled = true | |
705 | end | |
706 | end | |
707 | if enablehit2.Value == true then | |
708 | if hit ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
709 | scythea:Stop() | |
710 | finalhits2:play() | |
711 | didhit2.Value = true | |
712 | enablehit2.Value = false | |
713 | hitdude = hit.Parent | |
714 | if hitdude.Name == "grgrgry21" then | |
715 | chat("I'm sorry, Gry.") | |
716 | elseif hitdude then | |
717 | chat("Haha, how unfortunate.") | |
718 | end | |
719 | hitdude.Humanoid.Health = 100 | |
720 | hitdude.Humanoid.MaxHealth = 100 | |
721 | hitdude.Humanoid.PlatformStand = true | |
722 | hitdude.Humanoid.WalkSpeed = 0 | |
723 | chara.Humanoid.WalkSpeed = 0 | |
724 | if hitdude:FindFirstChild("Torso") ~= nil then | |
725 | createblack(hitdude.Torso) | |
726 | hitdude.Torso.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*5) | |
727 | local standstill = Instance.new("BodyPosition", hitdude.Torso) | |
728 | standstill.Position = hitdude.Torso.Position | |
729 | end | |
730 | if hitdude:FindFirstChild("Left Arm") ~= nil then | |
731 | hitdude["Left Arm"]:destroy() | |
732 | end | |
733 | if hitdude:FindFirstChild("Right Arm") ~= nil then | |
734 | hitdude["Right Arm"]:destroy() | |
735 | end | |
736 | wait(1) | |
737 | local ssspt1 = NumberSequenceKeypoint.new(0,1,0) | |
738 | local ssspt2 = NumberSequenceKeypoint.new(1,0,0) | |
739 | local dddeffecto = Instance.new("ParticleEmitter",hitdude.Torso) | |
740 | dddeffecto.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
741 | dddeffecto.Color = ColorSequence.new(Color3.new(0,0,0)) | |
742 | dddeffecto.Rate = 10000 | |
743 | dddeffecto.Lifetime = NumberRange.new(1,1) | |
744 | dddeffecto.Size = NumberSequence.new({ssspt1,ssspt2}) | |
745 | dddeffecto.Speed = NumberRange.new(50,50) | |
746 | dddeffecto.RotSpeed = NumberRange.new(100,100) | |
747 | dddeffecto.VelocitySpread = 50 | |
748 | dddeffecto.EmissionDirection = "Back" | |
749 | for i = 1, 5 do | |
750 | katanaslash:Play() | |
751 | ktsl1:Play() | |
752 | wait(0.1) | |
753 | katanaslash:Play() | |
754 | ktsl1:Stop() | |
755 | ktsl2:Play() | |
756 | wait(0.1) | |
757 | katanaslash:Play() | |
758 | ktsl2:Stop() | |
759 | ktsl3:Play() | |
760 | wait(0.1) | |
761 | katanaslash:Play() | |
762 | ktsl3:Stop() | |
763 | ktsl4:Play() | |
764 | wait(0.1) | |
765 | ktsl4:Stop() | |
766 | end | |
767 | dddeffecto:Destroy() | |
768 | wait(.5) | |
769 | chara.Torso.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*15) | |
770 | wait(1) | |
771 | if hitdude.Name == "grgrgry21" then | |
772 | chat("Goodbye, Gry.") | |
773 | elseif hitdude then | |
774 | chat("Now die.") | |
775 | end | |
776 | wait(0.2) | |
777 | ktsl1:Play() | |
778 | swordsound:Play() | |
779 | wait(0.1) | |
780 | finalhits1:play() | |
781 | finalhits2:play() | |
782 | hitdude.Humanoid.Health = 0 | |
783 | local childs = hitdude:GetChildren() | |
784 | for i=1,#childs do | |
785 | if (childs[i].className == "Part") then | |
786 | childs[i].BrickColor = BrickColor.new("Really black") | |
787 | childs[i]:BreakJoints() | |
788 | local b = Instance.new("BodyVelocity") | |
789 | b.velocity = Vector3.new(math.random() - .5, 0, math.random() - .5).unit * 80 | |
790 | b.maxForce = Vector3.new(1e5,1e5,1e5) | |
791 | b.Parent = childs[i] | |
792 | createblack(childs[i]) | |
793 | end | |
794 | end | |
795 | wait(2) | |
796 | ktsl1:Stop() | |
797 | tool2.Enabled = true | |
798 | didhit2.Value = false | |
799 | chara.Humanoid.WalkSpeed = 50 | |
800 | end | |
801 | end | |
802 | end | |
803 | ||
804 | function blowprojectile(hit) | |
805 | if (hit.Parent == nil) then return end -- happens when bullet hits sword | |
806 | ||
807 | local humanoid = nil | |
808 | if hit.Parent ~= chara and hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
809 | humanoid = hit.Parent:FindFirstChild("Humanoid") | |
810 | end | |
811 | if humanoid then | |
812 | hit:BreakJoints() | |
813 | hit.BrickColor = BrickColor.new("Really black") | |
814 | createblack(hit) | |
815 | end | |
816 | local vCharacter = tool.Parent | |
817 | local vPlayer = game.Players:playerFromCharacter(vCharacter) | |
818 | local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character | |
819 | if humanoid~=nil and humanoid ~= hum and hum ~= nil then | |
820 | -- final check, make sure sword is in-hand | |
821 | ||
822 | local right_arm = vCharacter:FindFirstChild("Right Arm") | |
823 | if (right_arm ~= nil) then | |
824 | local joint = right_arm:FindFirstChild("RightGrip") | |
825 | if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then | |
826 | wait(1) | |
827 | end | |
828 | end | |
829 | end | |
830 | end | |
831 | ||
832 | function fire(v, part) | |
833 | ||
834 | local vCharacter = chara | |
835 | local vPlayer = player | |
836 | ||
837 | local missile = Instance.new("Part") | |
838 | ||
839 | ||
840 | ||
841 | missile.CFrame = part.CFrame * CFrame.Angles(math.pi/2,0,0) | |
842 | missile.Size = Vector3.new(2,2,2) | |
843 | missile.Velocity = v.unit * 200 | |
844 | missile.BrickColor = BrickColor.new("Really black") | |
845 | missile.BottomSurface = 0 | |
846 | missile.TopSurface = 0 | |
847 | missile.CanCollide = false | |
848 | missile.Elasticity = .05 | |
849 | missile.Friction = .7 | |
850 | missile.Name = "Bullet" | |
851 | ||
852 | missile.Touched:connect(blowprojectile) | |
853 | ||
854 | local mesh = Instance.new("SpecialMesh") | |
855 | mesh.MeshType = "Sphere" | |
856 | mesh.Parent = missile | |
857 | ||
858 | local force = Instance.new("BodyForce") | |
859 | force.force = Vector3.new(0,1100,0) | |
860 | force.Parent = missile | |
861 | ||
862 | createblack(missile) | |
863 | ||
864 | -- local force = Instance.new("BodyForce") | |
865 | -- force.Name = "BulletFloat" | |
866 | -- force.force = Vector3.new(0,98.1,0) | |
867 | -- force.Parent = missile | |
868 | ||
869 | debby:AddItem(missile,5) | |
870 | missile.Parent = game.Workspace | |
871 | ||
872 | blasts:play() | |
873 | end | |
874 | ||
875 | function keydowns(key) | |
876 | if tool.Enabled == true then | |
877 | if key == "v" then | |
878 | chat("HELL ONSLAUGHT!") | |
879 | tool.Enabled = false | |
880 | swordequip:Play() | |
881 | wait(1) | |
882 | chara.Humanoid.WalkSpeed = 0 | |
883 | enablehit.Value = true | |
884 | swordsound:play() | |
885 | swordabs:Play() | |
886 | wait(2) | |
887 | if didhit.Value == false then | |
888 | swordabs:Stop() | |
889 | enablehit.Value = false | |
890 | tool.Enabled = true | |
891 | chara.Humanoid.WalkSpeed = 50 | |
892 | chat("CHEESE") | |
893 | print("Failed to land...") | |
894 | elseif didhit.Value == true then end | |
895 | else end | |
896 | if key == "c" then | |
897 | chat("Demon Viper!") | |
898 | chara.Humanoid.WalkSpeed = 5 | |
899 | tool.Enabled = false | |
900 | dreadecl.Value = true | |
901 | stormvip:Play() | |
902 | finalhits2:Play() | |
903 | scytheland:Play() | |
904 | fira.Enabled = true | |
905 | wait(1) | |
906 | chara.Humanoid.WalkSpeed = 50 | |
907 | dreadecl.Value = false | |
908 | tool.Enabled = true | |
909 | fira.Enabled = false | |
910 | stormvip:Stop() | |
911 | else end | |
912 | if key == "x" then | |
913 | chat("Shadow Blast!") | |
914 | tool.Enabled = false | |
915 | blastanim:Play() | |
916 | chargesound:Play() | |
917 | deffecto.Enabled = true | |
918 | wait(1.5) | |
919 | for i = 1, 10 do | |
920 | wait(0.1) | |
921 | fire(chara.HumanoidRootPart.CFrame.lookVector, orbuu) | |
922 | end | |
923 | wait(0.5) | |
924 | blastanim:Stop() | |
925 | deffecto.Enabled = false | |
926 | tool.Enabled = true | |
927 | else end | |
928 | if key == "z" then | |
929 | tool.Enabled = false | |
930 | chat("Devil Revolver!") | |
931 | kicka:Play() | |
932 | chara.Humanoid.WalkSpeed = 5 | |
933 | revoruva.Value = true | |
934 | swordsound:Play() | |
935 | wait(1) | |
936 | kicka:Stop() | |
937 | tool.Enabled = true | |
938 | chara.Humanoid.WalkSpeed = 50 | |
939 | revoruva.Value = false | |
940 | end | |
941 | end | |
942 | if key == "g" then | |
943 | Taunt() | |
944 | elseif key == "m" then | |
945 | Moosik() | |
946 | elseif key == "h" then | |
947 | changeclothes() | |
948 | end | |
949 | end | |
950 | ||
951 | function keydowns2(key) | |
952 | if tool2.Enabled == true then | |
953 | if key == "z" and blawk.Value == false then | |
954 | tool2.Enabled = false | |
955 | chat("Devil Revolver!") | |
956 | kicka:Play() | |
957 | chara.Humanoid.WalkSpeed = 5 | |
958 | revoruva.Value = true | |
959 | swordsound:Play() | |
960 | wait(1) | |
961 | kicka:Stop() | |
962 | tool2.Enabled = true | |
963 | chara.Humanoid.WalkSpeed = 50 | |
964 | revoruva.Value = false | |
965 | end | |
966 | if key == "x" and blawk.Value == false then | |
967 | chat("Zantetsu!") | |
968 | chara.Humanoid.WalkSpeed = 5 | |
969 | tool2.Enabled = false | |
970 | zanny.Value = true | |
971 | for i = 1, 2 do | |
972 | katanaslash:Play() | |
973 | ktsl1:Play() | |
974 | wait(0.1) | |
975 | katanaslash:Play() | |
976 | ktsl1:Stop() | |
977 | ktsl2:Play() | |
978 | wait(0.1) | |
979 | katanaslash:Play() | |
980 | ktsl2:Stop() | |
981 | ktsl3:Play() | |
982 | wait(0.1) | |
983 | katanaslash:Play() | |
984 | ktsl3:Stop() | |
985 | ktsl4:Play() | |
986 | wait(0.1) | |
987 | ktsl4:Stop() | |
988 | end | |
989 | chara.Humanoid.WalkSpeed = 50 | |
990 | tool2.Enabled = true | |
991 | zanny.Value = false | |
992 | end | |
993 | if key == "c" then | |
994 | if blawk.Value == false then | |
995 | chat("With little to no trace...") | |
996 | scythea:Play() | |
997 | blawk.Value = true | |
998 | chara.Humanoid.WalkSpeed = 5 | |
999 | elseif blawk.Value == true then | |
1000 | scythea:Stop() | |
1001 | blawk.Value = false | |
1002 | chara.Humanoid.WalkSpeed = 50 | |
1003 | end | |
1004 | end | |
1005 | if key == "v" then | |
1006 | chat("Koukuujin Ougi...") | |
1007 | tool2.Enabled = false | |
1008 | swordequip:Play() | |
1009 | chara.Humanoid.WalkSpeed = 0 | |
1010 | enablehit2.Value = true | |
1011 | scythea:Play() | |
1012 | wait(5) | |
1013 | if didhit2.Value == false then | |
1014 | enablehit2.Value = false | |
1015 | tool2.Enabled = true | |
1016 | chara.Humanoid.WalkSpeed = 50 | |
1017 | print("Failed to land...") | |
1018 | scythea:Stop() | |
1019 | elseif didhit2.Value == true then end | |
1020 | end | |
1021 | end | |
1022 | if key == "g" then | |
1023 | Taunt() | |
1024 | elseif key == "m" then | |
1025 | Moosik() | |
1026 | elseif key == "h" then | |
1027 | changeclothes() | |
1028 | end | |
1029 | end | |
1030 | ||
1031 | function onEquipped(mouse) | |
1032 | swordequip:play() | |
1033 | equipa:play() | |
1034 | chara.Humanoid.WalkSpeed = 50 | |
1035 | if fhandle ~= nil then | |
1036 | fhandle.Transparency = 1 | |
1037 | end | |
1038 | if mouse then mouse.KeyDown:connect(keydowns) | |
1039 | end | |
1040 | end | |
1041 | ||
1042 | function onUnequipped() | |
1043 | equipa:stop() | |
1044 | chara.Humanoid.WalkSpeed = 16 | |
1045 | if fhandle ~= nil then | |
1046 | fhandle.Transparency = 0 | |
1047 | end | |
1048 | end | |
1049 | ||
1050 | function onEquipped2(mouse) | |
1051 | swordequip:play() | |
1052 | equipa2:play() | |
1053 | chara.Humanoid.WalkSpeed = 50 | |
1054 | if fhandle2 ~= nil then | |
1055 | fhandle2.Transparency = 1 | |
1056 | end | |
1057 | if mouse then mouse.KeyDown:connect(keydowns2) | |
1058 | end | |
1059 | end | |
1060 | ||
1061 | function onUnequipped2() | |
1062 | equipa2:stop() | |
1063 | chara.Humanoid.WalkSpeed = 16 | |
1064 | if fhandle2 ~= nil then | |
1065 | fhandle2.Transparency = 0 | |
1066 | end | |
1067 | end | |
1068 | ||
1069 | function Taunt() | |
1070 | thing = math.random(1,4) | |
1071 | foxs:Play() | |
1072 | if taip == 1 then | |
1073 | if thing == 1 and prevthing ~= 1 then | |
1074 | chat("You're too weak.") | |
1075 | prevthing = 1 | |
1076 | elseif thing == 2 and prevthing ~= 2 then | |
1077 | chat("Don't let your guard down.") | |
1078 | prevthing = 2 | |
1079 | elseif thing == 3 and prevthing ~= 3 then | |
1080 | chat("Too naive.") | |
1081 | prevthing = 3 | |
1082 | elseif thing == 4 and prevthing ~= 4 then | |
1083 | chat("Someone like you...") | |
1084 | wait(1) | |
1085 | chat("...can't defeat me!") | |
1086 | prevthing = 4 | |
1087 | end | |
1088 | elseif taip == 2 then | |
1089 | chat("please fahk me") | |
1090 | end | |
1091 | end | |
1092 | ||
1093 | function Moosik() | |
1094 | if moosek == 0 then | |
1095 | music1:Play() | |
1096 | moosek = 1 | |
1097 | elseif moosek == 1 then | |
1098 | music1:Stop() | |
1099 | moosek = 0 | |
1100 | end | |
1101 | end | |
1102 | ||
1103 | function changeclothes() | |
1104 | if taip == 1 then | |
1105 | shirt.ShirtTemplate = "" | |
1106 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=196429174" | |
1107 | tshirt.Graphic = "http://www.roblox.com/asset/?id=130291831" | |
1108 | taip = 2 | |
1109 | tecks.Text = "ghey" | |
1110 | elseif taip == 2 then | |
1111 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=555077915" | |
1112 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=482320178" | |
1113 | tshirt.Graphic = "" | |
1114 | taip = 1 | |
1115 | tecks.Text = "Enma the Null Kitsune" | |
1116 | end | |
1117 | end | |
1118 | ||
1119 | tool.Equipped:connect(onEquipped) | |
1120 | tool.Unequipped:connect(onUnequipped) | |
1121 | tool2.Equipped:connect(onEquipped2) | |
1122 | tool2.Unequipped:connect(onUnequipped2) | |
1123 | --musictool.Activated:connect(Moosik) | |
1124 | --taunttool.Activated:connect(Taunt) | |
1125 | handle.Touched:connect(onTouched) | |
1126 | handle2.Touched:connect(onTouched2) | |
1127 | chara["Left Leg"].Touched:connect(kicktouch) | |
1128 | --changetool.Activated:connect(changeclothes) | |
1129 | ||
1130 | --DEATH-- | |
1131 | local deathed = false | |
1132 | function onDied() | |
1133 | deathed = true | |
1134 | chat("To be defeated by a weakling like you..") | |
1135 | shirt:Destroy() | |
1136 | pants:Destroy() | |
1137 | Void:Destroy() | |
1138 | orbuu:Destroy() | |
1139 | fhandle:Destroy() | |
1140 | fhandle2:Destroy() | |
1141 | fhandle3:Destroy() | |
1142 | music1.Volume = 0 | |
1143 | local dmusic = Instance.new("Sound", game.Workspace) | |
1144 | dmusic.SoundId = "http://www.roblox.com/asset/?id=19094700" | |
1145 | dmusic.PlaybackSpeed = 1 | |
1146 | dmusic.Volume = 1 | |
1147 | dmusic.Looped = true | |
1148 | dmusic:Play() | |
1149 | debby:AddItem(dmusic, 5) | |
1150 | local shah = chara:GetChildren() | |
1151 | for i = 1, #shah do | |
1152 | if shah[i].ClassName == "Part" then | |
1153 | shah[i].Anchored = true | |
1154 | shah[i].BrickColor = BrickColor.new("Really black") | |
1155 | createhugeblack(shah[i]) | |
1156 | elseif shah[i].ClassName == "Attachment" then | |
1157 | shah[i].Handle.Mesh.VertexColor = Color3.new(0,0,0) | |
1158 | shah[i].Handle.Anchored = true | |
1159 | end | |
1160 | end | |
1161 | for i = 1, 3 do | |
1162 | wait(1.2) | |
1163 | dmusic.PlaybackSpeed = dmusic.PlaybackSpeed - 0.2 | |
1164 | end | |
1165 | for i = 1, #shah do | |
1166 | if shah[i].ClassName == "Part" then | |
1167 | shah[i].Anchored = false | |
1168 | createhugeblack(shah[i]) | |
1169 | elseif shah[i].ClassName == "Attachment" then | |
1170 | shah[i].Handle.Anchored = false | |
1171 | end | |
1172 | end | |
1173 | local exx = Instance.new("Explosion", game.Workspace) | |
1174 | exx.Position = chara.Torso.Position | |
1175 | exx.BlastPressure = 500000000 | |
1176 | exx.BlastRadius = 10000000000 | |
1177 | exx.Visible = false | |
1178 | exx.ExplosionType = "CratersAndDebris" | |
1179 | finalhits1:Play() | |
1180 | end | |
1181 | ||
1182 | while deathed == true do | |
1183 | wait(0.1) | |
1184 | if timeofday == "Day" then | |
1185 | game.Lighting.TimeOfDay = "18:00:00" | |
1186 | timeofday = "Dawn" | |
1187 | elseif timeofday == "Dawn" then | |
1188 | game.Lighting.TimeOfDay = "00:00:00" | |
1189 | timeofday = "Night" | |
1190 | elseif timeofday == "Night" then | |
1191 | game.Lighting.TimeOfDay = "6:00:00" | |
1192 | timeofday = "Morning" | |
1193 | elseif timeofday == "Morning" then | |
1194 | game.Lighting.TimeOfDay = "12:00:00" | |
1195 | timeofday = "Day" | |
1196 | end | |
1197 | end | |
1198 | ||
1199 | chara.Humanoid.Died:connect(onDied) |