SHOW:
|
|
- or go back to the newest paste.
1 | p = game.Players.LocalPlayer | |
2 | char = p.Character | |
3 | local char = p.Character | |
4 | torso = char.Torso | |
5 | neck = char.Torso.Neck | |
6 | hum = char.Humanoid | |
7 | Player = game:GetService("Players").LocalPlayer | |
8 | Character = Player.Character | |
9 | tors = Character.Torso | |
10 | root = Character.HumanoidRootPart | |
11 | lleg = Character["Left Leg"] | |
12 | hed = Character.Head | |
13 | rleg = Character["Right Leg"] | |
14 | rarm = Character["Right Arm"] | |
15 | larm = Character["Left Arm"] | |
16 | ||
17 | ypcall(function() | |
18 | for i,v in pairs(Character:children()) do | |
19 | if v:IsA("Hat") then | |
20 | v:Destroy() | |
21 | end | |
22 | end | |
23 | for i,v in pairs(Character:children()) do | |
24 | if v:IsA("Accessory") then | |
25 | v:Destroy() | |
26 | end | |
27 | end | |
28 | for i,v in pairs(Character:children()) do | |
29 | if v:IsA("Hair") then | |
30 | v:Destroy() | |
31 | end | |
32 | end | |
33 | end) | |
34 | ||
35 | CV="Hot pink" | |
36 | ||
37 | local txt = Instance.new("BillboardGui", char) | |
38 | txt.Adornee = char .Head | |
39 | txt.Name = "_status" | |
40 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
41 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
42 | local text = Instance.new("TextLabel", txt) | |
43 | text.Size = UDim2.new(10, 0, 7, 0) | |
44 | text.FontSize = "Size24" | |
45 | text.TextScaled = true | |
46 | text.TextTransparency = 0 | |
47 | text.BackgroundTransparency = 1 | |
48 | text.TextTransparency = 0 | |
49 | text.TextStrokeTransparency = 0 | |
50 | text.Font = "Highway" | |
51 | text.TextStrokeColor3 = BrickColor.new("Really black").Color | |
52 | ||
53 | v=Instance.new("Part") | |
54 | v.Name = "ColorBrick" | |
55 | v.Parent=p.Character | |
56 | v.FormFactor="Symmetric" | |
57 | v.Anchored=true | |
58 | v.CanCollide=false | |
59 | v.BottomSurface="Smooth" | |
60 | v.TopSurface="Smooth" | |
61 | v.Size=Vector3.new(10,5,3) | |
62 | v.Transparency=1 | |
63 | v.CFrame=char.Torso.CFrame | |
64 | v.BrickColor=BrickColor.new(CV) | |
65 | v.Transparency=1 | |
66 | - | text.TextColor3 = BrickColor.new("Deep orange").Color |
66 | + | text.TextColor3 = BrickColor.new("Crimson").Color |
67 | v.Shape="Block" | |
68 | - | text.Text = "Sun God" |
68 | + | text.Text = "ₜₕₑ Fₒᵤᵣ ₐᵣₘ Dₑₘₒₙ 𝒢𝒪𝒟" |
69 | ||
70 | hed.face.Texture = "http://www.roblox.com/asset/?id=0" | |
71 | hed.Transparency = 1 | |
72 | rleg.Transparency = 1 | |
73 | rarm.Transparency = 1 | |
74 | larm.Transparency = 1 | |
75 | lleg.Transparency = 1 | |
76 | tors.Transparency = 1 | |
77 | ||
78 | Player = game:GetService("Players").LocalPlayer | |
79 | Character = Player.Character | |
80 | rarm = Character["Right Arm"] | |
81 | larm = Character["Left Arm"] | |
82 | vt = Vector3.new | |
83 | bc = BrickColor.new | |
84 | wit = bc("Deep orange").Color | |
85 | ||
86 | local prth = Instance.new("Part",Character) | |
87 | prth.Size = vt(1.25,1.25,1.25) | |
88 | prth.CanCollide = false | |
89 | prth.Material = "Neon" | |
90 | prth.Transparency = 0.5 | |
91 | - | prth.BrickColor = bc("Deep orange") |
91 | + | prth.BrickColor = bc("White") |
92 | local wldh = Instance.new("Weld",Character) | |
93 | wldh.Part0 = hed | |
94 | wldh.Part1 = prth | |
95 | ||
96 | local prtrm = Instance.new("Part",Character) | |
97 | prtrm.Size = vt(2.1,2.1,1.1) | |
98 | prtrm.CanCollide = false | |
99 | prtrm.Transparency = 0.5 | |
100 | prtrm.Material = "Neon" | |
101 | - | prtrm.BrickColor = bc("Deep orange") |
101 | + | prtrm.BrickColor = bc("Black") |
102 | local wldm = Instance.new("Weld",Character) | |
103 | wldm.Part0 = root | |
104 | wldm.Part1 = prtrm | |
105 | ||
106 | local prtr = Instance.new("Part",Character) | |
107 | prtr.Size = vt(1.1,2.1,1.1) | |
108 | prtr.CanCollide = false | |
109 | prtr.Transparency = 0.5 | |
110 | prtr.Material = "Neon" | |
111 | - | prtr.BrickColor = bc("Deep orange") |
111 | + | prtr.BrickColor = bc("red") |
112 | local prtrl = Instance.new("Part",Character) | |
113 | prtrl.Size = vt(1.1,2.1,1.1) | |
114 | prtrl.CanCollide = false | |
115 | prtrl.Transparency = 0.5 | |
116 | prtrl.Material = "Neon" | |
117 | - | prtrl.BrickColor = bc("Deep orange") |
117 | + | prtrl.BrickColor = bc("white") |
118 | local eff = Instance.new("ParticleEmitter",prtr) | |
119 | eff.LightEmission = 1 | |
120 | eff.Texture = "rbxassetid://284205403" | |
121 | eff.Color = ColorSequence.new(wit) | |
122 | eff.Size = NumberSequence.new(0.5,1) | |
123 | eff.Acceleration = vt(0,25,0) | |
124 | eff.Speed = NumberRange.new(-5) | |
125 | eff.LockedToPart = false | |
126 | eff.Transparency = NumberSequence.new(0.95) | |
127 | eff.Lifetime = NumberRange.new(0.5) | |
128 | eff.Rate = 100000 | |
129 | eff.VelocitySpread = 25 | |
130 | local wld = Instance.new("Weld",Character) | |
131 | wld.Part0 = rarm | |
132 | wld.Part1 = prtr | |
133 | local wldl = Instance.new("Weld",Character) | |
134 | wldl.Part0 = rleg | |
135 | wldl.Part1 = prtrl | |
136 | ||
137 | local prtr2 = Instance.new("Part",Character) | |
138 | prtr2.Size = vt(1.1,2.1,1.1) | |
139 | prtr2.CanCollide = false | |
140 | prtr2.Transparency = 0.5 | |
141 | prtr2.Material = "Neon" | |
142 | - | prtr2.BrickColor = bc("Deep orange") |
142 | + | prtr2.BrickColor = bc("red") |
143 | local prtrl2 = Instance.new("Part",Character) | |
144 | prtrl2.Size = vt(1.1,2.1,1.1) | |
145 | prtrl2.CanCollide = false | |
146 | prtrl2.Transparency = 0.5 | |
147 | prtrl2.Material = "Neon" | |
148 | - | prtrl2.BrickColor = bc("Deep orange") |
148 | + | prtrl2.BrickColor = bc("White") |
149 | local eff2 = Instance.new("ParticleEmitter",prtr2) | |
150 | eff2.LightEmission = 1 | |
151 | eff2.Texture = "rbxassetid://284205403" | |
152 | eff2.Color = ColorSequence.new(wit) | |
153 | eff2.Size = NumberSequence.new(0.5,1) | |
154 | eff2.Acceleration = vt(0,25,0) | |
155 | eff2.Speed = NumberRange.new(-5) | |
156 | eff2.LockedToPart = false | |
157 | eff2.Transparency = NumberSequence.new(0.95) | |
158 | eff2.Lifetime = NumberRange.new(0.5) | |
159 | eff2.Rate = 100000 | |
160 | eff2.VelocitySpread = 25 | |
161 | local wld2 = Instance.new("Weld",Character) | |
162 | wld2.Part0 = larm | |
163 | wld2.Part1 = prtr2 | |
164 | local wldl2 = Instance.new("Weld",Character) | |
165 | wldl2.Part0 = lleg | |
166 | wldl2.Part1 = prtrl2 | |
167 | ||
168 | local mouse = game.Players.LocalPlayer:GetMouse() | |
169 | tors = game.Players.LocalPlayer.Character.Torso | |
170 | vt = Vector3.new | |
171 | bc = BrickColor.new | |
172 | ||
173 | local Effect = Instance.new("Part",game.Lighting) | |
174 | Effect.BrickColor = bc("Deep orange") | |
175 | Effect.Transparency = 1 | |
176 | Effect.Anchored = true | |
177 | Effect.CanCollide = false | |
178 | Effect.Material = "Neon" | |
179 | Effect.Shape = "Ball" | |
180 | Effect.Size = vt(5,5,5) | |
181 | local fire1 = Instance.new("Fire",Effect) | |
182 | fire1.Name = "Fire" | |
183 | fire1.Heat = 0 | |
184 | fire1.Size = 30 | |
185 | fire1.SecondaryColor = bc("Really black").Color | |
186 | fire1.Color = bc("Deep orange").Color | |
187 | local fire2 = Instance.new("Fire",Effect) | |
188 | fire2.Name = "Fire2" | |
189 | fire2.Heat = 0 | |
190 | fire2.Size = 25 | |
191 | fire2.SecondaryColor = bc("Really black").Color | |
192 | fire2.Color = bc("Neon orange").Color | |
193 | ||
194 | function Explode(rad,par) | |
195 | local expart = Instance.new("Part",script.Parent) | |
196 | local expart2 = Instance.new("Part",script.Parent) | |
197 | local snd = Instance.new("Sound",expart) | |
198 | snd.SoundId = "rbxassetid://258057783" | |
199 | snd.Volume = 2.5 | |
200 | local partMesh = Instance.new("SpecialMesh",expart) | |
201 | partMesh.MeshType = "Sphere" | |
202 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
203 | partMesh2.MeshType = "Sphere" | |
204 | local expld = Instance.new("Explosion", script.Parent) | |
205 | expld.BlastRadius = rad | |
206 | expld.Position = par.Position | |
207 | partMesh.Scale = vt(rad,rad,rad) | |
208 | expart.Size = vt(1,1,1)*1.5 | |
209 | expart.Transparency = 0.5 | |
210 | expart.Anchored = true | |
211 | expart.Material = "Neon" | |
212 | expart.BrickColor = bc("Deep orange") | |
213 | expart.CFrame = par.CFrame | |
214 | partMesh2.Scale = vt(rad,rad,rad) | |
215 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
216 | expart2.Transparency = 0.5 | |
217 | expart2.Anchored = true | |
218 | expart2.Material = "Neon" | |
219 | expart2.BrickColor = bc("Bright orange") | |
220 | expart2.CFrame = par.CFrame | |
221 | snd:Play() | |
222 | for i = 0, 100 do | |
223 | expart.Transparency = expart.Transparency + 0.005 | |
224 | partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25) | |
225 | expart.CFrame = expart.CFrame | |
226 | expart2.Transparency = expart.Transparency + 0.005 | |
227 | partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25) | |
228 | expart2.CFrame = expart.CFrame | |
229 | wait(0) | |
230 | end | |
231 | snd.Parent = nil | |
232 | expart.Parent = nil | |
233 | expart2.Parent = nil | |
234 | expld.Parent = nil | |
235 | end | |
236 | ||
237 | function Explode2(rad,par) | |
238 | local expart = Instance.new("Part",script.Parent) | |
239 | local expart2 = Instance.new("Part",script.Parent) | |
240 | local snd = Instance.new("Sound",expart) | |
241 | snd.SoundId = "rbxassetid://165969964" | |
242 | snd.Volume = 3 | |
243 | local partMesh = Instance.new("SpecialMesh",expart) | |
244 | partMesh.MeshType = "Sphere" | |
245 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
246 | partMesh2.MeshType = "Sphere" | |
247 | local expld = Instance.new("Explosion", script.Parent) | |
248 | expld.BlastRadius = rad | |
249 | expld.Position = par.Position | |
250 | partMesh.Scale = vt(rad,rad,rad) | |
251 | expart.Size = vt(1,1,1)*1.5 | |
252 | expart.Transparency = 0.5 | |
253 | expart.Anchored = true | |
254 | expart.Material = "Neon" | |
255 | expart.BrickColor = bc("Deep orange") | |
256 | expart.CFrame = par.CFrame | |
257 | partMesh2.Scale = vt(rad,rad,rad) | |
258 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
259 | expart2.Transparency = 0.5 | |
260 | expart2.Anchored = true | |
261 | expart2.Material = "Neon" | |
262 | expart2.BrickColor = bc("Bright orange") | |
263 | expart2.CFrame = par.CFrame | |
264 | snd:Play() | |
265 | for i = 0, 100 do | |
266 | expart.Transparency = expart.Transparency + 0.005 | |
267 | partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25) | |
268 | expart.CFrame = expart.CFrame | |
269 | expart2.Transparency = expart.Transparency + 0.005 | |
270 | partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25) | |
271 | expart2.CFrame = expart.CFrame | |
272 | wait(0) | |
273 | end | |
274 | snd.Parent = nil | |
275 | expart.Parent = nil | |
276 | expart2.Parent = nil | |
277 | expld.Parent = nil | |
278 | end | |
279 | ||
280 | mouse.KeyDown:connect(function(k) | |
281 | ||
282 | k = k:lower() | |
283 | if k == "q" then | |
284 | local spart = Effect:Clone() | |
285 | spart.Parent = game.Players.LocalPlayer.Character | |
286 | spart.Transparency = 0 | |
287 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*5 | |
288 | wait() | |
289 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*15 | |
290 | wait() | |
291 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*25 | |
292 | wait() | |
293 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*35 | |
294 | wait() | |
295 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*45 | |
296 | wait() | |
297 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*55 | |
298 | wait() | |
299 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*65 | |
300 | wait() | |
301 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*75 | |
302 | wait() | |
303 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*85 | |
304 | wait() | |
305 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*95 | |
306 | wait() | |
307 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*105 | |
308 | spart.Transparency = 1 | |
309 | spart.Fire2:Destroy() | |
310 | spart.Fire:Destroy() | |
311 | Explode(25,spart) | |
312 | spart:Destroy() | |
313 | end | |
314 | if k == "e" then | |
315 | local spart = Effect:Clone() | |
316 | spart.Parent = game.Players.LocalPlayer.Character | |
317 | spart.Transparency = 0 | |
318 | spart.Anchored = false | |
319 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*0 | |
320 | spart.Position = spart.Position + vt(0,100,0) | |
321 | spart.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*150 | |
322 | wait(1) | |
323 | spart.Transparency = 1 | |
324 | spart.Fire2:Destroy() | |
325 | spart.Fire:Destroy() | |
326 | Explode2(75,spart) | |
327 | spart:Destroy() | |
328 | end | |
329 | if k == "r" then | |
330 | local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character) | |
331 | game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*275 | |
332 | wait(0.75) | |
333 | game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*-165 | |
334 | Explode(30,game.Players.LocalPlayer.Character.Torso) | |
335 | wait(0.5) | |
336 | ff:Destroy() | |
337 | end | |
338 | if k == "f" then | |
339 | local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character) | |
340 | for i = 0, 10 do | |
341 | game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,10,0) | |
342 | wait(0) | |
343 | end | |
344 | for i = 0, 5 do | |
345 | game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,1,0) | |
346 | wait(0) | |
347 | end | |
348 | game.Players.LocalPlayer.Character.Torso.Anchored = true | |
349 | wait(1.5) | |
350 | game.Players.LocalPlayer.Character.Torso.Anchored = false | |
351 | for i = 0, 10 do | |
352 | game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,-1,0) | |
353 | wait(0) | |
354 | end | |
355 | wait(0.25) | |
356 | Explode2(62.5,game.Players.LocalPlayer.Character.Torso) | |
357 | wait(0.5) | |
358 | ff:Destroy() | |
359 | end | |
360 | - | end) |
360 | + | |
361 | ||
362 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------==Made by LuisPambid==-- | |
363 | --==The four arm god==-- | |
364 | ||
365 | --script:remove() | |
366 | local player=game.Players.LocalPlayer | |
367 | local char=player.Character | |
368 | repeat wait() until player and char | |
369 | local torso=char.Torso | |
370 | local head=char.Head | |
371 | local human=char.Humanoid | |
372 | local hat | |
373 | for i, v in pairs(char:children()) do if v:isA("Hat") then hat=v end end | |
374 | local arm={Left=char["Left Arm"], Right=char["Right Arm"]} | |
375 | local leg={Left=char["Left Leg"], Right=char["Right Leg"]} | |
376 | local c=function(f) coroutine.resume(coroutine.create(f)) end | |
377 | local p=function(f) pcall(f) end | |
378 | local add={ | |
379 | Part=function(par, a, c, col, t, s, cf) | |
380 | local p=Instance.new("Part", par) p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() | |
381 | return p | |
382 | end, | |
383 | Wedge=function(par, a, c, col, t, s, cf) | |
384 | local p=Instance.new("WedgePart", par) p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() | |
385 | return p | |
386 | end, | |
387 | Weld=function(par, p1, cf) | |
388 | local w=Instance.new("Weld", par) w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() | |
389 | return w | |
390 | end, | |
391 | Mesh=function(ins, par, s, of, t) | |
392 | local m=Instance.new(ins, par) m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() pcall(function() m.MeshType=t end) | |
393 | return m | |
394 | end | |
395 | } | |
396 | local scriptname="𝒯𝐻𝐸 𝐹𝒪𝒰𝑅 𝒜𝑅𝑀 𝒟𝐸𝑀𝒪𝒩 𝒢𝒪𝒟 𝒮𝒯𝒴𝐿𝐸" --Name here | |
397 | pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char[scriptname.."B"]:remove() player.PlayerGui[scriptname]:remove() end) | |
398 | local model=Instance.new("Model", char) model.Name=scriptname | |
399 | local modelB=Instance.new("Model", char) modelB.Name=scriptname.."B" | |
400 | local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname | |
401 | local sound=Instance.new("Sound", char) | |
402 | local bin=Instance.new("HopperBin", player.Backpack) bin.Name=model.Name | |
403 | local skincolor="White" | |
404 | local body={} | |
405 | local animate={} | |
406 | local obj={} | |
407 | function createParts() | |
408 | --==PARTS==-- | |
409 | body.Head=head:clone() body.Head.Parent=model body.Head.BrickColor=BrickColor.new(skincolor) body.Head.Transparency=0 | |
410 | body.Torso=add.Part(model, false, false, skincolor, 0, Vector3.new(2, 2, 1), nil) | |
411 | body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil) | |
412 | body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil) | |
413 | p(function() for i, v in pairs(char:children()) do v.Transparency=1 end end) | |
414 | p(function() for i, v in pairs(char:children()) do v["face"]:clone().Parent=body.Head v["face"]:remove() end end) | |
415 | p(function() for i, v in pairs(char:children()) do if v.ClassName=="Hat" then v:remove() end end end) | |
416 | --==WELDS==-- | |
417 | body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0)) | |
418 | body.TorsoW=add.Weld(body.Torso, torso, nil) | |
419 | body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0)) | |
420 | body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0)) | |
421 | --==MESHES==-- | |
422 | add.Mesh("BlockMesh", body.ArmLeft, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil) | |
423 | add.Mesh("BlockMesh", body.ArmRight, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil) | |
424 | add.Mesh("BlockMesh", body.LegLeft, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil) | |
425 | add.Mesh("BlockMesh", body.LegRight, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil) | |
426 | --------------------------------------------------------------------------------------- | |
427 | animate={ | |
428 | ["Head"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1 | |
429 | body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf | |
430 | end; | |
431 | ["Torso"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1 | |
432 | body.TorsoW.C1=cf | |
433 | end; | |
434 | ["ArmLeft"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1 | |
435 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf | |
436 | end; | |
437 | ["ArmRight"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1 | |
438 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf | |
439 | end; | |
440 | ["LegLeft"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1 | |
441 | body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf | |
442 | end; | |
443 | ["LegRight"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1 | |
444 | body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf | |
445 | end; | |
446 | } | |
447 | --==Objects==-- | |
448 | obj.LH=add.Part(model, false, false, "Really black", 0, Vector3.new(.5, 1, .2), nil) | |
449 | obj.LHW=add.Weld(obj.LH, body.ArmLeft, CFrame.new(-.3, -.5, -.2)) | |
450 | obj.LH=add.Part(model, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil) | |
451 | obj.LHW=add.Weld(obj.LH, body.ArmLeft, CFrame.new(-.3, -.9, 0)) | |
452 | --Right | |
453 | obj.HandleRight=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.25, 2, .25), nil) | |
454 | obj.HandleRightW=add.Weld(obj.HandleRight, body.ArmRight, CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0)) | |
455 | for i=1, 5 do | |
456 | obj.DesignRight=add.Part(modelB, false, false, "White", 0, Vector3.new(.3, .1, .1), nil) | |
457 | obj.DesignRightW=add.Weld(obj.DesignRight, obj.HandleRight, CFrame.new(0, -1+i/3, 0)*CFrame.Angles(math.rad(45), 0, 0)) | |
458 | end | |
459 | obj.GuardRight=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil) | |
460 | obj.GuardRightW=add.Weld(obj.GuardRight, obj.HandleRight, CFrame.new(0, 1.1, 0)) | |
461 | obj.GuardRightB=add.Part(modelB, false, false, "White", 0, Vector3.new(.25, .2, .3), nil) | |
462 | obj.GuardRightBM=add.Mesh("BlockMesh", obj.GuardRightB, Vector3.new(.5, 1, 1), nil, nil) | |
463 | obj.GuardRightBW=add.Weld(obj.GuardRightB, obj.HandleRight, CFrame.new(0, 1.25, 0)) | |
464 | obj.BladeRight=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 4, .25), nil) obj.BladeRight.Reflectance=.5 | |
465 | obj.BladeRightM=add.Mesh("BlockMesh", obj.BladeRight, Vector3.new(.5, 1, 1), nil, nil) | |
466 | obj.BladeRightW=add.Weld(obj.BladeRight, obj.HandleRight, CFrame.new(0, 3, 0)) | |
467 | obj.PointRight=add.Wedge(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 1, .25), nil) obj.PointRight.Reflectance=.5 | |
468 | obj.PointM=add.Mesh("SpecialMesh", obj.PointRight, Vector3.new(.5, 1, 1), nil, "Wedge") | |
469 | obj.PointW=add.Weld(obj.PointRight, obj.BladeRight, CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0), 0, 0)) | |
470 | --Left | |
471 | obj.HandleLeft=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.25, 2, .25), nil) | |
472 | obj.HandleLeftW=add.Weld(obj.HandleLeft, body.ArmLeft, CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0)) | |
473 | for i=1, 5 do | |
474 | obj.DesignLeft=add.Part(modelB, false, false, "White", 0, Vector3.new(.3, .1, .1), nil) | |
475 | obj.DesignLeftW=add.Weld(obj.DesignLeft, obj.HandleLeft, CFrame.new(0, -1+i/3, 0)*CFrame.Angles(math.rad(45), 0, 0)) | |
476 | end | |
477 | obj.GuardLeft=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil) | |
478 | obj.GuardLeftW=add.Weld(obj.GuardLeft, obj.HandleRight, CFrame.new(0, 1.1, 0)) | |
479 | obj.GuardLeftB=add.Part(modelB, false, false, "White", 0, Vector3.new(.25, .2, .3), nil) | |
480 | obj.GuardLeftBM=add.Mesh("BlockMesh", obj.GuardLeftB, Vector3.new(.5, 1, 1), nil, nil) | |
481 | obj.GuardLeftBW=add.Weld(obj.GuardLeftB, obj.HandleLeft, CFrame.new(0, 1.25, 0)) | |
482 | obj.BladeLeft=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 4, .25), nil) obj.BladeLeft.Reflectance=.5 | |
483 | obj.BladeLeftM=add.Mesh("BlockMesh", obj.BladeLeft, Vector3.new(.5, 1, 1), nil, nil) | |
484 | obj.BladeLeftW=add.Weld(obj.BladeLeft, obj.HandleLeft, CFrame.new(0, 3, 0)) | |
485 | obj.PointLeft=add.Wedge(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 1, .25), nil) obj.PointLeft.Reflectance=.5 | |
486 | obj.PointM=add.Mesh("SpecialMesh", obj.PointLeft, Vector3.new(.5, 1, 1), nil, "Wedge") | |
487 | obj.PointW=add.Weld(obj.PointLeft, obj.BladeLeft, CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0), 0, 0)) | |
488 | --Head | |
489 | obj.HandleHead=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.25, 2, .25), nil) | |
490 | obj.HandleHeadW=add.Weld(obj.HandleHead, body.Head, CFrame.new(0, -.25, -.5)*CFrame.Angles(0, 0, math.rad(90))) | |
491 | for i=1, 5 do | |
492 | obj.DesignHead=add.Part(modelB, false, false, "White", 0, Vector3.new(.3, .1, .1), nil) | |
493 | obj.DesignHeadW=add.Weld(obj.DesignHead, obj.HandleHead, CFrame.new(0, -1+i/3, 0)*CFrame.Angles(math.rad(45), 0, 0)) | |
494 | end | |
495 | obj.GuardHead=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil) | |
496 | obj.GuardHeadW=add.Weld(obj.GuardHead, obj.HandleHead, CFrame.new(0, 1.1, 0)) | |
497 | obj.GuardHeadB=add.Part(modelB, false, false, "White", 0, Vector3.new(.25, .2, .3), nil) | |
498 | obj.GuardHeadBM=add.Mesh("BlockMesh", obj.GuardHeadB, Vector3.new(.5, 1, 1), nil, nil) | |
499 | obj.GuardHeadBW=add.Weld(obj.GuardHeadB, obj.HandleHead, CFrame.new(0, 1.25, 0)) | |
500 | obj.BladeHead=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 4, .25), nil) obj.BladeHead.Reflectance=.5 | |
501 | obj.BladeHeadM=add.Mesh("BlockMesh", obj.BladeHead, Vector3.new(.5, 1, 1), nil, nil) | |
502 | obj.BladeHeadW=add.Weld(obj.BladeHead, obj.HandleHead, CFrame.new(0, 3, 0)) | |
503 | obj.PointHead=add.Wedge(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 1, .25), nil) obj.PointHead.Reflectance=.5 | |
504 | obj.PointM=add.Mesh("SpecialMesh", obj.PointHead, Vector3.new(.5, 1, 1), nil, "Wedge") | |
505 | obj.PointW=add.Weld(obj.PointHead, obj.BladeHead, CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0), 0, 0)) | |
506 | end | |
507 | function removeParts() | |
508 | p(function() | |
509 | for i, v in pairs(model:children()) do v:remove() end for i, v in pairs(modelB:children()) do v:remove() end for i, v in pairs(char:children()) do v.Transparency=0 end | |
510 | end) | |
511 | end | |
512 | function play(id, pitch) | |
513 | c(function() | |
514 | local sound=Instance.new("Sound", workspace) | |
515 | sound.Pitch=pitch | |
516 | sound.SoundId=id | |
517 | sound:play() | |
518 | wait(.5) | |
519 | sound:remove() | |
520 | end) | |
521 | end | |
522 | ||
523 | --Variables-- | |
524 | local speed=150 | |
525 | local mana=5 | |
526 | local trailDeb=false | |
527 | local hitDeb=false | |
528 | local keyDeb=false | |
529 | local loopDeb=false | |
530 | ||
531 | local label=Instance.new("TextLabel", gui) | |
532 | label.Position=UDim2.new(0, 0, 0, 100) | |
533 | label.Size=UDim2.new(0, 200, 0, 20) | |
534 | label.BorderColor=BrickColor.Black() | |
535 | label.BackgroundColor=BrickColor.White() | |
536 | label.TextColor=BrickColor.Black() | |
537 | label.Font="ArialBold" | |
538 | label.FontSize="Size18" | |
539 | label.Text="100" | |
540 | local charge=Instance.new("TextLabel", label) charge.Transparency=.5 | |
541 | charge.Position=UDim2.new(0, 0, 0, 0) | |
542 | charge.Size=UDim2.new(1, 0, 1, 0) | |
543 | charge.BorderColor=BrickColor.Black() | |
544 | charge.BackgroundColor=BrickColor.Blue() | |
545 | charge.TextColor=BrickColor.Black() | |
546 | charge.Font="ArialBold" | |
547 | charge.FontSize="Size18" | |
548 | charge.Text="" | |
549 | ||
550 | local attackLabel=Instance.new("TextLabel", gui) | |
551 | attackLabel.Position=UDim2.new(0, 0, 0, 150) | |
552 | attackLabel.Size=UDim2.new(0, 150, 0, 50) | |
553 | attackLabel.BorderColor=BrickColor.Black() | |
554 | attackLabel.BackgroundColor=BrickColor.Black() | |
555 | attackLabel.TextColor=BrickColor.White() | |
556 | attackLabel.Font="ArialBold" | |
557 | attackLabel.FontSize="Size18" | |
558 | attackLabel.Text="DemonSlash(Q)" | |
559 | local attackLabel2=Instance.new("TextLabel", attackLabel) | |
560 | attackLabel2.Position=UDim2.new(0, 0, 1, 0) | |
561 | attackLabel2.Size=UDim2.new(1, 0, 1, 0) | |
562 | attackLabel2.BorderColor=BrickColor.Black() | |
563 | attackLabel2.BackgroundColor=BrickColor.Black() | |
564 | attackLabel2.TextColor=BrickColor.White() | |
565 | attackLabel2.Font="ArialBold" | |
566 | attackLabel2.FontSize="Size18" | |
567 | attackLabel2.Text="PoundHo(E)" | |
568 | local attackLabel3=Instance.new("TextLabel", attackLabel2) | |
569 | attackLabel3.Position=UDim2.new(0, 0, 1, 0) | |
570 | attackLabel3.Size=UDim2.new(1, 0, 1, 0) | |
571 | attackLabel3.BorderColor=BrickColor.Black() | |
572 | attackLabel3.BackgroundColor=BrickColor.Black() | |
573 | attackLabel3.TextColor=BrickColor.White() | |
574 | attackLabel3.Font="ArialBold" | |
575 | attackLabel3.FontSize="Size18" | |
576 | attackLabel3.Text="ThousandWorlds(R)" | |
577 | local attackLabel4=Instance.new("TextLabel", attackLabel3) | |
578 | attackLabel4.Position=UDim2.new(0, 0, 1, 0) | |
579 | attackLabel4.Size=UDim2.new(1, 0, 1, 0) | |
580 | attackLabel4.BorderColor=BrickColor.Black() | |
581 | attackLabel4.BackgroundColor=BrickColor.Black() | |
582 | attackLabel4.TextColor=BrickColor.White() | |
583 | attackLabel4.Font="ArialBold" | |
584 | attackLabel4.FontSize="Size18" | |
585 | attackLabel4.Text="Charge(Z)" | |
586 | local attackLabel5=Instance.new("TextLabel", attackLabel4) | |
587 | attackLabel5.Position=UDim2.new(0, 0, 1, 0) | |
588 | attackLabel5.Size=UDim2.new(1, 0, 1, 0) | |
589 | attackLabel5.BorderColor=BrickColor.Black() | |
590 | attackLabel5.BackgroundColor=BrickColor.Black() | |
591 | attackLabel5.TextColor=BrickColor.White() | |
592 | attackLabel5.Font="ArialBold" | |
593 | attackLabel5.FontSize="Size18" | |
594 | attackLabel5.Text="GreatTwister(F)" | |
595 | local attackLabel6=Instance.new("TextLabel", attackLabel5) | |
596 | attackLabel6.Position=UDim2.new(0, 0, 1, 0) | |
597 | attackLabel6.Size=UDim2.new(1, 0, 1, 0) | |
598 | attackLabel6.BorderColor=BrickColor.Black() | |
599 | attackLabel6.BackgroundColor=BrickColor.Black() | |
600 | attackLabel6.TextColor=BrickColor.White() | |
601 | attackLabel6.Font="ArialBold" | |
602 | attackLabel6.FontSize="Size18" | |
603 | attackLabel6.Text="Block(X)" | |
604 | ||
605 | function hit(h) | |
606 | for i, v in pairs(modelB:children()) do if h==v then return end end | |
607 | for i, v in pairs(model:children()) do if h==v then return end end | |
608 | if runDeb==true and h.Parent~=char and h.Name~="Trailz" and h.Name~="Base" and hitDeb==false then hitDeb=true print("GotHit") h:remove() | |
609 | p(function() | |
610 | local pYPos=h.Position.y-(h.Size.y/2) | |
611 | local sYPos=obj.PointHead.Position.y | |
612 | local p=h:clone() p.Parent=workspace p.Anchored=true p.CanCollide=false p.Name="Trailz" | |
613 | local p2=h:clone() p2.Parent=workspace p2.Anchored=true p2.CanCollide=false p.Name="Trailz" | |
614 | p.formFactor="Custom" | |
615 | p2.formFactor="Custom" | |
616 | p.Size=Vector3.new(h.Size.x, sYPos-pYPos, h.Size.z) | |
617 | p2.Size=Vector3.new(h.Size.x, p2.Size.y-(sYPos-pYPos), h.Size.z) | |
618 | p.CFrame=h.CFrame*CFrame.new(0, -p2.Size.y/2, 0) | |
619 | p2.CFrame=h.CFrame*CFrame.new(0, p.Size.y/2, 0) | |
620 | c(function() | |
621 | for i=0, 1, .05 do | |
622 | wait() | |
623 | p.Transparency=i p2.Transparency=i | |
624 | end | |
625 | p:remove() p2:remove() | |
626 | end) | |
627 | end) wait() | |
628 | hitDeb=false | |
629 | end | |
630 | end | |
631 | function computePos(pos, pos2) | |
632 | local pos3=Vector3.new(pos2.x, pos.y, pos2.z) | |
633 | torso.CFrame=CFrame.new(pos, pos3) | |
634 | return pos3 | |
635 | end | |
636 | function nearTorso(pos, dis) | |
637 | local temp | |
638 | local distance=dis | |
639 | for i, v in pairs(workspace:children()) do | |
640 | if v:isA("Model") then | |
641 | temp=v:findFirstChild("Torso") | |
642 | local humanoid=v:findFirstChild("Humanoid") | |
643 | if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then | |
644 | distance=(temp.CFrame.p-pos).magnitude | |
645 | return temp | |
646 | end | |
647 | end | |
648 | end | |
649 | end | |
650 | function trail(pos, cf) | |
651 | c(function() | |
652 | local old=(pos.CFrame*cf).p | |
653 | while trailDeb==true do | |
654 | wait() | |
655 | local new=(pos.CFrame*cf).p | |
656 | local mag=(old-new).magnitude | |
657 | local dis=(old+new)/2 | |
658 | local trail=add.Part(model, true, false, "Pastel blue-green", 0, Vector3.new(.2, mag, .2), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Trailz" | |
659 | local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(1, 1, 1), nil, nil) | |
660 | old=new | |
661 | c(function() | |
662 | for i=1, 0, -.2 do | |
663 | wait() | |
664 | trail.Mesh.Scale=trail.Mesh.Scale*Vector3.new(i, 1, i) | |
665 | end | |
666 | trail:remove() | |
667 | end) | |
668 | c(function() | |
669 | for i=0, 1, .2 do | |
670 | wait() | |
671 | trail.Transparency=i | |
672 | end | |
673 | end) | |
674 | end | |
675 | end) | |
676 | end | |
677 | ||
678 | local Attacks={ | |
679 | ["DemonSlash"]=function(mouse) human.WalkSpeed=0 computePos(torso.CFrame.p, mouse.Hit.p) mana=mana-5 | |
680 | for i=0, 1, .1 do wait() | |
681 | animate.ArmLeft(CFrame.Angles(math.rad(90)*i, -math.rad(45)*i, math.rad(15)*i)) | |
682 | animate.ArmRight(CFrame.Angles(math.rad(90)*i, math.rad(45)*i, -math.rad(15)*i)) | |
683 | end | |
684 | trailDeb=true trail(obj.PointLeft, CFrame.new()) trail(obj.PointRight, CFrame.new()) | |
685 | for i, v in pairs(modelB:children()) do | |
686 | connection=v.Touched:connect(hit) | |
687 | end | |
688 | play("rbxasset://sounds//swordslash.wav", 1) | |
689 | for i=0, 1, .2 do wait() | |
690 | torso.CFrame=torso.CFrame+torso.CFrame.lookVector*(10*i) | |
691 | animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
692 | animate.ArmLeft(CFrame.Angles(math.rad(90), -math.rad(45)+(math.rad(45)*i), math.rad(15)-(math.rad(150)*i))) | |
693 | animate.ArmRight(CFrame.Angles(math.rad(90), math.rad(45)+(-math.rad(45)*i), -math.rad(15)-(-math.rad(150)*i))) | |
694 | animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0)) | |
695 | animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
696 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(90)*i) | |
697 | obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(90)*i) | |
698 | end | |
699 | wait(1) | |
700 | for i=1, 0, -.1 do wait() | |
701 | animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
702 | animate.ArmLeft(CFrame.Angles(math.rad(90)*i, 0, -math.rad(90)*i)) | |
703 | animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(90)*i)) | |
704 | animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0)) | |
705 | animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
706 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(135)*i) | |
707 | obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(135)*i) | |
708 | end | |
709 | trailDeb=false | |
710 | human.WalkSpeed=speed | |
711 | end; | |
712 | ["PoundHo"]=function(mouse) human.WalkSpeed=0 | |
713 | for i=0, 1, .1 do wait() | |
714 | animate.Torso(CFrame.new(0, 2.5*i, -5*i)*CFrame.Angles(-math.rad(90)*i, 0, 0)) | |
715 | animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i)) | |
716 | animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i)) | |
717 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(180)*i) | |
718 | end | |
719 | local spin=45 | |
720 | local rotate=45 | |
721 | trailDeb=true trail(obj.PointLeft, CFrame.new()) trail(obj.PointRight, CFrame.new()) trail(obj.PointHead, CFrame.new()) | |
722 | for i, v in pairs(modelB:children()) do | |
723 | connection=v.Touched:connect(hit) | |
724 | end | |
725 | while loopDeb==true and mana>0 do wait() spin=spin+rotate mana=mana-1 | |
726 | --[[local wind=add.Part(model, true, false, "Cyan", .5, Vector3.new(1, 1, 1), body.Torso.CFrame*CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)) wind.Name="Trailz" | |
727 | local windM=add.Mesh("SpecialMesh", wind, Vector3.new(1, 1, 1), nil, "File") windM.MeshId="http://www.roblox.com/asset/?id=3270017" | |
728 | c(function() | |
729 | for i=0, 3, .2 do wait() | |
730 | wind.CFrame=body.Torso.CFrame*CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(90), 0, 0) | |
731 | wind.Mesh.Scale=wind.Mesh.Scale+Vector3.new(i, i, i) | |
732 | end | |
733 | wind:remove() | |
734 | end)]] | |
735 | computePos((torso.CFrame*CFrame.new(0, 0, -1)*CFrame.Angles(-math.rad(90), 0, 0)).p, mouse.Hit.p) | |
736 | animate.Torso(CFrame.new(0, 2.5, -5)*CFrame.Angles(-math.rad(90), -math.rad(spin), 0)) | |
737 | end | |
738 | trailDeb=false | |
739 | for i=1, 0, -.1 do wait() play("rbxasset://sounds//swordslash.wav", 1) | |
740 | animate.Torso(CFrame.new(0, 2.5*i, -5*i)*CFrame.Angles(-math.rad(90)*i, 0, 0)) | |
741 | animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i)) | |
742 | animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i)) | |
743 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(180)*i) | |
744 | end | |
745 | human.WalkSpeed=speed | |
746 | end; | |
747 | ["ThousandWorlds"]=function(mouse) human.WalkSpeed=0 computePos(torso.CFrame.p, mouse.Hit.p) mana=mana-20 | |
748 | for i=0, 1, .1 do wait() | |
749 | animate.ArmLeft(CFrame.new(.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i)) | |
750 | animate.ArmRight(CFrame.new(-.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i)) | |
751 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(45)*i, math.rad(180)*i) | |
752 | obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), -math.rad(45)*i, 0) | |
753 | end | |
754 | trailDeb=true trail(obj.PointLeft, CFrame.new()) trail(obj.PointRight, CFrame.new()) | |
755 | for i, v in pairs(modelB:children()) do | |
756 | connection=v.Touched:connect(hit) | |
757 | end | |
758 | for i=0, 50, 1 do wait() play("http://www.roblox.com/asset/?id=3931318", 1) | |
759 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(45), math.rad(180)+i) | |
760 | obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), -math.rad(45), i) | |
761 | end | |
762 | play("rbxasset://sounds//swordslash.wav", 1) | |
763 | for i=0, 1, .2 do wait() | |
764 | local fakeP=add.Part(workspace, true, false, "White", 0, Vector3.new(5, 5, 5), CFrame.new((torso.CFrame*CFrame.new(0, 0, 1.5)).p, torso.CFrame.p)*CFrame.Angles(math.rad(90), 0, 0)) fakeP.Name="Trailz" | |
765 | local mesh=add.Mesh("SpecialMesh", fakeP, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=20329976" | |
766 | c(function() | |
767 | for i=0, 1, .05 do | |
768 | wait() | |
769 | fakeP.Transparency=i | |
770 | end | |
771 | fakeP:remove() | |
772 | end) | |
773 | c(function() | |
774 | for i=1, 20, 1 do | |
775 | wait() | |
776 | mesh.Scale=Vector3.new(i, i/2, i) | |
777 | end | |
778 | end) | |
779 | torso.CFrame=torso.CFrame+torso.CFrame.lookVector*(20*i) | |
780 | animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
781 | animate.ArmLeft(CFrame.new(.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, 0)) | |
782 | animate.ArmRight(CFrame.new(-.5*i, 0, -.5*i)*CFrame.Angles(-math.rad(90)*i, 0, 0)) | |
783 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(90)*i) | |
784 | obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(90)*i) | |
785 | animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0)) | |
786 | animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
787 | end | |
788 | trailDeb=false | |
789 | wait(3) | |
790 | for i=1, 0, -.1 do wait() | |
791 | animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
792 | animate.ArmLeft(CFrame.new(.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, 0)) | |
793 | animate.ArmRight(CFrame.new(-.5*i, 0, -.5*i)*CFrame.Angles(-math.rad(90)*i, 0, 0)) | |
794 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(90)*i) | |
795 | obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(90)*i) | |
796 | animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0)) | |
797 | animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
798 | end | |
799 | human.WalkSpeed=speed | |
800 | end; | |
801 | ["Charge"]=function(mouse) human.WalkSpeed=0 computePos(torso.CFrame.p, mouse.Hit.p) | |
802 | for i=0, 1, .1 do wait() | |
803 | animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
804 | animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(180)-(-math.rad(90)*i))) | |
805 | animate.ArmRight(CFrame.Angles(0, 0, -math.rad(180)-(math.rad(90)*i))) | |
806 | animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0)) | |
807 | animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
808 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(45)*i) | |
809 | obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i) | |
810 | end | |
811 | while loopDeb==true do wait() if mana>=0 and mana<100 then mana=mana+1 end play("http://www.roblox.com/asset/?id=2101137", 1) | |
812 | local aura=add.Part(model, true, false, "Really black", .5, Vector3.new(1, 1, 1), torso.CFrame*CFrame.new(0, -4, 0)*CFrame.Angles(0, math.rad(math.random(-45, 45)), 0)) aura.Name="Trailz" | |
813 | local auraM=add.Mesh("SpecialMesh", aura, Vector3.new(1, 1, 1), nil, "File") auraM.MeshId="http://www.roblox.com/asset/?id=20329976" | |
814 | local aura2=add.Part(model, true, false, "Really black", .5, Vector3.new(5, 5, 5), torso.CFrame*CFrame.new(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))*CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)))) | |
815 | aura2.Name="Trailz" | |
816 | c(function() | |
817 | for i=0, 3, .2 do wait() | |
818 | auraM.Scale=auraM.Scale+Vector3.new(i, i/2, i) | |
819 | end | |
820 | c(function() | |
821 | for i=.5, 1, .1 do | |
822 | wait() | |
823 | aura.Transparency=i aura2.Transparency=i | |
824 | end | |
825 | end) | |
826 | aura:remove() aura2:remove() | |
827 | end) | |
828 | end | |
829 | for i=1, 0, -.1 do wait() | |
830 | animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
831 | animate.ArmLeft(CFrame.Angles(0, 0, (-math.rad(90)*i))) | |
832 | animate.ArmRight(CFrame.Angles(0, 0, (math.rad(90)*i))) | |
833 | animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0)) | |
834 | animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0)) | |
835 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(45)*i) | |
836 | obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i) | |
837 | end | |
838 | human.WalkSpeed=speed | |
839 | end; | |
840 | ["GreatTwister"]=function(mouse) human.WalkSpeed=0 computePos(torso.CFrame.p, mouse.Hit.p) mana=mana-40 | |
841 | for i=0, 1, .1 do wait() | |
842 | animate.Torso(CFrame.new(0, 0, -50*i)) | |
843 | animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i)) | |
844 | animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i)) | |
845 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), math.rad(180)*i, 0) | |
846 | obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
847 | end | |
848 | trailDeb=true trail(obj.PointLeft, CFrame.new()) trail(obj.PointRight, CFrame.new()) | |
849 | local tornado=add.Part(workspace, true, false, "Cyan", .5, Vector3.new(1, 1, 1), body.Torso.CFrame*CFrame.Angles(math.rad(180), 0, 0)) tornado.Name="Trailz" | |
850 | local tornadoM=add.Mesh("SpecialMesh", tornado, Vector3.new(1, 1, 1), nil, "File") tornadoM.MeshId="http://www.roblox.com/asset/?id=36755354" | |
851 | local spin=35 | |
852 | for i=0, 50, 1 do wait() play("rbxasset://sounds//swordslash.wav", 1) | |
853 | animate.Torso(CFrame.new(0, 0, -50)*CFrame.Angles(0, -math.rad(i*45), 0)) | |
854 | tornado.CFrame=body.Torso.CFrame*CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(180), 0, 0) | |
855 | tornado.Size=Vector3.new(i, i, i) | |
856 | tornadoM.Scale=Vector3.new(i, i, i) | |
857 | end | |
858 | c(function() c(function()wait(10) tornado:remove() end) while true do wait() spin=spin+35 tornado.Touched:connect(hit) tornado.CFrame=tornado.CFrame*CFrame.new(0, 0, 0)*CFrame.Angles(0, math.rad(spin), 0) end end) | |
859 | for i=1, 0, -.1 do wait() | |
860 | animate.Torso(CFrame.new(0, 0, -50*i)*CFrame.Angles(0, -math.rad(i*45), 0)) | |
861 | animate.Torso(CFrame.Angles(0, 0, 0)) | |
862 | animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i)) | |
863 | animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i)) | |
864 | obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), math.rad(180)*i, 0) | |
865 | obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
866 | end | |
867 | trailDeb=false | |
868 | human.WalkSpeed=speed | |
869 | end; | |
870 | ["Block"]=function(mouse) human.WalkSpeed=0 computePos(torso.CFrame.p, mouse.Hit.p) | |
871 | for i=0, 1, .1 do wait() | |
872 | animate.ArmLeft(CFrame.Angles(math.rad(90)*i, -math.rad(45)*i, math.rad(15)*i)) | |
873 | animate.ArmRight(CFrame.Angles(math.rad(90)*i, math.rad(45)*i, -math.rad(15)*i)) | |
874 | end | |
875 | local shieldPart=add.Part(model, true, false, "White", 1, Vector3.new(10, 10, 1), torso.CFrame+torso.CFrame.lookVector*1.5) | |
876 | while loopDeb==true do wait() computePos(torso.CFrame.p, mouse.Hit.p) shieldPart.CFrame=torso.CFrame+torso.CFrame.lookVector*1.5 | |
877 | shieldPart.Touched:connect(function(h) while runDeb==false do wait() end | |
878 | if h.Parent~=char and h.Parent~=modelB and h.Parent~=model and h.Name~="Trailz" and h.Name~="Base" and hitDeb==false then hitDeb=true print(h.Name) | |
879 | local fakeP=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p)) | |
880 | local mesh=add.Mesh("SpecialMesh", fakeP, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=3270017" | |
881 | c(function() | |
882 | for i=0, 1, .05 do | |
883 | wait() | |
884 | fakeP.Mesh.Scale=fakeP.Mesh.Scale+Vector3.new(i, i, 0) | |
885 | end | |
886 | fakeP:remove() | |
887 | end) | |
888 | c(function() | |
889 | for i=0, 1, .05 do | |
890 | wait() | |
891 | fakeP.Transparency=i | |
892 | end | |
893 | end) | |
894 | h.Anchored=false | |
895 | local bp=Instance.new("BodyPosition", h) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=(CFrame.new(torso.CFrame.p, h.CFrame.p)*CFrame.new(0, 0, -50)).p | |
896 | h.Velocity=Vector3.new(0, 0, 0) h.RotVelocity=Vector3.new(0, 0, 0) | |
897 | game.Debris:addItem(bp, .2) | |
898 | wait() | |
899 | hitDeb=false | |
900 | end | |
901 | end) | |
902 | end | |
903 | shieldPart:remove() | |
904 | for i=1, 0, -.1 do wait() | |
905 | animate.ArmLeft(CFrame.Angles(math.rad(90)*i, -math.rad(45)*i, math.rad(15)*i)) | |
906 | animate.ArmRight(CFrame.Angles(math.rad(90)*i, math.rad(45)*i, -math.rad(15)*i)) | |
907 | end | |
908 | human.WalkSpeed=speed | |
909 | end | |
910 | } | |
911 | ||
912 | bin.Selected:connect(function(mouse) createParts() human.WalkSpeed=speed | |
913 | for i=0, 1, .1 do wait() | |
914 | animate.ArmLeft(CFrame.Angles(0, math.rad(45)*i, -math.rad(45)*i)) | |
915 | animate.ArmRight(CFrame.Angles(0, -math.rad(45)*i, math.rad(45)*i)) | |
916 | end | |
917 | human.Running:connect(function(speed) | |
918 | if speed>0 then while keyDeb==true do wait() end | |
919 | animate.ArmLeft(CFrame.Angles(0, math.rad(45), -math.rad(45))) | |
920 | animate.ArmRight(CFrame.Angles(0, -math.rad(45), math.rad(45))) | |
921 | body.LegLeft.Transparency=1 body.LegRight.Transparency=1 | |
922 | leg.Left.Transparency=0 leg.Right.Transparency=0 | |
923 | end | |
924 | end) | |
925 | mouse.KeyDown:connect(function(key) | |
926 | if key=="q" and keyDeb==false and mana>=5 then keyDeb=true runDeb=true | |
927 | Attacks.DemonSlash(mouse) | |
928 | keyDeb=false runDeb=false | |
929 | end | |
930 | if key=="e" and keyDeb==false and mana>=0 then keyDeb=true runDeb=true loopDeb=true | |
931 | Attacks.PoundHo(mouse) | |
932 | keyDeb=false runDeb=false | |
933 | end | |
934 | if key=="r" and keyDeb==false and mana>=20 then keyDeb=true runDeb=true loopDeb=true | |
935 | Attacks.ThousandWorlds(mouse) | |
936 | keyDeb=false runDeb=false | |
937 | end | |
938 | if key=="z" and keyDeb==false then keyDeb=true runDeb=true loopDeb=true | |
939 | Attacks.Charge(mouse) | |
940 | keyDeb=false runDeb=false | |
941 | end | |
942 | if key=="f" and keyDeb==false and mana>=40 then keyDeb=true runDeb=true loopDeb=true | |
943 | Attacks.GreatTwister(mouse) | |
944 | keyDeb=false runDeb=false | |
945 | end | |
946 | if key=="x" and keyDeb==false and mana>=0 then keyDeb=true runDeb=true loopDeb=true | |
947 | Attacks.Block(mouse) | |
948 | keyDeb=false runDeb=false | |
949 | end | |
950 | end) |