SHOW:
|
|
- or go back to the newest paste.
1 | print([[ | |
2 | ___________________________________ | |
3 | ||
4 | - | Kyutatsuki13's アマツミカ·スタライト script |
4 | + | Kyutatsuki13's 5mzazatv script |
5 | Build 0003 | |
6 | Amatsumika Starlight the Kami of Stars | |
7 | ||
8 | ___________________________________ | |
9 | ]]) | |
10 | ||
11 | function checkfriendlist(model) | |
12 | local friend = false | |
13 | local target = nil | |
14 | if model.ClassName == "Player" then | |
15 | target = model | |
16 | else | |
17 | target = game:GetService("Players"):GetPlayerFromCharacter(model) | |
18 | end | |
19 | if target ~= nil then | |
20 | if target:IsFriendsWith(40229938) then friend = true end | |
21 | end | |
22 | return friend | |
23 | end | |
24 | ||
25 | if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Whitelist") then | |
26 | warn("You're not whitelisted h0h but since i released it") | |
27 | --wait(1) | |
28 | --error("Script has been stopped.") | |
29 | end | |
30 | ||
31 | warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)") | |
32 | -EY EDIT 5mzazatv | |
33 | local p = game:GetService("Players").LocalPlayer | |
34 | local plr = game:GetService("Players").LocalPlayer | |
35 | local player = game:GetService("Players").LocalPlayer | |
36 | local char = p.Character | |
37 | local mouse = p:GetMouse() | |
38 | local larm = char:WaitForChild("Left Arm") | |
39 | local rarm = char:WaitForChild("Right Arm") | |
40 | local lleg = char:WaitForChild("Left Leg") | |
41 | local rleg = char:WaitForChild("Right Leg") | |
42 | local hed = char:WaitForChild("Head") | |
43 | local torso = char:WaitForChild("Torso") | |
44 | local root = char:WaitForChild("HumanoidRootPart") | |
45 | local hum = char:FindFirstChildOfClass("Humanoid") | |
46 | local debris = game:GetService("Debris") | |
47 | local run = game:GetService("RunService") | |
48 | local rs = run.RenderStepped | |
49 | local cam = workspace.CurrentCamera | |
50 | Head.face.Texture = "rbxassetid://608798717" | |
51 | local movement = 4 | |
52 | local change = 0.4 | |
53 | local DebrisModel = Instance.new("Model",char) | |
54 | local stealth = false | |
55 | local debounce = false | |
56 | hum.MaxHealth = 50000 | |
57 | hum.Health = hum.MaxHealth | |
58 | themeid = 556122490 | |
59 | themepitch = 1 | |
60 | main = {r = 0;g = 100;b = 255;v = 1} | |
61 | if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end | |
62 | if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end | |
63 | if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end | |
64 | if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end | |
65 | if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end | |
66 | if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end | |
67 | pr = p:FindFirstChild("rcolor") | |
68 | pg = p:FindFirstChild("gcolor") | |
69 | pb = p:FindFirstChild("bcolor") | |
70 | pv = p:FindFirstChild("vcolor") | |
71 | idth = p:FindFirstChild("idtheme") | |
72 | pith = p:FindFirstChild("pitchtheme") | |
73 | main_color = Color3.fromRGB(main.r,main.g,main.b) | |
74 | explosionid = {262562442,144699494,539294959,1388740053} | |
75 | --919941001 | |
76 | Prefix = "/" | |
77 | p.Chatted:connect(function(msg) | |
78 | ||
79 | if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then | |
80 | local v = tonumber(msg:sub(#Prefix+#'color r '+1)) | |
81 | main.r = v | |
82 | elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then | |
83 | local v = tonumber(msg:sub(#Prefix+#'color g '+1)) | |
84 | main.g = v | |
85 | elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then | |
86 | local v = tonumber(msg:sub(#Prefix+#'color b '+1)) | |
87 | main.b = v | |
88 | elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then | |
89 | local v = tonumber(msg:sub(#Prefix+#'color v '+1)) | |
90 | if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end | |
91 | ||
92 | elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then | |
93 | local v = tonumber(msg:sub(#Prefix+#'theme '+1)) | |
94 | themeid = v | |
95 | music(themeid,themepitch) | |
96 | ||
97 | elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then | |
98 | local v = tonumber(msg:sub(#Prefix+#'pitch '+1)) | |
99 | themepitch = v | |
100 | music(themeid,themepitch) | |
101 | ||
102 | elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then | |
103 | local v = msg:sub(#Prefix+#'prefix '+1) | |
104 | Prefix = v | |
105 | ||
106 | elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then | |
107 | main.r = 0 | |
108 | main.g = 100 | |
109 | main.b = 255 | |
110 | main.v = 1 | |
111 | themeid = 556122490 | |
112 | themepitch = 1 | |
113 | music(themeid,themepitch) | |
114 | ||
115 | end | |
116 | ||
117 | end) | |
118 | ---------------------------------------------------------------------------- | |
119 | no_anim = false | |
120 | attack = false | |
121 | attacking = false | |
122 | canjump = true | |
123 | aiming_anim = false | |
124 | animid = math.random(0,1) | |
125 | timer = 0 | |
126 | bg = Instance.new("BodyGyro",root) | |
127 | bg.P = 100000 | |
128 | bg.D = 100 | |
129 | ---------------------------------------------------------------------------- | |
130 | ||
131 | function rswait(value) | |
132 | if value ~= nil and value ~= 0 then | |
133 | for i=1,value do | |
134 | rs:wait() | |
135 | end | |
136 | else | |
137 | rs:wait() | |
138 | end | |
139 | end | |
140 | ||
141 | ---------------------------------------------------------------------------- | |
142 | max = 0 | |
143 | function music(id,pitch) | |
144 | max = 0 | |
145 | if id == "Stop" then | |
146 | if not torso:FindFirstChild("MusicRuin") then | |
147 | soundz = Instance.new("Sound",torso) | |
148 | end | |
149 | soundz:Stop() | |
150 | else | |
151 | if not torso:FindFirstChild("MusicRuin") then | |
152 | soundz = Instance.new("Sound",torso) | |
153 | end | |
154 | soundz.MaxDistance = 150*5 | |
155 | soundz.EmitterSize = 150/5 | |
156 | soundz.Volume = 10 | |
157 | soundz.Name = "MusicRuin" | |
158 | soundz.Looped = true | |
159 | soundz.PlaybackSpeed = pitch | |
160 | soundz.SoundId = "rbxassetid://"..id | |
161 | soundz:Stop() | |
162 | soundz:Play() | |
163 | end | |
164 | end | |
165 | ||
166 | ---------------------------------------------------------------------------- | |
167 | ||
168 | function lerp(a, b, t) | |
169 | return a + (b - a)*t | |
170 | end | |
171 | ||
172 | ---------------------------------------------------------------------------- | |
173 | ||
174 | function Lerp(c1,c2,al) | |
175 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
176 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
177 | for i,v in pairs(com1) do | |
178 | com1[i] = v+(com2[i]-v)*al | |
179 | end | |
180 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
181 | end | |
182 | ||
183 | ---------------------------------------------------------------------------- | |
184 | ||
185 | function slerp(a, b, t) | |
186 | dot = a:Dot(b) | |
187 | if dot > 0.99999 or dot < -0.99999 then | |
188 | return t <= 0.5 and a or b | |
189 | else | |
190 | r = math.acos(dot) | |
191 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
192 | end | |
193 | end | |
194 | ||
195 | ---------------------------------------------------------------------------- | |
196 | ||
197 | function clerp(c1,c2,al) | |
198 | ||
199 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
200 | ||
201 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
202 | ||
203 | for i,v in pairs(com1) do | |
204 | ||
205 | com1[i] = lerp(v,com2[i],al) | |
206 | ||
207 | end | |
208 | ||
209 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
210 | ||
211 | end | |
212 | ||
213 | ---------------------------------------------------------------------------- | |
214 | ||
215 | function findAllNearestTorso(pos,dist) | |
216 | local list = game.Workspace:children() | |
217 | local torso = {} | |
218 | local temp = nil | |
219 | local human = nil | |
220 | local temp2 = nil | |
221 | for x = 1, #list do | |
222 | temp2 = list[x] | |
223 | if (temp2.className == "Model") and (temp2 ~= char) then | |
224 | local nayem = "Torso" | |
225 | if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end | |
226 | temp = temp2:findFirstChild(nayem) | |
227 | human = temp2:findFirstChildOfClass("Humanoid") | |
228 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
229 | if (temp.Position - pos).magnitude < dist then | |
230 | table.insert(torso,temp) | |
231 | dist = (temp.Position - pos).magnitude | |
232 | end | |
233 | end | |
234 | end | |
235 | end | |
236 | return torso | |
237 | end | |
238 | ||
239 | ---------------------------------------------------------------------------- | |
240 | ||
241 | local isAPlayer | |
242 | function checkIfNotPlayer(model) | |
243 | coroutine.resume(coroutine.create(function() | |
244 | if model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel then | |
245 | isAPlayer = true | |
246 | else | |
247 | isAPlayer = false | |
248 | end | |
249 | end)) | |
250 | return isAPlayer | |
251 | end | |
252 | ||
253 | ---------------------------------------------------------------------------- | |
254 | ||
255 | function computeDirection(vec) | |
256 | local lenSquared = vec.magnitude * vec.magnitude | |
257 | local invSqrt = 1 / math.sqrt(lenSquared) | |
258 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
259 | end | |
260 | ||
261 | ---------------------------------------------------------------------------- | |
262 | ||
263 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
264 | ||
265 | local wld = Instance.new("Weld", wp1) | |
266 | ||
267 | wld.Part0 = wp0 | |
268 | ||
269 | wld.Part1 = wp1 | |
270 | ||
271 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
272 | ||
273 | return wld | |
274 | ||
275 | end | |
276 | ||
277 | ---------------------------------------------------------------------------- | |
278 | ||
279 | function weld(model) | |
280 | local parts,last = {} | |
281 | local function scan(parent) | |
282 | for _,v in pairs(parent:GetChildren()) do | |
283 | if (v:IsA("BasePart")) then | |
284 | if (last) then | |
285 | local w = Instance.new("Weld") | |
286 | w.Name = ("%s_Weld"):format(v.Name) | |
287 | w.Part0,w.Part1 = last,v | |
288 | w.C0 = last.CFrame:inverse() | |
289 | w.C1 = v.CFrame:inverse() | |
290 | w.Parent = last | |
291 | end | |
292 | last = v | |
293 | table.insert(parts,v) | |
294 | end | |
295 | scan(v) | |
296 | end | |
297 | end | |
298 | scan(model) | |
299 | for _,v in pairs(parts) do | |
300 | v.Anchored = false | |
301 | v.Locked = true | |
302 | end | |
303 | end | |
304 | ||
305 | ---------------------------------------------------------------------------- | |
306 | ||
307 | function sound(id,position,vol,pitch,dist,start,finish) | |
308 | coroutine.resume(coroutine.create(function() | |
309 | ||
310 | local part = Instance.new("Part",DebrisModel) | |
311 | part.Anchored = true | |
312 | part.Position = position | |
313 | part.Size = Vector3.new(0,0,0) | |
314 | part.CanCollide = false | |
315 | part.Transparency = 1 | |
316 | ||
317 | soundasd = Instance.new("Sound",part) | |
318 | ||
319 | soundasd.SoundId = "rbxassetid://"..id | |
320 | ||
321 | if vol ~= nil then | |
322 | soundasd.Volume = vol | |
323 | end | |
324 | ||
325 | if pitch ~= nil then | |
326 | soundasd.PlaybackSpeed = pitch | |
327 | end | |
328 | ||
329 | if dist ~= nil then | |
330 | soundasd.MaxDistance = dist*5 | |
331 | soundasd.EmitterSize = dist/5 | |
332 | end | |
333 | ||
334 | delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end) | |
335 | ||
336 | soundasd:Play() | |
337 | ||
338 | end)) | |
339 | return soundasd | |
340 | end | |
341 | ||
342 | function createsound(id,parent) | |
343 | ||
344 | local soundz = Instance.new("Sound",parent) | |
345 | ||
346 | soundz.SoundId = "rbxassetid://"..id | |
347 | ||
348 | return soundz | |
349 | ||
350 | end | |
351 | ||
352 | function playsound(sond,vol,pitch,start) | |
353 | ||
354 | if vol ~= nil then | |
355 | sond.Volume = vol | |
356 | end | |
357 | ||
358 | if pitch ~= nil then | |
359 | sond.PlaybackSpeed = pitch | |
360 | end | |
361 | ||
362 | if start ~= nil then | |
363 | sond.TimePosition = start | |
364 | end | |
365 | ||
366 | sond:Play() | |
367 | ||
368 | end | |
369 | ||
370 | ---------------------------------------------------------------------------- | |
371 | eColors={"Really red","Really black"} | |
372 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) | |
373 | local magz = (Part0 - Part1).magnitude | |
374 | local curpos = Part0 | |
375 | local trz = {-Offset,Offset} | |
376 | for i=1,Times do | |
377 | local li = Instance.new("Part", DebrisModel) | |
378 | li.TopSurface =0 | |
379 | li.Material = Enum.Material.Neon | |
380 | li.BottomSurface = 0 | |
381 | li.Anchored = true | |
382 | li.Locked = true | |
383 | li.Transparency = Trans or 0.4 | |
384 | li.BrickColor = BrickColor.new(Color) | |
385 | li.formFactor = "Custom" | |
386 | li.CanCollide = false | |
387 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
388 | local lim = Instance.new("BlockMesh",li) | |
389 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
390 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
391 | if Times == i then | |
392 | local magz2 = (curpos - Part1).magnitude | |
393 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
394 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
395 | else | |
396 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
397 | end | |
398 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
399 | li.Name = "LIGHTNING" | |
400 | end | |
401 | end | |
402 | ||
403 | ---------------------------------------------------------------------------- | |
404 | ||
405 | local HBill = Instance.new("BillboardGui",hed) | |
406 | local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame") | |
407 | local HName = Instance.new("TextLabel") | |
408 | HBill.Size = UDim2.new(15,0,2.2,0) | |
409 | HBill.StudsOffset = Vector3.new(3.675,1.2,0) | |
410 | HBill.AlwaysOnTop = true | |
411 | HBill.Enabled = true | |
412 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
413 | HMain.BackgroundTransparency = 1 | |
414 | HMain.Size = UDim2.new(.5,0,.2,0) | |
415 | HName.Parent = HMain | |
416 | HName.BackgroundTransparency = 1 | |
417 | HName.BackgroundColor3 = Color3.new(255,255,255) | |
418 | HName.BorderColor3 = Color3.new(0,0,0) | |
419 | HName.BorderSizePixel = 2 | |
420 | HName.Size = UDim2.new(1,0,.75,0) | |
421 | HName.Font = "Code" | |
422 | HName.Text = [[(Amatsumika Starlight)]] | |
423 | HName.TextScaled = true | |
424 | HName.TextColor3 = Color3.new(0.5,0.5,0.5) | |
425 | HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1) | |
426 | HName.TextStrokeTransparency = 0 | |
427 | HName.TextYAlignment = "Bottom" | |
428 | ||
429 | local HBill = Instance.new("BillboardGui",hed) | |
430 | local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame") | |
431 | local HName = Instance.new("TextLabel") | |
432 | HBill.Size = UDim2.new(15,0,2.2,0) | |
433 | HBill.StudsOffset = Vector3.new(3.675,2,0) | |
434 | HBill.AlwaysOnTop = true | |
435 | HBill.Enabled = true | |
436 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
437 | HMain.BackgroundTransparency = 1 | |
438 | HMain.Size = UDim2.new(.5,0,.5,0) | |
439 | HName.Parent = HMain | |
440 | HName.BackgroundTransparency = 1 | |
441 | HName.BackgroundColor3 = Color3.new(255,255,255) | |
442 | HName.BorderColor3 = Color3.new(0,0,0) | |
443 | HName.BorderSizePixel = 2 | |
444 | HName.Size = UDim2.new(1,0,.75,0) | |
445 | - | HName.Text = [[「アマツミカ·スタライト」]] |
445 | + | |
446 | HName.Text = [[ IM 5MZAZATV ]] | |
447 | HName.TextScaled = true | |
448 | HName.TextColor3 = Color3.new(0,0,0) | |
449 | HName.TextStrokeColor3 = Color3.new(255,255,255) | |
450 | HName.TextStrokeTransparency = 0 | |
451 | HName.TextYAlignment = "Bottom" | |
452 | ||
453 | function bigboomrektxd() | |
454 | coroutine.resume(coroutine.create(function() | |
455 | local magnitude = nil | |
456 | local Position = nil | |
457 | if animid == 0 then | |
458 | Position = larm.Position | |
459 | else | |
460 | Position = rarm.Position | |
461 | end | |
462 | --sound(743499393,Position,10,math.random(6,8)/10) | |
463 | sound(440145223,Position,10,math.random(10,12)/10,50) | |
464 | ||
465 | local Part1 = Instance.new("Part") | |
466 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
467 | mesh2.MeshId = "rbxassetid://559831844" | |
468 | mesh2.Scale = Vector3.new(0,0,0.4) | |
469 | Part1.Material = Enum.Material.Neon | |
470 | Part1.CanCollide = false | |
471 | Part1.Color = Color3.fromHSV(0,0,main.v) | |
472 | Part1.Parent = DebrisModel | |
473 | Part1.Size = Vector3.new(0,0,0) | |
474 | Part1.Anchored = true | |
475 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
476 | Part1.Name = "EXPLOSION2" | |
477 | ||
478 | local Part0 = Instance.new("Part",DebrisModel) | |
479 | local PointLight2 = Instance.new("PointLight") | |
480 | Part0.Name = "Bullet" | |
481 | Part0.Material = Enum.Material.Neon | |
482 | Part0.Color = Color3.fromHSV(0,0,main.v) | |
483 | Part0.Anchored = false | |
484 | Part0.Size = Vector3.new(5, 5, 5) | |
485 | local mesh = Instance.new("SpecialMesh",Part0) | |
486 | mesh.MeshType = Enum.MeshType.Sphere | |
487 | local bforce = Instance.new("BodyForce",Part0) | |
488 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
489 | Part0.CanCollide = false | |
490 | PointLight2.Parent = Part0 | |
491 | PointLight2.Color = Part0.Color | |
492 | local Target = mouse.Hit.p | |
493 | local direction = Target - Position | |
494 | local direction = computeDirection(direction) | |
495 | local pos = Position + (direction * 2) | |
496 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
497 | Part0.Velocity = direction * 60 | |
498 | local asd = nil | |
499 | local loop = nil | |
500 | delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
501 | loop = rs:connect(function() | |
502 | local asdf = math.random(500,1000)/1000 | |
503 | local Part1 = Instance.new("Part") | |
504 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
505 | mesh2.MeshType = Enum.MeshType.Sphere | |
506 | Part1.Material = Enum.Material.Neon | |
507 | Part1.CanCollide = false | |
508 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
509 | Part1.Parent = DebrisModel | |
510 | Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf) | |
511 | Part1.Anchored = true | |
512 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750)) | |
513 | Part1.Name = "SMOKE" | |
514 | end) | |
515 | asd = Part0.Touched:connect(function(ht) | |
516 | local hit=ht.Parent | |
517 | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then | |
518 | asd:disconnect() | |
519 | loop:disconnect() | |
520 | Part0:Destroy() | |
521 | ||
522 | sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200) | |
523 | for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do | |
524 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then | |
525 | v:Destroy() | |
526 | else | |
527 | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10)) | |
528 | end | |
529 | local Position = Part0.Position | |
530 | local Target = v.Position | |
531 | local direction = Target - Position | |
532 | local direction = computeDirection(direction) | |
533 | local bv = Instance.new("BodyVelocity",v) | |
534 | bv.Velocity = direction * (50 - ((Position - Target).magnitude/2)) | |
535 | debris:AddItem(bv,1) | |
536 | end | |
537 | for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end | |
538 | for z=1,math.random(2,3) do | |
539 | local asdf = math.random(-5,5)*10-(i/20)*8 | |
540 | local Part1 = Instance.new("Part") | |
541 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
542 | mesh2.MeshType = Enum.MeshType.Sphere | |
543 | mesh2.Scale = Vector3.new(0,0,0) | |
544 | Part1.Material = Enum.Material.Neon | |
545 | Part1.CanCollide = false | |
546 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
547 | Part1.Parent = DebrisModel | |
548 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
549 | Part1.Anchored = true | |
550 | local a = i*0.5 | |
551 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a)) | |
552 | Part1.Name = "EXPLOSION" | |
553 | end | |
554 | end | |
555 | ||
556 | end | |
557 | end) | |
558 | end)) | |
559 | end | |
560 | ||
561 | holdclick=false | |
562 | ||
563 | mouse.Button1Down:connect(function() | |
564 | if debounce == false then | |
565 | if animid == 0 then | |
566 | animid = 1 | |
567 | else | |
568 | animid = 0 | |
569 | end | |
570 | debounce = true | |
571 | holdclick = true | |
572 | aiming_anim = true | |
573 | wait(0.2) | |
574 | repeat | |
575 | rs:wait() | |
576 | timer = 150 | |
577 | until holdclick == false | |
578 | bigboomrektxd() | |
579 | ||
580 | local Position = mouse.Hit.p | |
581 | local Target = root.Position | |
582 | local direction = Target - Position | |
583 | local direction = computeDirection(direction) | |
584 | root.Velocity = direction * 150 | |
585 | ||
586 | aiming_anim = false | |
587 | delay(0.3,function() debounce = false end) | |
588 | end | |
589 | end) | |
590 | ||
591 | mouse.Button1Up:connect(function() | |
592 | holdclick=false | |
593 | end) | |
594 | ||
595 | function dashasdf() | |
596 | debounce = true | |
597 | ||
598 | canjump = false | |
599 | attack = true | |
600 | ||
601 | for i,v in pairs(char:GetChildren()) do | |
602 | if v ~= root then | |
603 | if v:IsA("Part") then | |
604 | v.Transparency = 1 | |
605 | elseif v:IsA("Accoutrement") then | |
606 | v:FindFirstChildOfClass("Part").Transparency = 1 | |
607 | end | |
608 | end | |
609 | end | |
610 | ||
611 | local tempattachment = Instance.new("Attachment",root) | |
612 | tempattachment.Position = Vector3.new(0,0,-4) | |
613 | ||
614 | for i=1,20 do rs:wait() | |
615 | root.Velocity = Vector3.new(0,0,0) | |
616 | root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z)) | |
617 | local asdf = math.random(500,1000)/100 | |
618 | local Part1 = Instance.new("Part") | |
619 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
620 | mesh2.MeshType = Enum.MeshType.Sphere | |
621 | Part1.Material = Enum.Material.Neon | |
622 | Part1.CanCollide = false | |
623 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
624 | Part1.Parent = DebrisModel | |
625 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
626 | Part1.Anchored = true | |
627 | Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500)) | |
628 | Part1.Name = "SMOKE" | |
629 | end | |
630 | ||
631 | tempattachment:Destroy() | |
632 | ||
633 | for i,v in pairs(char:GetChildren()) do | |
634 | if v ~= root then | |
635 | if v:IsA("Part") then | |
636 | v.Transparency = 0 | |
637 | elseif v:IsA("Accoutrement") then | |
638 | v:FindFirstChildOfClass("Part").Transparency = 0 | |
639 | end | |
640 | end | |
641 | end | |
642 | ||
643 | canjump = true | |
644 | attack = false | |
645 | ||
646 | delay(0.1,function() debounce = false end) | |
647 | end | |
648 | ||
649 | function laz0r() | |
650 | ||
651 | local Position = nil | |
652 | if animid == 0 then | |
653 | Position = larm.Position | |
654 | else | |
655 | Position = rarm.Position | |
656 | end | |
657 | ||
658 | local Part1 = Instance.new("Part") | |
659 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
660 | mesh2.MeshId = "rbxassetid://559831844" | |
661 | mesh2.Scale = Vector3.new(0,0,0.4) | |
662 | Part1.Material = Enum.Material.Neon | |
663 | Part1.CanCollide = false | |
664 | Part1.Color = Color3.fromHSV(0,0,main.v) | |
665 | Part1.Parent = DebrisModel | |
666 | Part1.Size = Vector3.new(0,0,0) | |
667 | Part1.Anchored = true | |
668 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
669 | Part1.Name = "EXPLOSION3" | |
670 | ||
671 | local Part0 = Instance.new("Part",DebrisModel) | |
672 | Part0.Name = "Bullet" | |
673 | Part0.Material = Enum.Material.Neon | |
674 | Part0.Color = Color3.fromHSV(0,0,main.v) | |
675 | Part0.Anchored = true | |
676 | local mesh = Instance.new("SpecialMesh",Part0) | |
677 | mesh.MeshType = Enum.MeshType.Sphere | |
678 | Part0.CanCollide = false | |
679 | local Target = mouse.Hit.p | |
680 | local direction = Target - Position | |
681 | local direction = computeDirection(direction) | |
682 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
683 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
684 | Part0.Size = Vector3.new(5,1,5) | |
685 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1) | |
686 | local pos = Position + (direction * (mesh.Scale.Y/2)) | |
687 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
688 | ||
689 | clashpart = Instance.new("Part",DebrisModel) | |
690 | clashpart.Size = Vector3.new(50,50,50) | |
691 | clashpart.CanCollide = false | |
692 | clashpart.Anchored = true | |
693 | clashpart.Transparency = 1 | |
694 | clashpart.Color = main_color | |
695 | clashpart.Name = "StarLightClash" | |
696 | clashpart.CFrame = CFrame.new(endPoint, root.Position) | |
697 | ||
698 | sound(1177475476,Position,10,math.random(5,6)/10,300) | |
699 | ||
700 | local z = 10 | |
701 | for i = 1,100 do rs:wait() | |
702 | if animid == 0 then | |
703 | Position = larm.Position | |
704 | else | |
705 | Position = rarm.Position | |
706 | end | |
707 | local Target = mouse.Hit.p | |
708 | local direction = Target - Position | |
709 | local direction = computeDirection(direction) | |
710 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
711 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
712 | Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5)) | |
713 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1) | |
714 | mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0) | |
715 | local pos = Position + (direction * (mesh.Scale.Y/2)) | |
716 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
717 | clashpart.CFrame = CFrame.new(endPoint, root.Position) | |
718 | ||
719 | local Position = mouse.Hit.p | |
720 | local Target = root.Position | |
721 | local direction = Target - Position | |
722 | local direction = computeDirection(direction) | |
723 | root.Velocity = direction * 5 | |
724 | ||
725 | if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end | |
726 | ||
727 | Part1 = Part0:Clone() | |
728 | Part1.Parent = DebrisModel | |
729 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
730 | Part1.Name = "SMOKE2" | |
731 | ||
732 | if part ~= nil then | |
733 | if part.Name == "StarLightClash" then | |
734 | local asdf = math.random(0,5)*20 | |
735 | local Part1 = Instance.new("Part") | |
736 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
737 | mesh2.MeshType = Enum.MeshType.Sphere | |
738 | mesh2.Scale = Vector3.new(0,0,0) | |
739 | Part1.Material = Enum.Material.Neon | |
740 | Part1.CanCollide = false | |
741 | Part1.Color = Color3.fromHSV(Color3.toHSV(Color3.fromRGB((main.r+(255*part.Color.r))/2,(main.g+(255*part.Color.g))/2,(main.b+(255*part.Color.b))/2)),math.random(5000,10000)/10000,main.v) | |
742 | Part1.Parent = DebrisModel | |
743 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
744 | Part1.Anchored = true | |
745 | local a = 1.5 | |
746 | Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) | |
747 | Part1.Name = "EXPLOSION" | |
748 | else | |
749 | local asdf = math.random(0,5)*10 | |
750 | local Part1 = Instance.new("Part") | |
751 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
752 | mesh2.MeshType = Enum.MeshType.Sphere | |
753 | mesh2.Scale = Vector3.new(0,0,0) | |
754 | Part1.Material = Enum.Material.Neon | |
755 | Part1.CanCollide = false | |
756 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
757 | Part1.Parent = DebrisModel | |
758 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
759 | Part1.Anchored = true | |
760 | local a = 1.5 | |
761 | Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) | |
762 | Part1.Name = "EXPLOSION" | |
763 | end | |
764 | end | |
765 | ||
766 | for i,v in pairs(findAllNearestTorso(endPoint,50)) do | |
767 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then | |
768 | v:Destroy() | |
769 | else | |
770 | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180)) | |
771 | end | |
772 | local Position = mouse.Hit.p | |
773 | local Target = v.Position | |
774 | local direction = Target - Position | |
775 | local direction = computeDirection(direction) | |
776 | local bv = Instance.new("BodyVelocity",v) | |
777 | bv.Velocity = direction * (10 - ((Position - Target).magnitude/2)) | |
778 | debris:AddItem(bv,1) | |
779 | end | |
780 | ||
781 | end | |
782 | clashpart:Destroy() | |
783 | Part0:Destroy() | |
784 | wait(0.3) | |
785 | aiming_anim = false | |
786 | delay(0.3,function() debounce = false end) | |
787 | end | |
788 | ||
789 | function nukewelpo() | |
790 | coroutine.resume(coroutine.create(function() | |
791 | local magnitude = nil | |
792 | local Position = nil | |
793 | if animid == 0 then | |
794 | Position = larm.Position | |
795 | else | |
796 | Position = rarm.Position | |
797 | end | |
798 | --sound(743499393,Position,10,math.random(6,8)/10) | |
799 | sound(440145223,Position,10,math.random(4,5)/10,100) | |
800 | ||
801 | local Part1 = Instance.new("Part") | |
802 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
803 | mesh2.MeshId = "rbxassetid://559831844" | |
804 | mesh2.Scale = Vector3.new(0,0,0.4) | |
805 | Part1.Material = Enum.Material.Neon | |
806 | Part1.CanCollide = false | |
807 | Part1.Color = Color3.fromHSV(0,0,main.v) | |
808 | Part1.Parent = DebrisModel | |
809 | Part1.Size = Vector3.new(0,0,0) | |
810 | Part1.Anchored = true | |
811 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
812 | Part1.Name = "EXPLOSION3" | |
813 | ||
814 | local Part0 = Instance.new("Part",DebrisModel) | |
815 | local PointLight2 = Instance.new("PointLight") | |
816 | Part0.Name = "Bullet" | |
817 | Part0.Material = Enum.Material.Neon | |
818 | Part0.Color = Color3.fromHSV(0,0,main.v) | |
819 | Part0.Anchored = false | |
820 | Part0.Size = Vector3.new(5, 5, 5) | |
821 | local mesh = Instance.new("SpecialMesh",Part0) | |
822 | mesh.MeshType = Enum.MeshType.Sphere | |
823 | mesh.Scale = Vector3.new(3,3,3) | |
824 | local bforce = Instance.new("BodyForce",Part0) | |
825 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
826 | Part0.CanCollide = false | |
827 | PointLight2.Parent = Part0 | |
828 | PointLight2.Color = Part0.Color | |
829 | local Target = mouse.Hit.p | |
830 | local direction = Target - Position | |
831 | local direction = computeDirection(direction) | |
832 | local pos = Position + (direction * 2) | |
833 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
834 | Part0.Velocity = direction * 150 | |
835 | local asd = nil | |
836 | local loop = nil | |
837 | delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
838 | loop = rs:connect(function() | |
839 | local asdf = math.random(500,1000)/1000 | |
840 | local Part1 = Instance.new("Part") | |
841 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
842 | mesh2.MeshType = Enum.MeshType.Sphere | |
843 | Part1.Material = Enum.Material.Neon | |
844 | Part1.CanCollide = false | |
845 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
846 | Part1.Parent = DebrisModel | |
847 | Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf) | |
848 | Part1.Anchored = true | |
849 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750)) | |
850 | Part1.Name = "SMOKE" | |
851 | end) | |
852 | asd = Part0.Touched:connect(function(ht) | |
853 | local hit=ht.Parent | |
854 | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then | |
855 | asd:disconnect() | |
856 | loop:disconnect() | |
857 | Part0:Destroy() | |
858 | ||
859 | sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500) | |
860 | for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do | |
861 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then | |
862 | v:Destroy() | |
863 | else | |
864 | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10)) | |
865 | end | |
866 | local Position = Part0.Position | |
867 | local Target = v.Position | |
868 | local direction = Target - Position | |
869 | local direction = computeDirection(direction) | |
870 | local bv = Instance.new("BodyVelocity",v) | |
871 | bv.Velocity = direction * (120 - ((Position - Target).magnitude/2)) | |
872 | debris:AddItem(bv,1) | |
873 | end | |
874 | for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end | |
875 | for z=1,math.random(2,3) do | |
876 | local asdf = math.random(-5,5)*10-(i/20)*12 | |
877 | local Part1 = Instance.new("Part") | |
878 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
879 | mesh2.MeshType = Enum.MeshType.Sphere | |
880 | mesh2.Scale = Vector3.new(0,0,0) | |
881 | Part1.Material = Enum.Material.Neon | |
882 | Part1.CanCollide = false | |
883 | Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v) | |
884 | Part1.Parent = DebrisModel | |
885 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
886 | Part1.Anchored = true | |
887 | local a = i*5 | |
888 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a)) | |
889 | Part1.Name = "EXPLOSION4" | |
890 | end | |
891 | end | |
892 | ||
893 | end | |
894 | end) | |
895 | end)) | |
896 | end | |
897 | ||
898 | holdq = false | |
899 | holdr = false | |
900 | cooldownult = false | |
901 | ||
902 | mouse.KeyDown:connect(function(key) | |
903 | if debounce == false then | |
904 | if key == "e" then | |
905 | dashasdf() | |
906 | elseif key == "r" and cooldownult == false then | |
907 | cooldownult = true | |
908 | if animid == 0 then | |
909 | animid = 1 | |
910 | else | |
911 | animid = 0 | |
912 | end | |
913 | debounce = true | |
914 | holdr = true | |
915 | aiming_anim = true | |
916 | wait(0.2) | |
917 | repeat | |
918 | rs:wait() | |
919 | timer = 150 | |
920 | until holdr == false | |
921 | nukewelpo() | |
922 | ||
923 | local Position = mouse.Hit.p | |
924 | local Target = root.Position | |
925 | local direction = Target - Position | |
926 | local direction = computeDirection(direction) | |
927 | root.Velocity = direction * 300 | |
928 | ||
929 | aiming_anim = false | |
930 | delay(5,function() cooldownult = false end) | |
931 | delay(1,function() debounce = false end) | |
932 | ||
933 | elseif key == "q" then | |
934 | debounce = true | |
935 | if animid == 0 then | |
936 | animid = 1 | |
937 | else | |
938 | animid = 0 | |
939 | end | |
940 | holdq = true | |
941 | attack = true | |
942 | aiming_anim = true | |
943 | repeat rs:wait() timer = 150 until holdq == false | |
944 | laz0r() | |
945 | attack = false | |
946 | end | |
947 | end | |
948 | end) | |
949 | ||
950 | mouse.KeyUp:connect(function(key) | |
951 | if key == "q" then | |
952 | holdq = false | |
953 | elseif key == "r" then | |
954 | holdr = false | |
955 | end | |
956 | end) | |
957 | ||
958 | ---------------------------------------------------------------------------- | |
959 | music(themeid,themepitch) | |
960 | velocityYFall=0 | |
961 | velocityYFall2=0 | |
962 | velocityYFall3=0 | |
963 | velocityYFall4=0 | |
964 | neckrotY=0 | |
965 | neckrotY2=0 | |
966 | torsorotY=0 | |
967 | torsorotY2=0 | |
968 | torsoY=0 | |
969 | torsoY2=0 | |
970 | sine = 0 | |
971 | newWeld(torso, larm, -1.5, 0.5, 0) | |
972 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
973 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
974 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
975 | newWeld(torso, hed, 0, 1.5, 0) | |
976 | newWeld(torso, lleg, -0.5, -1, 0) | |
977 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
978 | newWeld(torso, rleg, 0.5, -1, 0) | |
979 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
980 | newWeld(root, torso, 0, -1, 0) | |
981 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
982 | ||
983 | rs:connect(function() | |
984 | ||
985 | bg.MaxTorque = Vector3.new(0,0,0) | |
986 | ||
987 | for i,v in pairs(DebrisModel:GetChildren()) do | |
988 | ||
989 | ||
990 | if v.Name == "EXPLOSION" then | |
991 | local change = 0.04-(v.Transparency*0.02) | |
992 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
993 | vm.Scale = vm.Scale + Vector3.new(change,change,change) | |
994 | v.Transparency = v.Transparency + 0.02 | |
995 | if v.Transparency >= 1 then | |
996 | v:Destroy() | |
997 | end | |
998 | ||
999 | elseif v.Name == "EXPLOSION2" then | |
1000 | local change = 0.04-(v.Transparency*0.04) | |
1001 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
1002 | vm.Scale = vm.Scale + Vector3.new(change,change,0) | |
1003 | v.Transparency = v.Transparency + 0.025 | |
1004 | if v.Transparency >= 1 then | |
1005 | v:Destroy() | |
1006 | end | |
1007 | ||
1008 | elseif v.Name == "EXPLOSION3" then | |
1009 | local change = 0.5-(v.Transparency*0.5) | |
1010 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
1011 | vm.Scale = vm.Scale + Vector3.new(change,change,0) | |
1012 | v.Transparency = v.Transparency + 0.1 | |
1013 | if v.Transparency >= 1 then | |
1014 | v:Destroy() | |
1015 | end | |
1016 | ||
1017 | elseif v.Name == "EXPLOSION4" then | |
1018 | local change = 0.15-(v.Transparency*0.125) | |
1019 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
1020 | vm.Scale = vm.Scale + Vector3.new(change,change,change) | |
1021 | v.Transparency = v.Transparency + 0.01 | |
1022 | if v.Transparency >= 1 then | |
1023 | v:Destroy() | |
1024 | end | |
1025 | ||
1026 | elseif v.Name == "SMOKE" then | |
1027 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
1028 | vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075) | |
1029 | if vm.Scale.X <= 0 then | |
1030 | v:Destroy() | |
1031 | end | |
1032 | ||
1033 | elseif v.Name == "SMOKE2" then | |
1034 | local change = 2-(v.Transparency*2) | |
1035 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
1036 | local Position = nil | |
1037 | if animid == 0 then | |
1038 | Position = larm.Position | |
1039 | else | |
1040 | Position = rarm.Position | |
1041 | end | |
1042 | local Target = mouse.Hit.p | |
1043 | local direction = Target - Position | |
1044 | local direction = computeDirection(direction) | |
1045 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
1046 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
1047 | vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change) | |
1048 | local pos = Position + (direction * (vm.Scale.Y/2)) | |
1049 | v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
1050 | vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0) | |
1051 | v.Transparency = v.Transparency + 0.1 | |
1052 | if v.Transparency >= 1 then | |
1053 | v:Destroy() | |
1054 | end | |
1055 | ||
1056 | ||
1057 | elseif v.Name == "LIGHTNING" then | |
1058 | local vm = v:FindFirstChildOfClass("BlockMesh") | |
1059 | vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0) | |
1060 | if vm.Scale.X <= 0 then | |
1061 | v:Destroy() | |
1062 | end | |
1063 | ||
1064 | end | |
1065 | end | |
1066 | ||
1067 | if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then | |
1068 | velocityYFall = root.Velocity.Y/1.5 | |
1069 | end | |
1070 | if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then | |
1071 | velocityYFall2 = root.Velocity.Y/180 | |
1072 | end | |
1073 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then | |
1074 | velocityYFall3 = root.Velocity.Y/1.5 | |
1075 | end | |
1076 | if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then | |
1077 | velocityYFall4 = root.Velocity.Y/1.5 | |
1078 | end | |
1079 | if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then | |
1080 | neckrotY = root.RotVelocity.Y/6 | |
1081 | end | |
1082 | if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then | |
1083 | neckrotY2 = root.RotVelocity.Y/8 | |
1084 | end | |
1085 | ||
1086 | if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then | |
1087 | torsorotY = root.RotVelocity.Y/6 | |
1088 | end | |
1089 | if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then | |
1090 | torsorotY2 = root.RotVelocity.Y/8 | |
1091 | end | |
1092 | ||
1093 | ||
1094 | torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20 | |
1095 | torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36 | |
1096 | ||
1097 | if attack == true then | |
1098 | hum.WalkSpeed = 1 | |
1099 | else | |
1100 | hum.WalkSpeed = 8 | |
1101 | end | |
1102 | ||
1103 | if canjump == true then | |
1104 | hum.JumpPower = 50 | |
1105 | else | |
1106 | hum.JumpPower = 0 | |
1107 | end | |
1108 | ||
1109 | local jumped = false | |
1110 | local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0)) | |
1111 | local part1, endPoint = workspace:FindPartOnRay(ray1, char) | |
1112 | local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0)) | |
1113 | local part2, endPoint = workspace:FindPartOnRay(ray2, char) | |
1114 | local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0)) | |
1115 | local part3, endPoint = workspace:FindPartOnRay(ray3, char) | |
1116 | local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0)) | |
1117 | local part4, endPoint = workspace:FindPartOnRay(ray4, char) | |
1118 | ||
1119 | if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end | |
1120 | ||
1121 | local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0)) | |
1122 | local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char) | |
1123 | ||
1124 | local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0)) | |
1125 | local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char) | |
1126 | ||
1127 | if no_anim == false then | |
1128 | if hum.Health > 0 then | |
1129 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then | |
1130 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) | |
1131 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1) | |
1132 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/30)*math.cos(sine/4)/2,(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1133 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/30)*math.cos(sine/4)/2,-(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1134 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+(movement/20)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-4*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1) | |
1135 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.85-(movement/10)*math.cos(sine/4)/2,-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1136 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.85+(movement/10)*math.cos(sine/4)/2,-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
1137 | elseif jumped == true then | |
1138 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) | |
1139 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1) | |
1140 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-50-1*math.cos(sine/8))), 0.2) | |
1141 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(50+1*math.cos(sine/8))), 0.2) | |
1142 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) | |
1143 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(-35-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2) | |
1144 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0+0.1*math.cos(sine/16),-0.8)*CFrame.Angles(math.rad(-25+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2) | |
1145 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then | |
1146 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) | |
1147 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1) | |
1148 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-5-1*math.cos(sine/8))), 0.2) | |
1149 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(5+1*math.cos(sine/8))), 0.2) | |
1150 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) | |
1151 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2) | |
1152 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2) | |
1153 | end | |
1154 | for i=1,5 do | |
1155 | if aiming_anim == true then | |
1156 | bg.MaxTorque = Vector3.new(9e9,9e9,9e9) | |
1157 | if jumped == false then | |
1158 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
1159 | else | |
1160 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
1161 | end | |
1162 | if animid == 0 then | |
1163 | hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4) | |
1164 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(-80), math.rad(0-1*math.cos(sine/32))),0.2) | |
1165 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4) | |
1166 | else | |
1167 | hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4) | |
1168 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(80), math.rad(0-1*math.cos(sine/32))),0.2) | |
1169 | rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(10-1*math.cos(sine/16)),math.rad(90+1*math.cos(sine/8))),0.4) | |
1170 | end | |
1171 | else | |
1172 | if timer <= 0 then | |
1173 | animid = math.random(0,1) | |
1174 | else | |
1175 | timer = timer - 1 | |
1176 | end | |
1177 | end | |
1178 | end | |
1179 | end | |
1180 | end | |
1181 | main_color = Color3.fromRGB(main.r,main.g,main.b) | |
1182 | pr.Value = main.r | |
1183 | pg.Value = main.g | |
1184 | pb.Value = main.b | |
1185 | pv.Value = main.v | |
1186 | idth.Value = themeid | |
1187 | pith.Value = themepitch | |
1188 | HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2) | |
1189 | HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v) | |
1190 | sine = sine + change | |
1191 | if hum.Health <= 0 then | |
1192 | debounce = true | |
1193 | end | |
1194 | end) |