SHOW:
|
|
- or go back to the newest paste.
1 | -- made by a new user (iFractal) leaked by a logger with love | |
2 | - | love u iFractal |
2 | + | |
3 | - | <3 |
3 | + | local Player = game:service("Players").LocalPlayer |
4 | - | leeked by CLarramore |
4 | + | local Char = Player.Character |
5 | local mouse = Player:GetMouse() | |
6 | local Humanoid = Char:findFirstChild("Humanoid") | |
7 | local Torso = Char:findFirstChild("Torso") | |
8 | p = game.Players.LocalPlayer | |
9 | char = p.Character | |
10 | des = false | |
11 | fling = true | |
12 | dot = false | |
13 | falling = false | |
14 | jump = true | |
15 | --char.Shirt:Remove() | |
16 | --for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end | |
17 | for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end | |
18 | wait()--shirt = Instance.new("Shirt", char) | |
19 | --shirt.Name = "Shirt" | |
20 | --pants = Instance.new("Pants", char) | |
21 | --pants.Name = "Pants" | |
22 | ||
23 | --char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=451927425" | |
24 | --char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261" | |
25 | tp = true | |
26 | shoot = true | |
27 | hum = char.Humanoid | |
28 | punch = true | |
29 | neckp = char.Torso.Neck.C0 | |
30 | neck = char.Torso.Neck | |
31 | hum.MaxHealth = 999999999 | |
32 | wait() | |
33 | hum.Health =hum.MaxHealth | |
34 | des = false | |
35 | root=char.HumanoidRootPart | |
36 | torso = char.Torso | |
37 | char.Head.face.Texture = "rbxassetid://209995252" | |
38 | local ChatService = game:GetService("Chat") | |
39 | local player = game.Players.LocalPlayer | |
40 | lig = Instance.new("PointLight",player.Character.Torso) | |
41 | lig.Color=Color3.new(255,0,0) | |
42 | m=player:GetMouse() | |
43 | bb = Instance.new("BillboardGui",player.Character.Head) | |
44 | bb.Enabled = true | |
45 | function newRay(start,face,range,wat) | |
46 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
47 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
48 | return rey,hit,pos | |
49 | end | |
50 | ||
51 | c = script:Clone() | |
52 | c.Parent = game.Lighting | |
53 | s = Instance.new("Sky") | |
54 | s.Name = "Dark Sky" | |
55 | s.SkyboxBk = "http://www.roblox.com/asset/?id=13943307" | |
56 | s.SkyboxDn = "http://www.roblox.com/asset/?id=13943307" | |
57 | s.SkyboxFt = "http://www.roblox.com/asset/?id=13943307" | |
58 | s.SkyboxLf = "http://www.roblox.com/asset/?id=13943307" | |
59 | s.SkyboxRt = "http://www.roblox.com/asset/?id=13943307" | |
60 | s.SkyboxUp = "http://www.roblox.com/asset/?id=13943307" | |
61 | s.Parent = game.Lighting | |
62 | ||
63 | game.Lighting.Ambient = Color3.new(-1,-1,-1) | |
64 | ||
65 | music = Instance.new("Sound", Char) | |
66 | music.SoundId = "http://www.roblox.com/asset/?id=763799656" | |
67 | music.Volume = 10 | |
68 | music.Looped = true | |
69 | wait(0.1) | |
70 | music:Play() | |
71 | ||
72 | aa1={} | |
73 | torso=game.Players.LocalPlayer.Character.Torso | |
74 | ||
75 | local WorldUp = Vector3.new(0,1,0) | |
76 | function look2(Vec1,Vec2) | |
77 | local Orig = Vec1 | |
78 | Vec1 = Vec1+Vector3.new(0,1,0) | |
79 | Vec2 = Vec2+Vector3.new(0,1,0) | |
80 | local Forward = (Vec2-Vec1).unit | |
81 | local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit | |
82 | local Right = Up:Cross(Forward).unit | |
83 | Forward = -Forward | |
84 | Right = -Right | |
85 | return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z) | |
86 | end | |
87 | ||
88 | function look(CFr,Vec2) | |
89 | local A = Vector3.new(0,0,0) | |
90 | local B = CFr:inverse()*Vec2 | |
91 | local CF = look2(A,Vector3.new(A.X,B.Y,B.Z)) | |
92 | if B.Z > 0 then | |
93 | CF = CFr*(CF*CFrame.Angles(0,0,math.pi)) | |
94 | elseif B.Z == 0 then | |
95 | if B.Y > 0 then | |
96 | CF = CFr*CFrame.Angles(math.pi/2,0,0) | |
97 | elseif B.Y < 0 then | |
98 | CF = CFr*CFrame.Angles(-math.pi/2,0,0) | |
99 | else | |
100 | CF = CFr | |
101 | end | |
102 | end | |
103 | local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components() | |
104 | local Up = Vector3.new(X,Y,Z) | |
105 | local Forward = (Vec2-CFr.p).unit | |
106 | local Right = Up:Cross(Forward) | |
107 | Forward = -Forward | |
108 | Right = -Right | |
109 | return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z) | |
110 | end | |
111 | ||
112 | function simulate(j,d,m,r,t) | |
113 | local joint = j | |
114 | - | p.BrickColor = BrickColor.new("Institutional white") |
114 | + | |
115 | if v[1]:FindFirstChild("Weld") then | |
116 | local stiff = m.CFrame.lookVector*0.03 | |
117 | if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end | |
118 | local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit | |
119 | local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude | |
120 | local pos = joint.p+(dir*(d*0.5)) | |
121 | --if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end | |
122 | local inv = v[1].Weld.Part0.CFrame | |
123 | local rel1 = inv:inverse()*pos | |
124 | local rel2 = inv:inverse()*(pos-(dir*dis)) | |
125 | local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z) | |
126 | v[1].Weld.C0 = cf | |
127 | v[2] = inv*cf | |
128 | --v[1].CFrame = cf | |
129 | end | |
130 | end | |
131 | end | |
132 | for i=1,8 do | |
133 | local p = Instance.new("Part",char) | |
134 | p.Anchored = false | |
135 | p.BrickColor = BrickColor.new("Really black") | |
136 | p.CanCollide = false | |
137 | p.FormFactor="Custom" | |
138 | p.Material = "SmoothPlastic" | |
139 | p.TopSurface = "SmoothNoOutlines" | |
140 | p.BottomSurface = "SmoothNoOutlines" | |
141 | p.RightSurface = "SmoothNoOutlines" | |
142 | p.LeftSurface = "SmoothNoOutlines" | |
143 | p.FrontSurface = "SmoothNoOutlines" | |
144 | p.BackSurface = "SmoothNoOutlines" | |
145 | ||
146 | p.Size=Vector3.new(2,.2,0.2) | |
147 | p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them | |
148 | mesh = Instance.new("BlockMesh",p) | |
149 | mesh.Scale = Vector3.new(1,1,4) | |
150 | local w = Instance.new("Motor6D",p) | |
151 | w.Part0 = aa1[i-1] and aa1[i-1][1] or torso | |
152 | w.Part1 = p | |
153 | w.Name = "Weld" | |
154 | --table.insert(aa1,p) | |
155 | aa1[i] = {p,p.CFrame} | |
156 | ||
157 | end | |
158 | game:service"RunService".Stepped:connect(function() | |
159 | simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1) | |
160 | end) | |
161 | bb.AlwaysOnTop = true | |
162 | bb.Size = UDim2.new(0,200,0,50) | |
163 | bb.StudsOffset = Vector3.new(0,1,0) | |
164 | gui=Instance.new("TextBox",bb) | |
165 | gui.Text = "* " | |
166 | gui.Size = UDim2.new(0,133,0,45) | |
167 | gui.Position=UDim2.new(0,57,0,-40) | |
168 | gui.TextColor3 = Color3.new(255,255,255) | |
169 | gui.BackgroundColor3=Color3.new(0,0,0) | |
170 | gui.TextWrapped = true | |
171 | gui.TextScaled = true | |
172 | gui.TextXAlignment = "Left" | |
173 | gui.TextYAlignment = "Top" | |
174 | gui.Visible = false | |
175 | gui.BorderColor3 = Color3.new(0,0,0) | |
176 | punch2 = true | |
177 | gui1=Instance.new("TextButton",bb) | |
178 | gui1.Position=UDim2.new(0,5,0,-43) | |
179 | gui1.Size = UDim2.new(0,190,0,51) | |
180 | ||
181 | gui1.TextColor3 = Color3.new(255,255,255) | |
182 | gui1.BackgroundColor3=Color3.new(255,255,255) | |
183 | jump2 = true | |
184 | gui1.Visible = false | |
185 | img = Instance.new("ImageLabel",bb) | |
186 | img.Size = UDim2.new(0,46,0,47) | |
187 | img.Position = UDim2.new(0,10,0,-41) | |
188 | img.Image = "rbxassetid://447301252" | |
189 | img.BorderColor3 = Color3.new(0,0,0) | |
190 | img.Visible = false | |
191 | soka = Instance.new("Sound",char) | |
192 | soka.SoundId = "http://www.roblox.com/asset/?id = 144805742" | |
193 | soka.Volume = 1 | |
194 | boom = Instance.new("Sound",char) | |
195 | boom.SoundId = "http://www.roblox.com/asset/?id = 144805742" | |
196 | boom.Volume = 1 | |
197 | boom2 = Instance.new("Sound",char) | |
198 | boom2.SoundId = "http://www.roblox.com/asset/?id = 449025737" | |
199 | boom2.Volume = 1 | |
200 | boom3 = Instance.new("Sound",char) | |
201 | boom3.SoundId = "http://www.roblox.com/asset/?id = 450719019" | |
202 | boom3.Volume = 1 | |
203 | tps = Instance.new("Sound",char) | |
204 | tps.SoundId = "http://www.roblox.com/asset/?id = 449860746" | |
205 | tps.Volume = 1 | |
206 | asd = Instance.new("Sound",char) | |
207 | asd.SoundId = "http://www.roblox.com/asset/?id = 447310433" | |
208 | asd.Volume =1 | |
209 | asd1 = Instance.new("Sound",char) | |
210 | asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695" | |
211 | ||
212 | asd2 = Instance.new("Sound",char) | |
213 | asd2.SoundId = "http://www.roblox.com/asset/?id = 386713054" | |
214 | asd2.Looped = true | |
215 | asd2.Volume = 5 | |
216 | asd3 = Instance.new("Sound",char) | |
217 | asd3.SoundId = "http://www.roblox.com/asset/?id = 378387996" | |
218 | asd3.Looped = true | |
219 | asd4 = Instance.new("Sound",char) | |
220 | asd4.SoundId = "http://www.roblox.com/asset/?id = 401258325" | |
221 | asd4.Looped = true | |
222 | asd5 = Instance.new("Sound",char) | |
223 | asd5.SoundId = "http://www.roblox.com/asset/?id = 362252261" | |
224 | asd5.Looped = true | |
225 | gas = Instance.new("Sound",char) | |
226 | gas.SoundId = "http://www.roblox.com/asset/?id = 345052019" | |
227 | asd6 = Instance.new("Sound",char) | |
228 | asd6.SoundId = "http://www.roblox.com/asset/?id = 401258325" | |
229 | - | p.BrickColor = BrickColor.new("Institutional white") |
229 | + | |
230 | function play(play) | |
231 | asd:Play() | |
232 | wait(0.05) | |
233 | --asd1:Play() | |
234 | end | |
235 | ||
236 | ||
237 | ||
238 | ------------ | |
239 | ------------------------- | |
240 | ||
241 | function stream(origin,dir,length,size) | |
242 | local parts = {} | |
243 | for i = 1,length do | |
244 | local p = Instance.new("Part",char) | |
245 | p.Anchored = true | |
246 | p.Transparency = 0.5 | |
247 | p.TopSurface = 0 | |
248 | p.BottomSurface = 0 | |
249 | p.CanCollide = false | |
250 | p.BrickColor = BrickColor.new("Really black") | |
251 | p.Size = Vector3.new(10,30,10) -- for now | |
252 | p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi) | |
253 | parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)} | |
254 | game:GetService("Debris"):AddItem(p,3) | |
255 | end | |
256 | Spawn(function() | |
257 | while parts do | |
258 | for i,v in pairs(parts) do | |
259 | if v[1].Parent == char then | |
260 | v[1].CFrame = v[1].CFrame*v[2] | |
261 | else | |
262 | parts = nil | |
263 | break | |
264 | end | |
265 | end | |
266 | wait(0.02) | |
267 | end | |
268 | end) | |
269 | end | |
270 | ||
271 | --[[-- listen for their chatting | |
272 | player.Chatted:connect(function(message) | |
273 | a = string.len(message) | |
274 | gui.Text = "" | |
275 | gui.Visible = true | |
276 | gui1.Visible = true | |
277 | des = false | |
278 | img.Visible = true | |
279 | print(a) | |
280 | if dot == false then | |
281 | gui.Text = "" | |
282 | for i = 1,string.len(message) do | |
283 | gui.Text =gui.Text..message:sub(i,i) | |
284 | play() | |
285 | ||
286 | end | |
287 | end | |
288 | ||
289 | ||
290 | des = true | |
291 | end)]]-- | |
292 | m.KeyDown:connect(function(k) | |
293 | if k == "g" then | |
294 | asd2:Play() | |
295 | ||
296 | ||
297 | end | |
298 | end) | |
299 | ||
300 | m.KeyDown:connect(function(k) | |
301 | if k == "r" then | |
302 | ||
303 | asd4:Play() | |
304 | end | |
305 | end) | |
306 | m.KeyDown:connect(function(k) | |
307 | if k == "q" then | |
308 | ||
309 | asd3:Play() | |
310 | end | |
311 | end) | |
312 | m.KeyDown:connect(function(k) | |
313 | if k == "z" then | |
314 | img.Image = "rbxassetid://332766052" | |
315 | ||
316 | end | |
317 | end) | |
318 | m.KeyDown:connect(function(k) | |
319 | if k == "c" then | |
320 | img.Image = "rbxassetid://447301252" | |
321 | ||
322 | end | |
323 | end) | |
324 | m.KeyDown:connect(function(k) | |
325 | if k == "b" then | |
326 | ||
327 | asd6:Play() | |
328 | end | |
329 | end) | |
330 | mouse = p:GetMouse() | |
331 | m.KeyDown:connect(function(k) | |
332 | if k:byte() == 48 then | |
333 | ||
334 | hum.WalkSpeed = 100 | |
335 | end | |
336 | end) | |
337 | m.KeyDown:connect(function(k) | |
338 | if k:byte() == 50 then | |
339 | ||
340 | soka:Play() | |
341 | end | |
342 | end) | |
343 | m.KeyDown:connect(function(k) | |
344 | if k:byte() == 52 then | |
345 | ||
346 | char.Head.face.Texture = "rbxassetid://180660043" | |
347 | end | |
348 | end) | |
349 | m.KeyDown:connect(function(k) | |
350 | if k:byte() == 51 then | |
351 | ||
352 | char.Head.face.Texture = "rbxassetid://180660043" | |
353 | end | |
354 | end) | |
355 | m.KeyUp:connect(function(k) | |
356 | if k:byte() == 48 then | |
357 | ||
358 | hum.WalkSpeed = 16 | |
359 | end | |
360 | end) | |
361 | p.Chatted:connect(function(m) | |
362 | if m == "Okay." then | |
363 | soka:Play() | |
364 | end | |
365 | end) | |
366 | m.KeyDown:connect(function(k) | |
367 | if k == "x" then | |
368 | if des == true then | |
369 | gui.Visible = false | |
370 | gui.Text = "* " | |
371 | gui1.Visible = false | |
372 | img.Visible = false | |
373 | end | |
374 | end | |
375 | end) | |
376 | m.KeyDown:connect(function(key) | |
377 | if key == "j" then | |
378 | if tp == true then | |
379 | tp = false | |
380 | tps:Play() | |
381 | char.Head.face.Parent = game.Lighting | |
382 | for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1 | |
383 | end | |
384 | local Head = Char.Head | |
385 | local ra = Char:findFirstChild("Right Arm") | |
386 | local la = Char:findFirstChild("Left Arm") | |
387 | local rl = Char:findFirstChild("Right Leg") | |
388 | local ll = Char:findFirstChild("Left Leg") | |
389 | local rs = Torso:findFirstChild("Right Shoulder") | |
390 | local ls = Torso:findFirstChild("Left Shoulder") | |
391 | local rh = Torso:findFirstChild("Right Hip") | |
392 | - | ChatService:Chat(char.Head, "this is the end pal its time TO AAAA DIE :P DIe DIE DIE DIE DIE/?") |
392 | + | local lh = Torso:findFirstChild("Left Hip") |
393 | local neck = Torso:findFirstChild("Neck") | |
394 | local rp = Char:findFirstChild("HumanoidRootPart") | |
395 | rp.Archivable = true | |
396 | local rj = rp:findFirstChild("RootJoint") | |
397 | - | ChatService:Chat(char.Head ,"CHOP CHOP CHOP POW!!!") |
397 | + | rj.Archivable = true |
398 | local animate = Char:findFirstChild("Animate") | |
399 | local rootpart = Char:findFirstChild("HumanoidRootPart") | |
400 | local Camera = workspace.CurrentCamera | |
401 | local CF = CFrame.new | |
402 | - | ChatService:Chat(char.Head, "EXTREAM PUNCH BCH.") |
402 | + | local components = CF().components |
403 | local magicclrs = {"Really blue", "Really black", "Institutional white"} | |
404 | --local magicclrs = {"Really red", "Deep orange", "New Yeller", "Lime green", "Really blue", "Royal purple", "Bright violet"} | |
405 | rootpart.CanCollide = false | |
406 | Humanoid:findFirstChild("Animator"):Destroy() | |
407 | Humanoid.CameraOffset = Vector3.new(0, 2, 0) | |
408 | Humanoid.JumpPower = 60 | |
409 | game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump) | |
410 | if jump == "Jump" then | |
411 | Humanoid.Jump = false | |
412 | end | |
413 | end) | |
414 | ||
415 | ||
416 | ||
417 | Lerp = function(a,b,c) | |
418 | return a+(b-a)*c | |
419 | end | |
420 | ||
421 | function phaseclone() | |
422 | Char.Archivable = true | |
423 | local Clone1 = Char:Clone() | |
424 | Clone1.Parent = game.Workspace | |
425 | for i,v in pairs (Clone1:GetChildren()) do | |
426 | if v.ClassName == "BodyColors" then | |
427 | B = "Really black" | |
428 | v.HeadColor = BrickColor.new(B) | |
429 | v.LeftArmColor = BrickColor.new(B) | |
430 | v.RightArmColor = BrickColor.new(B) | |
431 | v.TorsoColor = BrickColor.new(B) | |
432 | v.LeftLegColor = BrickColor.new(B) | |
433 | v.RightLegColor = BrickColor.new(B) | |
434 | elseif not v:IsA("Part") then | |
435 | v:Destroy() | |
436 | end | |
437 | if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then | |
438 | v:Destroy() | |
439 | end | |
440 | if v:IsA("Part") then | |
441 | v.Transparency = 0.5 | |
442 | v.TopSurface = "Smooth" | |
443 | v.BottomSurface = "Smooth" | |
444 | v.LeftSurface = "Smooth" | |
445 | v.RightSurface = "Smooth" | |
446 | Bl = "Really black" | |
447 | v.BrickColor = BrickColor.new(Bl) | |
448 | v.Anchored = true | |
449 | v.CanCollide = false | |
450 | end | |
451 | end | |
452 | for i,v in pairs (Clone1:GetChildren()) do | |
453 | - | rng.BrickColor = BrickColor.new("Institutional white") |
453 | + | if v:FindFirstChild("roblox") then |
454 | v.roblox:Destroy() | |
455 | end | |
456 | if v:FindFirstChild("face") then | |
457 | v.face:Destroy() | |
458 | end | |
459 | if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then | |
460 | v:Remove() | |
461 | end | |
462 | end | |
463 | wait(0.3) | |
464 | for i = 1,5 do | |
465 | for _,v in pairs(Clone1:GetChildren()) do | |
466 | if v:IsA("Part") then | |
467 | v.Transparency = 0.5+i/5 | |
468 | wait() | |
469 | end | |
470 | end | |
471 | end | |
472 | Clone1:Destroy() | |
473 | end | |
474 | ||
475 | ||
476 | function ctlerp(c1,c2,al) | |
477 | local com1 = {c1:components()} | |
478 | local com2 = {c2:components()} | |
479 | for i,v in pairs(com1) do | |
480 | com1[i] = Lerp(v,com2[i],al) | |
481 | end | |
482 | return CF(unpack(com1)) | |
483 | end | |
484 | ||
485 | do | |
486 | local function QuaternionFromCFrame(cf) | |
487 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
488 | local trace = m00 + m11 + m22 | |
489 | if trace > 0 then | |
490 | local s = math.sqrt(1 + trace) | |
491 | - | rng2.BrickColor = BrickColor.new("Institutional white") |
491 | + | local recip = 0.5/s |
492 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
493 | else | |
494 | local i = 0 | |
495 | if m11 > m00 then | |
496 | i = 1 | |
497 | end | |
498 | if m22 > (i == 0 and m00 or m11) then | |
499 | i = 2 | |
500 | end | |
501 | if i == 0 then | |
502 | local s = math.sqrt(m00-m11-m22+1) | |
503 | - | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" |
503 | + | local recip = 0.5/s |
504 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
505 | elseif i == 1 then | |
506 | local s = math.sqrt(m11-m22-m00+1) | |
507 | local recip = 0.5/s | |
508 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
509 | elseif i == 2 then | |
510 | local s = math.sqrt(m22-m00-m11+1) | |
511 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
512 | end | |
513 | end | |
514 | end | |
515 | local function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
516 | local xs, ys, zs = x + x, y + y, z + z | |
517 | local wx, wy, wz = w*xs, w*ys, w*zs | |
518 | local xx = x*xs | |
519 | local xy = x*ys | |
520 | local xz = x*zs | |
521 | local yy = y*ys | |
522 | local yz = y*zs | |
523 | local zz = z*zs | |
524 | return CF(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
525 | end | |
526 | local function QuaternionSlerp(a, b, t) | |
527 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
528 | local startInterp, finishInterp; | |
529 | if cosTheta >= 0.0001 then | |
530 | if (1 - cosTheta) > 0.0001 then | |
531 | local theta = math.acos(cosTheta) | |
532 | local invSinTheta = 1/math.sin(theta) | |
533 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
534 | finishInterp = math.sin(t*theta)*invSinTheta | |
535 | else | |
536 | startInterp = 1-t | |
537 | finishInterp = t | |
538 | end | |
539 | else | |
540 | if (1+cosTheta) > 0.0001 then | |
541 | local theta = math.acos(-cosTheta) | |
542 | local invSinTheta = 1/math.sin(theta) | |
543 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
544 | finishInterp = math.sin(t*theta)*invSinTheta | |
545 | else | |
546 | startInterp = t-1 | |
547 | finishInterp = t | |
548 | end | |
549 | end | |
550 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
551 | end | |
552 | function clerp(a,b,t) | |
553 | local qa = {QuaternionFromCFrame(a)} | |
554 | local qb = {QuaternionFromCFrame(b)} | |
555 | local ax, ay, az = a.x, a.y, a.z | |
556 | local bx, by, bz = b.x, b.y, b.z | |
557 | local _t = 1-t | |
558 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
559 | end | |
560 | end | |
561 | ||
562 | --==/BASE/DEFAULT WELDS/==-- | |
563 | rm = Instance.new("Weld", Torso) | |
564 | rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0) | |
565 | rm.C1 = CFrame.new(0, 0.5, 0) | |
566 | rm.Part0 = Torso | |
567 | rm.Part1 = ra | |
568 | lm = Instance.new("Weld", Torso) | |
569 | lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0) | |
570 | lm.C1 = CFrame.new(0, 0.5, 0) | |
571 | lm.Part0 = Torso | |
572 | lm.Part1 = la | |
573 | rlegm = Instance.new("Weld", Torso) | |
574 | rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0) | |
575 | rlegm.C1 = CFrame.new(0, 1, 0) | |
576 | rlegm.Part0 = Torso | |
577 | rlegm.Part1 = rl | |
578 | llegm = Instance.new("Weld", Torso) | |
579 | llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0) | |
580 | llegm.C1 = CFrame.new(0, 1, 0) | |
581 | llegm.Part0 = Torso | |
582 | llegm.Part1 = ll | |
583 | neck.C0 = CFrame.new(0,1,0) | |
584 | neck.C1 = CFrame.new(0,-0.5,0) | |
585 | ||
586 | --==/Mage's gauntlet/==-- | |
587 | gauntlet = Instance.new("Model", Char) | |
588 | gauntParts = Instance.new("Model", gauntlet) | |
589 | ||
590 | local rrng = Instance.new("Part", gauntParts) | |
591 | rrng.Anchored = false | |
592 | rrng.CanCollide = false | |
593 | rrng.FormFactor = "Custom" | |
594 | rrng.TopSurface = "Smooth" | |
595 | rrng.BottomSurface = "Smooth" | |
596 | rrng.BrickColor = BrickColor.new("Really black") | |
597 | rrng.Transparency = 0 | |
598 | local rrngM = Instance.new("FileMesh", rrng) | |
599 | rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
600 | rrngM.Scale = Vector3.new(0.8, 0.8, 0.8) | |
601 | local rrngW = Instance.new("Weld", rrng) | |
602 | rrngW.Part1 = rrng | |
603 | rrngW.Part0 = ra | |
604 | rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0) | |
605 | ||
606 | local rbg = Instance.new("Part", gauntParts) | |
607 | rbg.Anchored, rbg.CanCollide = false, false | |
608 | rbg.FormFactor = "Custom" | |
609 | rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth" | |
610 | rbg.Color = Color3.new(0, 0, 0) | |
611 | rbg.Transparency = 0 | |
612 | local rbgM = Instance.new("SpecialMesh", rbg) | |
613 | rbgM.MeshType = "Cylinder" | |
614 | rbgM.Scale = Vector3.new(0.01, 0.7, 0.7) | |
615 | local rbgW = Instance.new("Weld", rbg) | |
616 | rbgW.Part1 = rbg | |
617 | rbgW.Part0 = rrng | |
618 | rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0) | |
619 | ||
620 | - | rng.BrickColor = BrickColor.new("Institutional white") |
620 | + | local chak = Instance.new("Part", gauntParts) |
621 | chak.Anchored, chak.CanCollide = false, false | |
622 | chak.FormFactor = "Custom" | |
623 | chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth" | |
624 | chak.Color = Color3.new(1, 1, 1) | |
625 | chak.Transparency = 0 | |
626 | local chakM = Instance.new("FileMesh", chak) | |
627 | chakM.MeshId = "http://www.roblox.com/asset/?id=47260990" | |
628 | chakM.Scale = Vector3.new(0.85, 0.85, 0.85) | |
629 | local chakW = Instance.new("Motor", chak) | |
630 | chakW.DesiredAngle = 100000000000 | |
631 | chakW.MaxVelocity = 0.1 | |
632 | chakW.Part1 = chak | |
633 | chakW.Part0 = rrng | |
634 | chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0) | |
635 | ||
636 | --=/Spikes for Gauntlet [top]/=-- | |
637 | ||
638 | local cone = Instance.new("Part", gauntParts) | |
639 | cone.Anchored, cone.CanCollide = false, false | |
640 | cone.FormFactor = "Custom" | |
641 | cone.TopSurface, cone.BottomSurface = "Smooth", "Smooth" | |
642 | cone.Color = Color3.new(0, 0, 0) | |
643 | cone.Transparency = 0 | |
644 | local coneM = Instance.new("FileMesh", cone) | |
645 | coneM.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
646 | coneM.Scale = Vector3.new(0.1, 0.85, 0.06) | |
647 | local coneW = Instance.new("Motor", cone) | |
648 | coneW.Part1 = cone | |
649 | coneW.Part0 = rrng | |
650 | coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0) | |
651 | ||
652 | local cone2 = Instance.new("Part", gauntParts) | |
653 | cone2.Anchored, cone2.CanCollide = false, false | |
654 | cone2.FormFactor = "Custom" | |
655 | cone2.TopSurface, cone2.BottomSurface = "Smooth", "Smooth" | |
656 | cone2.Color = Color3.new(0, 0, 0) | |
657 | cone2.Transparency = 0 | |
658 | local cone2M = Instance.new("FileMesh", cone2) | |
659 | cone2M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
660 | cone2M.Scale = Vector3.new(0.1, 0.45, 0.06) | |
661 | local cone2W = Instance.new("Motor", cone2) | |
662 | cone2W.Part1 = cone2 | |
663 | cone2W.Part0 = rrng | |
664 | cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40)) | |
665 | ||
666 | local cone3 = Instance.new("Part", gauntParts) | |
667 | cone3.Anchored, cone3.CanCollide = false, false | |
668 | cone3.FormFactor = "Custom" | |
669 | cone3.TopSurface, cone3.BottomSurface = "Smooth", "Smooth" | |
670 | cone3.Color = Color3.new(0, 0, 0) | |
671 | cone3.Transparency = 0 | |
672 | local cone3M = Instance.new("FileMesh", cone3) | |
673 | cone3M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
674 | cone3M.Scale = Vector3.new(0.1, 0.45, 0.06) | |
675 | local cone3W = Instance.new("Motor", cone3) | |
676 | cone3W.Part1 = cone3 | |
677 | cone3W.Part0 = rrng | |
678 | cone3W.C0 = CFrame.new(0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(-40)) | |
679 | ||
680 | --=/Spikes for Gauntlet [bottom]/=-- | |
681 | ||
682 | local cone4 = Instance.new("Part", gauntParts) | |
683 | cone4.Anchored, cone4.CanCollide = false, false | |
684 | cone4.FormFactor = "Custom" | |
685 | cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth" | |
686 | - | rng.BrickColor = BrickColor.new("Institutional white") |
686 | + | cone4.Color = Color3.new(0, 0, 0) |
687 | cone4.Transparency = 0 | |
688 | local cone4M = Instance.new("FileMesh", cone4) | |
689 | cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
690 | cone4M.Scale = Vector3.new(0.1, 1, 0.06) | |
691 | local cone4W = Instance.new("Motor", cone4) | |
692 | cone4W.Part1 = cone4 | |
693 | cone4W.Part0 = rrng | |
694 | cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180)) | |
695 | ||
696 | local cone5 = Instance.new("Part", gauntParts) | |
697 | cone5.Anchored, cone5.CanCollide = false, false | |
698 | cone5.FormFactor = "Custom" | |
699 | cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth" | |
700 | cone5.Color = Color3.new(0, 0, 0) | |
701 | cone5.Transparency = 0 | |
702 | local cone5M = Instance.new("FileMesh", cone5) | |
703 | cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
704 | cone5M.Scale = Vector3.new(0.1, 0.35, 0.035) | |
705 | local cone5W = Instance.new("Motor", cone5) | |
706 | cone5W.Part1 = cone5 | |
707 | cone5W.Part0 = rrng | |
708 | cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150)) | |
709 | ||
710 | local cone6 = Instance.new("Part", gauntParts) | |
711 | cone6.Anchored, cone6.CanCollide = false, false | |
712 | cone6.FormFactor = "Custom" | |
713 | cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth" | |
714 | cone6.Color = Color3.new(0, 0, 0) | |
715 | cone6.Transparency = 0 | |
716 | local cone6M = Instance.new("FileMesh", cone6) | |
717 | cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
718 | cone6M.Scale = Vector3.new(0.1, 0.35, 0.035) | |
719 | local cone6W = Instance.new("Motor", cone6) | |
720 | cone6W.Part1 = cone6 | |
721 | cone6W.Part0 = rrng | |
722 | cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150)) | |
723 | ||
724 | --=/Armband/=-- | |
725 | ||
726 | local armbnd = Instance.new("Part", gauntParts) | |
727 | armbnd.Anchored, armbnd.CanCollide = false, false | |
728 | armbnd.FormFactor = "Custom" | |
729 | armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth" | |
730 | armbnd.Color = Color3.new(0, 0, 0) | |
731 | armbnd.Transparency = 0 | |
732 | armbnd.Size = Vector3.new(1.005, 0.3, 1.005) | |
733 | local armbndW = Instance.new("Motor", armbnd) | |
734 | armbndW.Part1 = armbnd | |
735 | armbndW.Part0 = ra | |
736 | armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
737 | ||
738 | local armbnd2 = Instance.new("Part", gauntParts) | |
739 | armbnd2.Anchored, armbnd2.CanCollide = false, false | |
740 | armbnd2.FormFactor = "Custom" | |
741 | armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth" | |
742 | armbnd2.Color = Color3.new(0, 0, 0) | |
743 | armbnd2.Transparency = 0 | |
744 | armbnd2.Size = Vector3.new(1.005, 0.01, 1.005) | |
745 | local armbnd2W = Instance.new("Motor", armbnd2) | |
746 | armbnd2W.Part1 = armbnd2 | |
747 | armbnd2W.Part0 = armbnd | |
748 | armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0) | |
749 | ||
750 | local armbnd3 = Instance.new("Part", gauntParts) | |
751 | armbnd3.Anchored, armbnd3.CanCollide = false, false | |
752 | armbnd3.FormFactor = "Custom" | |
753 | armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth" | |
754 | - | rng.BrickColor = BrickColor.new("Institutional white") |
754 | + | armbnd3.Color = Color3.new(0, 0, 0) |
755 | armbnd3.Transparency = 0 | |
756 | armbnd3.Size = Vector3.new(1.005, 0.01, 1.005) | |
757 | local armbnd3W = Instance.new("Motor", armbnd3) | |
758 | armbnd3W.Part1 = armbnd3 | |
759 | armbnd3W.Part0 = armbnd | |
760 | armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0) | |
761 | ||
762 | --[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]-- | |
763 | ||
764 | --==/BASE VARIABLES/==-- | |
765 | sine = 1 | |
766 | angle = 0 | |
767 | anglespeed = 1 | |
768 | local anim = false | |
769 | local walking = false | |
770 | local sprinting = false | |
771 | local magix = false | |
772 | local debounce = false | |
773 | local magixball = false | |
774 | ||
775 | mouse.Button1Down:connect(function() | |
776 | magixball = true | |
777 | if debounce == false and magix == true then | |
778 | debounce = true | |
779 | coroutine.resume(coroutine.create(function() | |
780 | wait(0.3) | |
781 | debounce = false | |
782 | end)) | |
783 | - | v:Destroy() wait(2) jumping2 = true hum.WalkSpeed = 16 |
783 | + | local PorplBall = Instance.new("Part", Char) |
784 | PorplBall.Archivable = true | |
785 | PorplBall.TopSurface = 10 | |
786 | PorplBall.BottomSurface = 10 | |
787 | PorplBall.CFrame = rrng.CFrame | |
788 | PorplBall.Anchored = false | |
789 | PorplBall.CanCollide = false | |
790 | PorplBall.Size = Vector3.new(1, 1, 1) | |
791 | PorplBall.BrickColor = BrickColor.new("Really black") | |
792 | PorplBall.Transparency = 0 | |
793 | local PorplBallM = Instance.new("SpecialMesh", PorplBall) | |
794 | PorplBallM.MeshType = "Sphere" | |
795 | PorplBallM.Scale = Vector3.new(1, 1, 1) | |
796 | local function explode() | |
797 | wait() | |
798 | PorplBall:Destroy() | |
799 | end | |
800 | coroutine.resume(coroutine.create(function() | |
801 | for i = 1, 125 do wait(0.000000000000001) | |
802 | local pmagic = Instance.new("Part", PorplBall) | |
803 | pmagic.FormFactor = "Custom" | |
804 | pmagic.Anchored = true | |
805 | pmagic.CanCollide = false | |
806 | pmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
807 | pmagic.TopSurface = 10 | |
808 | pmagic.BottomSurface = 10 | |
809 | pmagic.LeftSurface = 10 | |
810 | pmagic.RightSurface = 10 | |
811 | pmagic.FrontSurface = 10 | |
812 | pmagic.BackSurface = 10 | |
813 | pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
814 | pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
815 | local lt = Instance.new("PointLight", pmagic) | |
816 | lt.Brightness = 100 | |
817 | lt.Range = 5 | |
818 | lt.Color = Color3.new(0, 0, 65/100) | |
819 | local pmagicM = Instance.new("BlockMesh", pmagic) | |
820 | game:GetService("Debris"):AddItem(pmagic, 0.5) | |
821 | coroutine.wrap(function() | |
822 | for i = 1, 10 do | |
823 | pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
824 | pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0) | |
825 | wait() | |
826 | end | |
827 | end)() | |
828 | end | |
829 | end)) | |
830 | local Velocity = Instance.new("BodyVelocity", PorplBall) | |
831 | Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge | |
832 | Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80 | |
833 | local ready = false | |
834 | PorplBall.Touched:connect(function(part) | |
835 | if not part:IsDescendantOf(Char) and ready == false then | |
836 | ready = true | |
837 | local found = false | |
838 | for i,v in pairs (part.Parent:GetChildren()) do | |
839 | if v:IsA("Humanoid") or v == Torso or v == Head then | |
840 | found = true | |
841 | v.MaxHealth = v.MaxHealth - math.huge | |
842 | v.Health = v.Health - math.huge | |
843 | end | |
844 | end | |
845 | Velocity:Destroy() | |
846 | PorplBall.Anchored = true | |
847 | for i = 0, 1, 0.06 do | |
848 | local start = 1 | |
849 | local stop = 7 | |
850 | PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start)) | |
851 | PorplBall.Transparency = i | |
852 | wait() | |
853 | end | |
854 | explode() | |
855 | end | |
856 | end) | |
857 | wait(6.5) | |
858 | explode() | |
859 | end | |
860 | end) | |
861 | ||
862 | coroutine.resume(coroutine.create(function() | |
863 | while wait(0.0000000001) do if magix == true then | |
864 | --[[ --==/Lightning Magic/==-- | |
865 | lastCF = Torso.Position | |
866 | x1 = Instance.new("Part", workspace) | |
867 | x1.Size = Vector3.new(1, 1, 1) | |
868 | x1.CanCollide = false | |
869 | x1.Anchored = true | |
870 | x1.Transparency = 1 | |
871 | spawn(function() | |
872 | while true do | |
873 | wait(-1) | |
874 | x1.CFrame = Char.Torso.CFrame * CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))) * CFrame.new(0, 0, 6) | |
875 | end | |
876 | end) | |
877 | for i = 1, math.huge do | |
878 | local dist2 = (lastCF-x1.Position).magnitude | |
879 | x2 = Instance.new("Part", workspace) | |
880 | x2.Size = Vector3.new(1, 1, 1) | |
881 | x2.Material = "Neon" | |
882 | x2.BrickColor = BrickColor.new("Really black") | |
883 | x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2) | |
884 | x2.CanCollide = false | |
885 | x2.Anchored = true | |
886 | local m = Instance.new("BlockMesh", x2) | |
887 | m.Scale = Vector3.new(0.5, 0.5, dist2) | |
888 | lastCF = x1.Position | |
889 | spawn(function() | |
890 | for i = 1, 100 do | |
891 | x = m.Scale.x/10 | |
892 | y = m.Scale.x/10 | |
893 | m.Scale = m.Scale-Vector3.new(x, y, 0) | |
894 | wait() | |
895 | end | |
896 | end) | |
897 | game.Debris:AddItem(x2, 0.35) | |
898 | wait() | |
899 | end | |
900 | x1:Destroy() | |
901 | ]]-- | |
902 | --=/Right Arm Magic/=-- | |
903 | local ramagic = Instance.new("Part", Char) | |
904 | ramagic.FormFactor = "Custom" | |
905 | ramagic.Anchored = true | |
906 | ramagic.CanCollide = false | |
907 | ramagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
908 | ramagic.TopSurface = 10 | |
909 | ramagic.BottomSurface = 10 | |
910 | ramagic.LeftSurface = 10 | |
911 | ramagic.RightSurface = 10 | |
912 | ramagic.FrontSurface=10 | |
913 | ramagic.BackSurface=10 | |
914 | ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
915 | ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
916 | local lt = Instance.new("PointLight", ramagic) | |
917 | lt.Brightness = 100 | |
918 | lt.Range = 5 | |
919 | lt.Color = Color3.new(0, 0, 65/100) | |
920 | local ramagicM = Instance.new("BlockMesh", ramagic) | |
921 | ||
922 | --=/Left Arm Magic/=-- | |
923 | local lamagic = Instance.new("Part", Char) | |
924 | lamagic.FormFactor = "Custom" | |
925 | lamagic.Anchored = true | |
926 | lamagic.CanCollide = false | |
927 | lamagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
928 | lamagic.TopSurface = 10 | |
929 | lamagic.BottomSurface = 10 | |
930 | lamagic.LeftSurface = 10 | |
931 | lamagic.RightSurface = 10 | |
932 | lamagic.FrontSurface=10 | |
933 | lamagic.BackSurface=10 | |
934 | lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)]) | |
935 | lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
936 | local lt2 = Instance.new("PointLight", lamagic) | |
937 | lt2.Brightness = 100 | |
938 | lt2.Range = 6 | |
939 | lt2.Color = Color3.new(0, 0, 65/100) | |
940 | local lamagicM = Instance.new("BlockMesh", lamagic) | |
941 | --[[optional | |
942 | --=/Right Leg Magic/=-- | |
943 | local rlmagic = Instance.new("Part", Char) | |
944 | rlmagic.FormFactor = "Custom" | |
945 | rlmagic.Anchored = true | |
946 | rlmagic.CanCollide = false | |
947 | rlmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
948 | rlmagic.TopSurface = 10 | |
949 | rlmagic.BottomSurface = 10 | |
950 | rlmagic.LeftSurface = 10 | |
951 | rlmagic.RightSurface = 10 | |
952 | rlmagic.FrontSurface=10 | |
953 | rlmagic.BackSurface=10 | |
954 | rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
955 | rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
956 | local lt3 = Instance.new("PointLight", rlmagic) | |
957 | lt3.Brightness = 123123 | |
958 | lt3.Range = 6 | |
959 | lt3.Color = Color3.new(1, 0, 1) | |
960 | local rlmagicM = Instance.new("BlockMesh", rlmagic) | |
961 | ||
962 | --=/Left Leg Magic/=-- | |
963 | local llmagic = Instance.new("Part", Char) | |
964 | llmagic.FormFactor = "Custom" | |
965 | llmagic.Anchored = true | |
966 | llmagic.CanCollide = false | |
967 | llmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
968 | llmagic.TopSurface = 10 | |
969 | llmagic.BottomSurface = 10 | |
970 | llmagic.LeftSurface = 10 | |
971 | llmagic.RightSurface = 10 | |
972 | llmagic.FrontSurface=10 | |
973 | llmagic.BackSurface=10 | |
974 | llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
975 | llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
976 | local lt4 = Instance.new("PointLight", llmagic) | |
977 | lt4.Brightness = 123123 | |
978 | lt4.Range = 6 | |
979 | lt4.Color = Color3.new(1, 0, 1) | |
980 | local llmagicM = Instance.new("BlockMesh", llmagic) | |
981 | ]] | |
982 | game:GetService("Debris"):AddItem(lamagic, 0.85) | |
983 | game:GetService("Debris"):AddItem(ramagic, 0.85) | |
984 | --[[ | |
985 | game:GetService("Debris"):AddItem(rlmagic, 0.85) | |
986 | game:GetService("Debris"):AddItem(llmagic, 0.85) | |
987 | ]]-- | |
988 | coroutine.wrap(function() | |
989 | for i = 1, 10 do | |
990 | ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
991 | ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0) | |
992 | lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
993 | lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0) | |
994 | --[[ | |
995 | rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
996 | rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0) | |
997 | llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
998 | llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0) | |
999 | ]]-- | |
1000 | wait() | |
1001 | end | |
1002 | end)() | |
1003 | end | |
1004 | end | |
1005 | end)) | |
1006 | ||
1007 | --[[local bodyg = Instance.new("BodyGyro", Torso) | |
1008 | bodyg.MaxTorque = Vector3.new(0, math.huge, 0) | |
1009 | while true do game:GetService("RunService").RenderStepped:wait() | |
1010 | bodyg.CFrame = Camera.CoordinateFrame | |
1011 | end]]-- | |
1012 | ||
1013 | ||
1014 | mouse.KeyDown:connect(function(key) | |
1015 | if key == "0" and sprinting == false then | |
1016 | sprinting = true | |
1017 | Humanoid.WalkSpeed = 60 | |
1018 | elseif key == "q" and magix == true then | |
1019 | magix = false | |
1020 | for i = 65/255, 1, -0.1 do wait() | |
1021 | chak.Color = Color3.new(i, i, i) | |
1022 | end | |
1023 | elseif key == "q" and magix == false then | |
1024 | magix = true | |
1025 | for i = 0, 65/255, 0.1 do wait() | |
1026 | chak.Color = Color3.new(0, 0, i) | |
1027 | end | |
1028 | end | |
1029 | end) | |
1030 | ||
1031 | mouse.KeyUp:connect(function(key) | |
1032 | if key == "0" and sprinting == true then | |
1033 | sprinting = false | |
1034 | Humanoid.WalkSpeed = 10 | |
1035 | end | |
1036 | end) | |
1037 | ||
1038 | --==/GAMEPAD CONTROLS/==-- | |
1039 | ||
1040 | game:GetService("UserInputService").InputBegan:connect(function(input) | |
1041 | if input.UserInputType == Enum.UserInputType.Gamepad1 then | |
1042 | if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then | |
1043 | magix = true | |
1044 | elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then | |
1045 | magix = false | |
1046 | elseif input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == false then | |
1047 | sprinting = true | |
1048 | end | |
1049 | end | |
1050 | end) | |
1051 | ||
1052 | game:GetService("UserInputService").InputEnded:connect(function(input) | |
1053 | if input.UserInputType == Enum.UserInputType.Gamepad1 then | |
1054 | if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then | |
1055 | sprinting = false | |
1056 | end | |
1057 | end | |
1058 | end) | |
1059 | ||
1060 | ||
1061 | ||
1062 | game:GetService("RunService").Stepped:connect(function() | |
1063 | angle = (angle % 100) + anglespeed/10 | |
1064 | rootpart.CanCollide = false | |
1065 | local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude | |
1066 | if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed < 2 then | |
1067 | animpose = "Jump" | |
1068 | ||
1069 | elseif speed < 2 then -- idle | |
1070 | animpose = "Idle" | |
1071 | ||
1072 | elseif sprinting == true then -- sprinting | |
1073 | animpose = "Sprinting" | |
1074 | ||
1075 | elseif speed > 2 then -- walking | |
1076 | walking = true | |
1077 | animpose = "Moving" | |
1078 | end | |
1079 | --==/ANIMATION FUNCTIONS/==-- | |
1080 | if animpose == "Idle" and anim == false then -- idle | |
1081 | anglespeed = 0.5 | |
1082 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(5) + math.sin(angle) * 0.02, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1) | |
1083 | lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, 0.15) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-15) + -math.sin(angle) * 0.02), 0.1) | |
1084 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -0.4) * CFrame.Angles(math.rad(-20), math.rad(-35), 0), 0.1) | |
1085 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1) | |
1086 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(-40), math.sin(angle) * 0.01), 0.1) | |
1087 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-90), 0, math.rad(220)), 0.1) | |
1088 | ||
1089 | elseif animpose == "Moving" and anim == false and walking == true then -- walk | |
1090 | anglespeed = 0.5 | |
1091 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1) | |
1092 | lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1) | |
1093 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, -0.3) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1) | |
1094 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1) | |
1095 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1) | |
1096 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-110), -rootpart.RotVelocity.Y/25, math.rad(180)), 0.1) | |
1097 | Humanoid.WalkSpeed = 6 | |
1098 | ||
1099 | elseif animpose == "Sprinting" and anim == false then -- sprint | |
1100 | anglespeed = 0.5 | |
1101 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1) | |
1102 | lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1) | |
1103 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1) | |
1104 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1) | |
1105 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1) | |
1106 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-135), -rootpart.RotVelocity.Y/15, math.rad(180)), 0.1) | |
1107 | Humanoid.WalkSpeed = 40 | |
1108 | end | |
1109 | end) | |
1110 | ||
1111 | wait(1) | |
1112 | ------------------------------------------------------------------------------------ | |
1113 | local Character = game.Players.LocalPlayer.Character --game.Workspace.fefio92142 | |
1114 | ||
1115 | ||
1116 | ------------------------------------------------------------------------------------- | |
1117 | ------------------------------------------------------------------------------------- | |
1118 | ||
1119 | local Color = 0,0,0 | |
1120 | ||
1121 | local Num = 0.5 | |
1122 | ||
1123 | local Num2 = 4 -------------Mods:1,4,8,10,15,20------------------------------------- | |
1124 | local Size = 0.8 | |
1125 | local Rate = 300 | |
1126 | ------------------------------------------------------------------------------------- | |
1127 | local Player = game:service'Players'.LocalPlayer | |
1128 | local Character = Player.Character | |
1129 | Torso = Character:WaitForChild'Torso' | |
1130 | ||
1131 | local Wing1 = Instance.new("Part",Character) | |
1132 | Wing1.FormFactor = Enum.FormFactor.Custom | |
1133 | Wing1.Size = Vector3.new(.2, .2, .2) | |
1134 | Wing1.Name = "WIng_1" | |
1135 | ||
1136 | local fire = Instance.new("ParticleEmitter", Wing1) | |
1137 | fire.VelocitySpread = 0 | |
1138 | fire.Lifetime = NumberRange.new(2) | |
1139 | fire.Acceleration = Vector3.new(0, 2, 2) | |
1140 | fire.RotSpeed = NumberRange.new(10) | |
1141 | fire.Rate = Rate | |
1142 | fire.Rotation = NumberRange.new(151515) | |
1143 | fire.Name = "Fire" | |
1144 | fire.LightEmission = 0.78 | |
1145 | fire.LockedToPart = true | |
1146 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
1147 | fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color)) | |
1148 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)}) | |
1149 | ||
1150 | local Wing2 = Wing1:Clone() | |
1151 | Wing2.Parent = Torso | |
1152 | local x,y,z = 0,-1,-6 | |
1153 | ||
1154 | Wld = function(a,b,cf) | |
1155 | local Weld = Instance.new('Weld',a) | |
1156 | Weld.Part0 = a | |
1157 | Weld.Part1 = b | |
1158 | Weld.C1 = cf | |
1159 | return Weld | |
1160 | end | |
1161 | ||
1162 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90))) | |
1163 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90))) | |
1164 | ||
1165 | ||
1166 | game:service'RunService'.Stepped:connect(function() | |
1167 | --z = 6+math.sin(tick()*2) | |
1168 | y = -1+math.sin(tick()*Num)*Num2 | |
1169 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
1170 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
1171 | end) | |
1172 | ------------------------------------------------------------------------------------------------ | |
1173 | local Player = game:service'Players'.LocalPlayer | |
1174 | local Character = Player.Character | |
1175 | Torso = Character:WaitForChild'Torso' | |
1176 | ||
1177 | local Wing1 = Instance.new("Part",Character) | |
1178 | Wing1.FormFactor = Enum.FormFactor.Custom | |
1179 | Wing1.Size = Vector3.new(.2, .2, .2) | |
1180 | Wing1.Name = "WIng_1" | |
1181 | ||
1182 | local fire = Instance.new("ParticleEmitter", Wing1) | |
1183 | fire.VelocitySpread = 0 | |
1184 | fire.Lifetime = NumberRange.new(2.5) | |
1185 | fire.Acceleration = Vector3.new(0, 4, 4) | |
1186 | fire.RotSpeed = NumberRange.new(10) | |
1187 | fire.Rate = Rate | |
1188 | fire.Rotation = NumberRange.new(151515) | |
1189 | fire.Name = "Fire" | |
1190 | fire.LightEmission = 0.78 | |
1191 | fire.LockedToPart = true | |
1192 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
1193 | fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color)) | |
1194 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)}) | |
1195 | ||
1196 | local Wing2 = Wing1:Clone() | |
1197 | Wing2.Parent = Torso | |
1198 | local x,y,z = 0,-1,-6 | |
1199 | ||
1200 | Wld = function(a,b,cf) | |
1201 | local Weld = Instance.new('Weld',a) | |
1202 | Weld.Part0 = a | |
1203 | Weld.Part1 = b | |
1204 | Weld.C1 = cf | |
1205 | return Weld | |
1206 | end | |
1207 | ||
1208 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90))) | |
1209 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90))) | |
1210 | ||
1211 | print'Loaded' | |
1212 | ||
1213 | game:service'RunService'.Stepped:connect(function() | |
1214 | --z = 6+math.sin(tick()*2) | |
1215 | y = -1+math.sin(tick()*Num)*Num2 | |
1216 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
1217 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
1218 | end) | |
1219 | ||
1220 | ------------------------------------------------------------------------------------------------ | |
1221 | local Player = game:service'Players'.LocalPlayer | |
1222 | local Character = Player.Character | |
1223 | Torso = Character:WaitForChild'Torso' | |
1224 | ||
1225 | local Wing1 = Instance.new("Part",Character) | |
1226 | Wing1.FormFactor = Enum.FormFactor.Custom | |
1227 | Wing1.Size = Vector3.new(.2, .2, .2) | |
1228 | Wing1.Name = "WIng_1" | |
1229 | ||
1230 | local fire = Instance.new("ParticleEmitter", Wing1) | |
1231 | fire.VelocitySpread = 0 | |
1232 | fire.Lifetime = NumberRange.new(2.8) | |
1233 | fire.Acceleration = Vector3.new(0, 4, 4) | |
1234 | fire.RotSpeed = NumberRange.new(10) | |
1235 | fire.Rate = Rate | |
1236 | fire.Rotation = NumberRange.new(151515) | |
1237 | fire.Name = "Fire" | |
1238 | fire.LightEmission = 0.78 | |
1239 | fire.LockedToPart = true | |
1240 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
1241 | fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color)) | |
1242 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)}) | |
1243 | ||
1244 | local Wing2 = Wing1:Clone() | |
1245 | Wing2.Parent = Torso | |
1246 | local x,y,z = 0,-1,-6 | |
1247 | ||
1248 | Wld = function(a,b,cf) | |
1249 | local Weld = Instance.new('Weld',a) | |
1250 | Weld.Part0 = a | |
1251 | Weld.Part1 = b | |
1252 | Weld.C1 = cf | |
1253 | return Weld | |
1254 | end | |
1255 | ||
1256 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90))) | |
1257 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90))) | |
1258 | ||
1259 | print'Loaded' | |
1260 | ||
1261 | game:service'RunService'.Stepped:connect(function() | |
1262 | --z = 6+math.sin(tick()*2) | |
1263 | y = -1+math.sin(tick()*Num)*Num2 | |
1264 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
1265 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
1266 | end) | |
1267 | ||
1268 | ------------------------------------------------------------------------------------------------ | |
1269 | local Player = game:service'Players'.LocalPlayer | |
1270 | local Character = Player.Character | |
1271 | Torso = Character:WaitForChild'Torso' | |
1272 | ||
1273 | local Wing1 = Instance.new("Part",Character) | |
1274 | Wing1.FormFactor = Enum.FormFactor.Custom | |
1275 | Wing1.Size = Vector3.new(.2, .2, .2) | |
1276 | Wing1.Name = "WIng_1" | |
1277 | ||
1278 | local fire = Instance.new("ParticleEmitter", Wing1) | |
1279 | fire.VelocitySpread = 0 | |
1280 | fire.Lifetime = NumberRange.new(3) | |
1281 | fire.Acceleration = Vector3.new(0, 4, 4) | |
1282 | fire.RotSpeed = NumberRange.new(10) | |
1283 | fire.Rate = Rate | |
1284 | fire.Rotation = NumberRange.new(151515) | |
1285 | fire.Name = "Fire" | |
1286 | fire.LightEmission = 0.78 | |
1287 | fire.LockedToPart = true | |
1288 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
1289 | fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color)) | |
1290 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)}) | |
1291 | ||
1292 | local Wing2 = Wing1:Clone() | |
1293 | Wing2.Parent = Torso | |
1294 | local x,y,z = 0,-1,-6 | |
1295 | ||
1296 | Wld = function(a,b,cf) | |
1297 | local Weld = Instance.new('Weld',a) | |
1298 | Weld.Part0 = a | |
1299 | Weld.Part1 = b | |
1300 | Weld.C1 = cf | |
1301 | return Weld | |
1302 | end | |
1303 | ||
1304 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90))) | |
1305 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90))) | |
1306 | ||
1307 | print'Loaded' | |
1308 | ||
1309 | game:service'RunService'.Stepped:connect(function() | |
1310 | --z = 6+math.sin(tick()*2) | |
1311 | y = -1+math.sin(tick()*Num)*Num2 | |
1312 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
1313 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
1314 | end) | |
1315 | ||
1316 | ------------------------------------------------------------------------------------------------ | |
1317 | local Player = game:service'Players'.LocalPlayer | |
1318 | local Character = Player.Character | |
1319 | Torso = Character:WaitForChild'Torso' | |
1320 | ||
1321 | local Wing1 = Instance.new("Part",Character) | |
1322 | Wing1.FormFactor = Enum.FormFactor.Custom | |
1323 | Wing1.Size = Vector3.new(.2, .2, .2) | |
1324 | Wing1.Name = "WIng_1" | |
1325 | ||
1326 | local fire = Instance.new("ParticleEmitter", Wing1) | |
1327 | fire.VelocitySpread = 0 | |
1328 | fire.Lifetime = NumberRange.new(3.1) | |
1329 | fire.Acceleration = Vector3.new(0, 4, 4) | |
1330 | fire.RotSpeed = NumberRange.new(10) | |
1331 | fire.Rate = Rate | |
1332 | fire.Rotation = NumberRange.new(151515) | |
1333 | fire.Name = "Fire" | |
1334 | fire.LightEmission = 0.78 | |
1335 | fire.LockedToPart = true | |
1336 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
1337 | fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color)) | |
1338 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)}) | |
1339 | ||
1340 | local Wing2 = Wing1:Clone() | |
1341 | Wing2.Parent = Torso | |
1342 | local x,y,z = 0,-1,-6 | |
1343 | ||
1344 | Wld = function(a,b,cf) | |
1345 | local Weld = Instance.new('Weld',a) | |
1346 | Weld.Part0 = a | |
1347 | Weld.Part1 = b | |
1348 | Weld.C1 = cf | |
1349 | return Weld | |
1350 | end | |
1351 | ||
1352 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90))) | |
1353 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90))) | |
1354 | ||
1355 | print'Loaded' | |
1356 | ||
1357 | game:service'RunService'.Stepped:connect(function() | |
1358 | --z = 6+math.sin(tick()*2) | |
1359 | y = -1+math.sin(tick()*Num)*Num2 | |
1360 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
1361 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
1362 | end) | |
1363 | ||
1364 | end | |
1365 | wait(0.5) | |
1366 | for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0 | |
1367 | end | |
1368 | ||
1369 | end | |
1370 | char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0) | |
1371 | char.HumanoidRootPart.Transparency = 1 | |
1372 | game.Lighting.face.Parent = char.Head | |
1373 | wait(0.2) | |
1374 | ||
1375 | tp = true | |
1376 | ||
1377 | ||
1378 | end | |
1379 | end | |
1380 | end) | |
1381 | ||
1382 | ||
1383 | m.KeyDown:connect(function(key) | |
1384 | if key == "t" then | |
1385 | if punch2 == true then | |
1386 | punch2 = false | |
1387 | punch = false | |
1388 | ||
1389 | local ChatService = game:GetService("Chat") | |
1390 | ||
1391 | neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0) | |
1392 | ChatService:Chat(char.Head, "This is your end pal Time to die") | |
1393 | wait(1) | |
1394 | local ChatService = game:GetService("Chat") | |
1395 | ||
1396 | ||
1397 | ChatService:Chat(char.Head ,"Final series..") | |
1398 | wait(1) | |
1399 | local ChatService = game:GetService("Chat") | |
1400 | ||
1401 | ||
1402 | ChatService:Chat(char.Head, "X1000 SERIOUS PUNCH!!!!!!") | |
1403 | neck.C0 = neckp | |
1404 | wait(0.6) | |
1405 | org = char.Torso["Left Shoulder"].C0 | |
1406 | char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90)) | |
1407 | wait() | |
1408 | killbrick2 = Instance.new("Part",char) | |
1409 | killbrick2.Size = Vector3.new(80,80,9000) | |
1410 | killbrick2.Transparency = 1 | |
1411 | ||
1412 | killbrick2.CanCollide = true | |
1413 | wait(0.1) | |
1414 | killbrick2.CanCollide = false | |
1415 | ||
1416 | killbrick2.Anchored = true | |
1417 | ||
1418 | killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005) | |
1419 | ||
1420 | killbrick2.Touched:connect(function(h) | |
1421 | local x = h.Parent:FindFirstChild("Humanoid") | |
1422 | if x then | |
1423 | if x.Parent.Name == game.Players.LocalPlayer.Name then | |
1424 | safe = true | |
1425 | else safe = false | |
1426 | end | |
1427 | if x then | |
1428 | if safe == false then | |
1429 | h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900 | |
1430 | local bodyforc = Instance.new("BodyForce", h.Parent.Torso) | |
1431 | boom:Play() | |
1432 | bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0) | |
1433 | ||
1434 | ||
1435 | wait(0.2) | |
1436 | x.Parent:BreakJoints() | |
1437 | wait() | |
1438 | safe = true | |
1439 | end | |
1440 | end | |
1441 | end | |
1442 | end) | |
1443 | ||
1444 | ||
1445 | ||
1446 | ||
1447 | ||
1448 | ||
1449 | ||
1450 | ||
1451 | local rng = Instance.new("Part", char) | |
1452 | rng.Anchored = true | |
1453 | rng.BrickColor = BrickColor.new("Really red") | |
1454 | rng.CanCollide = false | |
1455 | rng.FormFactor = 3 | |
1456 | rng.Name = "Ring" | |
1457 | rng.Size = Vector3.new(1, 1, 1) | |
1458 | rng.Transparency = 0.8 | |
1459 | rng.TopSurface = 0 | |
1460 | rng.BottomSurface = 0 | |
1461 | rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
1462 | --rng.Rotation = Vector3.new(math.pi/2,0,0) | |
1463 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1464 | local rngm = Instance.new("SpecialMesh", rng) | |
1465 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1466 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
1467 | local rng1 = Instance.new("Part", char) | |
1468 | rng1.Anchored = true | |
1469 | rng1.BrickColor = BrickColor.new("Institutional white") | |
1470 | rng1.CanCollide = false | |
1471 | rng1.FormFactor = 3 | |
1472 | rng1.Name = "Ring" | |
1473 | rng1.Size = Vector3.new(1, 1, 1) | |
1474 | rng1.Transparency = 0.8 | |
1475 | rng1.TopSurface = 0 | |
1476 | rng1.BottomSurface = 0 | |
1477 | rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
1478 | --rng1.Rotation = Vector3.new(math.pi/2,0,0) | |
1479 | rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1480 | local rngm1 = Instance.new("SpecialMesh", rng1) | |
1481 | rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1482 | rngm1.Scale = Vector3.new(1, 1.3, 2) | |
1483 | ||
1484 | local p = (torso.CFrame*CFrame.new(-20,0,3)) | |
1485 | stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one | |
1486 | local p = (torso.CFrame*CFrame.new(20,0,3)) | |
1487 | stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here | |
1488 | ||
1489 | local rng2 = Instance.new("Part", char) | |
1490 | rng2.Anchored = true | |
1491 | rng2.BrickColor = BrickColor.new("Really red") | |
1492 | rng2.CanCollide = false | |
1493 | rng2.FormFactor = 3 | |
1494 | rng2.Name = "Ring" | |
1495 | rng2.Size = Vector3.new(1, 1, 1) | |
1496 | rng2.Transparency = 0.8 | |
1497 | rng2.TopSurface = 0 | |
1498 | rng2.BottomSurface = 0 | |
1499 | rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
1500 | --rng1.Rotation = Vector3.new(math.pi/2,0,0) | |
1501 | rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1502 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
1503 | rngm2.MeshId = "http://www.roblox.com/asset/?id=430066612" | |
1504 | rngm2.Scale = Vector3.new(1, 1.3, 2) | |
1505 | wait(0.1) | |
1506 | ||
1507 | boom3:Play() | |
1508 | coroutine.wrap(function() | |
1509 | for i = 1, 35, 0.5 do | |
1510 | ||
1511 | ||
1512 | ||
1513 | ||
1514 | ||
1515 | rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4) | |
1516 | rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4) | |
1517 | rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4) | |
1518 | ||
1519 | wait() | |
1520 | end | |
1521 | wait() | |
1522 | rng:Destroy() | |
1523 | rng1:Destroy() | |
1524 | rng2:Destroy() | |
1525 | killbrick2:Remove() | |
1526 | wait(0.5) | |
1527 | char.Torso["Left Shoulder"].C0 = org | |
1528 | wait(1) | |
1529 | punch2 = true | |
1530 | punch = true | |
1531 | wait() | |
1532 | ||
1533 | ||
1534 | end)() | |
1535 | ||
1536 | ||
1537 | ||
1538 | end | |
1539 | ||
1540 | ||
1541 | wait(.1) | |
1542 | ||
1543 | ||
1544 | end | |
1545 | end) | |
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | m.KeyDown:connect(function(key) | |
1552 | if key == "k" then | |
1553 | if punch == true then | |
1554 | punch = false | |
1555 | org = char.Torso["Left Shoulder"].C0 | |
1556 | char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90)) | |
1557 | killbrick = Instance.new("Part",char) | |
1558 | killbrick.Size = Vector3.new(5,1,5) | |
1559 | killbrick.Transparency = 1 | |
1560 | killbrick:BreakJoints() | |
1561 | killbrick.CanCollide = false | |
1562 | local wel = Instance.new("Weld",killbrick) | |
1563 | wel.Part0 = killbrick | |
1564 | wel.Part1 = char["Left Arm"] | |
1565 | wel.C0 = CFrame.new(0,1,0) | |
1566 | force = 90 | |
1567 | ||
1568 | killbrick.Touched:connect(function(h) | |
1569 | local x = h.Parent.Humanoid | |
1570 | if x.Health >= 6000 then | |
1571 | fling = false | |
1572 | end | |
1573 | if x.Health < 6000 then | |
1574 | fling = true | |
1575 | end | |
1576 | local stop = h.Parent.Torso.Velocity | |
1577 | if x.Parent.Name == game.Players.LocalPlayer.Name then | |
1578 | safe = true | |
1579 | else safe = false | |
1580 | end | |
1581 | if x then | |
1582 | if safe == false then | |
1583 | if fling == true then | |
1584 | force = 900 | |
1585 | ||
1586 | end | |
1587 | if fling == false then | |
1588 | force = 200 | |
1589 | end | |
1590 | ||
1591 | ||
1592 | h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * force | |
1593 | local bodyforc = Instance.new("BodyForce", h.Parent.Torso) | |
1594 | boom:Play() | |
1595 | bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0) | |
1596 | ||
1597 | ||
1598 | wait(0.2) | |
1599 | x:TakeDamage(5000) | |
1600 | wait() | |
1601 | safe = true | |
1602 | bodyforc:Remove() | |
1603 | h.Parent.Torso.Velocity = stop | |
1604 | ||
1605 | end | |
1606 | end | |
1607 | end) | |
1608 | ||
1609 | ||
1610 | ||
1611 | ||
1612 | ||
1613 | ||
1614 | ||
1615 | ||
1616 | ||
1617 | ||
1618 | local rng = Instance.new("Part", char) | |
1619 | rng.Anchored = true | |
1620 | rng.BrickColor = BrickColor.new("Really red") | |
1621 | rng.CanCollide = false | |
1622 | rng.FormFactor = 3 | |
1623 | rng.Name = "Ring" | |
1624 | rng.Size = Vector3.new(1, 1, 1) | |
1625 | rng.Transparency = 0.8 | |
1626 | rng.TopSurface = 0 | |
1627 | rng.BottomSurface = 0 | |
1628 | rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
1629 | --rng.Rotation = Vector3.new(math.pi/2,0,0) | |
1630 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1631 | local rngm = Instance.new("SpecialMesh", rng) | |
1632 | rngm.MeshId = "http://www.roblox.com/asset/?id=430066612" | |
1633 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
1634 | wait(0.1) | |
1635 | ||
1636 | boom2:Play() | |
1637 | coroutine.wrap(function() | |
1638 | for i = 1, 10, .4 do | |
1639 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
1640 | ||
1641 | wait() | |
1642 | end | |
1643 | wait() | |
1644 | rng:Destroy() | |
1645 | killbrick:Remove() | |
1646 | wait(0.5) | |
1647 | char.Torso["Left Shoulder"].C0 = org | |
1648 | wait(1) | |
1649 | ||
1650 | punch = true | |
1651 | wait() | |
1652 | end)() | |
1653 | ||
1654 | ||
1655 | ||
1656 | end | |
1657 | ||
1658 | ||
1659 | wait(.1) | |
1660 | ||
1661 | ||
1662 | end | |
1663 | end) | |
1664 | ||
1665 | ||
1666 | ||
1667 | ||
1668 | ||
1669 | ||
1670 | ||
1671 | ||
1672 | ||
1673 | ||
1674 | ||
1675 | ||
1676 | ||
1677 | ||
1678 | m.KeyDown:connect(function(key) | |
1679 | if key == "m" then | |
1680 | if jump == true then | |
1681 | jump = false | |
1682 | ||
1683 | ||
1684 | local rng = Instance.new("Part", char) | |
1685 | rng.Anchored = true | |
1686 | rng.BrickColor = BrickColor.new("Really red") | |
1687 | rng.CanCollide = false | |
1688 | rng.FormFactor = 3 | |
1689 | rng.Name = "Ring" | |
1690 | rng.Size = Vector3.new(1, 1, 1) | |
1691 | rng.Transparency = 0.35 | |
1692 | rng.TopSurface = 0 | |
1693 | rng.BottomSurface = 0 | |
1694 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
1695 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1696 | local rngm = Instance.new("SpecialMesh", rng) | |
1697 | rngm.MeshId = "http://www.roblox.com/asset/?id=180660043" | |
1698 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
1699 | wait(0.1) | |
1700 | BV = Instance.new("BodyVelocity", torso) | |
1701 | BV.maxForce = Vector3.new(0,20000,0) | |
1702 | BV.P = 1000 | |
1703 | BV.velocity = Vector3.new(0,100,0) | |
1704 | boom:Play() | |
1705 | coroutine.wrap(function() | |
1706 | for i = 1, 60, 2 do | |
1707 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
1708 | rng.Transparency = i/60 | |
1709 | wait() | |
1710 | end | |
1711 | wait() | |
1712 | rng:Destroy() | |
1713 | ||
1714 | hum.WalkSpeed = 50 | |
1715 | wait(1) | |
1716 | ||
1717 | for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then | |
1718 | v:Destroy() jumping2 = true falling = true wait(0.3) jumping2 = false falling = false wait(1.7) jump = true hum.WalkSpeed = 16 falling = false | |
1719 | end end | |
1720 | wait() | |
1721 | end)() | |
1722 | ||
1723 | ||
1724 | ||
1725 | end | |
1726 | ||
1727 | ||
1728 | wait(.1) | |
1729 | ||
1730 | ||
1731 | end | |
1732 | end) | |
1733 | ||
1734 | ||
1735 | ||
1736 | ||
1737 | ||
1738 | ||
1739 | m.KeyDown:connect(function(key) | |
1740 | if key == "n" then | |
1741 | ||
1742 | if falling == true then | |
1743 | falling = false | |
1744 | if jumping2 == true then | |
1745 | jumping2 = false | |
1746 | jump = false | |
1747 | BV = Instance.new("BodyVelocity", torso) | |
1748 | BV.maxForce = Vector3.new(0,-20000,0) | |
1749 | BV.P = -1000 | |
1750 | BV.velocity = Vector3.new(0,-70,0) | |
1751 | wait(0.6) | |
1752 | local rng = Instance.new("Part", char) | |
1753 | rng.Anchored = true | |
1754 | rng.BrickColor = BrickColor.new("Really red") | |
1755 | rng.CanCollide = false | |
1756 | rng.FormFactor = 3 | |
1757 | rng.Name = "Ring" | |
1758 | rng.Size = Vector3.new(1, 1, 1) | |
1759 | rng.Transparency = 0.35 | |
1760 | rng.TopSurface = 0 | |
1761 | rng.BottomSurface = 0 | |
1762 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
1763 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1764 | local rngm = Instance.new("SpecialMesh", rng) | |
1765 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1766 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
1767 | ||
1768 | ||
1769 | boom:Play() | |
1770 | coroutine.wrap(function() | |
1771 | for i = 1, 60, 2 do | |
1772 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
1773 | rng.Transparency = i/60 | |
1774 | wait() | |
1775 | end | |
1776 | wait() | |
1777 | rng:Destroy() | |
1778 | ||
1779 | ||
1780 | ||
1781 | ||
1782 | for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then | |
1783 | v:Destroy() wait(2) jumping2 = true hum.WalkSpeed = 100 | |
1784 | end end | |
1785 | wait() | |
1786 | end)() | |
1787 | ||
1788 | ||
1789 | ||
1790 | end | |
1791 | ||
1792 | ||
1793 | wait(.1) | |
1794 | ||
1795 | end | |
1796 | end | |
1797 | end) | |
1798 | m.KeyDown:connect(function(k) | |
1799 | if k == "f" then | |
1800 | asd3:Stop() | |
1801 | asd2:Stop() | |
1802 | asd4:Stop() | |
1803 | asd6:Stop() | |
1804 | asd5:Stop() | |
1805 | end | |
1806 | end) | |
1807 | ------------ | |
1808 | -- ~CLarramore 2016 |