SHOW:
|
|
- or go back to the newest paste.
1 | --natsu | |
2 | ||
3 | local asin = math.asin | |
4 | local atan2 = math.atan2 | |
5 | local rad = math.rad | |
6 | local sin = math.sin | |
7 | local abs = math.abs | |
8 | local ceil = math.ceil | |
9 | ||
10 | local function getAngles(cf) | |
11 | local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components() | |
12 | return atan2(-m12,m22),asin(m02),atan2(-m01,m00) | |
13 | end | |
14 | Lerp = { | |
15 | Number = function(C1,C2,inc) | |
16 | return C1 + (C2 - C1) * inc | |
17 | end; | |
18 | CFrame = function(a,b,m) | |
19 | local c,d={a:components()},{b:components()} | |
20 | table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end) | |
21 | return CFrame.new(unpack(c)) | |
22 | end; | |
23 | } | |
24 | local function genWeld(a,b) | |
25 | local w = Instance.new("Weld",a) | |
26 | w.Part0 = a | |
27 | w.Part1 = b | |
28 | return w | |
29 | end | |
30 | Weld = function(p0,p1,x,y,z,rx,ry,rz,par) | |
31 | local w = Instance.new('Motor',par or p0) | |
32 | w.Part0 = p0 | |
33 | w.Part1 = p1 | |
34 | w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz) | |
35 | return w | |
36 | end | |
37 | anglespeed = 1 | |
38 | yeet = 0 | |
39 | count = 0 | |
40 | angle = 0 | |
41 | speed = 1 | |
42 | local plr=game.Players.LocalPlayer | |
43 | local chr=plr.Character | |
44 | local torso=chr.Torso | |
45 | local flameclr = Color3.new(0,0,0) | |
46 | local mouse=plr:GetMouse() | |
47 | local running = false | |
48 | local Neck = genWeld(chr.Torso,chr.Head) | |
49 | Neck.C0 = CFrame.new(0,1,0) | |
50 | Neck.C1 = CFrame.new(0,-0.5,0) | |
51 | local LeftShoulder = genWeld(chr.Torso,chr['Left Arm']) | |
52 | LeftShoulder.C0 = CFrame.new(-1,0.5,0) | |
53 | LeftShoulder.C1 = CFrame.new(0.5,0.5,0) | |
54 | RightShoulder = genWeld(chr.Torso,chr['Right Arm']) | |
55 | RightShoulder.C0 = CFrame.new(1,0.5,0) | |
56 | RightShoulder.C1 = CFrame.new(-0.5,0.5,0) | |
57 | local LeftHip = genWeld(chr.Torso,chr['Left Leg']) | |
58 | LeftHip.C0 = CFrame.new(-1,-1,0) | |
59 | LeftHip.C1 = CFrame.new(-0.5,1,0) | |
60 | local RightHip = genWeld(chr.Torso,chr['Right Leg']) | |
61 | RightHip.C0 = CFrame.new(1,-1,0) | |
62 | RightHip.C1 = CFrame.new(0.5,1,0) | |
63 | local RootJoint = genWeld(chr.HumanoidRootPart,chr.Torso) | |
64 | RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi) | |
65 | RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi) | |
66 | local function newLerpTo(weld) | |
67 | return { | |
68 | Weld = weld; -- The weld that will lerp | |
69 | To = weld.C0; -- Where it will lerp to; a CFrame | |
70 | Cache = weld.C0; -- Cache of original position; it helps when making anim keyframes | |
71 | Speed = 0.1; -- Speed of lerp. 0.1 or 0.2 is best | |
72 | } | |
73 | end | |
74 | LerpTo = { | |
75 | Neck = newLerpTo(Neck); | |
76 | LeftArm = newLerpTo(LeftShoulder); | |
77 | RightArm = newLerpTo(RightShoulder); | |
78 | LeftLeg = newLerpTo(LeftHip); | |
79 | RightLeg = newLerpTo(RightHip); | |
80 | RootJoint = newLerpTo(RootJoint); | |
81 | } | |
82 | local makeflame = function(part,heat,size) | |
83 | flame = Instance.new("Fire",part) | |
84 | flame.Heat=heat | |
85 | flame.Size=size | |
86 | end | |
87 | local rf = Instance.new("Part",chr) | |
88 | rf.CanCollide = false | |
89 | rf.Transparency=1 | |
90 | rf.FormFactor="Custom" | |
91 | rf.Size=Vector3.new(1,1,1) | |
92 | rf.Touched:connect(function(hit) | |
93 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then | |
94 | hit.Parent.Humanoid:TakeDamage(10) | |
95 | end | |
96 | end) | |
97 | makeflame(rf,0,5) | |
98 | Weld(rf,chr['Right Arm'],0,-.75,0,0,0,0,rf) | |
99 | local lf = Instance.new("Part",chr) | |
100 | lf.CanCollide = false | |
101 | lf.Transparency=1 | |
102 | lf.FormFactor="Custom" | |
103 | lf.Size=Vector3.new(1,1,1) | |
104 | lf.Touched:connect(function(hit) | |
105 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then | |
106 | hit.Parent.Humanoid:TakeDamage(10) | |
107 | end | |
108 | end) | |
109 | makeflame(lf,0,5) | |
110 | Weld(lf,chr['Left Arm'],0,-.75,0,0,0,0,rf) | |
111 | for _, child in pairs(chr:GetChildren()) do | |
112 | if child.ClassName == 'CharacterMesh' then | |
113 | child:Destroy() | |
114 | ||
115 | for _, child in pairs(chr:GetChildren()) do | |
116 | if child.ClassName == 'Hat' then | |
117 | child:Destroy() | |
118 | end | |
119 | end | |
120 | end | |
121 | end | |
122 | for i,v in pairs(chr:GetChildren()) do | |
123 | if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") then | |
124 | v:Destroy() | |
125 | end | |
126 | end | |
127 | ||
128 | local ab = Instance.new("Decal") | |
129 | ab.Parent = chr.Torso | |
130 | ab.Texture = "http://www.roblox.com/asset/?id=200264388" | |
131 | ||
132 | ---Start Of Shirt--- | |
133 | ||
134 | local r = Instance.new("Part") | |
135 | r.Parent = chr | |
136 | r.FormFactor = "Custom" | |
137 | r.Size = Vector3.new(0.6, 1.81, 1.01) | |
138 | r.BottomSurface = "Smooth" | |
139 | r.TopSurface = "Smooth" | |
140 | r.BrickColor = BrickColor.new("Black") | |
141 | ||
142 | local wr = Instance.new("Weld") | |
143 | wr.Parent = r | |
144 | wr.Part0 = chr["Torso"] | |
145 | wr.Part1 = r | |
146 | wr.C0 = CFrame.new(0.8, 0.1, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
147 | ||
148 | local r2 = Instance.new("Part") | |
149 | r2.Parent = chr | |
150 | r2.FormFactor = "Custom" | |
151 | r2.Size = Vector3.new(0.6, 1.81, 1.01) | |
152 | r2.BottomSurface = "Smooth" | |
153 | r2.TopSurface = "Smooth" | |
154 | r2.BrickColor = BrickColor.new("Black") | |
155 | ||
156 | local wr2 = Instance.new("Weld") | |
157 | wr2.Parent = r2 | |
158 | wr2.Part0 = chr["Torso"] | |
159 | wr2.Part1 = r2 | |
160 | wr2.C0 = CFrame.new(-0.8, 0.1, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
161 | ||
162 | local s = Instance.new("Part") | |
163 | s.Parent = chr | |
164 | s.FormFactor = "Custom" | |
165 | s.Size = Vector3.new(0.2, 1.85, 0.55) | |
166 | s.BottomSurface = "Smooth" | |
167 | s.TopSurface = "Smooth" | |
168 | s.BrickColor = BrickColor.new("Bright orange") | |
169 | ||
170 | local ws = Instance.new("Weld") | |
171 | ws.Parent = s | |
172 | ws.Part0 = chr["Torso"] | |
173 | ws.Part1 = s | |
174 | ws.C0 = CFrame.new(0.4, 0.1, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
175 | ||
176 | local s2 = Instance.new("Part") | |
177 | s2.Parent = chr | |
178 | s2.FormFactor = "Custom" | |
179 | s2.Size = Vector3.new(0.2, 1.85, 0.55) | |
180 | s2.BottomSurface = "Smooth" | |
181 | s2.TopSurface = "Smooth" | |
182 | s2.BrickColor = BrickColor.new("Bright orange") | |
183 | ||
184 | local ws2 = Instance.new("Weld") | |
185 | ws2.Parent = s2 | |
186 | ws2.Part0 = chr["Torso"] | |
187 | ws2.Part1 = s2 | |
188 | ws2.C0 = CFrame.new(-0.4, 0.1, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
189 | ||
190 | local s3 = Instance.new("Part") | |
191 | s3.Parent = chr | |
192 | s3.FormFactor = "Custom" | |
193 | s3.Size = Vector3.new(0.65, 0.2, 1.05) | |
194 | s3.BottomSurface = "Smooth" | |
195 | s3.TopSurface = "Smooth" | |
196 | s3.BrickColor = BrickColor.new("Bright orange") | |
197 | ||
198 | local ws3 = Instance.new("Weld") | |
199 | ws3.Parent = s3 | |
200 | ws3.Part0 = chr["Torso"] | |
201 | ws3.Part1 = s3 | |
202 | ws3.C0 = CFrame.new(0.8, -0.725, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
203 | ||
204 | local s4 = Instance.new("Part") | |
205 | s4.Parent = chr | |
206 | s4.FormFactor = "Custom" | |
207 | s4.Size = Vector3.new(0.65, 0.2, 1.05) | |
208 | s4.BottomSurface = "Smooth" | |
209 | s4.TopSurface = "Smooth" | |
210 | s4.BrickColor = BrickColor.new("Bright orange") | |
211 | ||
212 | local ws4 = Instance.new("Weld") | |
213 | ws4.Parent = s4 | |
214 | ws4.Part0 = chr["Torso"] | |
215 | ws4.Part1 = s4 | |
216 | ws4.C0 = CFrame.new(-0.8, -0.725, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
217 | ||
218 | local rb = Instance.new("Part") | |
219 | rb.Parent = chr | |
220 | rb.FormFactor = "Custom" | |
221 | rb.Size = Vector3.new(1, 1.81, 0.55) | |
222 | rb.BottomSurface = "Smooth" | |
223 | rb.TopSurface = "Smooth" | |
224 | rb.BrickColor = BrickColor.new("Black") | |
225 | ||
226 | local wrb = Instance.new("Weld") | |
227 | wrb.Parent = rb | |
228 | wrb.Part0 = chr["Torso"] | |
229 | wrb.Part1 = rb | |
230 | wrb.C0 = CFrame.new(0, 0.1, 0.23) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
231 | ||
232 | local sb = Instance.new("Part") | |
233 | sb.Parent = chr | |
234 | sb.FormFactor = "Custom" | |
235 | sb.Size = Vector3.new(1, 0.2, 0.55) | |
236 | sb.BottomSurface = "Smooth" | |
237 | sb.TopSurface = "Smooth" | |
238 | sb.BrickColor = BrickColor.new("Bright orange") | |
239 | ||
240 | local wsb = Instance.new("Weld") | |
241 | wsb.Parent = sb | |
242 | wsb.Part0 = chr["Torso"] | |
243 | wsb.Part1 = sb | |
244 | wsb.C0 = CFrame.new(0, -0.725, 0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
245 | ||
246 | local b = Instance.new("Part") | |
247 | b.Parent = chr | |
248 | b.FormFactor = "Custom" | |
249 | b.Size = Vector3.new(2.02, 0.2, 1.05) | |
250 | b.BottomSurface = "Smooth" | |
251 | b.TopSurface = "Smooth" | |
252 | b.BrickColor = BrickColor.new("Brown") | |
253 | ||
254 | local wb = Instance.new("Weld") | |
255 | wb.Parent = b | |
256 | wb.Part0 = chr["Torso"] | |
257 | wb.Part1 = b | |
258 | wb.C0 = CFrame.new(0, -0.925, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
259 | ||
260 | local t = Instance.new("Part") | |
261 | t.Transparency = 1 | |
262 | t.Parent = chr | |
263 | t.FormFactor = "Custom" | |
264 | t.Size = Vector3.new(0.3, 0.5, 0.5) | |
265 | t.BottomSurface = "Smooth" | |
266 | t.TopSurface = "Smooth" | |
267 | t.BrickColor = BrickColor.new("Brown") | |
268 | ||
269 | local wt = Instance.new("Weld") | |
270 | wt.Parent = t | |
271 | wt.Part0 = chr["Right Arm"] | |
272 | wt.Part1 = t | |
273 | wt.C0 = CFrame.new(0.4, 0.6, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
274 | ||
275 | local td = Instance.new("Decal") | |
276 | td.Parent = t | |
277 | td.Face = "Right" | |
278 | td.Texture = "http://www.roblox.com/asset/?id=200254167" | |
279 | ||
280 | ---Start Of Pants--- | |
281 | local pp = Instance.new("Part") | |
282 | pp.Locked = true | |
283 | pp.Name = "pp" | |
284 | pp.Parent = chr | |
285 | pp.FormFactor = "Custom" | |
286 | pp.Size = Vector3.new (1.04, 0.2, 1.05) | |
287 | pp.BrickColor = BrickColor.new ("Black") | |
288 | pp.Material = "Neon" | |
289 | pp.TopSurface = "Smooth" | |
290 | pp.BottomSurface = "Smooth" | |
291 | pp.CanCollide = false | |
292 | ||
293 | local ppw = Instance.new("Weld") | |
294 | ppw.Parent = chr | |
295 | ppw.Part0 = pp.Parent["Right Leg"] | |
296 | ppw.Part1 = pp | |
297 | ppw.C0 = CFrame.new(0, -0.901, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
298 | ||
299 | local pq = Instance.new("Part") | |
300 | pq.Locked = true | |
301 | pq.Name = "pq" | |
302 | pq.Parent = chr | |
303 | pq.FormFactor = "Custom" | |
304 | pq.Size = Vector3.new (1.04, 0.2, 1.05) | |
305 | pq.BrickColor = BrickColor.new ("Black") | |
306 | pq.Material = "Neon" | |
307 | pq.TopSurface = "Smooth" | |
308 | pq.BottomSurface = "Smooth" | |
309 | pq.CanCollide = false | |
310 | ||
311 | local pqw = Instance.new("Weld") | |
312 | pqw.Parent = chr | |
313 | pqw.Part0 = pq.Parent["Left Leg"] | |
314 | pqw.Part1 = pq | |
315 | pqw.C0 = CFrame.new(0, -0.901, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
316 | ||
317 | local pr = Instance.new("Part") | |
318 | pr.Locked = true | |
319 | pr.Name = "pr" | |
320 | pr.Parent = chr | |
321 | pr.FormFactor = "Custom" | |
322 | pr.Size = Vector3.new (1.04, 0.2, 0.23) | |
323 | pr.BrickColor = BrickColor.new ("Black") | |
324 | pr.Material = "Neon" | |
325 | pr.TopSurface = "Smooth" | |
326 | pr.BottomSurface = "Smooth" | |
327 | pr.CanCollide = false | |
328 | ||
329 | local prw = Instance.new("Weld") | |
330 | prw.Parent = chr | |
331 | prw.Part0 = pr.Parent["Right Leg"] | |
332 | prw.Part1 = pr | |
333 | prw.C0 = CFrame.new(0, -0.801, -0.23) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
334 | ||
335 | local ps = Instance.new("Part") | |
336 | ps.Locked = true | |
337 | ps.Name = "ps" | |
338 | ps.Parent = chr | |
339 | ps.FormFactor = "Custom" | |
340 | ps.Size = Vector3.new (1.04, 0.2, 0.23) | |
341 | ps.BrickColor = BrickColor.new ("Black") | |
342 | ps.Material = "Neon" | |
343 | ps.TopSurface = "Smooth" | |
344 | ps.BottomSurface = "Smooth" | |
345 | ps.CanCollide = false | |
346 | ||
347 | local psw = Instance.new("Weld") | |
348 | psw.Parent = chr | |
349 | psw.Part0 = ps.Parent["Left Leg"] | |
350 | psw.Part1 = ps | |
351 | psw.C0 = CFrame.new(0, -0.801, -0.23) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
352 | ||
353 | local pt = Instance.new("Part") | |
354 | pt.Locked = true | |
355 | pt.Name = "pt" | |
356 | pt.Parent = chr | |
357 | pt.FormFactor = "Custom" | |
358 | pt.Size = Vector3.new (1.04, 0.2, 0.4) | |
359 | pt.BrickColor = BrickColor.new ("Black") | |
360 | pt.Material = "Neon" | |
361 | pt.TopSurface = "Smooth" | |
362 | pt.BottomSurface = "Smooth" | |
363 | pt.CanCollide = false | |
364 | ||
365 | local ptw = Instance.new("Weld") | |
366 | ptw.Parent = chr | |
367 | ptw.Part0 = pt.Parent["Right Leg"] | |
368 | ptw.Part1 = pt | |
369 | ptw.C0 = CFrame.new(0, -0.601, -0.32) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
370 | ||
371 | local pu = Instance.new("Part") | |
372 | pu.Locked = true | |
373 | pu.Name = "pu" | |
374 | pu.Parent = chr | |
375 | pu.FormFactor = "Custom" | |
376 | pu.Size = Vector3.new (1.04, 0.2, 0.4) | |
377 | pu.BrickColor = BrickColor.new ("Black") | |
378 | pu.Material = "Neon" | |
379 | pu.TopSurface = "Smooth" | |
380 | pu.BottomSurface = "Smooth" | |
381 | pu.CanCollide = false | |
382 | ||
383 | local puw = Instance.new("Weld") | |
384 | puw.Parent = chr | |
385 | puw.Part0 = pu.Parent["Left Leg"] | |
386 | puw.Part1 = pu | |
387 | puw.C0 = CFrame.new(0, -0.601, -0.32) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
388 | ||
389 | local sk = Instance.new("Part") | |
390 | sk.Parent = chr | |
391 | sk.FormFactor = "Custom" | |
392 | sk.Size = Vector3.new(1.01, 1.01, 1.01) | |
393 | sk.BottomSurface = "Smooth" | |
394 | sk.TopSurface = "Smooth" | |
395 | sk.BrickColor = BrickColor.new("Black") | |
396 | ||
397 | local wsk = Instance.new("Weld") | |
398 | wsk.Parent = sk | |
399 | wsk.Part0 = chr["Right Leg"] | |
400 | wsk.Part1 = sk | |
401 | wsk.C0 = CFrame.new(0, 0.5, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
402 | ||
403 | local sk2 = Instance.new("Part") | |
404 | sk2.Parent = chr | |
405 | sk2.FormFactor = "Custom" | |
406 | sk2.Size = Vector3.new(1.01, 1.01, 1.01) | |
407 | sk2.BottomSurface = "Smooth" | |
408 | sk2.TopSurface = "Smooth" | |
409 | sk2.BrickColor = BrickColor.new("Black") | |
410 | ||
411 | local wsk2 = Instance.new("Weld") | |
412 | wsk2.Parent = sk2 | |
413 | wsk2.Part0 = chr["Left Leg"] | |
414 | wsk2.Part1 = sk2 | |
415 | wsk2.C0 = CFrame.new(0, 0.5, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
416 | ||
417 | local sk3 = Instance.new("Part") | |
418 | sk3.Parent = chr | |
419 | sk3.FormFactor = "Custom" | |
420 | sk3.Size = Vector3.new(1.05, 0.2, 1.05) | |
421 | sk3.BottomSurface = "Smooth" | |
422 | sk3.TopSurface = "Smooth" | |
423 | sk3.BrickColor = BrickColor.new("Bright orange") | |
424 | ||
425 | local wsk3 = Instance.new("Weld") | |
426 | wsk3.Parent = sk3 | |
427 | wsk3.Part0 = chr["Right Leg"] | |
428 | wsk3.Part1 = sk3 | |
429 | wsk3.C0 = CFrame.new(0, 0.05, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
430 | ||
431 | local sk4 = Instance.new("Part") | |
432 | sk4.Parent = chr | |
433 | sk4.FormFactor = "Custom" | |
434 | sk4.Size = Vector3.new(1.05, 0.2, 1.05) | |
435 | sk4.BottomSurface = "Smooth" | |
436 | sk4.TopSurface = "Smooth" | |
437 | sk4.BrickColor = BrickColor.new("Bright orange") | |
438 | ||
439 | local wsk4 = Instance.new("Weld") | |
440 | wsk4.Parent = sk4 | |
441 | wsk4.Part0 = chr["Left Leg"] | |
442 | wsk4.Part1 = sk4 | |
443 | wsk4.C0 = CFrame.new(0, 0.05, 0) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
444 | ||
445 | local sk5 = Instance.new("Part") | |
446 | sk5.Parent = chr | |
447 | - | particles.Color = ColorSequence.new(Color3.new(255, 255, 255)) |
447 | + | sk5.FormFactor = "Custom" |
448 | - | particles.Size = NumberSequence.new(20) |
448 | + | sk5.Size = Vector3.new(0.2, 0.9, 0.55) |
449 | - | particles.Texture = "rbxassetid://522606102" |
449 | + | sk5.BottomSurface = "Smooth" |
450 | sk5.TopSurface = "Smooth" | |
451 | sk5.BrickColor = BrickColor.new("Bright orange") | |
452 | ||
453 | local wsk5 = Instance.new("Weld") | |
454 | wsk5.Parent = sk5 | |
455 | - | particles.Lifetime = NumberRange.new(1.5, 3.75) |
455 | + | wsk5.Part0 = chr["Right Leg"] |
456 | wsk5.Part1 = sk5 | |
457 | wsk5.C0 = CFrame.new(-0.43, 0.57, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
458 | ||
459 | local sk6 = Instance.new("Part") | |
460 | sk6.Parent = chr | |
461 | sk6.FormFactor = "Custom" | |
462 | sk6.Size = Vector3.new(0.2, 0.9, 0.55) | |
463 | sk6.BottomSurface = "Smooth" | |
464 | sk6.TopSurface = "Smooth" | |
465 | sk6.BrickColor = BrickColor.new("Bright orange") | |
466 | ||
467 | local wsk6 = Instance.new("Weld") | |
468 | wsk6.Parent = sk6 | |
469 | wsk6.Part0 = chr["Left Leg"] | |
470 | wsk6.Part1 = sk6 | |
471 | wsk6.C0 = CFrame.new(0.43, 0.57, -0.25) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
472 | ---hair--- | |
473 | ||
474 | local h = Instance.new("Part") | |
475 | h.Parent = chr | |
476 | h.FormFactor = "Custom" | |
477 | h.Size = Vector3.new(0.3, 0.5, 0.5) | |
478 | h.BottomSurface = "Smooth" | |
479 | h.TopSurface = "Smooth" | |
480 | h.BrickColor = BrickColor.new("Brown") | |
481 | ||
482 | local wh = Instance.new("Weld") | |
483 | wh.Parent = h | |
484 | wh.Part0 = chr["Head"] | |
485 | wh.Part1 = h | |
486 | wh.C0 = CFrame.new(0, 0.3, 0.2) *CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
487 | - | bbgTl.TextSize = 70 |
487 | + | |
488 | local mh = Instance.new("SpecialMesh") | |
489 | mh.TextureId = "http://www.roblox.com/asset/?id=41068173" | |
490 | mh.MeshId = "http://www.roblox.com/asset/?id=62246019" | |
491 | mh.Parent = h | |
492 | ||
493 | ||
494 | local anim = true | |
495 | local function updateanims() | |
496 | if anim==true then | |
497 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then | |
498 | anglespeed = 1/3 | |
499 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(sin(angle)*0.05,0,0) | |
500 | LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0) | |
501 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(0),rad(0),rad(25)) | |
502 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,rad(-25)) | |
503 | LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,abs(sin(angle))*0.2) | |
504 | LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-abs(sin(angle))*0.2) | |
505 | end | |
506 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 and running == false then | |
507 | anglespeed = 1.5 | |
508 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,math.sin(angle)*0.05) | |
509 | LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,0) | |
510 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(25)) | |
511 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,rad(-25)) | |
512 | LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-sin(angle)*.8,0,0) | |
513 | LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(sin(angle)*.8,0,0) | |
514 | end | |
515 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 and running == true then | |
516 | anglespeed = 1.5 | |
517 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(45),0,math.sin(angle)*0.05) | |
518 | LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(math.pi/5,0,0) | |
519 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(-rad(45),0,rad(25)) | |
520 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(-rad(45),0,rad(-25)) | |
521 | LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-sin(angle)*.8,0,0) | |
522 | LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(sin(angle)*.8,0,0) | |
523 | end | |
524 | end | |
525 | end | |
526 | attacking = false | |
527 | mouse.Button1Down:connect(function() | |
528 | if anim == true and attacking == false then | |
529 | anim = false | |
530 | attacking = true | |
531 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),rad(0),rad(0)) | |
532 | wait(.5) | |
533 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),rad(0),rad(90)) | |
534 | wait(.5) | |
535 | anim = true | |
536 | attacking = false | |
537 | end | |
538 | end) | |
539 | roar = function() | |
540 | if anim == true and attacking == false then | |
541 | anim = false | |
542 | attacking = true | |
543 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(25),0,0) | |
544 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(math.pi/-5,0,0) | |
545 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(-45),rad(-45),rad(45)) | |
546 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(-45),rad(45),rad(-45)) | |
547 | LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0)) | |
548 | LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0)) | |
549 | wait(.5) | |
550 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(0),0,0) | |
551 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(0),0,0) | |
552 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(135),rad(45),rad(-25)) | |
553 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(135),rad(-45),rad(25)) | |
554 | LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(0),rad(0),rad(0)) | |
555 | LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(0),rad(0),rad(0)) | |
556 | wait(.5) | |
557 | for i = 1,25 do | |
558 | wait() | |
559 | part = Instance.new("Part",chr) | |
560 | part.CanCollide=false | |
561 | part.Transparency=1 | |
562 | part.FormFactor="Custom" | |
563 | part.Size=Vector3.new(2,2,.2) | |
564 | part.Anchored = true | |
565 | part.Touched:connect(function(hit) | |
566 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then | |
567 | hit.Parent.Humanoid:TakeDamage(50) | |
568 | end | |
569 | end) | |
570 | makeflame(part,0,i) | |
571 | part.CFrame = chr.Head.CFrame*CFrame.new(0,0,-i+-i/2) | |
572 | game.Debris:AddItem(part,5) | |
573 | end | |
574 | wait(.5) | |
575 | attacking = false | |
576 | anim = true | |
577 | end | |
578 | end | |
579 | local blaze = function() | |
580 | if attacking == false and anim == true then | |
581 | attacking = true | |
582 | anim = false | |
583 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,10) | |
584 | LerpTo.RightArm.To = LerpTo.RightArm.Cache*CFrame.Angles(rad(90),rad(0),rad(-45)) | |
585 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache*CFrame.Angles(rad(90),rad(0),rad(45)) | |
586 | wait(.5) | |
587 | shoot = Instance.new("Part",chr) | |
588 | shoot.Size=Vector3.new(30,30,30) | |
589 | shoot.CanCollide=false | |
590 | shoot.Transparency=1 | |
591 | shoot.CFrame=chr.Torso.CFrame*CFrame.new(0,0,-2.5) | |
592 | makeflame(shoot,0,30) | |
593 | shoot.Touched:connect(function(hit) | |
594 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then | |
595 | hit.Parent.Humanoid:TakeDamage(50) | |
596 | end | |
597 | end) | |
598 | x=Instance.new("Part",chr) | |
599 | x.CanCollide=false | |
600 | x.Transparency=1 | |
601 | x.Position = mouse.Hit.p | |
602 | bp = Instance.new("BodyPosition",shoot) | |
603 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
604 | bp.position = x.Position.Unit*80 | |
605 | wait(.5) | |
606 | game.Debris:AddItem(Shoot,.5) | |
607 | game.Debris:AddItem(x,.5) | |
608 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,0) | |
609 | anim = true | |
610 | attacking = false | |
611 | end | |
612 | end | |
613 | local spin = function() | |
614 | if attacking == false and anim == true then | |
615 | anim = false | |
616 | attacking = true | |
617 | LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(0,0,rad(90)) | |
618 | LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(0,0,rad(-90)) | |
619 | LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(270)) | |
620 | wait(.1) | |
621 | LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(180)) | |
622 | wait(.1) | |
623 | LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(90)) | |
624 | wait(.1) | |
625 | LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,rad(0)) | |
626 | wait(.1) | |
627 | attacking = false | |
628 | anim = true | |
629 | end | |
630 | end | |
631 | local spike = function() | |
632 | anim = false | |
633 | attacking = true | |
634 | LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(25),0,0) | |
635 | LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(math.pi/-5,0,0) | |
636 | LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(-45),rad(-45),rad(45)) | |
637 | LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(-45),rad(45),rad(-45)) | |
638 | LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0)) | |
639 | LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(-45),rad(0),rad(0)) | |
640 | local asd = Instance.new("Part",chr) | |
641 | asd.Transparency=1 | |
642 | asd.Size=Vector3.new(30,30,30) | |
643 | asd.Anchored=true | |
644 | asd.CanCollide=false | |
645 | asd.CFrame=chr.Torso.CFrame | |
646 | makeflame(asd,0,30) | |
647 | asd.Touched:connect(function(hit) | |
648 | if hit.Parent.Name~=plr.Name and hit.Parent:FindFirstChild("Humanoid") then | |
649 | hit.Parent:BreakJoints() | |
650 | end | |
651 | end) | |
652 | wait(5) | |
653 | asd:Destroy() | |
654 | anim = true | |
655 | attacking = false | |
656 | end | |
657 | mouse.KeyDown:connect(function(key) | |
658 | if key == "q" then | |
659 | roar() | |
660 | elseif key == "e" then | |
661 | blaze() | |
662 | elseif key == "r" then | |
663 | spin() | |
664 | elseif key == "t" then | |
665 | spike() | |
666 | elseif key == "0" then | |
667 | running = true | |
668 | chr.Humanoid.WalkSpeed = 50 | |
669 | end | |
670 | end) | |
671 | mouse.KeyUp:connect(function(key) | |
672 | if key == "0" then | |
673 | running = false | |
674 | chr.Humanoid.WalkSpeed=16 | |
675 | end | |
676 | end) | |
677 | Spawn(function() | |
678 | while wait()do | |
679 | angle = (angle % 100) + anglespeed/10 -- no matter whut it has to be in a loop or its on exticy | |
680 | for i,v in pairs(chr:GetChildren()) do | |
681 | if v:IsA("Part") and v:FindFirstChild("Fire") then | |
682 | v.Fire.Color=flameclr | |
683 | v.Fire.SecondaryColor=flameclr | |
684 | end | |
685 | end | |
686 | end | |
687 | end) | |
688 | meo=0 | |
689 | sdeb=false | |
690 | game:service'RunService'.RenderStepped:connect(function() | |
691 | meo=meo+1 | |
692 | for _,v in pairs(LerpTo) do | |
693 | v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)end | |
694 | updateanims() | |
695 | end) | |
696 | ||
697 | p = game.Players.LocalPlayer | |
698 | char = p.Character | |
699 | local char = p.Character | |
700 | torso = char.Torso | |
701 | neck = char.Torso.Neck | |
702 | hum = char.Humanoid | |
703 | Player = game:GetService("Players").LocalPlayer | |
704 | Character = Player.Character | |
705 | tors = Character.Torso | |
706 | root = Character.HumanoidRootPart | |
707 | lleg = Character["Left Leg"] | |
708 | hed = Character.Head | |
709 | rleg = Character["Right Leg"] | |
710 | rarm = Character["Right Arm"] | |
711 | larm = Character["Left Arm"] | |
712 | ||
713 | ypcall(function() | |
714 | for i,v in pairs(Character:children()) do | |
715 | if v:IsA("Hat") then | |
716 | v:Destroy() | |
717 | end | |
718 | end | |
719 | for i,v in pairs(Character:children()) do | |
720 | if v:IsA("Accessory") then | |
721 | v:Destroy() | |
722 | end | |
723 | end | |
724 | for i,v in pairs(Character:children()) do | |
725 | if v:IsA("Hair") then | |
726 | v:Destroy() | |
727 | end | |
728 | end | |
729 | end) | |
730 | ||
731 | CV="Hot pink" | |
732 | ||
733 | local txt = Instance.new("BillboardGui", char) | |
734 | txt.Adornee = char .Head | |
735 | txt.Name = "_status" | |
736 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
737 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
738 | local text = Instance.new("TextLabel", txt) | |
739 | text.Size = UDim2.new(10, 0, 7, 0) | |
740 | text.FontSize = "Size24" | |
741 | text.TextScaled = true | |
742 | text.TextTransparency = 0 | |
743 | text.BackgroundTransparency = 1 | |
744 | text.TextTransparency = 0 | |
745 | text.TextStrokeTransparency = 0 | |
746 | text.Font = "Highway" | |
747 | text.TextStrokeColor3 = BrickColor.new("Really black").Color | |
748 | ||
749 | v=Instance.new("Part") | |
750 | v.Name = "ColorBrick" | |
751 | v.Parent=p.Character | |
752 | v.FormFactor="Symmetric" | |
753 | v.Anchored=true | |
754 | v.CanCollide=false | |
755 | v.BottomSurface="Smooth" | |
756 | v.TopSurface="Smooth" | |
757 | v.Size=Vector3.new(10,5,3) | |
758 | v.Transparency=1 | |
759 | v.CFrame=char.Torso.CFrame | |
760 | v.BrickColor=BrickColor.new(CV) | |
761 | v.Transparency=1 | |
762 | text.TextColor3 = BrickColor.new("Really Black").Color | |
763 | v.Shape="Block" | |
764 | text.Text = "The Immortal god" | |
765 | ||
766 | hed.face.Texture = "http://www.roblox.com/asset/?id=0" | |
767 | hed.Transparency = 1 | |
768 | rleg.Transparency = 1 | |
769 | rarm.Transparency = 1 | |
770 | larm.Transparency = 1 | |
771 | lleg.Transparency = 1 | |
772 | tors.Transparency = 1 | |
773 | ||
774 | Player = game:GetService("Players").LocalPlayer | |
775 | Character = Player.Character | |
776 | rarm = Character["Right Arm"] | |
777 | larm = Character["Left Arm"] | |
778 | vt = Vector3.new | |
779 | bc = BrickColor.new | |
780 | wit = bc("Smokey grey").Color | |
781 | ||
782 | local prth = Instance.new("Part",Character) | |
783 | prth.Size = vt(1.25,1.25,1.25) | |
784 | prth.CanCollide = false | |
785 | prth.Material = "Neon" | |
786 | prth.Transparency = 0.5 | |
787 | prth.BrickColor = bc("Smokey grey") | |
788 | local wldh = Instance.new("Weld",Character) | |
789 | wldh.Part0 = hed | |
790 | wldh.Part1 = prth | |
791 | ||
792 | local prtrm = Instance.new("Part",Character) | |
793 | prtrm.Size = vt(2.1,2.1,1.1) | |
794 | prtrm.CanCollide = false | |
795 | prtrm.Transparency = 0.5 | |
796 | prtrm.Material = "Neon" | |
797 | prtrm.BrickColor = bc("Smokey grey") | |
798 | local wldm = Instance.new("Weld",Character) | |
799 | wldm.Part0 = root | |
800 | wldm.Part1 = prtrm | |
801 | ||
802 | local prtr = Instance.new("Part",Character) | |
803 | prtr.Size = vt(1.1,2.1,1.1) | |
804 | prtr.CanCollide = false | |
805 | prtr.Transparency = 0.5 | |
806 | prtr.Material = "Neon" | |
807 | prtr.BrickColor = bc("Smokey grey") | |
808 | local prtrl = Instance.new("Part",Character) | |
809 | prtrl.Size = vt(1.1,2.1,1.1) | |
810 | prtrl.CanCollide = false | |
811 | prtrl.Transparency = 0.5 | |
812 | prtrl.Material = "Neon" | |
813 | prtrl.BrickColor = bc("Smokey grey") | |
814 | local eff = Instance.new("ParticleEmitter",prtr) | |
815 | eff.LightEmission = 1 | |
816 | eff.Texture = "rbxassetid://284205403" | |
817 | eff.Color = ColorSequence.new(wit) | |
818 | eff.Size = NumberSequence.new(0.5,1) | |
819 | eff.Acceleration = vt(0,25,0) | |
820 | eff.Speed = NumberRange.new(-5) | |
821 | eff.LockedToPart = false | |
822 | eff.Transparency = NumberSequence.new(0.95) | |
823 | eff.Lifetime = NumberRange.new(0.5) | |
824 | eff.Rate = 100000 | |
825 | eff.VelocitySpread = 25 | |
826 | local wld = Instance.new("Weld",Character) | |
827 | wld.Part0 = rarm | |
828 | wld.Part1 = prtr | |
829 | local wldl = Instance.new("Weld",Character) | |
830 | wldl.Part0 = rleg | |
831 | wldl.Part1 = prtrl | |
832 | ||
833 | local prtr2 = Instance.new("Part",Character) | |
834 | prtr2.Size = vt(1.1,2.1,1.1) | |
835 | prtr2.CanCollide = false | |
836 | prtr2.Transparency = 0.5 | |
837 | prtr2.Material = "Neon" | |
838 | prtr2.BrickColor = bc("Deep orange") | |
839 | local prtrl2 = Instance.new("Part",Character) | |
840 | prtrl2.Size = vt(1.1,2.1,1.1) | |
841 | prtrl2.CanCollide = false | |
842 | prtrl2.Transparency = 0.5 | |
843 | prtrl2.Material = "Neon" | |
844 | prtrl2.BrickColor = bc("Smokey grey") | |
845 | local eff2 = Instance.new("ParticleEmitter",prtr2) | |
846 | eff2.LightEmission = 1 | |
847 | eff2.Texture = "rbxassetid://284205403" | |
848 | eff2.Color = ColorSequence.new(wit) | |
849 | eff2.Size = NumberSequence.new(0.5,1) | |
850 | eff2.Acceleration = vt(0,25,0) | |
851 | eff2.Speed = NumberRange.new(-5) | |
852 | eff2.LockedToPart = false | |
853 | eff2.Transparency = NumberSequence.new(0.95) | |
854 | eff2.Lifetime = NumberRange.new(0.5) | |
855 | eff2.Rate = 100000 | |
856 | eff2.VelocitySpread = 25 | |
857 | local wld2 = Instance.new("Weld",Character) | |
858 | wld2.Part0 = larm | |
859 | wld2.Part1 = prtr2 | |
860 | local wldl2 = Instance.new("Weld",Character) | |
861 | wldl2.Part0 = lleg | |
862 | wldl2.Part1 = prtrl2 | |
863 | ||
864 | local mouse = game.Players.LocalPlayer:GetMouse() | |
865 | tors = game.Players.LocalPlayer.Character.Torso | |
866 | vt = Vector3.new | |
867 | bc = BrickColor.new | |
868 | ||
869 | local Effect = Instance.new("Part",game.Lighting) | |
870 | Effect.BrickColor = bc("Smokey grey") | |
871 | Effect.Transparency = 1 | |
872 | Effect.Anchored = true | |
873 | Effect.CanCollide = false | |
874 | Effect.Material = "Neon" | |
875 | Effect.Shape = "Ball" | |
876 | Effect.Size = vt(5,5,5) | |
877 | local fire1 = Instance.new("Fire",Effect) | |
878 | fire1.Name = "Fire" | |
879 | fire1.Heat = 0 | |
880 | fire1.Size = 30 | |
881 | fire1.SecondaryColor = bc("Really black").Color | |
882 | fire1.Color = bc("Deep orange").Color | |
883 | local fire2 = Instance.new("Fire",Effect) | |
884 | fire2.Name = "Fire2" | |
885 | fire2.Heat = 0 | |
886 | fire2.Size = 25 | |
887 | fire2.SecondaryColor = bc("Really black").Color | |
888 | fire2.Color = bc("Neon orange").Color | |
889 | ||
890 | function Explode(rad,par) | |
891 | local expart = Instance.new("Part",script.Parent) | |
892 | local expart2 = Instance.new("Part",script.Parent) | |
893 | local snd = Instance.new("Sound",expart) | |
894 | snd.SoundId = "rbxassetid://258057783" | |
895 | snd.Volume = 2.5 | |
896 | local partMesh = Instance.new("SpecialMesh",expart) | |
897 | partMesh.MeshType = "Sphere" | |
898 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
899 | partMesh2.MeshType = "Sphere" | |
900 | local expld = Instance.new("Explosion", script.Parent) | |
901 | expld.BlastRadius = rad | |
902 | expld.Position = par.Position | |
903 | partMesh.Scale = vt(rad,rad,rad) | |
904 | expart.Size = vt(1,1,1)*1.5 | |
905 | expart.Transparency = 0.5 | |
906 | expart.Anchored = true | |
907 | expart.Material = "Neon" | |
908 | expart.BrickColor = bc("Smokey grey") | |
909 | expart.CFrame = par.CFrame | |
910 | partMesh2.Scale = vt(rad,rad,rad) | |
911 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
912 | expart2.Transparency = 0.5 | |
913 | expart2.Anchored = true | |
914 | expart2.Material = "Neon" | |
915 | expart2.BrickColor = bc("Bright orange") | |
916 | expart2.CFrame = par.CFrame | |
917 | snd:Play() | |
918 | for i = 0, 100 do | |
919 | expart.Transparency = expart.Transparency + 0.005 | |
920 | partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25) | |
921 | expart.CFrame = expart.CFrame | |
922 | expart2.Transparency = expart.Transparency + 0.005 | |
923 | partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25) | |
924 | expart2.CFrame = expart.CFrame | |
925 | wait(0) | |
926 | end | |
927 | snd.Parent = nil | |
928 | expart.Parent = nil | |
929 | expart2.Parent = nil | |
930 | expld.Parent = nil | |
931 | end | |
932 | ||
933 | function Explode2(rad,par) | |
934 | local expart = Instance.new("Part",script.Parent) | |
935 | local expart2 = Instance.new("Part",script.Parent) | |
936 | local snd = Instance.new("Sound",expart) | |
937 | snd.SoundId = "rbxassetid://165969964" | |
938 | snd.Volume = 3 | |
939 | local partMesh = Instance.new("SpecialMesh",expart) | |
940 | partMesh.MeshType = "Sphere" | |
941 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
942 | partMesh2.MeshType = "Sphere" | |
943 | local expld = Instance.new("Explosion", script.Parent) | |
944 | expld.BlastRadius = rad | |
945 | expld.Position = par.Position | |
946 | partMesh.Scale = vt(rad,rad,rad) | |
947 | expart.Size = vt(1,1,1)*1.5 | |
948 | expart.Transparency = 0.5 | |
949 | expart.Anchored = true | |
950 | expart.Material = "Neon" | |
951 | expart.BrickColor = bc("Smokey grey") | |
952 | expart.CFrame = par.CFrame | |
953 | partMesh2.Scale = vt(rad,rad,rad) | |
954 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
955 | expart2.Transparency = 0.5 | |
956 | expart2.Anchored = true | |
957 | expart2.Material = "Neon" | |
958 | expart2.BrickColor = bc("Bright orange") | |
959 | expart2.CFrame = par.CFrame | |
960 | snd:Play() | |
961 | for i = 0, 100 do | |
962 | expart.Transparency = expart.Transparency + 0.005 | |
963 | partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25) | |
964 | expart.CFrame = expart.CFrame | |
965 | expart2.Transparency = expart.Transparency + 0.005 | |
966 | partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25) | |
967 | expart2.CFrame = expart.CFrame | |
968 | wait(0) | |
969 | end | |
970 | snd.Parent = nil | |
971 | expart.Parent = nil | |
972 | expart2.Parent = nil | |
973 | expld.Parent = nil | |
974 | end | |
975 | ||
976 | mouse.KeyDown:connect(function(k) | |
977 | ||
978 | k = k:lower() | |
979 | if k == "q" then | |
980 | local spart = Effect:Clone() | |
981 | spart.Parent = game.Players.LocalPlayer.Character | |
982 | spart.Transparency = 0 | |
983 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*5 | |
984 | wait() | |
985 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*15 | |
986 | wait() | |
987 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*25 | |
988 | wait() | |
989 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*35 | |
990 | wait() | |
991 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*45 | |
992 | wait() | |
993 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*55 | |
994 | wait() | |
995 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*65 | |
996 | wait() | |
997 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*75 | |
998 | wait() | |
999 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*85 | |
1000 | wait() | |
1001 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*95 | |
1002 | wait() | |
1003 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*105 | |
1004 | spart.Transparency = 1 | |
1005 | spart.Fire2:Destroy() | |
1006 | spart.Fire:Destroy() | |
1007 | Explode(25,spart) | |
1008 | spart:Destroy() | |
1009 | end | |
1010 | if k == "e" then | |
1011 | local spart = Effect:Clone() | |
1012 | spart.Parent = game.Players.LocalPlayer.Character | |
1013 | spart.Transparency = 0 | |
1014 | spart.Anchored = false | |
1015 | spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*0 | |
1016 | spart.Position = spart.Position + vt(0,100,0) | |
1017 | spart.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*150 | |
1018 | wait(1) | |
1019 | spart.Transparency = 1 | |
1020 | spart.Fire2:Destroy() | |
1021 | spart.Fire:Destroy() | |
1022 | Explode2(75,spart) | |
1023 | spart:Destroy() | |
1024 | end | |
1025 | if k == "r" then | |
1026 | local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character) | |
1027 | game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*275 | |
1028 | wait(0.75) | |
1029 | game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*-165 | |
1030 | Explode(30,game.Players.LocalPlayer.Character.Torso) | |
1031 | wait(0.5) | |
1032 | ff:Destroy() | |
1033 | end | |
1034 | if k == "f" then | |
1035 | local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character) | |
1036 | for i = 0, 10 do | |
1037 | game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,10,0) | |
1038 | wait(0) | |
1039 | end | |
1040 | for i = 0, 5 do | |
1041 | game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,1,0) | |
1042 | wait(0) | |
1043 | end | |
1044 | game.Players.LocalPlayer.Character.Torso.Anchored = true | |
1045 | wait(1.5) | |
1046 | game.Players.LocalPlayer.Character.Torso.Anchored = false | |
1047 | for i = 0, 10 do | |
1048 | game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,-1,0) | |
1049 | wait(0) | |
1050 | end | |
1051 | wait(0.25) | |
1052 | Explode2(62.5,game.Players.LocalPlayer.Character.Torso) | |
1053 | wait(0.5) | |
1054 | ff:Destroy() | |
1055 | end | |
1056 | end) | |
1057 | plr = game.Players.LocalPlayer | |
1058 | mouse = plr:GetMouse() | |
1059 | part = nil | |
1060 | bp = nil | |
1061 | particles = nil | |
1062 | function clerp(a,b,c,d) | |
1063 | for i = 0,d,.01 do | |
1064 | a.CFrame = CFrame.new(b:lerp(c,i)) | |
1065 | wait() | |
1066 | end | |
1067 | end | |
1068 | function slerp(a2,b2,c2,d2) | |
1069 | for i2 = 0,d2,.01 do | |
1070 | a2.CFrame = CFrame.new(b2:lerp(c2,i2)) | |
1071 | wait() | |
1072 | end | |
1073 | end | |
1074 | mouse.KeyDown:connect(function(key) | |
1075 | if key == "e" and plr.Character.Parent == workspace then | |
1076 | plr.Character.Parent = workspace.Camera | |
1077 | plr.Character.Archivable = true | |
1078 | Instance.new("ForceField",plr.Character).Visible = false | |
1079 | for y,t in pairs(plr.Character:GetChildren()) do | |
1080 | if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then | |
1081 | t.Transparency = 0.5 | |
1082 | if t.Name == "Head" and t:FindFirstChild("face") then | |
1083 | t.face.Transparency = 1 | |
1084 | end | |
1085 | elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then | |
1086 | t.Handle.Transparency = 1 | |
1087 | end | |
1088 | end | |
1089 | elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then | |
1090 | plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p) | |
1091 | elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then | |
1092 | if plr.Character.Torso.Anchored == true then | |
1093 | for y,t in pairs(plr.Character:GetChildren()) do | |
1094 | if t:IsA("Part") then | |
1095 | t.Anchored = false | |
1096 | end | |
1097 | end | |
1098 | else | |
1099 | for y,t in pairs(plr.Character:GetChildren()) do | |
1100 | if t:IsA("Part") then | |
1101 | t.Anchored = true | |
1102 | end | |
1103 | end | |
1104 | end | |
1105 | elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then | |
1106 | local clone = part:Clone() | |
1107 | clone.Parent = workspace | |
1108 | clone.Anchored = false | |
1109 | clone:ClearAllChildren() | |
1110 | clone.CanCollide = true | |
1111 | bp.Parent = clone | |
1112 | particles.Parent = clone | |
1113 | if part.Parent:FindFirstChildOfClass("Humanoid") then | |
1114 | part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false | |
1115 | end | |
1116 | part:Destroy() | |
1117 | part = clone | |
1118 | elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then | |
1119 | plr.Character.Parent = workspace | |
1120 | plr.Character.Archivable = false | |
1121 | plr.Character:FindFirstChildOfClass("ForceField"):Remove() | |
1122 | for y,t in pairs(plr.Character:GetChildren()) do | |
1123 | if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then | |
1124 | t.Transparency = 0 | |
1125 | if t.Name == "Head" and t:FindFirstChild("face") then | |
1126 | t.face.Transparency = 0 | |
1127 | end | |
1128 | elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then | |
1129 | t.Handle.Transparency = 0 | |
1130 | end | |
1131 | end | |
1132 | end | |
1133 | end) | |
1134 | mouse.Button1Down:connect(function() | |
1135 | if plr.Character.Parent == workspace.Camera then | |
1136 | if mouse ~= nil then | |
1137 | if mouse.Target ~= nil then | |
1138 | part = mouse.Target | |
1139 | bp = Instance.new("BodyPosition",part) | |
1140 | bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1141 | bp.Position = part.Position | |
1142 | particles = Instance.new("ParticleEmitter",part) | |
1143 | particles.Color = ColorSequence.new(Color3.new(0,0,0)) | |
1144 | particles.Size = NumberSequence.new(1) | |
1145 | particles.Texture = "rbxassetid://292289455" | |
1146 | particles.VelocitySpread = 360 | |
1147 | particles.Speed = NumberRange.new(0) | |
1148 | particles.RotSpeed = NumberRange.new(0) | |
1149 | particles.Rotation = NumberRange.new(0) | |
1150 | particles.Rate = 250 | |
1151 | particles.Lifetime = NumberRange.new(.2,.4) | |
1152 | particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1153 | dwn = true | |
1154 | end | |
1155 | end | |
1156 | while dwn == true do | |
1157 | wait() | |
1158 | bp.Position = mouse.hit.p | |
1159 | if part then | |
1160 | if part.Parent:FindFirstChildOfClass("Humanoid") then | |
1161 | part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true | |
1162 | end | |
1163 | end | |
1164 | end | |
1165 | end | |
1166 | end) | |
1167 | mouse.Button1Up:connect(function() | |
1168 | dwn = false | |
1169 | if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end | |
1170 | if bp then bp:Destroy() end | |
1171 | if particles then particles:Destroy() end | |
1172 | end) | |
1173 | base = Instance.new("ScreenGui",plr.PlayerGui) | |
1174 | bbg = Instance.new("BillboardGui",plr.Character.Head) | |
1175 | bbg.Size = UDim2.new(0,200,0,50) | |
1176 | bbg.StudsOffset = Vector3.new(0,3,0) | |
1177 | bbgTl = Instance.new("TextLabel",bbg) | |
1178 | bbgTl.BackgroundTransparency = 1 | |
1179 | bbgTl.Size = UDim2.new(10,0,1,0) | |
1180 | bbgTl.Position = UDim2.new(-4.5,0,0,0) | |
1181 | bbgTl.Font = "Code" | |
1182 | bbgTl.Text = " " | |
1183 | bbgTl.TextSize = 25 | |
1184 | bbgTl.TextStrokeColor3 = Color3.new(1,1,1) | |
1185 | bbgTl.TextColor3 = Color3.new(201,201,201) | |
1186 | bbgTl.TextStrokeTransparency = 0 | |
1187 | bbgTl.TextWrapped = true | |
1188 | plr.Chatted:connect(function(msg) | |
1189 | bbgTl.Text = msg | |
1190 | wait(5) | |
1191 | if bbgTl.Text == msg then | |
1192 | bbgTl.Text = " " | |
1193 | end | |
1194 | end) | |
1195 | touchCounter = 0 | |
1196 | while wait() do | |
1197 | if plr.Character.Parent == workspace.Camera then | |
1198 | local c = plr.Character:Clone() | |
1199 | c:MakeJoints() | |
1200 | for y,t in pairs(c:GetChildren()) do | |
1201 | if t:IsA("Part") then | |
1202 | t.CanCollide = false | |
1203 | t.Anchored = true | |
1204 | t.Transparency = 0.8 | |
1205 | t.TopSurface = "Smooth" | |
1206 | t.BottomSurface = "Smooth" | |
1207 | t.RightSurface = "Smooth" | |
1208 | t.LeftSurface = "Smooth" | |
1209 | t.FrontSurface = "Smooth" | |
1210 | t.BackSurface = "Smooth" | |
1211 | t.BrickColor = BrickColor.new("grey") | |
1212 | if t.Name == "Head" and t:FindFirstChild("face") then | |
1213 | t.face:Remove() | |
1214 | elseif t.Name == "Torso" and t:FindFirstChild("roblox") then | |
1215 | t.roblox:Remove() | |
1216 | elseif t.Name == "HumanoidRootPart" then | |
1217 | t:Remove() | |
1218 | end | |
1219 | else | |
1220 | t:Remove() | |
1221 | end | |
1222 | end | |
1223 | c.Parent = workspace | |
1224 | game.Debris:AddItem(c,.05) | |
1225 | end | |
1226 | end |