SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer endwait(2) | |
5 | ||
6 | - | local p = game:GetService("Players").LocalPlayer |
6 | + | local p = owner |
7 | - | local plr = game:GetService("Players").LocalPlayer |
7 | + | local plr = owner |
8 | - | local player = game:GetService("Players").LocalPlayer |
8 | + | local player = owner |
9 | local char = p.Character | |
10 | local mouse = p:GetMouse() | |
11 | local larm = char:WaitForChild("Left Arm") | |
12 | local rarm = char:WaitForChild("Right Arm") | |
13 | local lleg = char:WaitForChild("Left Leg") | |
14 | local rleg = char:WaitForChild("Right Leg") | |
15 | local hed = char:WaitForChild("Head") | |
16 | local torso = char:WaitForChild("Torso") | |
17 | local root = char:WaitForChild("HumanoidRootPart") | |
18 | local hum = char:FindFirstChildOfClass("Humanoid") | |
19 | local debris = game:GetService("Debris") | |
20 | local run = game:GetService("RunService") | |
21 | local rs = run.RenderStepped | |
22 | local cam = workspace.CurrentCamera | |
23 | local movement = 4 | |
24 | local change = 0.4 | |
25 | local DebrisModel = Instance.new("Model",char) | |
26 | local stealth = false | |
27 | local debounce = false | |
28 | ------------------------------------------------------- | |
29 | local Player_Size = 4 | |
30 | if Player_Size ~= 4 then | |
31 | root.Size = root.Size * Player_Size | |
32 | torso.Size = torso.Size * Player_Size | |
33 | hed.Size = hed.Size * Player_Size | |
34 | rarm.Size = rarm.Size * Player_Size | |
35 | larm.Size = larm.Size * Player_Size | |
36 | rleg.Size = rleg.Size * Player_Size | |
37 | lleg.Size = lleg.Size * Player_Size | |
38 | end | |
39 | ---------------------------------------------------------------------------------- | |
40 | it = Instance.new | |
41 | hum.MaxHealth = 500000000000000000000000000000000000000000000000 | |
42 | hum.Health = hum.MaxHealth | |
43 | themeid = 0 | |
44 | themepitch = 1 | |
45 | TorsoColor = torso.BrickColor | |
46 | RightLeg = CFrame.new(0.5,-1,0) | |
47 | LeftLeg = CFrame.new(-0.5,-1,0) | |
48 | RunService = game:service'RunService' | |
49 | lefth = (torso.CFrame*LeftLeg) | |
50 | righth = (torso.CFrame*RightLeg) | |
51 | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) | |
52 | local Lighty = game:GetService"Lighting" | |
53 | EffectModel = Instance.new("Model", char) | |
54 | Effects = { | |
55 | Block = { | |
56 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
57 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
58 | prt.Anchored = true | |
59 | prt.CFrame = cframe | |
60 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
61 | game:GetService("Debris"):AddItem(prt, 10) | |
62 | if Type == 1 or Type == nil then | |
63 | table.insert(Effects, { | |
64 | prt, | |
65 | "Block1", | |
66 | delay, | |
67 | x3, | |
68 | y3, | |
69 | z3, | |
70 | msh | |
71 | }) | |
72 | elseif Type == 2 then | |
73 | table.insert(Effects, { | |
74 | prt, | |
75 | "Block2", | |
76 | delay, | |
77 | x3, | |
78 | y3, | |
79 | z3, | |
80 | msh | |
81 | }) | |
82 | else | |
83 | table.insert(Effects, { | |
84 | prt, | |
85 | "Block3", | |
86 | delay, | |
87 | x3, | |
88 | y3, | |
89 | z3, | |
90 | msh | |
91 | }) | |
92 | end | |
93 | end | |
94 | }, | |
95 | Sphere = { | |
96 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
97 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
98 | prt.Anchored = true | |
99 | prt.CFrame = cframe | |
100 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
101 | game:GetService("Debris"):AddItem(prt, 10) | |
102 | table.insert(Effects, { | |
103 | prt, | |
104 | "Cylinder", | |
105 | delay, | |
106 | x3, | |
107 | y3, | |
108 | z3, | |
109 | msh | |
110 | }) | |
111 | end | |
112 | }, | |
113 | Cylinder = { | |
114 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
115 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
116 | prt.Anchored = true | |
117 | prt.CFrame = cframe | |
118 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
119 | game:GetService("Debris"):AddItem(prt, 10) | |
120 | table.insert(Effects, { | |
121 | prt, | |
122 | "Cylinder", | |
123 | delay, | |
124 | x3, | |
125 | y3, | |
126 | z3, | |
127 | msh | |
128 | }) | |
129 | end | |
130 | }, | |
131 | Wave = { | |
132 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
133 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
134 | prt.Anchored = true | |
135 | prt.CFrame = cframe | |
136 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
137 | game:GetService("Debris"):AddItem(prt, 10) | |
138 | table.insert(Effects, { | |
139 | prt, | |
140 | "Cylinder", | |
141 | delay, | |
142 | x3 / 60, | |
143 | y3 / 60, | |
144 | z3 / 60, | |
145 | msh | |
146 | }) | |
147 | end | |
148 | }, | |
149 | Ring = { | |
150 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
151 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
152 | prt.Anchored = true | |
153 | prt.CFrame = cframe | |
154 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
155 | game:GetService("Debris"):AddItem(prt, 10) | |
156 | table.insert(Effects, { | |
157 | prt, | |
158 | "Cylinder", | |
159 | delay, | |
160 | x3, | |
161 | y3, | |
162 | z3, | |
163 | msh | |
164 | }) | |
165 | end | |
166 | }, | |
167 | Break = { | |
168 | Create = function(brickcolor, cframe, x1, y1, z1) | |
169 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
170 | prt.Anchored = true | |
171 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
172 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
173 | local num = math.random(10, 50) / 1000 | |
174 | game:GetService("Debris"):AddItem(prt, 10) | |
175 | table.insert(Effects, { | |
176 | prt, | |
177 | "Shatter", | |
178 | num, | |
179 | prt.CFrame, | |
180 | math.random() - math.random(), | |
181 | 0, | |
182 | math.random(50, 100) / 100 | |
183 | }) | |
184 | end | |
185 | }, | |
186 | Spiral = { | |
187 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
188 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
189 | prt.Anchored = true | |
190 | prt.CFrame = cframe | |
191 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
192 | game:GetService("Debris"):AddItem(prt, 10) | |
193 | table.insert(Effects, { | |
194 | prt, | |
195 | "Cylinder", | |
196 | delay, | |
197 | x3, | |
198 | y3, | |
199 | z3, | |
200 | msh | |
201 | }) | |
202 | end | |
203 | }, | |
204 | Push = { | |
205 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
206 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
207 | prt.Anchored = true | |
208 | prt.CFrame = cframe | |
209 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
210 | game:GetService("Debris"):AddItem(prt, 10) | |
211 | table.insert(Effects, { | |
212 | prt, | |
213 | "Cylinder", | |
214 | delay, | |
215 | x3, | |
216 | y3, | |
217 | z3, | |
218 | msh | |
219 | }) | |
220 | end | |
221 | } | |
222 | } | |
223 | local NeckS = Instance.new("Part",char) | |
224 | NeckS.Size = Vector3.new(1.2,1,1.2) | |
225 | NeckS.Material = "SmoothPlastic" | |
226 | NeckS.BrickColor = BrickColor.new("Bright yellow") | |
227 | NeckS.CanCollide = false | |
228 | local Neck3 = Instance.new("Weld",NeckS) | |
229 | Neck3.Part0 = larm | |
230 | Neck3.Part1 = NeckS | |
231 | Neck3.C0 = CFrame.new(0,-0.62,0)*CFrame.Angles(math.rad(0),math.rad(-180),math.rad(0)) | |
232 | local Black = Instance.new("Part",NeckS)--First Stone, Yellow | |
233 | Black.Size = Vector3.new(0.3,0.3,0.3) | |
234 | Black.Material = "Neon" | |
235 | Black.BrickColor = BrickColor.new("New Yeller") | |
236 | Black.CanCollide = false | |
237 | local BlackM = Instance.new("SpecialMesh",Black) | |
238 | BlackM.MeshType = 3 | |
239 | local Black1 = Instance.new("Weld",Black) | |
240 | Black1.Part0 = NeckS | |
241 | Black1.Part1 = Black | |
242 | Black1.C0 = CFrame.new(0.54,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
243 | local Stone2 = Instance.new("Part",NeckS)--First Circle | |
244 | Stone2.Size = Vector3.new(0.2,0.2,0.2) | |
245 | Stone2.Material = "Neon" | |
246 | Stone2.BrickColor = BrickColor.new("Magenta") | |
247 | Stone2.CanCollide = false | |
248 | local Stone22 = Instance.new("SpecialMesh",Stone2) | |
249 | Stone22.MeshType = 3 | |
250 | local Stone222 = Instance.new("Weld",Stone2) | |
251 | Stone222.Part0 = NeckS | |
252 | Stone222.Part1 = Stone2 | |
253 | Stone222.C0 = CFrame.new(0.23,-0.47,0.4)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
254 | local Stone3 = Instance.new("Part",NeckS)--First Circle | |
255 | Stone3.Size = Vector3.new(0.2,0.2,0.2) | |
256 | Stone3.Material = "Neon" | |
257 | Stone3.BrickColor = BrickColor.new("Lapis") | |
258 | Stone3.CanCollide = false | |
259 | local Stone33 = Instance.new("SpecialMesh",Stone3) | |
260 | Stone33.MeshType = 3 | |
261 | local Stone333 = Instance.new("Weld",Stone3) | |
262 | Stone333.Part0 = NeckS | |
263 | Stone333.Part1 = Stone3 | |
264 | Stone333.C0 = CFrame.new(0.23,-0.47,0.08)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
265 | local Stone4 = Instance.new("Part",NeckS)--First Circle | |
266 | Stone4.Size = Vector3.new(0.2,0.2,0.2) | |
267 | Stone4.Material = "Neon" | |
268 | Stone4.BrickColor = BrickColor.new("Really red") | |
269 | Stone4.CanCollide = false | |
270 | local Stone44 = Instance.new("SpecialMesh",Stone4) | |
271 | Stone44.MeshType = 3 | |
272 | local Stone444 = Instance.new("Weld",Stone4) | |
273 | Stone444.Part0 = NeckS | |
274 | Stone444.Part1 = Stone4 | |
275 | Stone444.C0 = CFrame.new(0.23,-0.47,-0.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
276 | local Stone5 = Instance.new("Part",NeckS)--First Circle | |
277 | Stone5.Size = Vector3.new(0.2,0.2,0.2) | |
278 | Stone5.Material = "Neon" | |
279 | Stone5.BrickColor = BrickColor.new("CGA brown") | |
280 | Stone5.CanCollide = false | |
281 | local Stone55 = Instance.new("SpecialMesh",Stone5) | |
282 | Stone55.MeshType = 3 | |
283 | local Stone555 = Instance.new("Weld",Stone5) | |
284 | Stone555.Part0 = NeckS | |
285 | Stone555.Part1 = Stone5 | |
286 | Stone555.C0 = CFrame.new(0.23,-0.47,-0.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
287 | ||
288 | local Stone6 = Instance.new("Part",NeckS)--First Circle | |
289 | Stone6.Size = Vector3.new(0.2,0.2,0.2) | |
290 | Stone6.Material = "Neon" | |
291 | Stone6.BrickColor = BrickColor.new("Lime green") | |
292 | Stone6.CanCollide = false | |
293 | local Stone66 = Instance.new("SpecialMesh",Stone6) | |
294 | Stone66.MeshType = 3 | |
295 | local Stone666 = Instance.new("Weld",Stone6) | |
296 | Stone666.Part0 = NeckS | |
297 | Stone666.Part1 = Stone6 | |
298 | Stone666.C0 = CFrame.new(0,-0.3,0.6)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
299 | ||
300 | local Grab = Instance.new("Part",hed) | |
301 | Grab.Size = Vector3.new(4.9,5,4.9) | |
302 | Grab.CanCollide = false | |
303 | Grab.BrickColor = BrickColor.new("Deep orange") | |
304 | Grab.Transparency = 1 | |
305 | local Grabo = Instance.new("Weld",Grab) | |
306 | Grabo.Part0 = hed | |
307 | Grabo.Part1 = Grab | |
308 | Grabo.C0 = CFrame.new(0,-1.5,0) | |
309 | ||
310 | local AuraB = Instance.new("Part",hed) | |
311 | AuraB.Size = Vector3.new(2,1,2) | |
312 | AuraB.CanCollide = false | |
313 | AuraB.BrickColor = BrickColor.new("Deep orange") | |
314 | AuraB.Transparency = 1 | |
315 | local AuraBo = Instance.new("Weld",AuraB) | |
316 | AuraBo.Part0 = hed | |
317 | AuraBo.Part1 = AuraB | |
318 | AuraBo.C0 = CFrame.new(0,-3.6,0) | |
319 | ||
320 | local FZcharge3 = Instance.new("ParticleEmitter",Grab) | |
321 | FZcharge3.Texture = "rbxassetid://249481494" | |
322 | FZcharge3.Color = ColorSequence.new(Color3.fromRGB(0, 0, 255)) | |
323 | FZcharge3.EmissionDirection = "Top" | |
324 | FZcharge3.Speed = NumberRange.new(8) | |
325 | FZcharge3.Size = NumberSequence.new(8,0) | |
326 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
327 | FZcharge3.Drag = 1.2 | |
328 | FZcharge3.LockedToPart = true | |
329 | FZcharge3.Lifetime = NumberRange.new(1) | |
330 | FZcharge3.Rate = 195 | |
331 | FZcharge3.LightEmission = 0 | |
332 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
333 | FZcharge3.VelocitySpread = 100.2 | |
334 | FZcharge3.ZOffset = 2.5 | |
335 | hed:FindFirstChildOfClass("Decal").Texture = "rbxassetid://254640655" | |
336 | wait(0.001) | |
337 | hed:FindFirstChildOfClass("Decal").Texture = "rbxassetid://" | |
338 | for i,v in pairs(char:GetChildren()) do | |
339 | if v ~= root then | |
340 | if v:IsA("Part") then | |
341 | v.Transparency = 1 | |
342 | elseif v:IsA("Accoutrement") then | |
343 | v:FindFirstChildOfClass("Part").Transparency = 1 | |
344 | end | |
345 | end | |
346 | end | |
347 | for i,v in pairs(NeckS:GetChildren()) do | |
348 | if v ~= root then | |
349 | if v:IsA("Part") then | |
350 | v.Transparency = 1 | |
351 | elseif v:IsA("Accoutrement") then | |
352 | v:FindFirstChildOfClass("Part").Transparency = 1 | |
353 | end | |
354 | end | |
355 | end | |
356 | wait(5) | |
357 | FZcharge3.Rate = 0 | |
358 | for i,v in pairs(char:GetChildren()) do | |
359 | if v ~= root then | |
360 | if v:IsA("Part") then | |
361 | v.Transparency = 0 | |
362 | elseif v:IsA("Accoutrement") then | |
363 | v:FindFirstChildOfClass("Part").Transparency = 0 | |
364 | end | |
365 | end | |
366 | end | |
367 | for i,v in pairs(NeckS:GetChildren()) do | |
368 | if v ~= root then | |
369 | if v:IsA("Part") then | |
370 | v.Transparency = 0 | |
371 | elseif v:IsA("Accoutrement") then | |
372 | v:FindFirstChildOfClass("Part").Transparency = 0 | |
373 | end | |
374 | end | |
375 | end | |
376 | hed:FindFirstChildOfClass("Decal").Texture = "rbxassetid://254640655" | |
377 | local SFXZ = Instance.new("Sound",torso) | |
378 | SFXZ.SoundId = "rbxassetid://915686003" | |
379 | SFXZ.Volume = 3 | |
380 | SFXZ.Pitch = 1 | |
381 | SFXZ.Looped = false | |
382 | wait(0.01) | |
383 | SFXZ:Play() | |
384 | nooutline = function(part) | |
385 | part.TopSurface = 10 | |
386 | end | |
387 | local Mode = false | |
388 | part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
389 | local fp = it("Part") | |
390 | fp.formFactor = formfactor | |
391 | fp.Parent = parent | |
392 | fp.Reflectance = reflectance | |
393 | fp.Transparency = transparency | |
394 | fp.CanCollide = false | |
395 | fp.Locked = true | |
396 | fp.BrickColor = BrickColor.new(tostring(brickcolor)) | |
397 | fp.Name = name | |
398 | fp.Size = size | |
399 | fp.Position = char.Torso.Position | |
400 | nooutline(fp) | |
401 | fp.Material = material | |
402 | fp:BreakJoints() | |
403 | return fp | |
404 | end | |
405 | ||
406 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
407 | local mesh = it(Mesh) | |
408 | mesh.Parent = part | |
409 | if Mesh == "SpecialMesh" then | |
410 | mesh.MeshType = meshtype | |
411 | mesh.MeshId = meshid | |
412 | end | |
413 | mesh.Offset = offset | |
414 | mesh.Scale = scale | |
415 | return mesh | |
416 | end | |
417 | ||
418 | weld = function(parent, part0, part1, c0, c1) | |
419 | local weld = it("Weld") | |
420 | weld.Parent = parent | |
421 | weld.Part0 = part0 | |
422 | weld.Part1 = part1 | |
423 | weld.C0 = c0 | |
424 | weld.C1 = c1 | |
425 | return weld | |
426 | end | |
427 | local Create = LoadLibrary("RbxUtility").Create | |
428 | ArtificialHB = Create("BindableEvent", script){ | |
429 | Parent = script, | |
430 | Name = "Heartbeat", | |
431 | } | |
432 | ||
433 | function RemoveOutlines(part) | |
434 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
435 | end | |
436 | CFuncs = { | |
437 | Part = { | |
438 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
439 | local Part = Create("Part"){ | |
440 | Parent = Parent, | |
441 | Reflectance = Reflectance, | |
442 | Transparency = Transparency, | |
443 | CanCollide = false, | |
444 | Locked = true, | |
445 | BrickColor = BrickColor.new(tostring(BColor)), | |
446 | Name = Name, | |
447 | Size = Size, | |
448 | Material = Material, | |
449 | } | |
450 | RemoveOutlines(Part) | |
451 | return Part | |
452 | end; | |
453 | }; | |
454 | ||
455 | Mesh = { | |
456 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
457 | local Msh = Create(Mesh){ | |
458 | Parent = Part, | |
459 | Offset = OffSet, | |
460 | Scale = Scale, | |
461 | } | |
462 | if Mesh == "SpecialMesh" then | |
463 | Msh.MeshType = MeshType | |
464 | Msh.MeshId = MeshId | |
465 | end | |
466 | return Msh | |
467 | end; | |
468 | }; | |
469 | ||
470 | Weld = { | |
471 | Create = function(Parent, Part0, Part1, C0, C1) | |
472 | local Weld = Create("Weld"){ | |
473 | Parent = Parent, | |
474 | Part0 = Part0, | |
475 | Part1 = Part1, | |
476 | C0 = C0, | |
477 | C1 = C1, | |
478 | } | |
479 | return Weld | |
480 | end; | |
481 | }; | |
482 | ||
483 | Sound = { | |
484 | Create = function(id, par, vol, pit) | |
485 | local Sound = Create("Sound"){ | |
486 | Volume = vol, | |
487 | Pitch = pit or 1, | |
488 | SoundId = "rbxassetid://" .. id, | |
489 | Parent = par or workspace, | |
490 | } | |
491 | Sound:play() | |
492 | return Sound | |
493 | end; | |
494 | }; | |
495 | ||
496 | Decal = { | |
497 | Create = function(Color, Texture, Transparency, Name, Parent) | |
498 | local Decal = Create("Decal"){ | |
499 | Color3 = Color, | |
500 | Texture = "rbxassetid://" .. Texture, | |
501 | Transparency = Transparency, | |
502 | Name = Name, | |
503 | Parent = Parent, | |
504 | } | |
505 | return Decal | |
506 | end; | |
507 | }; | |
508 | ||
509 | BillboardGui = { | |
510 | Create = function(Parent, Image, Position, Size) | |
511 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1)) | |
512 | BillPar.CFrame = CFrame.new(Position) | |
513 | local Bill = Create("BillboardGui"){ | |
514 | Parent = BillPar, | |
515 | Adornee = BillPar, | |
516 | Size = UDim2.new(1, 0, 1, 0), | |
517 | SizeOffset = Vector2.new(Size, Size), | |
518 | } | |
519 | local d = Create("ImageLabel", Bill){ | |
520 | Parent = Bill, | |
521 | BackgroundTransparency = 1, | |
522 | Size = UDim2.new(1, 0, 1, 0), | |
523 | Image = "rbxassetid://" .. Image, | |
524 | } | |
525 | return BillPar | |
526 | end | |
527 | }; | |
528 | ||
529 | ParticleEmitter = { | |
530 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
531 | local Particle = Create("ParticleEmitter"){ | |
532 | Parent = Parent, | |
533 | Color = ColorSequence.new(Color1, Color2), | |
534 | LightEmission = LightEmission, | |
535 | Size = Size, | |
536 | Texture = Texture, | |
537 | Transparency = Transparency, | |
538 | ZOffset = ZOffset, | |
539 | Acceleration = Accel, | |
540 | Drag = Drag, | |
541 | LockedToPart = LockedToPart, | |
542 | VelocityInheritance = VelocityInheritance, | |
543 | EmissionDirection = EmissionDirection, | |
544 | Enabled = Enabled, | |
545 | Lifetime = LifeTime, | |
546 | Rate = Rate, | |
547 | Rotation = Rotation, | |
548 | RotSpeed = RotSpeed, | |
549 | Speed = Speed, | |
550 | VelocitySpread = VelocitySpread, | |
551 | } | |
552 | return Particle | |
553 | end; | |
554 | }; | |
555 | ||
556 | CreateTemplate = { | |
557 | ||
558 | }; | |
559 | } | |
560 | NewInstance = function(instance,parent,properties) | |
561 | local inst = Instance.new(instance) | |
562 | inst.Parent = parent | |
563 | if(properties)then | |
564 | for i,v in next, properties do | |
565 | pcall(function() inst[i] = v end) | |
566 | end | |
567 | end | |
568 | return inst; | |
569 | end | |
570 | ||
571 | function rayCast(Position, Direction, Range, Ignore) | |
572 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
573 | end | |
574 | local m = Create("Model"){ | |
575 | Parent = char, | |
576 | Name = "WeaponModel", | |
577 | } | |
578 | HandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright yellow", "HandleL", Vector3.new(0.403949469, 0.000020112, 0.425030977)) | |
579 | HandleLWeld = CFuncs.Weld.Create(m, char["Left Arm"], HandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.637853563, -0.00000000000, 0.00182324648, 0, -1, 0, 1, 0, 0, 0, -0, 1)) | |
580 | HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright yellow", "HitboxL", Vector3.new(1.00394952, 0.05222011, 1.02503109)) | |
581 | HitboxLWeld = CFuncs.Weld.Create(m, HandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999999642, 3.81469727e-006, 5.96046448e-008, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
582 | Part = CFuncs.Part.Create(m, Enum.Material.Metal, 0, 0, "Gold", "Part", Vector3.new(0.401974738, 1.08532834, 0.40197292)) | |
583 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.098050952, 0.00573730469, 0.171247482, 1, 0, 0, 0, 0, -1, 0, 1, 0)) | |
584 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
585 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
586 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.335890889, -0.251642227, 0.414461493, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
587 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.779882133, 0.77987963, 0.292454481)) | |
588 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part", Vector3.new(0, 0, 0)) | |
589 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.171247482, -0.548431277, 0.098050952, 0, 1, 0, 0, 0, 1, 1, 0, 0)) | |
590 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.194969907, 1)) | |
591 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part", Vector3.new(0.281382293, 0.206172079, 0.281381041)) | |
592 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.171247482, 0.536894917, 0.098050952, 0, 1, 0, 0, 0, 1, 1, 0, 0)) | |
593 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.194969907, 1)) | |
594 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
595 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00573730469, -0.251634598, 0.414469123, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
596 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.779882133, 0.77987963, 0.292454481)) | |
597 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
598 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.52296257, -0.166549563, 0.881902456, 0, 1, 0, 0, 0, 1, 1, 0, 0)) | |
599 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.292455852, 0.389939725, 0.389939249)) | |
600 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
601 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.502866745, -0.447936893, 0.208598971, 0, 1, 0, 0, 0, 1, 1, 0, 0)) | |
602 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.292455852, 0.974849463, 0.877363384)) | |
603 | Part = CFuncs.Part.Create(m, Enum.Material.Metal, 0, 0, "Gold", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
604 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.335906148, -0.251642227, 0.404413581, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
605 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.974852681, 0.974849463, 0.194969654)) | |
606 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
607 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.5229702, -0.155028343, 0.881904364, 0, -1, -0, 0, 0, -1, 1, 0, 0)) | |
608 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.292455852, 0.389939725, 0.389939249)) | |
609 | Part = CFuncs.Part.Create(m, Enum.Material.Metal, 0, 0, "Gold", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
610 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00573730469, -0.251642227, 0.404413581, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
611 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.974852681, 0.974849463, 0.194969654)) | |
612 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part", Vector3.new(1.01297641, 0.562762797, 0.361775607)) | |
613 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00271511078, -0.231538773, 0.72112453, 0, 0, 1, 0, -1, -0, 1, 0, 0)) | |
614 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
615 | Part = CFuncs.Part.Create(m, Enum.Material.Metal, 0, 0, "Gold", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
616 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.347427249, -0.251642227, 0.404413581, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
617 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.974852681, 0.974849463, 0.194969654)) | |
618 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
619 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.50287056, -0.436416715, 0.208604693, 0, -1, -0, 0, 0, -1, 1, 0, 0)) | |
620 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.292455852, 0.974849463, 0.877363384)) | |
621 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.0853318, 0.206172079, 0.261282384)) | |
622 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00573730469, -0.0196914673, -0.273781061, 0, 0, -1, 0, 1, 0, 1, 0, 0)) | |
623 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.292454839, 1)) | |
624 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
625 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.347427249, -0.251634598, 0.414469123, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
626 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.779882133, 0.77987963, 0.292454481)) | |
627 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
628 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.638334274, 0.120502472, -0.377624631, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
629 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1)) | |
630 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
631 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.516500473, 0.0501613617, -0.377654195, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
632 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1)) | |
633 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
634 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.39466095, -0.0201816559, -0.377624631, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
635 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1)) | |
636 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part2", Vector3.new(0.401974738, 0.572812021, 0.252237976)) | |
637 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.339231372, -0.236558914, 0.383117557, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
638 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part2", Vector3.new(0.803949475, 0.452220112, 1.02503097)) | |
639 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.500019014, 0.275951385, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
640 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part2", Vector3.new(0.401974738, 0.572812021, 0.258267611)) | |
641 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.339231372, -0.236558914, -0.374602437, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
642 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
643 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.63834095, 0.120515823, 0.384124637, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
644 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1)) | |
645 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.562762797, 0.206172064)) | |
646 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.364218116, -0.110958099, -0.496704191, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
647 | CFuncs.Mesh.Create("CylinderMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969654)) | |
648 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.562762797, 0.206172064)) | |
649 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.364216208, -0.11095047, 0.508239627, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
650 | CFuncs.Mesh.Create("CylinderMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969654)) | |
651 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.206172079, 1.0049324)) | |
652 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.374262214, 0.100086212, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
653 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.0974852666, 0.682394505, 1)) | |
654 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
655 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.39466095, -0.0201721191, 0.384109378, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
656 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1)) | |
657 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
658 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.516500473, 0.0501708984, 0.384094119, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
659 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1)) | |
660 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part2", Vector3.new(0.663258314, 0.643157542, 1.04512966)) | |
661 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0325930119, -0.151147842, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
662 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
663 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.357483745, -0.5254879, -0.640716434, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
664 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.292455643, 0.121856183, 0.292453945)) | |
665 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.361777306, 0.206172079, 0.206172064)) | |
666 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.062738657, -0.505384445, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
667 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.316826075, 0.779878199)) | |
668 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
669 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.35468328, -0.435037613, -0.335906148, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
670 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.492300361, 0.999220669, 0.38993907)) | |
671 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.643156648)) | |
672 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.273779154, -0.50538826, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
673 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.292455524, 0.316826075, 1)) | |
674 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
675 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.508239627, 0.364208579, 0.17042923, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
676 | CFuncs.Mesh.Create("SpecialMesh", Part3, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 0.194969699, 0.194969684)) | |
677 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 1.0049336, 0.206172064)) | |
678 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.364208579, 0.00576782227, 0.17042923, -1, 0, -0, 0, 0, -1, 0, -1, -0)) | |
679 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684)) | |
680 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part3", Vector3.new(0.206172049, 0.663256168, 0.206172064)) | |
681 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.508239627, 0.0325796604, 0.17042923, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
682 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684)) | |
683 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.80495441, 0.206172079, 0.206172064)) | |
684 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.520616472, -0.525484085, 0.00572109222, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
685 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.316826075, 0.779878199)) | |
686 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
687 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.515432358, 0.00573730469, -0.120672107, 0, 1, 0, 0, 0, -1, -1, 0, 0)) | |
688 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.414312303, 0.779879749, 0.414309978)) | |
689 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part3", Vector3.new(0.206172049, 0.663256109, 0.206172064)) | |
690 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.496704191, 0.0325872898, 0.17042923, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
691 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684)) | |
692 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.502466798, 0.206172064)) | |
693 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.255522728, -0.409584224, -0.512922287, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
694 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684)) | |
695 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.462270945, 0.206172079, 0.206172064)) | |
696 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.409576595, -0.502866745, 0.357467532, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
697 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.292454839, 0.877363086)) | |
698 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.502466798, 0.206172064)) | |
699 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.267042994, -0.40958041, -0.512926102, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
700 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684)) | |
701 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.261283636, 0.462269485, 1.08532703)) | |
702 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.273779154, -0.241586685, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
703 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
704 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.357467532, -0.522974014, -0.640716434, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
705 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.877367318, 0.0974849537, 0.877362907)) | |
706 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.401973516, 0.206172064)) | |
707 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.512922287, 0.00572109222, -0.118150592, 0, 1, 0, 0, 0, -1, -1, 0, 0)) | |
708 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389940947, 1, 0.389938712)) | |
709 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part3", Vector3.new(0.206172049, 0.442170709, 0.206172064)) | |
710 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.508209109, -0.0779570341, -0.472719193, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
711 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684)) | |
712 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.723554611, 0.206172079, 0.40197283)) | |
713 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.479927242, -0.512914658, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
714 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.389939815, 1)) | |
715 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
716 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.496718496, 0.364208579, 0.17042923, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
717 | CFuncs.Mesh.Create("SpecialMesh", Part3, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 0.194969699, 0.194969684)) | |
718 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
719 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.345976949, -0.52296257, -0.640722156, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
720 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.877367318, 0.0974849537, 0.877362907)) | |
721 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part3", Vector3.new(0.206172049, 0.442170709, 0.206172064)) | |
722 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.496718496, -0.0779646635, -0.472719193, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
723 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684)) | |
724 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.502466798, 0.206172064)) | |
725 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.436416715, -0.40958041, -0.512926102, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
726 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684)) | |
727 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.206172079, 0.683353961)) | |
728 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.208598971, -0.502866745, 0.00576782227, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
729 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.877367556, 0.292454839, 1)) | |
730 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.206172079, 0.241183683)) | |
731 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.881908178, -0.512926102, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
732 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389940947, 0.389939815, 1)) | |
733 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.522567213, 0.206172079, 1.08532703)) | |
734 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.143131495, -0.502866745, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
735 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.292454839, 1)) | |
736 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.502466798, 0.206172064)) | |
737 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.447936893, -0.409574687, -0.512914658, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
738 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684)) | |
739 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.944640577, 0.206172079, 0.206172064)) | |
740 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.168390095, -0.50538826, 0.357513309, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
741 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.316826075, 0.292454064)) | |
742 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.462270945, 0.206172079, 0.206172064)) | |
743 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.40957278, -0.502866745, -0.345976949, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
744 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.292454839, 0.877363086)) | |
745 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
746 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.354666114, -0.435037613, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
747 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.492300361, 0.999220669, 0.38993907)) | |
748 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.944640577, 0.206172079, 0.206172064)) | |
749 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.168390095, -0.50538826, -0.345976949, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
750 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.316826075, 0.292454064)) | |
751 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
752 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.35468328, -0.435037613, 0.347427249, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
753 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.492300361, 0.999220669, 0.38993907)) | |
754 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
755 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.345976949, -0.525484085, -0.640727878, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
756 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.292455643, 0.121856183, 0.292453945)) | |
757 | Part4 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part4", Vector3.new(1.04513443, 0.206172079, 0.206172064)) | |
758 | Part4Weld = CFuncs.Weld.Create(m, HandleL, Part4, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00573730469, -0.120185852, 0.349273562, 0, 0, -1, 0, 1, 0, 1, 0, 0)) | |
759 | CFuncs.Mesh.Create("SpecialMesh", Part4, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.487424731, 0.487424105)) | |
760 | Part5 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part5", Vector3.new(1.04513443, 0.206172079, 0.206172064)) | |
761 | Part5Weld = CFuncs.Weld.Create(m, HandleL, Part5, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00573730469, -0.42247963, 0.349279284, 0, 0, 1, 0, -1, -0, 1, 0, 0)) | |
762 | CFuncs.Mesh.Create("SpecialMesh", Part5, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.487424731, 0.487424105)) | |
763 | Part6 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part6", Vector3.new(0.206172049, 0.442170829, 1.04512966)) | |
764 | Part6Weld = CFuncs.Weld.Create(m, HandleL, Part6, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.349294543, -0.151140213, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
765 | CFuncs.Mesh.Create("BlockMesh", Part6, "", "", Vector3.new(0, 0, 0), Vector3.new(0.48742649, 1, 1)) | |
766 | sref = CFuncs.Part.Create(char, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new()) | |
767 | sref.Anchored = true | |
768 | ||
769 | ACOS = math.acos | |
770 | ang = CFrame.Angles | |
771 | SIN = math.sin | |
772 | cf = CFrame.new | |
773 | COS = math.cos | |
774 | rd = math.rad | |
775 | rd2 = math.random | |
776 | Heartbeat = Instance.new("BindableEvent") | |
777 | Heartbeat.Name = "Heartbeat" | |
778 | Heartbeat.Parent = script | |
779 | local LeftShoulder = torso["Left Shoulder"] | |
780 | local Left_Hip = torso["Left Hip"] | |
781 | local RightShoulder = torso["Right Shoulder"] | |
782 | local Right_Hip = torso["Right Hip"] | |
783 | ||
784 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
785 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
786 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
787 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
788 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
789 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
790 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
791 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
792 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
793 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
794 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
795 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
796 | RS = torso:FindFirstChild("Right Shoulder") | |
797 | LS = torso:FindFirstChild("Left Shoulder") | |
798 | RH = torso:FindFirstChild("Right Hip") | |
799 | LH = torso:FindFirstChild("Left Hip") | |
800 | RJ = root:FindFirstChild("RootJoint") | |
801 | N = torso:FindFirstChild("Neck") | |
802 | ||
803 | ||
804 | local UltimateBattle = Instance.new("Sound",hed) | |
805 | UltimateBattle.SoundId = "rbxassetid://1333021608" | |
806 | UltimateBattle.Pitch = 1 | |
807 | UltimateBattle.Looped = true | |
808 | UltimateBattle.Volume = 5 | |
809 | UltimateBattle:Play() | |
810 | ||
811 | ||
812 | ||
813 | ||
814 | ||
815 | ||
816 | function QuaternionFromCFrame(cf) | |
817 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
818 | local trace = m00 + m11 + m22 | |
819 | if trace > 0 then | |
820 | local s = math.sqrt(1 + trace) | |
821 | local recip = 0.5 / s | |
822 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
823 | else | |
824 | local i = 0 | |
825 | if m11 > m00 then | |
826 | i = 1 | |
827 | end | |
828 | if m22 > (i == 0 and m00 or m11) then | |
829 | i = 2 | |
830 | end | |
831 | if i == 0 then | |
832 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
833 | local recip = 0.5 / s | |
834 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
835 | elseif i == 1 then | |
836 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
837 | local recip = 0.5 / s | |
838 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
839 | elseif i == 2 then | |
840 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
841 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
842 | end | |
843 | end | |
844 | end | |
845 | ||
846 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
847 | local xs, ys, zs = x + x, y + y, z + z | |
848 | local wx, wy, wz = w * xs, w * ys, w * zs | |
849 | local xx = x * xs | |
850 | local xy = x * ys | |
851 | local xz = x * zs | |
852 | local yy = y * ys | |
853 | local yz = y * zs | |
854 | local zz = z * zs | |
855 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
856 | end | |
857 | ||
858 | function QuaternionSlerp(a, b, t) | |
859 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
860 | local startInterp, finishInterp; | |
861 | if cosTheta >= 0.0001 then | |
862 | if (1 - cosTheta) > 0.0001 then | |
863 | local theta = ACOS(cosTheta) | |
864 | local invSinTheta = 1 / SIN(theta) | |
865 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
866 | finishInterp = SIN(t * theta) * invSinTheta | |
867 | else | |
868 | startInterp = 1 - t | |
869 | finishInterp = t | |
870 | end | |
871 | else | |
872 | if (1 + cosTheta) > 0.0001 then | |
873 | local theta = ACOS(-cosTheta) | |
874 | local invSinTheta = 1 / SIN(theta) | |
875 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
876 | finishInterp = SIN(t * theta) * invSinTheta | |
877 | else | |
878 | startInterp = t - 1 | |
879 | finishInterp = t | |
880 | end | |
881 | end | |
882 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
883 | end | |
884 | ||
885 | function Clerp(a, b, t) | |
886 | local qa = {QuaternionFromCFrame(a)} | |
887 | local qb = {QuaternionFromCFrame(b)} | |
888 | local ax, ay, az = a.x, a.y, a.z | |
889 | local bx, by, bz = b.x, b.y, b.z | |
890 | local _t = 1 - t | |
891 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
892 | end | |
893 | ||
894 | main = {r = 0;g = 100;b = 255;v = 1} | |
895 | if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end | |
896 | if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end | |
897 | if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end | |
898 | if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end | |
899 | if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end | |
900 | if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end | |
901 | pr = p:FindFirstChild("rcolor") | |
902 | pg = p:FindFirstChild("gcolor") | |
903 | pb = p:FindFirstChild("bcolor") | |
904 | pv = p:FindFirstChild("vcolor") | |
905 | idth = p:FindFirstChild("idtheme") | |
906 | pith = p:FindFirstChild("pitchtheme") | |
907 | main_color = Color3.fromRGB(main.r,main.g,main.b) | |
908 | explosionid = {144699494,144699494} | |
909 | punch = {545219984} | |
910 | --919941001 | |
911 | Prefix = "/" | |
912 | p.Chatted:connect(function(msg) | |
913 | ||
914 | if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then | |
915 | local v = tonumber(msg:sub(#Prefix+#'color r '+1)) | |
916 | main.r = v | |
917 | elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then | |
918 | local v = tonumber(msg:sub(#Prefix+#'color g '+1)) | |
919 | main.g = v | |
920 | elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then | |
921 | local v = tonumber(msg:sub(#Prefix+#'color b '+1)) | |
922 | main.b = v | |
923 | elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then | |
924 | local v = tonumber(msg:sub(#Prefix+#'color v '+1)) | |
925 | if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end | |
926 | ||
927 | elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then | |
928 | local v = tonumber(msg:sub(#Prefix+#'theme '+1)) | |
929 | themeid = v | |
930 | music(themeid,themepitch) | |
931 | ||
932 | elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then | |
933 | local v = tonumber(msg:sub(#Prefix+#'pitch '+1)) | |
934 | themepitch = v | |
935 | music(themeid,themepitch) | |
936 | ||
937 | elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then | |
938 | local v = msg:sub(#Prefix+#'prefix '+1) | |
939 | Prefix = v | |
940 | ||
941 | elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then | |
942 | main.r = 0 | |
943 | main.g = 100 | |
944 | main.b = 255 | |
945 | main.v = 1 | |
946 | themeid = 556122490 | |
947 | themepitch = 1 | |
948 | music(themeid,themepitch) | |
949 | ||
950 | end | |
951 | ||
952 | end) | |
953 | ---------------------------------------------------------------------------- | |
954 | no_anim = false | |
955 | attack = false | |
956 | attacking = false | |
957 | canjump = true | |
958 | aiming_anim = false | |
959 | animid = math.random(0,1) | |
960 | timer = 0 | |
961 | bg = Instance.new("BodyGyro",root) | |
962 | bg.P = 100000 | |
963 | bg.D = 100 | |
964 | ---------------------------------------------------------------------------- | |
965 | ||
966 | ---- | |
967 | function rswait(value) | |
968 | if value ~= nil and value ~= 0 then | |
969 | for i=1,value do | |
970 | rs:wait() | |
971 | end | |
972 | else | |
973 | rs:wait() | |
974 | end | |
975 | end | |
976 | ||
977 | ---- | |
978 | local maincolor = BrickColor.new("Really red") | |
979 | function Eviscerate(dude) | |
980 | if dude.Name ~= char then | |
981 | ||
982 | local val = Instance.new("BoolValue", dude) | |
983 | val.Name = "IsHit" | |
984 | local ds = coroutine.wrap(function() | |
985 | dude:BreakJoints() | |
986 | wait(0) | |
987 | local Vanish = Instance.new("Sound",dude) | |
988 | Vanish.SoundId = "rbxassetid://427025525" | |
989 | Vanish.Volume = 0.5 | |
990 | Vanish.Pitch = 0.6 | |
991 | Vanish.Looped = false | |
992 | wait(0.01) | |
993 | Vanish:Play() | |
994 | coroutine.resume(coroutine.create(function() | |
995 | for i, v in pairs(dude:GetChildren()) do | |
996 | if v:IsA("Accessory") then | |
997 | v:Destroy() | |
998 | end | |
999 | ||
1000 | if v:IsA("CharacterMesh") then | |
1001 | v:Destroy() | |
1002 | end | |
1003 | if v:IsA("Model") then | |
1004 | v:Destroy() | |
1005 | end | |
1006 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1007 | for x, o in pairs(v:GetChildren()) do | |
1008 | if o:IsA("Decal") then | |
1009 | o:Destroy() | |
1010 | end | |
1011 | end | |
1012 | coroutine.resume(coroutine.create(function() | |
1013 | v.Material = "Grass" | |
1014 | v.CanCollide = false | |
1015 | ||
1016 | coroutine.resume(coroutine.create(function() | |
1017 | for i = 1,45 do | |
1018 | v.Transparency = v.Transparency + 0.04 | |
1019 | wait(0.00000000001) | |
1020 | end | |
1021 | ||
1022 | ||
1023 | end)) | |
1024 | ||
1025 | local Aura = Instance.new("ParticleEmitter",v) | |
1026 | Aura.Texture = "rbxassetid://1084976679" | |
1027 | Aura.Color = ColorSequence.new(BrickColor.new("Dirt brown").Color) | |
1028 | Aura.EmissionDirection = "Top" | |
1029 | Aura.Speed = NumberRange.new(0) | |
1030 | Aura.Size = NumberSequence.new(2.5) | |
1031 | Aura.Transparency = NumberSequence.new(0,1) | |
1032 | Aura.Drag = 0.4 | |
1033 | Aura.LightInfluence = 0 | |
1034 | Aura.LockedToPart = true | |
1035 | Aura.Lifetime = NumberRange.new(0.9) | |
1036 | Aura.Rate = 260 | |
1037 | Aura.LightEmission = 1 | |
1038 | Aura.Rotation = NumberRange.new(-360,360) | |
1039 | Aura.VelocitySpread = 0 | |
1040 | Aura.Acceleration = Vector3.new(0,10,0) | |
1041 | Aura.ZOffset = 0.2 | |
1042 | local BodPoss = Instance.new("BodyPosition", v) | |
1043 | BodPoss.P = 3000 | |
1044 | BodPoss.D = 1000 | |
1045 | BodPoss.maxForce = Vector3.new(500, 5000, 500) | |
1046 | BodPoss.position = v.Position + Vector3.new(rd2(-2, 0), rd2(-0, 0), rd2(-0, 0)) | |
1047 | v.BrickColor = BrickColor.new("Dirt brown") | |
1048 | ||
1049 | wait(1.3) | |
1050 | Aura.Enabled = false | |
1051 | wait(1.5) | |
1052 | v:Destroy() | |
1053 | ||
1054 | dude:Destroy() | |
1055 | end)) | |
1056 | end | |
1057 | ||
1058 | end | |
1059 | end)) | |
1060 | end) | |
1061 | ds() | |
1062 | end | |
1063 | end | |
1064 | function Snap(dude) | |
1065 | if dude.Name ~= char then | |
1066 | local bgf = Instance.new("BodyGyro", dude.Head) | |
1067 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(rd(-90), 0, 0) | |
1068 | local val = Instance.new("BoolValue", dude) | |
1069 | val.Name = "IsHit" | |
1070 | local ds = coroutine.wrap(function() | |
1071 | dude:BreakJoints() | |
1072 | wait(0) | |
1073 | ||
1074 | coroutine.resume(coroutine.create(function() | |
1075 | for i, v in pairs(dude:GetChildren()) do | |
1076 | if v:IsA("Accessory") then | |
1077 | v:Destroy() | |
1078 | end | |
1079 | ||
1080 | if v:IsA("CharacterMesh") then | |
1081 | v:Destroy() | |
1082 | end | |
1083 | if v:IsA("Model") then | |
1084 | v:Destroy() | |
1085 | end | |
1086 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1087 | for x, o in pairs(v:GetChildren()) do | |
1088 | if o:IsA("Decal") then | |
1089 | o:Destroy() | |
1090 | end | |
1091 | end | |
1092 | coroutine.resume(coroutine.create(function() | |
1093 | ||
1094 | v.Material = "Neon" | |
1095 | local PartEmmit1 = Instance.new("ParticleEmitter", v) | |
1096 | PartEmmit1.LightEmission = 1 | |
1097 | PartEmmit1.Texture = "rbxassetid://520049620" | |
1098 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1099 | PartEmmit1.Rate = 150 | |
1100 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1101 | PartEmmit1.Size = NumberSequence.new({ | |
1102 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1103 | NumberSequenceKeypoint.new(1, 0, 0) | |
1104 | }) | |
1105 | PartEmmit1.Transparency = NumberSequence.new({ | |
1106 | NumberSequenceKeypoint.new(0, 0, 0), | |
1107 | NumberSequenceKeypoint.new(1, 1, 0) | |
1108 | }) | |
1109 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1110 | PartEmmit1.VelocitySpread = 30000 | |
1111 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1112 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1113 | local BodPoss = Instance.new("BodyPosition", v) | |
1114 | BodPoss.P = 3000 | |
1115 | BodPoss.D = 1000 | |
1116 | BodPoss.maxForce = Vector3.new(200000, 200000, 200000) | |
1117 | BodPoss.position = v.Position + Vector3.new(rd2(-1, 1), rd2(-1, 1), rd2(-1, 1)) | |
1118 | v.BrickColor = BrickColor.new("Really red") | |
1119 | coroutine.resume(coroutine.create(function() | |
1120 | for i = 0, 49 do | |
1121 | swait(1) | |
1122 | ||
1123 | end | |
1124 | wait(0.5) | |
1125 | PartEmmit1.Enabled = false | |
1126 | wait(3) | |
1127 | v:Destroy() | |
1128 | dude:Destroy() | |
1129 | end)) | |
1130 | end)) | |
1131 | end | |
1132 | end | |
1133 | end)) | |
1134 | end) | |
1135 | ds() | |
1136 | end | |
1137 | end | |
1138 | function Rock(stone) | |
1139 | if stone.Name ~= char then | |
1140 | ||
1141 | local val = Instance.new("BoolValue", stone) | |
1142 | val.Name = "IsHit" | |
1143 | local ds = coroutine.wrap(function() | |
1144 | stone:BreakJoints() | |
1145 | wait(0) | |
1146 | ||
1147 | coroutine.resume(coroutine.create(function() | |
1148 | for i, v in pairs(stone:GetChildren()) do | |
1149 | if v:IsA("Accessory") then | |
1150 | v:Destroy() | |
1151 | end | |
1152 | ||
1153 | if v:IsA("CharacterMesh") then | |
1154 | v:Destroy() | |
1155 | end | |
1156 | if v:IsA("Model") then | |
1157 | v:Destroy() | |
1158 | end | |
1159 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1160 | for x, o in pairs(v:GetChildren()) do | |
1161 | if o:IsA("Decal") then | |
1162 | o:Destroy() | |
1163 | end | |
1164 | end | |
1165 | coroutine.resume(coroutine.create(function() | |
1166 | ||
1167 | v.Material = "Slate" | |
1168 | v.CanCollide = true | |
1169 | local BodPoss = Instance.new("BodyPosition", v) | |
1170 | BodPoss.P = 3000 | |
1171 | BodPoss.D = 1000 | |
1172 | BodPoss.maxForce = Vector3.new(500, 5000, 500) | |
1173 | BodPoss.position = v.Position + Vector3.new(rd2(-5, 5), rd2(-0, 0), rd2(-0, 0)) | |
1174 | ||
1175 | v.BrickColor = BrickColor.new("Dark stone grey") | |
1176 | wait(0.1) | |
1177 | BodPoss:Destroy() | |
1178 | coroutine.resume(coroutine.create(function() | |
1179 | for i = 0, 49 do | |
1180 | swait(1) | |
1181 | ||
1182 | end | |
1183 | wait(0.5) | |
1184 | ||
1185 | wait(3) | |
1186 | ||
1187 | end)) | |
1188 | end)) | |
1189 | end | |
1190 | end | |
1191 | end)) | |
1192 | end) | |
1193 | ds() | |
1194 | end | |
1195 | end | |
1196 | ---------------------------------------------------------------------------- | |
1197 | local instinct = true | |
1198 | ||
1199 | ||
1200 | --- | |
1201 | Instance.new("ForceField",char).Visible = false | |
1202 | hum:SetStateEnabled("Dead",false) | |
1203 | hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false) | |
1204 | --- | |
1205 | ||
1206 | --- | |
1207 | ||
1208 | local MUI = false | |
1209 | ||
1210 | ||
1211 | max = 0 | |
1212 | function music(id,pitch) | |
1213 | max = 0 | |
1214 | if id == "Stop" then | |
1215 | if not torso:FindFirstChild("MusicRuin") then | |
1216 | soundz = Instance.new("Sound",torso) | |
1217 | end | |
1218 | soundz:Stop() | |
1219 | else | |
1220 | if not torso:FindFirstChild("MusicRuin") then | |
1221 | soundz = Instance.new("Sound",torso) | |
1222 | end | |
1223 | soundz.MaxDistance = 150*5 | |
1224 | soundz.EmitterSize = 150/5 | |
1225 | soundz.Volume = 10 | |
1226 | soundz.Name = "MusicRuin" | |
1227 | soundz.Looped = true | |
1228 | soundz.PlaybackSpeed = pitch | |
1229 | soundz.SoundId = "rbxassetid://"..id | |
1230 | soundz:Stop() | |
1231 | soundz:Play() | |
1232 | end | |
1233 | end | |
1234 | ||
1235 | ---------------------------------------------------------------------------- | |
1236 | ||
1237 | function lerp(a, b, t) | |
1238 | return a + (b - a)*t | |
1239 | end | |
1240 | ||
1241 | ---------------------------------------------------------------------------- | |
1242 | ||
1243 | function Lerp(c1,c2,al) | |
1244 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
1245 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
1246 | for i,v in pairs(com1) do | |
1247 | com1[i] = v+(com2[i]-v)*al | |
1248 | end | |
1249 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
1250 | end | |
1251 | ||
1252 | ---------------------------------------------------------------------------- | |
1253 | ||
1254 | function slerp(a, b, t) | |
1255 | dot = a:Dot(b) | |
1256 | if dot > 0.99999 or dot < -0.99999 then | |
1257 | return t <= 0.5 and a or b | |
1258 | else | |
1259 | r = math.acos(dot) | |
1260 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
1261 | end | |
1262 | end | |
1263 | ||
1264 | ---------------------------------------------------------------------------- | |
1265 | ||
1266 | function clerp(c1,c2,al) | |
1267 | ||
1268 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
1269 | ||
1270 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
1271 | ||
1272 | for i,v in pairs(com1) do | |
1273 | ||
1274 | com1[i] = lerp(v,com2[i],al) | |
1275 | ||
1276 | end | |
1277 | ||
1278 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
1279 | ||
1280 | end | |
1281 | ||
1282 | ---------------------------------------------------------------------------- | |
1283 | ||
1284 | ||
1285 | ||
1286 | ------------------- | |
1287 | function findAllNearestTorso(pos,dist) | |
1288 | local list = game.Workspace:children() | |
1289 | local torso = {} | |
1290 | local temp = nil | |
1291 | local human = nil | |
1292 | local temp2 = nil | |
1293 | for x = 1, #list do | |
1294 | temp2 = list[x] | |
1295 | if (temp2.className == "Model") and (temp2 ~= char) then | |
1296 | local nayem = "Torso" | |
1297 | if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end | |
1298 | temp = temp2:findFirstChild(nayem) | |
1299 | human = temp2:findFirstChildOfClass("Humanoid") | |
1300 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
1301 | if (temp.Position - pos).magnitude < dist then | |
1302 | table.insert(torso,temp) | |
1303 | dist = (temp.Position - pos).magnitude | |
1304 | end | |
1305 | end | |
1306 | end | |
1307 | end | |
1308 | return torso | |
1309 | end | |
1310 | ||
1311 | ---------------------------------------------------------------------------- | |
1312 | ||
1313 | local isAPlayer | |
1314 | function checkIfNotPlayer(model) | |
1315 | coroutine.resume(coroutine.create(function() | |
1316 | 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 | |
1317 | isAPlayer = true | |
1318 | else | |
1319 | isAPlayer = false | |
1320 | end | |
1321 | end)) | |
1322 | return isAPlayer | |
1323 | end | |
1324 | ||
1325 | ---------------------------------------------------------------------------- | |
1326 | ||
1327 | function computeDirection(vec) | |
1328 | local lenSquared = vec.magnitude * vec.magnitude | |
1329 | local invSqrt = 1 / math.sqrt(lenSquared) | |
1330 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
1331 | end | |
1332 | ||
1333 | ---------------------------------------------------------------------------- | |
1334 | ||
1335 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
1336 | ||
1337 | local wld = Instance.new("Weld", wp1) | |
1338 | ||
1339 | wld.Part0 = wp0 | |
1340 | ||
1341 | wld.Part1 = wp1 | |
1342 | ||
1343 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
1344 | ||
1345 | return wld | |
1346 | ||
1347 | end | |
1348 | ||
1349 | ---------------------------------------------------------------------------- | |
1350 | ||
1351 | function weld(model) | |
1352 | local parts,last = {} | |
1353 | local function scan(parent) | |
1354 | for _,v in pairs(parent:GetChildren()) do | |
1355 | if (v:IsA("BasePart")) then | |
1356 | if (last) then | |
1357 | local w = Instance.new("Weld") | |
1358 | w.Name = ("%s_Weld"):format(v.Name) | |
1359 | w.Part0,w.Part1 = last,v | |
1360 | w.C0 = last.CFrame:inverse() | |
1361 | w.C1 = v.CFrame:inverse() | |
1362 | w.Parent = last | |
1363 | end | |
1364 | last = v | |
1365 | table.insert(parts,v) | |
1366 | end | |
1367 | scan(v) | |
1368 | end | |
1369 | end | |
1370 | scan(model) | |
1371 | for _,v in pairs(parts) do | |
1372 | v.Anchored = false | |
1373 | v.Locked = true | |
1374 | end | |
1375 | end | |
1376 | ||
1377 | ---------------------------------------------------------------------------- | |
1378 | ||
1379 | function sound(id,position,vol,pitch,dist,start,finish) | |
1380 | coroutine.resume(coroutine.create(function() | |
1381 | ||
1382 | local part = Instance.new("Part",DebrisModel) | |
1383 | part.Anchored = true | |
1384 | part.Position = position | |
1385 | part.Size = Vector3.new(0,0,0) | |
1386 | part.CanCollide = false | |
1387 | part.Transparency = 1 | |
1388 | ||
1389 | soundasd = Instance.new("Sound",part) | |
1390 | ||
1391 | soundasd.SoundId = "rbxassetid://"..id | |
1392 | ||
1393 | if vol ~= nil then | |
1394 | soundasd.Volume = vol | |
1395 | end | |
1396 | ||
1397 | if pitch ~= nil then | |
1398 | soundasd.PlaybackSpeed = pitch | |
1399 | end | |
1400 | ||
1401 | if dist ~= nil then | |
1402 | soundasd.MaxDistance = dist*5 | |
1403 | soundasd.EmitterSize = dist/5 | |
1404 | end | |
1405 | ||
1406 | delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end) | |
1407 | ||
1408 | soundasd:Play() | |
1409 | ||
1410 | end)) | |
1411 | return soundasd | |
1412 | end | |
1413 | ||
1414 | function createsound(id,parent) | |
1415 | ||
1416 | local soundz = Instance.new("Sound",parent) | |
1417 | ||
1418 | soundz.SoundId = "rbxassetid://"..id | |
1419 | ||
1420 | return soundz | |
1421 | ||
1422 | end | |
1423 | ||
1424 | function playsound(sond,vol,pitch,start) | |
1425 | ||
1426 | if vol ~= nil then | |
1427 | sond.Volume = vol | |
1428 | end | |
1429 | ||
1430 | if pitch ~= nil then | |
1431 | sond.PlaybackSpeed = pitch | |
1432 | end | |
1433 | ||
1434 | if start ~= nil then | |
1435 | sond.TimePosition = start | |
1436 | end | |
1437 | ||
1438 | sond:Play() | |
1439 | ||
1440 | end | |
1441 | ||
1442 | ---------------------------------------------------------------------------- | |
1443 | eColors={"Really red","Really black"} | |
1444 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) | |
1445 | local magz = (Part0 - Part1).magnitude | |
1446 | local curpos = Part0 | |
1447 | local trz = {-Offset,Offset} | |
1448 | for i=1,Times do | |
1449 | local li = Instance.new("Part", DebrisModel) | |
1450 | li.TopSurface =0 | |
1451 | li.Material = Enum.Material.Neon | |
1452 | li.BottomSurface = 0 | |
1453 | li.Anchored = true | |
1454 | li.Locked = true | |
1455 | li.Transparency = Trans or 0.4 | |
1456 | li.BrickColor = BrickColor.new(Color) | |
1457 | li.formFactor = "Custom" | |
1458 | li.CanCollide = false | |
1459 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
1460 | local lim = Instance.new("BlockMesh",li) | |
1461 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
1462 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
1463 | if Times == i then | |
1464 | local magz2 = (curpos - Part1).magnitude | |
1465 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
1466 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
1467 | else | |
1468 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
1469 | end | |
1470 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
1471 | li.Name = "LIGHTNING" | |
1472 | end | |
1473 | end | |
1474 | ||
1475 | ---------------------------------------------------------------------------- | |
1476 | ||
1477 | ||
1478 | local HBill = Instance.new("BillboardGui",hed) | |
1479 | local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame") | |
1480 | local HName = Instance.new("TextLabel") | |
1481 | HBill.Size = UDim2.new(15,0,2.2,0) | |
1482 | HBill.StudsOffset = Vector3.new(3.675,1.2,0) | |
1483 | HBill.AlwaysOnTop = true | |
1484 | HBill.Enabled = true | |
1485 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
1486 | HMain.BackgroundTransparency = 1 | |
1487 | HMain.Size = UDim2.new(.5,0,.2,0) | |
1488 | HName.Parent = HMain | |
1489 | HName.BackgroundTransparency = 1 | |
1490 | HName.BackgroundColor3 = Color3.new(255,255,255) | |
1491 | HName.BorderColor3 = Color3.new(0,0,0) | |
1492 | HName.BorderSizePixel = 2 | |
1493 | HName.TextTransparency = 1 | |
1494 | HName.Size = UDim2.new(1,0,.75,0) | |
1495 | HName.Font = "Code" | |
1496 | HName.Text = [[ok]] | |
1497 | HName.TextScaled = true | |
1498 | HName.TextColor3 = Color3.new(0.5,0.5,0.5) | |
1499 | HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1) | |
1500 | HName.TextStrokeTransparency = 1 | |
1501 | HName.TextYAlignment = "Bottom" | |
1502 | ||
1503 | local HBill = Instance.new("BillboardGui",hed) | |
1504 | local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame") | |
1505 | local HName = Instance.new("TextLabel") | |
1506 | HBill.Size = UDim2.new(15,0,2.2,0) | |
1507 | HBill.StudsOffset = Vector3.new(3.675,2,0) | |
1508 | HBill.AlwaysOnTop = true | |
1509 | HBill.Enabled = true | |
1510 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
1511 | HMain.BackgroundTransparency = 1 | |
1512 | HMain.Size = UDim2.new(.5,0,.5,0) | |
1513 | HName.Parent = HMain | |
1514 | HName.BackgroundTransparency = 1 | |
1515 | HName.BackgroundColor3 = Color3.new(255,255,255) | |
1516 | HName.BorderColor3 = Color3.new(0,0,0) | |
1517 | HName.BorderSizePixel = 2 | |
1518 | HName.Size = UDim2.new(1,0,.75,0) | |
1519 | HName.Font = "Code" | |
1520 | HName.TextTransparency = 1 | |
1521 | HName.Text = [[hi]] | |
1522 | HName.TextScaled = true | |
1523 | HName.TextColor3 = Color3.new(0,0,0) | |
1524 | HName.TextStrokeColor3 = Color3.new(255,255,255) | |
1525 | HName.TextStrokeTransparency = 1 | |
1526 | HName.TextYAlignment = "Bottom" | |
1527 | ||
1528 | function bigboomrektxd() | |
1529 | coroutine.resume(coroutine.create(function() | |
1530 | local magnitude = nil | |
1531 | local Position = nil | |
1532 | if animid == 0 then | |
1533 | Position = larm.Position | |
1534 | else | |
1535 | Position = rarm.Position | |
1536 | end | |
1537 | --sound(743499393,Position,10,math.random(6,8)/10) | |
1538 | sound(1050751126,Position,10,math.random(10,12)/10,50) | |
1539 | ||
1540 | local Part1 = Instance.new("Part") | |
1541 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
1542 | mesh2.MeshId = "rbxassetid://559831844" | |
1543 | mesh2.Scale = Vector3.new(0,0,0.4) | |
1544 | Part1.Material = Enum.Material.Neon | |
1545 | Part1.CanCollide = false | |
1546 | Part1.BrickColor = BrickColor.new("White") | |
1547 | Part1.Parent = DebrisModel | |
1548 | Part1.Size = Vector3.new(0,0,0) | |
1549 | Part1.Anchored = true | |
1550 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
1551 | Part1.Name = "EXPLOSION2" | |
1552 | ||
1553 | local Part0 = Instance.new("Part",DebrisModel) | |
1554 | local PointLight2 = Instance.new("PointLight") | |
1555 | Part0.Name = "Bullet" | |
1556 | Part0.Material = Enum.Material.Neon | |
1557 | Part0.BrickColor = BrickColor.new("New Yeller") | |
1558 | Part0.Anchored = false | |
1559 | Part0.Size = Vector3.new(5, 5, 5) | |
1560 | local mesh = Instance.new("SpecialMesh",Part0) | |
1561 | mesh.MeshType = Enum.MeshType.Sphere | |
1562 | local bforce = Instance.new("BodyForce",Part0) | |
1563 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
1564 | Part0.CanCollide = false | |
1565 | PointLight2.Parent = Part0 | |
1566 | PointLight2.Color = Part0.Color | |
1567 | local Target = mouse.Hit.p | |
1568 | local direction = Target - Position | |
1569 | local direction = computeDirection(direction) | |
1570 | local pos = Position + (direction * 2) | |
1571 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
1572 | Part0.Velocity = direction * 60 | |
1573 | local asd = nil | |
1574 | local loop = nil | |
1575 | delay(9, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
1576 | loop = rs:connect(function() | |
1577 | local asdf = math.random(500,1000)/1000 | |
1578 | local Part1 = Instance.new("Part") | |
1579 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
1580 | mesh2.MeshType = Enum.MeshType.Sphere | |
1581 | Part1.Material = Enum.Material.Neon | |
1582 | Part1.CanCollide = false | |
1583 | Part1.BrickColor = BrickColor.new("Gold") | |
1584 | Part1.Parent = DebrisModel | |
1585 | Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf) | |
1586 | Part1.Anchored = true | |
1587 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750)) | |
1588 | Part1.Name = "SMOKE" | |
1589 | end) | |
1590 | asd = Part0.Touched:connect(function(ht) | |
1591 | local hit=ht.Parent | |
1592 | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then | |
1593 | asd:disconnect() | |
1594 | loop:disconnect() | |
1595 | Part0:Destroy() | |
1596 | ||
1597 | sound(explosionid[math.random(1,#explosionid)],Part0.Position,5,math.random(6,9)/10,80) | |
1598 | for i,v in pairs(findAllNearestTorso(Part0.Position,5)) do | |
1599 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then | |
1600 | v:Destroy() | |
1601 | else | |
1602 | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10)) | |
1603 | end | |
1604 | local Position = Part0.Position | |
1605 | local Target = v.Position | |
1606 | local direction = Target - Position | |
1607 | local direction = computeDirection(direction) | |
1608 | local bv = Instance.new("BodyVelocity",v) | |
1609 | bv.Velocity = direction * (50 - ((Position - Target).magnitude/2)) | |
1610 | debris:AddItem(bv,1) | |
1611 | end | |
1612 | for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end | |
1613 | for z=1,math.random(2,3) do | |
1614 | local asdf = math.random(-5,5)*10-(i/20)*8 | |
1615 | local Part1 = Instance.new("Part") | |
1616 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
1617 | mesh2.MeshType = Enum.MeshType.Sphere | |
1618 | mesh2.Scale = Vector3.new(0,0,0) | |
1619 | Part1.Material = Enum.Material.Neon | |
1620 | Part1.CanCollide = false | |
1621 | Part1.BrickColor = BrickColor.new("Gold") | |
1622 | Part1.Parent = DebrisModel | |
1623 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
1624 | Part1.Anchored = true | |
1625 | local a = i*0.5 | |
1626 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a)) | |
1627 | Part1.Name = "EXPLOSION" | |
1628 | end | |
1629 | end | |
1630 | ||
1631 | end | |
1632 | end) | |
1633 | end)) | |
1634 | end | |
1635 | ||
1636 | ||
1637 | function WhiteBall() | |
1638 | coroutine.resume(coroutine.create(function() | |
1639 | local magnitude = nil | |
1640 | local Position = nil | |
1641 | if animid == 0 then | |
1642 | Position = larm.Position | |
1643 | else | |
1644 | Position = rarm.Position | |
1645 | end | |
1646 | --sound(743499393,Position,10,math.random(6,8)/10) | |
1647 | sound(1050751126,Position,10,math.random(4,5)/10,100) | |
1648 | ||
1649 | local Part1 = Instance.new("Part") | |
1650 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
1651 | mesh2.MeshId = "rbxassetid://559831844" | |
1652 | mesh2.Scale = Vector3.new(0,0,0.4) | |
1653 | Part1.Material = Enum.Material.Neon | |
1654 | Part1.CanCollide = false | |
1655 | Part1.BrickColor = BrickColor.new("White") | |
1656 | Part1.Parent = DebrisModel | |
1657 | Part1.Size = Vector3.new(0,0,0) | |
1658 | Part1.Anchored = true | |
1659 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
1660 | Part1.Name = "EXPLOSION3" | |
1661 | ||
1662 | local Part0 = Instance.new("Part",DebrisModel) | |
1663 | local PointLight2 = Instance.new("PointLight") | |
1664 | Part0.Name = "Bullet" | |
1665 | Part0.Material = Enum.Material.Neon | |
1666 | Part0.BrickColor = BrickColor.new("White") | |
1667 | Part0.Anchored = false | |
1668 | Part0.Size = Vector3.new(5, 5, 5) | |
1669 | local mesh = Instance.new("SpecialMesh",Part0) | |
1670 | mesh.MeshType = Enum.MeshType.Sphere | |
1671 | mesh.Scale = Vector3.new(3,3,3) | |
1672 | local bforce = Instance.new("BodyForce",Part0) | |
1673 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
1674 | Part0.CanCollide = false | |
1675 | PointLight2.Parent = Part0 | |
1676 | PointLight2.Color = Part0.Color | |
1677 | local Target = mouse.Hit.p | |
1678 | local direction = Target - Position | |
1679 | local direction = computeDirection(direction) | |
1680 | local pos = Position + (direction * 2) | |
1681 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
1682 | Part0.Velocity = direction * 150 | |
1683 | local asd = nil | |
1684 | local loop = nil | |
1685 | delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
1686 | loop = rs:connect(function() | |
1687 | local asdf = math.random(500,1000)/1000 | |
1688 | local Part1 = Instance.new("Part") | |
1689 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
1690 | mesh2.MeshType = Enum.MeshType.Sphere | |
1691 | Part1.Material = Enum.Material.Neon | |
1692 | Part1.CanCollide = false | |
1693 | Part1.BrickColor = BrickColor.new("White") | |
1694 | Part1.Parent = DebrisModel | |
1695 | Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf) | |
1696 | Part1.Anchored = true | |
1697 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750)) | |
1698 | Part1.Name = "SMOKE" | |
1699 | end) | |
1700 | asd = Part0.Touched:connect(function(ht) | |
1701 | local hit=ht.Parent | |
1702 | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then | |
1703 | asd:disconnect() | |
1704 | loop:disconnect() | |
1705 | Part0:Destroy() | |
1706 | ||
1707 | sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500) | |
1708 | for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do | |
1709 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then | |
1710 | v:Destroy() | |
1711 | else | |
1712 | v.Parent:BreakJoints() | |
1713 | end | |
1714 | local Position = Part0.Position | |
1715 | local Target = v.Position | |
1716 | local direction = Target - Position | |
1717 | local direction = computeDirection(direction) | |
1718 | local bv = Instance.new("BodyVelocity",v) | |
1719 | bv.Velocity = direction * (120 - ((Position - Target).magnitude/2)) | |
1720 | debris:AddItem(bv,1) | |
1721 | end | |
1722 | for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end | |
1723 | for z=1,math.random(2,3) do | |
1724 | local asdf = math.random(-5,5)*10-(i/20)*12 | |
1725 | local Part1 = Instance.new("Part") | |
1726 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
1727 | mesh2.MeshType = Enum.MeshType.Sphere | |
1728 | mesh2.Scale = Vector3.new(0,0,0) | |
1729 | Part1.Material = Enum.Material.Neon | |
1730 | Part1.CanCollide = false | |
1731 | Part1.BrickColor = BrickColor.new("White") | |
1732 | Part1.Parent = DebrisModel | |
1733 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
1734 | Part1.Anchored = true | |
1735 | local a = i*5 | |
1736 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a)) | |
1737 | Part1.Name = "EXPLOSION4" | |
1738 | end | |
1739 | end | |
1740 | ||
1741 | end | |
1742 | end) | |
1743 | end)) | |
1744 | end | |
1745 | ||
1746 | ||
1747 | function AirPunch() | |
1748 | coroutine.resume(coroutine.create(function() | |
1749 | local magnitude = nil | |
1750 | local Position = nil | |
1751 | if animid == 0 then | |
1752 | Position = larm.Position | |
1753 | else | |
1754 | Position = rarm.Position | |
1755 | end | |
1756 | --sound(743499393,Position,10,math.random(6,8)/10) | |
1757 | local Sound2 = Instance.new("Sound",hed) | |
1758 | Sound2.SoundId = "rbxassetid://138137702" | |
1759 | Sound2.Volume = 5 | |
1760 | Sound2.Pitch = 1 | |
1761 | Sound2.Looped = false | |
1762 | Sound2:Play() | |
1763 | ||
1764 | local Part1 = Instance.new("Part") | |
1765 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
1766 | mesh2.MeshId = "rbxassetid://559831844" | |
1767 | mesh2.Scale = Vector3.new(0,0,0.4) | |
1768 | Part1.Material = Enum.Material.Neon | |
1769 | Part1.CanCollide = false | |
1770 | Part1.BrickColor = BrickColor.new("White") | |
1771 | Part1.Parent = DebrisModel | |
1772 | Part1.Size = Vector3.new(0,0,0) | |
1773 | Part1.Anchored = true | |
1774 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
1775 | Part1.Name = "EXPLOSION3" | |
1776 | ||
1777 | local Part0 = Instance.new("Part",DebrisModel) | |
1778 | local PointLight2 = Instance.new("PointLight") | |
1779 | Part0.Name = "Bullet" | |
1780 | Part0.Material = Enum.Material.Neon | |
1781 | Part0.BrickColor = BrickColor.new("White") | |
1782 | Part0.Anchored = false | |
1783 | Part0.Size = Vector3.new(20,20,20) | |
1784 | Part0.Transparency = 0.5 | |
1785 | local mesh = Instance.new("SpecialMesh",Part0) | |
1786 | mesh.MeshId = "rbxassetid://437347603" | |
1787 | mesh.Scale = Vector3.new(2.3,2.3,2.7) | |
1788 | ||
1789 | ||
1790 | coroutine.resume(coroutine.create(function() | |
1791 | for i = 3,3 do | |
1792 | ||
1793 | ||
1794 | ||
1795 | coroutine.resume(coroutine.create(function() | |
1796 | for i = 1,100 do | |
1797 | Part0.CFrame = Part0.CFrame*CFrame.Angles(0,0,-0.2) | |
1798 | ||
1799 | wait(0.00000000001) | |
1800 | end | |
1801 | ||
1802 | ||
1803 | end)) | |
1804 | wait(0.3) | |
1805 | end | |
1806 | end)) | |
1807 | ||
1808 | ||
1809 | local bforce = Instance.new("BodyForce",Part0) | |
1810 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
1811 | Part0.CanCollide = false | |
1812 | PointLight2.Parent = Part0 | |
1813 | PointLight2.Color = Part0.Color | |
1814 | local Target = mouse.Hit.p | |
1815 | local direction = Target - Position | |
1816 | local direction = computeDirection(direction) | |
1817 | local pos = Position + (direction * 2) | |
1818 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(0,0,1.55) | |
1819 | coroutine.resume(coroutine.create(function() | |
1820 | for i = 3,300 do | |
1821 | Part0.CFrame = Part0.CFrame:lerp(Part0.CFrame * CFrame.new(0, 0, -13), 0.4) | |
1822 | ||
1823 | ||
1824 | wait(0.00000000001) | |
1825 | end | |
1826 | ||
1827 | ||
1828 | end)) | |
1829 | local FZcharge3 = Instance.new("ParticleEmitter",Part0) | |
1830 | FZcharge3.Texture = "rbxassetid://174073769" | |
1831 | FZcharge3.Color = ColorSequence.new(BrickColor.new("White").Color) | |
1832 | FZcharge3.EmissionDirection = "Top" | |
1833 | FZcharge3.Speed = NumberRange.new(5) | |
1834 | FZcharge3.Size = NumberSequence.new(10,0) | |
1835 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
1836 | FZcharge3.Drag = 1.2 | |
1837 | FZcharge3.LockedToPart = false | |
1838 | FZcharge3.Lifetime = NumberRange.new(2) | |
1839 | FZcharge3.Rate = 105 | |
1840 | FZcharge3.LightEmission = 0.8 | |
1841 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
1842 | FZcharge3.VelocitySpread = 100 | |
1843 | FZcharge3.ZOffset = 1 | |
1844 | coroutine.resume(coroutine.create(function() | |
1845 | for i = 1,3 do | |
1846 | local HQ = Instance.new("Part",Part0) | |
1847 | HQ.Size = Vector3.new(1,1,1) | |
1848 | HQ.BrickColor = BrickColor.new("White") | |
1849 | HQ.Material = "Neon" | |
1850 | HQ.Anchored = true | |
1851 | HQ.CanCollide = false | |
1852 | HQ.Transparency = 0 | |
1853 | HQ.CFrame = Part0.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0) | |
1854 | local HQ2 = Instance.new("SpecialMesh",HQ) | |
1855 | HQ2.MeshId = "rbxassetid://20329976" | |
1856 | HQ2.Scale = Vector3.new(1,1,1) | |
1857 | local ZQW = Instance.new("Part",Part0) | |
1858 | ZQW.Size = Vector3.new(1,1,1) | |
1859 | ZQW.BrickColor = BrickColor.new("White") | |
1860 | ZQW.Material = "Neon" | |
1861 | ZQW.Transparency = 1 | |
1862 | ZQW.Anchored = true | |
1863 | ZQW.CanCollide = false | |
1864 | ZQW.CFrame = Part0.CFrame*CFrame.new(0,0,0) | |
1865 | local ZQW2 = Instance.new("SpecialMesh",ZQW) | |
1866 | ZQW2.MeshType = "Sphere" | |
1867 | ZQW2.Scale = Vector3.new(1,1,1) | |
1868 | local H = Instance.new("Part",Part0) | |
1869 | H.Size = Vector3.new(1,1,1) | |
1870 | H.BrickColor = BrickColor.new("White") | |
1871 | H.CanCollide = false | |
1872 | H.Anchored = true | |
1873 | H.CFrame = Part0.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0) | |
1874 | local H2 = Instance.new("SpecialMesh",H) | |
1875 | H2.MeshId = "rbxassetid://3270017" | |
1876 | coroutine.resume(coroutine.create(function() | |
1877 | for i = 3,90 do | |
1878 | ZQW2.Scale = ZQW2.Scale + Vector3.new(6.2,6.2,6.2) | |
1879 | ZQW.Transparency = ZQW.Transparency + 0.06 | |
1880 | HQ2.Scale = HQ2.Scale + Vector3.new(3.2,3.2,3.2) | |
1881 | HQ.Transparency = HQ.Transparency + 0.05 | |
1882 | H2.Scale = H2.Scale + Vector3.new(6.2,6.2,6.2) | |
1883 | H.Transparency = H.Transparency + 0.05 | |
1884 | wait(0.00000000001) | |
1885 | end | |
1886 | HQ:Destroy() | |
1887 | H2:Destroy() | |
1888 | H:Destroy() | |
1889 | HQ2:Destroy() | |
1890 | ZQW:Destroy() | |
1891 | ZQW2:Destroy() | |
1892 | end)) | |
1893 | wait(0.3) | |
1894 | end | |
1895 | end)) | |
1896 | local asd = nil | |
1897 | local loop = nil | |
1898 | delay(2, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
1899 | loop = rs:connect(function() | |
1900 | local asdf = math.random(100,1000)/1000 | |
1901 | local Part1 = Instance.new("Part") | |
1902 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
1903 | mesh2.MeshType = Enum.MeshType.Sphere | |
1904 | Part1.Material = Enum.Material.Neon | |
1905 | Part1.CanCollide = false | |
1906 | Part1.Transparency = 0.9 | |
1907 | Part1.BrickColor = BrickColor.new("White") | |
1908 | Part1.Parent = DebrisModel | |
1909 | Part1.Size = (Part0.Size*0.6) + Vector3.new(asdf,asdf,asdf) | |
1910 | Part1.Anchored = true | |
1911 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/80,math.random(-1000,1000)/80,math.random(-1000,1000)/750)) | |
1912 | Part1.Name = "SMOKE" | |
1913 | end) | |
1914 | asd = Part0.Touched:connect(function(ht) | |
1915 | local hit=ht.Parent | |
1916 | ||
1917 | ||
1918 | for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do | |
1919 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then | |
1920 | v:Destroy() | |
1921 | else | |
1922 | v.Parent.Humanoid:TakeDamage(100000) | |
1923 | ||
1924 | ||
1925 | ||
1926 | end | |
1927 | local Position = Part0.Position | |
1928 | local Target = v.Position | |
1929 | local direction = Target - Position | |
1930 | local direction = computeDirection(direction) | |
1931 | local bv = Instance.new("BodyVelocity",v) | |
1932 | bv.Velocity = direction * (50 - ((Position - Target).magnitude/2)) | |
1933 | debris:AddItem(bv,1) | |
1934 | end | |
1935 | ||
1936 | ||
1937 | end) | |
1938 | end)) | |
1939 | end | |
1940 | ||
1941 | function DetroitSmash() | |
1942 | coroutine.resume(coroutine.create(function() | |
1943 | local magnitude = nil | |
1944 | local Position = nil | |
1945 | if animid == 0 then | |
1946 | Position = larm.Position | |
1947 | else | |
1948 | Position = rarm.Position | |
1949 | end | |
1950 | --sound(743499393,Position,10,math.random(6,8)/10) | |
1951 | sound(1050751126,Position,10,math.random(4,5)/10,100) | |
1952 | ||
1953 | local Part1 = Instance.new("Part") | |
1954 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
1955 | mesh2.MeshId = "rbxassetid://559831844" | |
1956 | mesh2.Scale = Vector3.new(0,0,0.4) | |
1957 | Part1.Material = Enum.Material.Neon | |
1958 | Part1.CanCollide = false | |
1959 | Part1.BrickColor = BrickColor.new("White") | |
1960 | Part1.Parent = DebrisModel | |
1961 | Part1.Size = Vector3.new(0,0,0) | |
1962 | Part1.Anchored = true | |
1963 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
1964 | Part1.Name = "EXPLOSION3" | |
1965 | ||
1966 | ||
1967 | ||
1968 | ||
1969 | ||
1970 | ||
1971 | ||
1972 | ||
1973 | ||
1974 | local Target = mouse.Hit.p | |
1975 | local direction = Target - Position | |
1976 | local direction = computeDirection(direction) | |
1977 | local pos = Position + (direction * 2) | |
1978 | ||
1979 | ||
1980 | ||
1981 | local asd = nil | |
1982 | local loop = nil | |
1983 | ||
1984 | local asdf = math.random(100,1000)/1000 | |
1985 | local Part1 = Instance.new("Part") | |
1986 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
1987 | mesh2.MeshType = Enum.MeshType.Sphere | |
1988 | Part1.Material = Enum.Material.Neon | |
1989 | Part1.CanCollide = false | |
1990 | Part1.Transparency = 0.9 | |
1991 | Part1.BrickColor = BrickColor.new("Institutional white") | |
1992 | Part1.Parent = DebrisModel | |
1993 | Part1.Size = (Part1.Size*0.9) + Vector3.new(asdf,asdf,asdf) | |
1994 | Part1.Anchored = true | |
1995 | Part1.CFrame = CFrame.new(torso.Position + Vector3.new(math.random(-1000,1000)/10,math.random(-1000,1000)/10,math.random(-1000,1000)/750)) | |
1996 | Part1.Name = "SMOKE" | |
1997 | ||
1998 | ||
1999 | ||
2000 | ||
2001 | sound(punch[math.random(1,#punch)],Part1.Position,500,math.random(3,5)/5,50) | |
2002 | for i,v in pairs(findAllNearestTorso(Part1.Position,100)) do | |
2003 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then | |
2004 | v:Destroy() | |
2005 | else | |
2006 | v.Parent.Humanoid:TakeDamage(100000000000000) | |
2007 | ||
2008 | ||
2009 | ||
2010 | end | |
2011 | local Position = Part1.Position | |
2012 | local Target = v.Position | |
2013 | local direction = Target - Position | |
2014 | local direction = computeDirection(direction) | |
2015 | local bv = Instance.new("BodyVelocity",v) | |
2016 | bv.Velocity = direction * (50 - ((Position - Target).magnitude/2)) | |
2017 | debris:AddItem(bv,1) | |
2018 | end | |
2019 | for i=1,14,2 do for x=1,math.random(1,2) do rs:wait() end | |
2020 | for z=1,math.random(1,2) do | |
2021 | local asdf = math.random(-5,5)*3-(i/20)*10 | |
2022 | local Part1 = Instance.new("Part") | |
2023 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
2024 | mesh2.MeshType = Enum.MeshType.Sphere | |
2025 | mesh2.Scale = Vector3.new(0,0,0) | |
2026 | Part1.Material = Enum.Material.SmoothPlastic | |
2027 | Part1.CanCollide = false | |
2028 | Part1.BrickColor = BrickColor.new("Institutional white") | |
2029 | Part1.Parent = DebrisModel | |
2030 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
2031 | Part1.Anchored = true | |
2032 | Part1.Transparency = 0.3 | |
2033 | local a = i*0.9 | |
2034 | Part1.CFrame = CFrame.new(torso.Position + Vector3.new(math.random(-1,1)*a,math.random(-1,1),math.random(-1,1)*a)) | |
2035 | Part1.Name = "EXPLOSION4" | |
2036 | end | |
2037 | end | |
2038 | end)) | |
2039 | end | |
2040 | ||
2041 | function DelawareSmash() | |
2042 | coroutine.resume(coroutine.create(function() | |
2043 | local magnitude = nil | |
2044 | local Position = nil | |
2045 | if animid == 0 then | |
2046 | Position = larm.Position | |
2047 | else | |
2048 | Position = rarm.Position | |
2049 | end | |
2050 | --sound(743499393,Position,10,math.random(6,8)/10) | |
2051 | local Sound2 = Instance.new("Sound",hed) | |
2052 | Sound2.SoundId = "rbxassetid://138137702" | |
2053 | Sound2.Volume = 5 | |
2054 | Sound2.Pitch = 0.9 | |
2055 | Sound2.Looped = false | |
2056 | Sound2:Play() | |
2057 | ||
2058 | local Part1 = Instance.new("Part") | |
2059 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
2060 | mesh2.MeshId = "rbxassetid://559831844" | |
2061 | mesh2.Scale = Vector3.new(0,0,0.4) | |
2062 | Part1.Material = Enum.Material.Neon | |
2063 | Part1.CanCollide = false | |
2064 | Part1.BrickColor = BrickColor.new("White") | |
2065 | Part1.Parent = DebrisModel | |
2066 | Part1.Size = Vector3.new(0,0,0) | |
2067 | Part1.Anchored = true | |
2068 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
2069 | Part1.Name = "EXPLOSION3" | |
2070 | ||
2071 | local Part0 = Instance.new("Part",DebrisModel) | |
2072 | local PointLight2 = Instance.new("PointLight") | |
2073 | PointLight2.Brightness = 100 | |
2074 | PointLight2.Range = 40 | |
2075 | Part0.Name = "Bullet" | |
2076 | Part0.Material = Enum.Material.Glass | |
2077 | Part0.BrickColor = BrickColor.new("White") | |
2078 | Part0.Anchored = false | |
2079 | Part0.Size = Vector3.new(20,20,20) | |
2080 | Part0.Transparency = 0.5 | |
2081 | local mesh = Instance.new("SpecialMesh",Part0) | |
2082 | mesh.MeshId = "rbxassetid://437347603" | |
2083 | mesh.Scale = Vector3.new(4.3,4.3,6.7) | |
2084 | local Music = Instance.new("Sound",Part0) | |
2085 | Music.SoundId = "rbxassetid://362395087" | |
2086 | Music.Pitch = 0.8 | |
2087 | Music.Looped = true | |
2088 | Music.Volume = 5 | |
2089 | ||
2090 | Music:Play() | |
2091 | ||
2092 | coroutine.resume(coroutine.create(function() | |
2093 | for i = 3,3 do | |
2094 | ||
2095 | ||
2096 | ||
2097 | coroutine.resume(coroutine.create(function() | |
2098 | for i = 1,400 do | |
2099 | Part0.CFrame = Part0.CFrame*CFrame.Angles(0,0,-0.2) | |
2100 | ||
2101 | wait() | |
2102 | end | |
2103 | ||
2104 | ||
2105 | end)) | |
2106 | wait(0.3) | |
2107 | end | |
2108 | end)) | |
2109 | ||
2110 | ||
2111 | local bforce = Instance.new("BodyForce",Part0) | |
2112 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
2113 | Part0.CanCollide = false | |
2114 | PointLight2.Parent = Part0 | |
2115 | PointLight2.Color = Part0.Color | |
2116 | local Target = mouse.Hit.p | |
2117 | local direction = Target - Position | |
2118 | local direction = computeDirection(direction) | |
2119 | local pos = Position + (direction * 2) | |
2120 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(0,0,1.55) | |
2121 | ||
2122 | coroutine.resume(coroutine.create(function() | |
2123 | for i = 3,300 do | |
2124 | Part0.CFrame = Part0.CFrame:lerp(Part0.CFrame * CFrame.new(0, 0, -18), 0.4) | |
2125 | ||
2126 | ||
2127 | wait() | |
2128 | end | |
2129 | ||
2130 | ||
2131 | end)) | |
2132 | local FZcharge3 = Instance.new("ParticleEmitter",Part0) | |
2133 | FZcharge3.Texture = "rbxassetid://174073769" | |
2134 | FZcharge3.Color = ColorSequence.new(BrickColor.new("White").Color) | |
2135 | FZcharge3.EmissionDirection = "Top" | |
2136 | FZcharge3.Speed = NumberRange.new(5) | |
2137 | FZcharge3.Size = NumberSequence.new(40,0) | |
2138 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
2139 | FZcharge3.Drag = 1.2 | |
2140 | FZcharge3.LockedToPart = false | |
2141 | FZcharge3.Lifetime = NumberRange.new(3) | |
2142 | FZcharge3.Rate = 105 | |
2143 | FZcharge3.LightEmission = 0.8 | |
2144 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
2145 | FZcharge3.VelocitySpread = 100 | |
2146 | FZcharge3.ZOffset = 1 | |
2147 | local FlyAt = Instance.new("Attachment",Part0)FlyAt.Position = Vector3.new(0,0.1,0) | |
2148 | local FlyAt2 = Instance.new("Attachment",Part0)FlyAt2.Position = Vector3.new(0,-15.5,0) | |
2149 | local Speed = Instance.new("Trail",Part0)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2 | |
2150 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 2.1 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2151 | Speed.Color = ColorSequence.new(Color3.fromRGB(248, 248, 248)) Speed.LightEmission = 5 | |
2152 | ||
2153 | coroutine.resume(coroutine.create(function() | |
2154 | for i = 1,60 do | |
2155 | local HQ = Instance.new("Part",Part0) | |
2156 | HQ.Size = Vector3.new(1,1,1) | |
2157 | HQ.BrickColor = BrickColor.new("White") | |
2158 | HQ.Material = Enum.Material.Glass | |
2159 | HQ.Anchored = true | |
2160 | HQ.CanCollide = false | |
2161 | HQ.Transparency = 0 | |
2162 | HQ.CFrame = Part0.CFrame*CFrame.new(0,0,-20)*CFrame.Angles(1.55,0,0) | |
2163 | local HQ2 = Instance.new("SpecialMesh",HQ) | |
2164 | HQ2.MeshId = "rbxassetid://20329976" | |
2165 | HQ2.Scale = Vector3.new(14.5,14.5,14.5) | |
2166 | local ZQW = Instance.new("Part",Part0) | |
2167 | ZQW.Size = Vector3.new(1,1,1) | |
2168 | ZQW.BrickColor = BrickColor.new("White") | |
2169 | ZQW.Material = Enum.Material.Glass | |
2170 | ZQW.Transparency = 1 | |
2171 | ZQW.Anchored = true | |
2172 | ZQW.CanCollide = false | |
2173 | ZQW.CFrame = Part0.CFrame*CFrame.new(-40,0,0) | |
2174 | local ZQW2 = Instance.new("SpecialMesh",ZQW) | |
2175 | ZQW2.MeshType = "Sphere" | |
2176 | ZQW2.Scale = Vector3.new(14.5,14.5,2.5) | |
2177 | local H = Instance.new("Part",Part0) | |
2178 | H.Size = Vector3.new(1,1,1) | |
2179 | H.BrickColor = BrickColor.new("White") | |
2180 | H.CanCollide = false | |
2181 | H.Anchored = true | |
2182 | H.CFrame = Part0.CFrame*CFrame.new(0,0,-40)*CFrame.Angles(0,0,0) | |
2183 | local H2 = Instance.new("SpecialMesh",H) | |
2184 | H2.MeshId = "rbxassetid://3270017" | |
2185 | H2.Scale = Vector3.new(14.5,14.5,2.5) | |
2186 | coroutine.resume(coroutine.create(function() | |
2187 | for i = 1,90 do | |
2188 | ZQW2.Scale = ZQW2.Scale + Vector3.new(6.2,6.2,6.2) | |
2189 | ZQW.Transparency = ZQW.Transparency + 0.06 | |
2190 | HQ2.Scale = HQ2.Scale + Vector3.new(3.2,8.2,3.2) | |
2191 | HQ.Transparency = HQ.Transparency + 0.05 | |
2192 | H2.Scale = H2.Scale + Vector3.new(6.2,6.2,6.2) | |
2193 | H.Transparency = H.Transparency + 0.05 | |
2194 | wait(0.00000000001) | |
2195 | end | |
2196 | HQ:Destroy() | |
2197 | H2:Destroy() | |
2198 | H:Destroy() | |
2199 | HQ2:Destroy() | |
2200 | ZQW:Destroy() | |
2201 | ZQW2:Destroy() | |
2202 | end)) | |
2203 | ||
2204 | wait(0.1) | |
2205 | ||
2206 | end | |
2207 | ||
2208 | end)) | |
2209 | local asd = nil | |
2210 | local loop = nil | |
2211 | delay(7, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
2212 | loop = rs:connect(function() | |
2213 | local asdf = math.random(100,1000)/1000 | |
2214 | local Part1 = Instance.new("Part") | |
2215 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
2216 | mesh2.MeshType = Enum.MeshType.Sphere | |
2217 | Part1.Material = Enum.Material.Neon | |
2218 | Part1.CanCollide = false | |
2219 | Part1.Transparency = 0.9 | |
2220 | Part1.BrickColor = BrickColor.new("White") | |
2221 | Part1.Parent = DebrisModel | |
2222 | Part1.Size = (Part0.Size*0.6) + Vector3.new(asdf,asdf,asdf) | |
2223 | Part1.Anchored = true | |
2224 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/80,math.random(-1000,1000)/80,math.random(-1000,1000)/750)) | |
2225 | Part1.Name = "SMOKE" | |
2226 | end) | |
2227 | asd = Part0.Touched:connect(function(ht) | |
2228 | local hit=ht.Parent | |
2229 | ||
2230 | ||
2231 | ||
2232 | ||
2233 | for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do | |
2234 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then | |
2235 | v:Destroy() | |
2236 | else | |
2237 | v.Parent.Humanoid:TakeDamage(1000) | |
2238 | v.Velocity = Part0.CFrame.lookVector * 100 | |
2239 | ||
2240 | end | |
2241 | ||
2242 | local Position = Part0.Position | |
2243 | local Target = v.Position | |
2244 | local direction = Target - Position | |
2245 | local direction = computeDirection(direction) | |
2246 | local bv = Instance.new("BodyVelocity",v) | |
2247 | bv.Velocity = direction * (50 - ((Position - Target).magnitude/2)) | |
2248 | debris:AddItem(bv,1) | |
2249 | end | |
2250 | ||
2251 | ||
2252 | end) | |
2253 | end)) | |
2254 | end | |
2255 | ||
2256 | ||
2257 | ||
2258 | function unused() | |
2259 | coroutine.resume(coroutine.create(function() | |
2260 | local magnitude = nil | |
2261 | local Position = nil | |
2262 | if animid == 0 then | |
2263 | Position = larm.Position | |
2264 | else | |
2265 | Position = rarm.Position | |
2266 | end | |
2267 | --sound(743499393,Position,10,math.random(6,8)/10) | |
2268 | sound(1050751126,Position,10,math.random(4,5)/10,100) | |
2269 | ||
2270 | local Part1 = Instance.new("Part") | |
2271 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
2272 | mesh2.MeshId = "rbxassetid://559831844" | |
2273 | mesh2.Scale = Vector3.new(0,0,0.4) | |
2274 | Part1.Material = Enum.Material.Neon | |
2275 | Part1.CanCollide = false | |
2276 | Part1.BrickColor = BrickColor.new("White") | |
2277 | Part1.Parent = DebrisModel | |
2278 | Part1.Size = Vector3.new(0,0,0) | |
2279 | Part1.Anchored = true | |
2280 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
2281 | Part1.Name = "EXPLOSION3" | |
2282 | ||
2283 | local Part0 = Instance.new("Part",DebrisModel) | |
2284 | local PointLight2 = Instance.new("PointLight") | |
2285 | Part0.Name = "Bullet" | |
2286 | Part0.Material = Enum.Material.Neon | |
2287 | Part0.BrickColor = BrickColor.new("White") | |
2288 | Part0.Anchored = false | |
2289 | Part0.Size = Vector3.new(1,1,1) | |
2290 | Part0.Transparency = 0.5 | |
2291 | local mesh = Instance.new("SpecialMesh",Part0) | |
2292 | mesh.MeshId = "rbxassetid://437347603" | |
2293 | mesh.Scale = Vector3.new(1.3,1.3,4.4) | |
2294 | local bforce = Instance.new("BodyForce",Part0) | |
2295 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
2296 | Part0.CanCollide = false | |
2297 | PointLight2.Parent = Part0 | |
2298 | PointLight2.Color = Part0.Color | |
2299 | local Target = mouse.Hit.p | |
2300 | local direction = Target - Position | |
2301 | local direction = computeDirection(direction) | |
2302 | local pos = Position + (direction * 2) | |
2303 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(0,0,1.55) | |
2304 | Part0.Velocity = direction * 750 | |
2305 | local asd = nil | |
2306 | local loop = nil | |
2307 | delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
2308 | loop = rs:connect(function() | |
2309 | local asdf = math.random(500,1000)/1000 | |
2310 | local Part1 = Instance.new("Part") | |
2311 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
2312 | mesh2.MeshType = Enum.MeshType.Sphere | |
2313 | Part1.Material = Enum.Material.Neon | |
2314 | Part1.CanCollide = false | |
2315 | Part1.BrickColor = BrickColor.new("White") | |
2316 | Part1.Parent = DebrisModel | |
2317 | Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf) | |
2318 | Part1.Anchored = true | |
2319 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750)) | |
2320 | Part1.Name = "SMOKE" | |
2321 | end) | |
2322 | asd = Part0.Touched:connect(function(ht) | |
2323 | local hit=ht.Parent | |
2324 | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then | |
2325 | asd:disconnect() | |
2326 | loop:disconnect() | |
2327 | Part0:Destroy() | |
2328 | ||
2329 | sound(punch[math.random(1,#punch)],Part0.Position,10,math.random(3,5)/5,50) | |
2330 | for i,v in pairs(findAllNearestTorso(Part0.Position,35)) do | |
2331 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then | |
2332 | v:Destroy() | |
2333 | else | |
2334 | v.Parent:BreakJoints() | |
2335 | local Fl = Instance.new("BodyVelocity",v.Parent.Head) | |
2336 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2337 | Fl.velocity = Part0.CFrame.lookVector*395 | |
2338 | wait(0.05) | |
2339 | Fl:remove() | |
2340 | ||
2341 | end | |
2342 | local Position = Part0.Position | |
2343 | local Target = v.Position | |
2344 | local direction = Target - Position | |
2345 | local direction = computeDirection(direction) | |
2346 | local bv = Instance.new("BodyVelocity",v) | |
2347 | bv.Velocity = direction * (120 - ((Position - Target).magnitude/2)) | |
2348 | debris:AddItem(bv,1) | |
2349 | end | |
2350 | for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end | |
2351 | for z=1,math.random(2,3) do | |
2352 | local asdf = math.random(-5,5)*2-(i/2)*10 | |
2353 | local Part1 = Instance.new("Part") | |
2354 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
2355 | mesh2.MeshType = Enum.MeshType.Sphere | |
2356 | mesh2.Scale = Vector3.new(0,0,0) | |
2357 | Part1.Material = Enum.Material.Neon | |
2358 | Part1.CanCollide = false | |
2359 | Part1.BrickColor = BrickColor.new("White") | |
2360 | Part1.Parent = DebrisModel | |
2361 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
2362 | Part1.Anchored = true | |
2363 | local a = i*0.7 | |
2364 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) | |
2365 | Part1.Name = "EXPLOSION4" | |
2366 | end | |
2367 | end | |
2368 | ||
2369 | end | |
2370 | end) | |
2371 | end)) | |
2372 | end | |
2373 | ||
2374 | ||
2375 | ||
2376 | ||
2377 | ||
2378 | ||
2379 | function lerpz(joint, prop, cfrmz, alp) | |
2380 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
2381 | end | |
2382 | function resetlerp() | |
2383 | RJ.C0 = RJC0 | |
2384 | RJ.C1 = RJC1 | |
2385 | N.C0 = NC0 | |
2386 | N.C1 = NC1 | |
2387 | RS.C0 = RSC0 | |
2388 | RS.C1 = RSC1 | |
2389 | LS.C0 = LSC0 | |
2390 | LS.C1 = LSC1 | |
2391 | RH.C0 = RHC0 | |
2392 | RH.C1 = RHC1 | |
2393 | LH.C0 = LHC0 | |
2394 | end | |
2395 | function swait(num) | |
2396 | if num == 0 or num == nil then | |
2397 | Heartbeat.Event:wait() | |
2398 | else | |
2399 | for i = 1, num do | |
2400 | Heartbeat.Event:wait() | |
2401 | end | |
2402 | end | |
2403 | end | |
2404 | mouse.KeyDown:connect(function(k) | |
2405 | if k == "=" and MUI == true then | |
2406 | instinct = false | |
2407 | animid = 5 | |
2408 | no_anim = true | |
2409 | for _ = 1, 45 do | |
2410 | swait() | |
2411 | lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2) | |
2412 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2) | |
2413 | lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(25, 35)), rd(rd2(-15, -5)), rd(rd2(80, 90))), 0.2) | |
2414 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
2415 | lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2) | |
2416 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2) | |
2417 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2) | |
2418 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
2419 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2) | |
2420 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
2421 | ||
2422 | end | |
2423 | AirPunchStrong() | |
2424 | wait(0.2) | |
2425 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)), 0.8)--head | |
2426 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)), 0.8)--torso | |
2427 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(10)), 0.8)--rarm | |
2428 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(-20)), 0.8)--larm | |
2429 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
2430 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
2431 | wait(0.5) | |
2432 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)), 0.8)--head | |
2433 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)), 0.8)--torso | |
2434 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(10)), 0.8)--rarm | |
2435 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.8)--larm | |
2436 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
2437 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
2438 | AirPunchStrong() | |
2439 | wait(0.2) | |
2440 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)), 0.8)--head | |
2441 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)), 0.8)--torso | |
2442 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(10)), 0.8)--rarm | |
2443 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(-20)), 0.8)--larm | |
2444 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
2445 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
2446 | wait(0.5) | |
2447 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-50),math.rad(0)), 0.8)--head | |
2448 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(50),math.rad(0)), 0.8)--torso | |
2449 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.8)--rarm | |
2450 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-10)), 0.8)--larm | |
2451 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
2452 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
2453 | AirPunchStrong() | |
2454 | wait(0.2) | |
2455 | no_anim = false | |
2456 | instinct = true | |
2457 | end | |
2458 | end) | |
2459 | ||
2460 | ||
2461 | ||
2462 | local attacktype = 1 | |
2463 | mouse.Button1Down:connect(function() | |
2464 | if attack == false and attacktype == 1 and MUI == false then | |
2465 | Hit() | |
2466 | attacktype = 2 | |
2467 | elseif attack == false and attacktype == 2 and MUI == false then | |
2468 | Hit2() | |
2469 | attacktype = 1 | |
2470 | end | |
2471 | end) | |
2472 | ||
2473 | ||
2474 | mouse.Button1Down:connect(function() | |
2475 | if attack == false and attacktype == 1 and MUI == true then | |
2476 | HitFC() | |
2477 | attacktype = 2 | |
2478 | elseif attack == false and attacktype == 2 and MUI == true then | |
2479 | HitFC2() | |
2480 | attacktype = 1 | |
2481 | end | |
2482 | end) | |
2483 | function Hit() | |
2484 | if not D then D = true | |
2485 | animid = 5 | |
2486 | no_anim = true | |
2487 | ||
2488 | local Grab = Instance.new("Part",larm) | |
2489 | Grab.Size = Vector3.new(4,4,4) | |
2490 | Grab.CanCollide = false | |
2491 | Grab.BrickColor = BrickColor.new("Deep orange") | |
2492 | Grab.Transparency = math.huge | |
2493 | local Grabo = Instance.new("Weld",Grab) | |
2494 | Grabo.Part0 = larm | |
2495 | Grabo.Part1 = Grab | |
2496 | Grabo.C0 = CFrame.new(0,-1.1,0) | |
2497 | local SFXZ = Instance.new("Sound",torso) | |
2498 | SFXZ.SoundId = "rbxassetid://169259383" | |
2499 | SFXZ.Volume = 1 | |
2500 | SFXZ.Pitch = 1.5 | |
2501 | SFXZ.Looped = false | |
2502 | wait(0.01) | |
2503 | SFXZ:Play() | |
2504 | ||
2505 | Grab.Touched:connect(function(hit) | |
2506 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= plr.Character.Name then | |
2507 | Grab:Destroy() | |
2508 | SFXZ:Destroy() | |
2509 | ||
2510 | hit.Parent.Humanoid:TakeDamage(5000000000000000) | |
2511 | local Smash = Instance.new("Part",char) | |
2512 | Smash.Size = Vector3.new(30,30,30) | |
2513 | Smash.BrickColor = BrickColor.new("New Yeller") | |
2514 | Smash.CanCollide = false | |
2515 | Smash.Anchored = true | |
2516 | Smash.Transparency = 0.1 | |
2517 | Smash.CFrame = root.CFrame*CFrame.new(0,0,20)*CFrame.Angles(0,0,1.55) | |
2518 | local Smash2 = Instance.new("SpecialMesh",Smash) | |
2519 | Smash2.MeshId = "rbxassetid://437347603" | |
2520 | Smash2.Scale = Vector3.new(2.8,2.8,2.94) | |
2521 | local Sound2 = Instance.new("Sound",Smash) | |
2522 | Sound2.SoundId = "rbxassetid://138137702" | |
2523 | Sound2.Volume = 0.9 | |
2524 | Sound2.Pitch = 1 | |
2525 | Sound2.Looped = false | |
2526 | Sound2:Play() | |
2527 | local Sound = Instance.new("Sound",torso) | |
2528 | Sound.SoundId = "rbxassetid://0" | |
2529 | Sound.Volume = 7 | |
2530 | Sound.Pitch = 1 | |
2531 | Sound.Looped = false | |
2532 | Sound:Play() | |
2533 | coroutine.resume(coroutine.create(function() | |
2534 | for i = 3,100 do | |
2535 | ||
2536 | Smash.CFrame = Smash.CFrame*CFrame.Angles(0,0,-0.1) | |
2537 | Smash.CFrame = Smash.CFrame:lerp(Smash.CFrame * CFrame.new(0, 0, -11), 0.4) | |
2538 | ||
2539 | ||
2540 | Smash.Transparency = Smash.Transparency + 0.09 | |
2541 | ||
2542 | wait(0.00000000001) | |
2543 | end | |
2544 | Smash:Destroy() | |
2545 | ||
2546 | end)) | |
2547 | ||
2548 | ||
2549 | coroutine.resume(coroutine.create(function() | |
2550 | for i = 1,3 do | |
2551 | local HQ = Instance.new("Part",root) | |
2552 | HQ.Size = Vector3.new(1,1,1) | |
2553 | HQ.BrickColor = BrickColor.new("Medium stone grey") | |
2554 | HQ.Material = "Neon" | |
2555 | HQ.Anchored = true | |
2556 | HQ.CanCollide = false | |
2557 | HQ.Transparency = 0 | |
2558 | HQ.CFrame = hit.Parent.Head.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,1.55) | |
2559 | local HQ2 = Instance.new("SpecialMesh",HQ) | |
2560 | HQ2.MeshId = "rbxassetid://3270017" | |
2561 | HQ2.Scale = Vector3.new(1,1,1) | |
2562 | local ZQW = Instance.new("Part",root) | |
2563 | ZQW.Size = Vector3.new(1,1,1) | |
2564 | ZQW.BrickColor = BrickColor.new("Medium stone grey") | |
2565 | ZQW.Material = "Neon" | |
2566 | ZQW.Transparency = 1 | |
2567 | ZQW.Anchored = true | |
2568 | ZQW.CanCollide = false | |
2569 | ZQW.CFrame = hit.Parent.Head.CFrame*CFrame.new(0,0,0) | |
2570 | local ZQW2 = Instance.new("SpecialMesh",ZQW) | |
2571 | ZQW2.MeshType = "Sphere" | |
2572 | ZQW2.Scale = Vector3.new(1,1,1) | |
2573 | local H = Instance.new("Part",root) | |
2574 | H.Size = Vector3.new(1,1,1) | |
2575 | H.BrickColor = BrickColor.new("Medium stone grey") | |
2576 | H.CanCollide = false | |
2577 | H.Anchored = true | |
2578 | H.CFrame = hit.Parent.Head.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,1.55) | |
2579 | local H2 = Instance.new("SpecialMesh",H) | |
2580 | H2.MeshId = "rbxassetid://3270017" | |
2581 | coroutine.resume(coroutine.create(function() | |
2582 | for i = 3,90 do | |
2583 | ZQW2.Scale = ZQW2.Scale + Vector3.new(2.2,2.2,2.2) | |
2584 | ZQW.Transparency = ZQW.Transparency + 0.06 | |
2585 | HQ2.Scale = HQ2.Scale + Vector3.new(3,3,3.2) | |
2586 | HQ.Transparency = HQ.Transparency + 0.05 | |
2587 | H2.Scale = H2.Scale + Vector3.new(2.2,2.2,2.2) | |
2588 | H.Transparency = H.Transparency + 0.05 | |
2589 | wait(0.00000000001) | |
2590 | end | |
2591 | HQ:Destroy() | |
2592 | H2:Destroy() | |
2593 | H:Destroy() | |
2594 | HQ2:Destroy() | |
2595 | ZQW:Destroy() | |
2596 | ZQW2:Destroy() | |
2597 | end)) | |
2598 | wait(0.3) | |
2599 | end | |
2600 | end)) | |
2601 | local Spinn = Instance.new("Part",char) | |
2602 | Spinn.Size = Vector3.new(1,1,1) | |
2603 | Spinn.BrickColor = BrickColor.new("New Yeller") | |
2604 | Spinn.CanCollide = false | |
2605 | Spinn.Transparency = 0.1 | |
2606 | Spinn.Anchored = true | |
2607 | Spinn.Material = "Neon" | |
2608 | Spinn.CFrame = root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0) | |
2609 | local Spinn2 = Instance.new("SpecialMesh",Spinn) | |
2610 | Spinn2.MeshId = "rbxassetid://881809484" | |
2611 | Spinn2.Scale = Vector3.new(20,20,20) | |
2612 | coroutine.resume(coroutine.create(function() | |
2613 | for i = 3,300 do | |
2614 | Spinn.Transparency = Spinn.Transparency + 0.05 | |
2615 | ||
2616 | Spinn.CFrame = Spinn.CFrame*CFrame.Angles(0.2,0.2,0.2) | |
2617 | wait(0.00000000001) | |
2618 | end | |
2619 | end)) | |
2620 | ||
2621 | ||
2622 | local Spinn = Instance.new("Part",char) | |
2623 | Spinn.Size = Vector3.new(1,1,1) | |
2624 | Spinn.BrickColor = BrickColor.new("New Yeller") | |
2625 | Spinn.CanCollide = false | |
2626 | Spinn.Transparency = 0.1 | |
2627 | Spinn.Anchored = true | |
2628 | Spinn.Material = "Neon" | |
2629 | Spinn.CFrame = root.CFrame*CFrame.new(0,0,-10)*CFrame.Angles(0,0,0) | |
2630 | local Spinn2 = Instance.new("SpecialMesh",Spinn) | |
2631 | Spinn2.MeshType = 3 | |
2632 | Spinn2.Scale = Vector3.new(6,6,35) | |
2633 | coroutine.resume(coroutine.create(function() | |
2634 | for i = 3,300 do | |
2635 | Spinn.Transparency = Spinn.Transparency + 0.05 | |
2636 | ||
2637 | ||
2638 | wait(0.00000000001) | |
2639 | end | |
2640 | end)) | |
2641 | ||
2642 | local SFXZ = Instance.new("Sound",hed) | |
2643 | SFXZ.SoundId = "rbxassetid://260430060" | |
2644 | SFXZ.Volume = 3 | |
2645 | SFXZ.Pitch = 1 | |
2646 | SFXZ.Looped = false | |
2647 | wait(0.01) | |
2648 | SFXZ:Play() | |
2649 | ||
2650 | end | |
2651 | SFXZ:Destroy() | |
2652 | end) | |
2653 | ||
2654 | for i= 1,5 do | |
2655 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head | |
2656 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(-70), math.rad(0)), .5)--torso | |
2657 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)), .5)--arm | |
2658 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.0,0.5,-0.8)*CFrame.Angles(math.rad(160),math.rad(70),math.rad(10)), .5)--arm | |
2659 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .5)--leg | |
2660 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),.5)--leg | |
2661 | wait() | |
2662 | end | |
2663 | ||
2664 | coroutine.resume(coroutine.create(function() | |
2665 | wait(0.5) | |
2666 | Grab:remove() | |
2667 | end)) | |
2668 | no_anim = false | |
2669 | Grab:Destroy() | |
2670 | wait(0) | |
2671 | D = false | |
2672 | end | |
2673 | end | |
2674 | function Hit2() | |
2675 | if not D then D = true | |
2676 | no_anim = true | |
2677 | local Grab = Instance.new("Part",rarm) | |
2678 | Grab.Size = Vector3.new(4,4,4) | |
2679 | Grab.CanCollide = false | |
2680 | Grab.BrickColor = BrickColor.new("Deep orange") | |
2681 | Grab.Transparency = math.huge | |
2682 | local Grabo = Instance.new("Weld",Grab) | |
2683 | Grabo.Part0 = rarm | |
2684 | Grabo.Part1 = Grab | |
2685 | Grabo.C0 = CFrame.new(0,-1.1,0) | |
2686 | local SFXZ = Instance.new("Sound",torso) | |
2687 | SFXZ.SoundId = "rbxassetid://169259383" | |
2688 | SFXZ.Volume = 1 | |
2689 | SFXZ.Pitch = 1 | |
2690 | SFXZ.Looped = false | |
2691 | wait(0.01) | |
2692 | SFXZ:Play() | |
2693 | ||
2694 | Grab.Touched:connect(function(hit) | |
2695 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= plr.Character.Name then | |
2696 | Grab:Destroy() | |
2697 | SFXZ:Destroy() | |
2698 | hit.Parent.Humanoid:TakeDamage(50) | |
2699 | local Cloud3 = Instance.new("Part",char) | |
2700 | Cloud3.Size = Vector3.new(1,1,1) | |
2701 | Cloud3.BrickColor = BrickColor.new("Medium stone grey") | |
2702 | Cloud3.Anchored = true | |
2703 | Cloud3.Material = "Neon" | |
2704 | Cloud3.CanCollide = false | |
2705 | Cloud3.CFrame = rarm.CFrame*CFrame.new(0,0,0)*CFrame.Angles(-1.55,0,0) | |
2706 | local Cloud4 = Instance.new("SpecialMesh",Cloud3) | |
2707 | Cloud4.MeshId = "rbxassetid://3270017" | |
2708 | Cloud4.Scale = Vector3.new(1,1,0.4) | |
2709 | ||
2710 | ||
2711 | ||
2712 | coroutine.resume(coroutine.create(function() | |
2713 | for i = 3,650 do | |
2714 | ||
2715 | ||
2716 | ||
2717 | ||
2718 | Cloud3.Transparency = Cloud3.Transparency + 0.03 | |
2719 | Cloud4.Scale = Cloud4.Scale + Vector3.new(0.2,0.2,0.2) | |
2720 | ||
2721 | ||
2722 | ||
2723 | ||
2724 | wait(0.00000000001) | |
2725 | end | |
2726 | end)) | |
2727 | local SFXZ = Instance.new("Sound",hed) | |
2728 | SFXZ.SoundId = "rbxassetid://260430060" | |
2729 | SFXZ.Volume = 3 | |
2730 | SFXZ.Pitch = 1.2 | |
2731 | SFXZ.Looped = false | |
2732 | wait(0.01) | |
2733 | SFXZ:Play() | |
2734 | ||
2735 | end | |
2736 | SFXZ:Destroy() | |
2737 | end) | |
2738 | for i = 1, 5 do | |
2739 | wait() | |
2740 | ||
2741 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(50),math.rad(0)), 0.8)--torso | |
2742 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.8)--rarm | |
2743 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-10)), 0.8)--larm | |
2744 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
2745 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
2746 | end | |
2747 | ||
2748 | coroutine.resume(coroutine.create(function() | |
2749 | wait(0.5) | |
2750 | Grab:remove() | |
2751 | end)) | |
2752 | no_anim = false | |
2753 | Grab:Destroy() | |
2754 | wait(0) | |
2755 | D = false | |
2756 | end | |
2757 | end | |
2758 | ||
2759 | function HitFC() | |
2760 | if not D then D = true | |
2761 | animid = 5 | |
2762 | no_anim = true | |
2763 | local Grab = Instance.new("Part",larm) | |
2764 | Grab.Size = Vector3.new(3,3,3) | |
2765 | Grab.CanCollide = false | |
2766 | Grab.BrickColor = BrickColor.new("Deep orange") | |
2767 | Grab.Transparency = math.huge | |
2768 | local Grabo = Instance.new("Weld",Grab) | |
2769 | Grabo.Part0 = larm | |
2770 | Grabo.Part1 = Grab | |
2771 | Grabo.C0 = CFrame.new(0,-1.1,0) | |
2772 | local SFXZ = Instance.new("Sound",torso) | |
2773 | SFXZ.SoundId = "rbxassetid://169259383" | |
2774 | SFXZ.Volume = 1 | |
2775 | SFXZ.Pitch = 1.5 | |
2776 | SFXZ.Looped = false | |
2777 | wait(0.01) | |
2778 | SFXZ:Play() | |
2779 | ||
2780 | Grab.Touched:connect(function(hit) | |
2781 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= plr.Character.Name then | |
2782 | Grab:Destroy() | |
2783 | SFXZ:Destroy() | |
2784 | hit.Parent.Humanoid:TakeDamage(250) | |
2785 | local Cloud3 = Instance.new("Part",char) | |
2786 | Cloud3.Size = Vector3.new(1,1,1) | |
2787 | Cloud3.BrickColor = BrickColor.new("Medium stone grey") | |
2788 | Cloud3.Anchored = true | |
2789 | Cloud3.Material = "Neon" | |
2790 | Cloud3.CanCollide = false | |
2791 | Cloud3.CFrame = larm.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0) | |
2792 | local Cloud4 = Instance.new("SpecialMesh",Cloud3) | |
2793 | Cloud4.MeshId = "rbxassetid://3270017" | |
2794 | Cloud4.Scale = Vector3.new(1.6,1.6,0.4) | |
2795 | ||
2796 | ||
2797 | ||
2798 | coroutine.resume(coroutine.create(function() | |
2799 | for i = 3,650 do | |
2800 | ||
2801 | ||
2802 | ||
2803 | ||
2804 | Cloud3.Transparency = Cloud3.Transparency + 0.03 | |
2805 | Cloud4.Scale = Cloud4.Scale + Vector3.new(0.5,0.5,0.5) | |
2806 | ||
2807 | ||
2808 | ||
2809 | ||
2810 | wait(0.00000000001) | |
2811 | end | |
2812 | end)) | |
2813 | local SFXZ = Instance.new("Sound",hed) | |
2814 | SFXZ.SoundId = "rbxassetid://260430060" | |
2815 | SFXZ.Volume = 3 | |
2816 | SFXZ.Pitch = 1 | |
2817 | SFXZ.Looped = false | |
2818 | wait(0.01) | |
2819 | SFXZ:Play() | |
2820 | ||
2821 | end | |
2822 | SFXZ:Destroy() | |
2823 | end) | |
2824 | ||
2825 | for i = 1, 2 do | |
2826 | wait() | |
2827 | ||
2828 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)), 0.8)--torso | |
2829 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(10)), 0.8)--rarm | |
2830 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.8)--larm | |
2831 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
2832 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
2833 | end | |
2834 | ||
2835 | coroutine.resume(coroutine.create(function() | |
2836 | wait(0.5) | |
2837 | Grab:remove() | |
2838 | end)) | |
2839 | no_anim = false | |
2840 | Grab:Destroy() | |
2841 | wait(0) | |
2842 | D = false | |
2843 | end | |
2844 | end | |
2845 | function HitFC2() | |
2846 | if not D then D = true | |
2847 | no_anim = true | |
2848 | local Grab = Instance.new("Part",rarm) | |
2849 | Grab.Size = Vector3.new(3,3,3) | |
2850 | Grab.CanCollide = false | |
2851 | Grab.BrickColor = BrickColor.new("Deep orange") | |
2852 | Grab.Transparency = math.huge | |
2853 | local Grabo = Instance.new("Weld",Grab) | |
2854 | Grabo.Part0 = rarm | |
2855 | Grabo.Part1 = Grab | |
2856 | Grabo.C0 = CFrame.new(0,-1.1,0) | |
2857 | local SFXZ = Instance.new("Sound",torso) | |
2858 | SFXZ.SoundId = "rbxassetid://169259383" | |
2859 | SFXZ.Volume = 1 | |
2860 | SFXZ.Pitch = 1 | |
2861 | SFXZ.Looped = false | |
2862 | wait(0.01) | |
2863 | SFXZ:Play() | |
2864 | ||
2865 | Grab.Touched:connect(function(hit) | |
2866 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= plr.Character.Name then | |
2867 | Grab:Destroy() | |
2868 | SFXZ:Destroy() | |
2869 | hit.Parent.Humanoid:TakeDamage(250) | |
2870 | local Cloud3 = Instance.new("Part",char) | |
2871 | Cloud3.Size = Vector3.new(1,1,1) | |
2872 | Cloud3.BrickColor = BrickColor.new("Medium stone grey") | |
2873 | Cloud3.Anchored = true | |
2874 | Cloud3.Material = "Neon" | |
2875 | Cloud3.CanCollide = false | |
2876 | Cloud3.CFrame = rarm.CFrame*CFrame.new(0,0,0)*CFrame.Angles(-1.55,0,0) | |
2877 | local Cloud4 = Instance.new("SpecialMesh",Cloud3) | |
2878 | Cloud4.MeshId = "rbxassetid://3270017" | |
2879 | Cloud4.Scale = Vector3.new(1.6,1.6,0.4) | |
2880 | ||
2881 | ||
2882 | ||
2883 | coroutine.resume(coroutine.create(function() | |
2884 | for i = 3,650 do | |
2885 | ||
2886 | ||
2887 | ||
2888 | ||
2889 | Cloud3.Transparency = Cloud3.Transparency + 0.03 | |
2890 | Cloud4.Scale = Cloud4.Scale + Vector3.new(0.5,0.5,0.2) | |
2891 | ||
2892 | ||
2893 | ||
2894 | ||
2895 | wait(0.00000000001) | |
2896 | end | |
2897 | end)) | |
2898 | local SFXZ = Instance.new("Sound",hed) | |
2899 | SFXZ.SoundId = "rbxassetid://260430060" | |
2900 | SFXZ.Volume = 3 | |
2901 | SFXZ.Pitch = 1.2 | |
2902 | SFXZ.Looped = false | |
2903 | wait(0.01) | |
2904 | SFXZ:Play() | |
2905 | ||
2906 | end | |
2907 | SFXZ:Destroy() | |
2908 | end) | |
2909 | for i = 1, 2 do | |
2910 | wait() | |
2911 | ||
2912 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(50),math.rad(0)), 0.8)--torso | |
2913 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.8)--rarm | |
2914 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-10)), 0.8)--larm | |
2915 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
2916 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
2917 | end | |
2918 | ||
2919 | coroutine.resume(coroutine.create(function() | |
2920 | wait(0.5) | |
2921 | Grab:remove() | |
2922 | end)) | |
2923 | no_anim = false | |
2924 | Grab:Destroy() | |
2925 | wait(0) | |
2926 | D = false | |
2927 | end | |
2928 | end | |
2929 | ||
2930 | ||
2931 | ||
2932 | ||
2933 | mouse.KeyDown:connect(function(key) | |
2934 | if key == '1' then | |
2935 | no_anim = true | |
2936 | local Aura = Instance.new("ParticleEmitter",Stone4) | |
2937 | Aura.Texture = "rbxassetid://271370648" | |
2938 | Aura.Color = ColorSequence.new(BrickColor.new("Really red").Color) | |
2939 | Aura.EmissionDirection = "Top" | |
2940 | Aura.Speed = NumberRange.new(0) | |
2941 | Aura.Size = NumberSequence.new(2.5) | |
2942 | Aura.Transparency = NumberSequence.new(0,1) | |
2943 | Aura.Drag = 0.4 | |
2944 | Aura.LightInfluence = 0 | |
2945 | Aura.LockedToPart = true | |
2946 | Aura.Lifetime = NumberRange.new(0.9) | |
2947 | Aura.Rate = 60 | |
2948 | Aura.LightEmission = 0.6 | |
2949 | Aura.Rotation = NumberRange.new(-360,360) | |
2950 | Aura.VelocitySpread = 0 | |
2951 | Aura.Acceleration = Vector3.new(0,0,0) | |
2952 | Aura.ZOffset = 0.2 | |
2953 | LockOn() | |
2954 | for i = 1, 20 do | |
2955 | wait() | |
2956 | ||
2957 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
2958 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
2959 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(90),math.rad(-50),math.rad(0)), 0.8)--larm | |
2960 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
2961 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
2962 | end | |
2963 | no_anim = false | |
2964 | Aura.Rate = 0 | |
2965 | end | |
2966 | end) | |
2967 | ||
2968 | mouse.KeyDown:connect(function(key) | |
2969 | if key == '2' then | |
2970 | Bring() | |
2971 | end | |
2972 | end) | |
2973 | ||
2974 | function LockOn() | |
2975 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2976 | TargetSelect(mouse.Target.Parent) | |
2977 | Rock(mouse.Target.Parent) | |
2978 | end | |
2979 | end | |
2980 | ||
2981 | ||
2982 | function Bring() | |
2983 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2984 | TargetSelect(mouse.Target.Parent) | |
2985 | ||
2986 | end | |
2987 | end | |
2988 | function swait(num) | |
2989 | if num == 0 or num == nil then | |
2990 | ArtificialHB.Event:wait() | |
2991 | else | |
2992 | for i = 0, num do | |
2993 | ArtificialHB.Event:wait() | |
2994 | end | |
2995 | end | |
2996 | end | |
2997 | ||
2998 | ArtificialHB = Instance.new("BindableEvent", script) | |
2999 | ArtificialHB.Name = "Heartbeat" | |
3000 | ||
3001 | script:WaitForChild("Heartbeat") | |
3002 | ||
3003 | function TargetSelect(person) | |
3004 | local dd=coroutine.wrap(function() | |
3005 | if targetted ~= person then | |
3006 | targetted = person | |
3007 | for i = 0, 2, 0.1 do | |
3008 | swait() | |
3009 | end | |
3010 | end | |
3011 | end) | |
3012 | dd() | |
3013 | end | |
3014 | local RbxUtility = LoadLibrary("RbxUtility") | |
3015 | local Create = RbxUtility.Create | |
3016 | function HomingAttack() | |
3017 | ||
3018 | ||
3019 | ||
3020 | ||
3021 | if targetted == nil then | |
3022 | ||
3023 | end | |
3024 | ||
3025 | ||
3026 | targetted.Head.CFrame = root.CFrame * CFrame.new(0,1.5,-3.1) | |
3027 | ||
3028 | ||
3029 | ||
3030 | ||
3031 | ||
3032 | end | |
3033 | mouse.KeyDown:connect(function(key) | |
3034 | if key == '3' then | |
3035 | HomingAttack() | |
3036 | end | |
3037 | end) | |
3038 | ||
3039 | function laz0r() | |
3040 | ||
3041 | local Position = nil | |
3042 | if animid == 0 then | |
3043 | Position = NeckS.Position | |
3044 | else | |
3045 | Position = NeckS.Position | |
3046 | end | |
3047 | ||
3048 | local Part1 = Instance.new("Part") | |
3049 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
3050 | mesh2.MeshId = "rbxassetid://559831844" | |
3051 | mesh2.Scale = Vector3.new(0,0,0.4) | |
3052 | Part1.Material = Enum.Material.Neon | |
3053 | Part1.CanCollide = false | |
3054 | Part1.BrickColor = BrickColor.new("White") | |
3055 | Part1.Parent = DebrisModel | |
3056 | Part1.Size = Vector3.new(0,0,0) | |
3057 | Part1.Anchored = true | |
3058 | Part1.CFrame = CFrame.new(Position) | |
3059 | Part1.Name = "EXPLOSION3" | |
3060 | ||
3061 | local Part0 = Instance.new("Part",DebrisModel) | |
3062 | Part0.Name = "Bullet" | |
3063 | Part0.Material = Enum.Material.Neon | |
3064 | Part0.BrickColor = BrickColor.new("Magenta") | |
3065 | Part0.Anchored = true | |
3066 | local mesh = Instance.new("SpecialMesh",Part0) | |
3067 | mesh.MeshType = Enum.MeshType.Sphere | |
3068 | Part0.CanCollide = false | |
3069 | local Target = mouse.Hit.p | |
3070 | local direction = Target - Position | |
3071 | local direction = computeDirection(direction) | |
3072 | local ray = Ray.new(Position, (Target).unit*1048) | |
3073 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
3074 | Part0.Size = Vector3.new(9,1,9) | |
3075 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1) | |
3076 | local pos = Position + (direction * (mesh.Scale.Y/2)) | |
3077 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
3078 | ||
3079 | clashpart = Instance.new("Part",DebrisModel) | |
3080 | clashpart.Size = Vector3.new(50,50,50) | |
3081 | clashpart.CanCollide = false | |
3082 | clashpart.Anchored = true | |
3083 | clashpart.Transparency = 1 | |
3084 | clashpart.BrickColor = BrickColor.new("Magenta") | |
3085 | clashpart.Name = "StarLightClash" | |
3086 | clashpart.CFrame = CFrame.new(endPoint, mouse.Hit.p) | |
3087 | ||
3088 | ||
3089 | ||
3090 | local z = 10 | |
3091 | for i = 1,100 do rs:wait() | |
3092 | if animid == 0 then | |
3093 | root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.p.X, mouse.Hit.p.Y, mouse.Hit.p.Z)) | |
3094 | Position = root.Position | |
3095 | else | |
3096 | root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.p.X, mouse.Hit.p.Y, mouse.Hit.p.Z)) | |
3097 | Position = root.Position | |
3098 | end | |
3099 | ||
3100 | local Target = mouse.Hit.p | |
3101 | local direction = Target - Position | |
3102 | local direction = computeDirection(direction) | |
3103 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
3104 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
3105 | Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5)) | |
3106 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1) | |
3107 | mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0) | |
3108 | local pos = Position + (direction * (mesh.Scale.Y/0)) | |
3109 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
3110 | clashpart.CFrame = CFrame.new(endPoint, root.Position) | |
3111 | ||
3112 | local Position = mouse.Hit.p | |
3113 | local Target = root.Position | |
3114 | local direction = Target - Position | |
3115 | local direction = computeDirection(direction) | |
3116 | root.Velocity = direction * 5 | |
3117 | ||
3118 | if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end | |
3119 | ||
3120 | Part1 = Part0:Clone() | |
3121 | Part1.Parent = DebrisModel | |
3122 | Part1.BrickColor = BrickColor.new("Magenta") | |
3123 | Part1.Name = "SMOKE2" | |
3124 | ||
3125 | if part ~= nil then | |
3126 | if part.Name == "StarLightClash" then | |
3127 | local asdf = math.random(0,5)*20 | |
3128 | local Part1 = Instance.new("Part") | |
3129 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
3130 | mesh2.MeshType = Enum.MeshType.Sphere | |
3131 | mesh2.Scale = Vector3.new(0,0,0) | |
3132 | Part1.Material = Enum.Material.Neon | |
3133 | Part1.CanCollide = false | |
3134 | Part1.BrickColor = BrickColor.new("Magenta") | |
3135 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
3136 | Part1.Anchored = true | |
3137 | local a = 1.5 | |
3138 | Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) | |
3139 | Part1.Name = "EXPLOSION" | |
3140 | else | |
3141 | local asdf = math.random(0,5)*10 | |
3142 | local Part1 = Instance.new("Part") | |
3143 | local mesh2 = Instance.new("SpecialMesh",Part1) | |
3144 | mesh2.MeshType = Enum.MeshType.Sphere | |
3145 | mesh2.Scale = Vector3.new(0,0,0) | |
3146 | Part1.Material = Enum.Material.Neon | |
3147 | Part1.CanCollide = false | |
3148 | Part1.BrickColor = BrickColor.new("Magenta") | |
3149 | Part1.Parent = DebrisModel | |
3150 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
3151 | Part1.Anchored = true | |
3152 | local a = 1.5 | |
3153 | Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) | |
3154 | Part1.Name = "EXPLOSION" | |
3155 | end | |
3156 | end | |
3157 | ||
3158 | for i,v in pairs(findAllNearestTorso(endPoint,50)) do | |
3159 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 100000000000000000000000000000000000 then | |
3160 | v:Destroy() | |
3161 | else | |
3162 | v.Parent:BreakJoints() | |
3163 | end | |
3164 | local Position = mouse.Hit.p | |
3165 | local Target = v.Position | |
3166 | local direction = Target - Position | |
3167 | local direction = computeDirection(direction) | |
3168 | local bv = Instance.new("BodyVelocity",v) | |
3169 | bv.Velocity = direction * (10 - ((Position - Target).magnitude/2)) | |
3170 | debris:AddItem(bv,1) | |
3171 | end | |
3172 | ||
3173 | end | |
3174 | clashpart:Destroy() | |
3175 | Part0:Destroy() | |
3176 | wait(0.3) | |
3177 | aiming_anim = false | |
3178 | delay(0.3,function() debounce = false end) | |
3179 | end | |
3180 | ||
3181 | ||
3182 | mouse.KeyDown:connect(function(k) | |
3183 | if k == "u" and Mode == false then | |
3184 | ||
3185 | animid = 5 | |
3186 | no_anim = true | |
3187 | hum.WalkSpeed = 0 | |
3188 | ||
3189 | ||
3190 | ||
3191 | for i = 1, 30 do | |
3192 | wait() | |
3193 | ||
3194 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
3195 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
3196 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(150),math.rad(-50),math.rad(0)), 0.8)--larm | |
3197 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
3198 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
3199 | end | |
3200 | wait(2) | |
3201 | local Grab = Instance.new("Part",hed) | |
3202 | Grab.Size = Vector3.new(3.9,5,3.9) | |
3203 | Grab.CanCollide = false | |
3204 | Grab.BrickColor = BrickColor.new("Deep orange") | |
3205 | Grab.Transparency = 1 | |
3206 | local Grabo = Instance.new("Weld",Grab) | |
3207 | Grabo.Part0 = hed | |
3208 | Grabo.Part1 = Grab | |
3209 | Grabo.C0 = CFrame.new(0,-1.5,0) | |
3210 | ||
3211 | local AuraB = Instance.new("Part",hed) | |
3212 | AuraB.Size = Vector3.new(2,1,2) | |
3213 | AuraB.CanCollide = false | |
3214 | AuraB.BrickColor = BrickColor.new("Deep orange") | |
3215 | AuraB.Transparency = 1 | |
3216 | local AuraBo = Instance.new("Weld",AuraB) | |
3217 | AuraBo.Part0 = hed | |
3218 | AuraBo.Part1 = AuraB | |
3219 | AuraBo.C0 = CFrame.new(0,-3.6,0) | |
3220 | ||
3221 | local FZcharge3 = Instance.new("ParticleEmitter",Grab) | |
3222 | FZcharge3.Texture = "rbxassetid://249481494" | |
3223 | FZcharge3.Color = ColorSequence.new(Color3.fromRGB(0, 0, 255)) | |
3224 | FZcharge3.EmissionDirection = "Top" | |
3225 | FZcharge3.Speed = NumberRange.new(2) | |
3226 | FZcharge3.Size = NumberSequence.new(4,0) | |
3227 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
3228 | FZcharge3.Drag = 1.2 | |
3229 | FZcharge3.LockedToPart = true | |
3230 | FZcharge3.Lifetime = NumberRange.new(1) | |
3231 | FZcharge3.Rate = 195 | |
3232 | FZcharge3.LightEmission = 0.3 | |
3233 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
3234 | FZcharge3.VelocitySpread = 0.2 | |
3235 | FZcharge3.ZOffset = 2.5 | |
3236 | wait(1) | |
3237 | FZcharge3.Rate = 0 | |
3238 | UltimateBattle.Volume = 0 | |
3239 | hed:FindFirstChildOfClass("Decal").Texture = "rbxassetid://" | |
3240 | for i,v in pairs(char:GetChildren()) do | |
3241 | if v ~= root then | |
3242 | if v:IsA("Part") then | |
3243 | v.Transparency = 1 | |
3244 | elseif v:IsA("Accoutrement") then | |
3245 | v:FindFirstChildOfClass("Part").Transparency = 1 | |
3246 | end | |
3247 | end | |
3248 | end | |
3249 | for i,v in pairs(NeckS:GetChildren()) do | |
3250 | if v ~= root then | |
3251 | if v:IsA("Part") then | |
3252 | v.Transparency = 1 | |
3253 | elseif v:IsA("Accoutrement") then | |
3254 | v:FindFirstChildOfClass("Part").Transparency = 1 | |
3255 | end | |
3256 | end | |
3257 | end | |
3258 | ||
3259 | wait(2.2) | |
3260 | FZcharge3.Rate = 195 | |
3261 | root.CFrame = mouse.Hit * CFrame.new(0, 3, 0) | |
3262 | ||
3263 | for i,v in pairs(char:GetChildren()) do | |
3264 | if v ~= root then | |
3265 | if v:IsA("Part") then | |
3266 | v.Transparency = 0 | |
3267 | elseif v:IsA("Accoutrement") then | |
3268 | v:FindFirstChildOfClass("Part").Transparency = 0 | |
3269 | end | |
3270 | end | |
3271 | end | |
3272 | for i,v in pairs(NeckS:GetChildren()) do | |
3273 | if v ~= root then | |
3274 | if v:IsA("Part") then | |
3275 | v.Transparency = 0 | |
3276 | elseif v:IsA("Accoutrement") then | |
3277 | v:FindFirstChildOfClass("Part").Transparency = 0 | |
3278 | end | |
3279 | end | |
3280 | end | |
3281 | hed:FindFirstChildOfClass("Decal").Texture = "rbxassetid://254640655" | |
3282 | wait(1) | |
3283 | UltimateBattle.Volume = 5 | |
3284 | FZcharge3.Rate = 0 | |
3285 | hum.WalkSpeed = 16 | |
3286 | wait(1) | |
3287 | Grab:Destroy() | |
3288 | no_anim = false | |
3289 | end | |
3290 | end) | |
3291 | mouse.KeyDown:connect(function(k) | |
3292 | if k == "u" and Mode == true then | |
3293 | ||
3294 | ||
3295 | root.CFrame = mouse.Hit * CFrame.new(0, 3, 0) | |
3296 | ||
3297 | ||
3298 | end | |
3299 | end) | |
3300 | ------------------------------------------------------- | |
3301 | ||
3302 | mouse.KeyDown:connect(function(k) | |
3303 | if k == "z" then | |
3304 | local FZcharge3 = Instance.new("ParticleEmitter",Stone6) | |
3305 | FZcharge3.Texture = "rbxassetid://165211997" | |
3306 | FZcharge3.Color = ColorSequence.new(Color3.fromRGB(0, 255, 0)) | |
3307 | FZcharge3.EmissionDirection = "Top" | |
3308 | FZcharge3.Speed = NumberRange.new(8) | |
3309 | FZcharge3.Size = NumberSequence.new(0.5,0) | |
3310 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
3311 | FZcharge3.Drag = 1.2 | |
3312 | FZcharge3.LockedToPart = false | |
3313 | FZcharge3.Lifetime = NumberRange.new(0.5) | |
3314 | FZcharge3.Rate = 195 | |
3315 | FZcharge3.LightEmission = 1 | |
3316 | FZcharge3.VelocitySpread = 100 | |
3317 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
3318 | FZcharge3.VelocitySpread = 100.2 | |
3319 | FZcharge3.ZOffset = 1 | |
3320 | local CHAINLINKS = {} | |
3321 | local POS = mouse.Hit.p | |
3322 | local CHAINS = false | |
3323 | local CHAINLINKS = {} | |
3324 | local A = Instance.new("Attachment",NeckS) | |
3325 | A.Position = Vector3.new(0.3,0,0)*Player_Size | |
3326 | A.Orientation = Vector3.new(-90, -89.982, 0) | |
3327 | local B = Instance.new("Attachment",NeckS) | |
3328 | B.Position = Vector3.new(-0.3,0,0)*Player_Size | |
3329 | B.Orientation = Vector3.new(-90, 89.988, 0) | |
3330 | local C = Instance.new("Attachment",NeckS) | |
3331 | C.Position = Vector3.new(0.3,-0.1,0)*Player_Size | |
3332 | C.Orientation = Vector3.new(-90, -89.982, 0) | |
3333 | local D = Instance.new("Attachment",NeckS) | |
3334 | D.Position = Vector3.new(-0.3,-0.3,0)*Player_Size | |
3335 | D.Orientation = Vector3.new(-90, 89.988, 0) | |
3336 | local LIGHT = Instance.new("Attachment",NeckS) | |
3337 | LIGHT.Position = Vector3.new(0.3,-0,0)*Player_Size | |
3338 | local LIGHT2 = Instance.new("PointLight",larm) | |
3339 | LIGHT2.Range = 6 | |
3340 | LIGHT2.Brightness = 20 | |
3341 | LIGHT2.Color = Color3.new(0, 255, 0) | |
3342 | for i = 1, 2 do | |
3343 | local TWIST = -2 | |
3344 | local START = A | |
3345 | local END = B | |
3346 | if i == 1 then | |
3347 | START = B | |
3348 | END = A | |
3349 | end | |
3350 | local ChainLink = Instance.new("Beam",torso) | |
3351 | ChainLink.Texture = "rbxassetid://165211997" | |
3352 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(0, 255, 0)) | |
3353 | ChainLink.TextureSpeed = 5 | |
3354 | ChainLink.Width0 = 1 | |
3355 | ChainLink.Width1 = 1 | |
3356 | ChainLink.TextureLength = 1.5 | |
3357 | ChainLink.Attachment0 = START | |
3358 | ChainLink.Attachment1 = END | |
3359 | ChainLink.CurveSize0 = TWIST | |
3360 | ChainLink.CurveSize1 = TWIST | |
3361 | --ChainLink.FaceCamera = true | |
3362 | ChainLink.Segments = 45 | |
3363 | ChainLink.Transparency = NumberSequence.new(0) | |
3364 | table.insert(CHAINLINKS,ChainLink) | |
3365 | end | |
3366 | coroutine.resume(coroutine.create(function() | |
3367 | for i = 3,80000000000000000000000000000 do | |
3368 | hum.Health = hum.MaxHealth | |
3369 | ||
3370 | ||
3371 | coroutine.resume(coroutine.create(function() | |
3372 | for i = 1,15 do | |
3373 | ||
3374 | wait(0.00000000001) | |
3375 | end | |
3376 | ||
3377 | ||
3378 | ||
3379 | end)) | |
3380 | wait(0.06) | |
3381 | end | |
3382 | end)) | |
3383 | ||
3384 | end | |
3385 | end) | |
3386 | ||
3387 | mouse.KeyDown:connect(function(k) | |
3388 | if k == "k" then | |
3389 | no_anim = true | |
3390 | local FlyAt = Instance.new("Attachment",NeckS)FlyAt.Position = Vector3.new(0,0.5,0) | |
3391 | local FlyAt2 = Instance.new("Attachment",NeckS)FlyAt2.Position = Vector3.new(0,-0.5,0) | |
3392 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2 | |
3393 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3394 | Speed.Color = ColorSequence.new(Color3.fromRGB(255, 255, 0)) Speed.LightEmission = 5 | |
3395 | for i = 1,7 do | |
3396 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head | |
3397 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10), math.rad(20), math.rad(0)), .5)--torso | |
3398 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), .5)--arm | |
3399 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)), .5)--arm | |
3400 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), .5)--leg | |
3401 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),.5)--leg | |
3402 | wait() | |
3403 | end | |
3404 | wait(0.7) | |
3405 | local Grab = Instance.new("Part",NeckS) | |
3406 | Grab.Size = Vector3.new(4,4,4) | |
3407 | Grab.CanCollide = false | |
3408 | Grab.BrickColor = BrickColor.new("Deep orange") | |
3409 | Grab.Transparency = math.huge | |
3410 | local Grabo = Instance.new("Weld",Grab) | |
3411 | Grabo.Part0 = larm | |
3412 | Grabo.Part1 = Grab | |
3413 | Grabo.C0 = CFrame.new(0,-0.1,0) | |
3414 | Grab.Touched:connect(function(hit) | |
3415 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= player.Character.Name then | |
3416 | Grab:Destroy() | |
3417 | no_anim = true | |
3418 | local SFXZ = Instance.new("Sound",root) | |
3419 | SFXZ.SoundId = "rbxassetid://1699290293" | |
3420 | SFXZ.Volume = 7 | |
3421 | SFXZ.Pitch = 1 | |
3422 | SFXZ.Looped = false | |
3423 | wait(0.01) | |
3424 | SFXZ:Play() | |
3425 | hit.Parent:BreakJoints() | |
3426 | Snap(hit.Parent) | |
3427 | ||
3428 | ||
3429 | ||
3430 | ||
3431 | end | |
3432 | end) | |
3433 | for i= 1,10 do | |
3434 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head | |
3435 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(-70), math.rad(0)), .5)--torso | |
3436 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)), .5)--arm | |
3437 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.0,0.5,-0.8)*CFrame.Angles(math.rad(160),math.rad(70),math.rad(10)), .5)--arm | |
3438 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .5)--leg | |
3439 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),.5)--leg | |
3440 | wait() | |
3441 | end | |
3442 | FlyAt:Destroy() | |
3443 | no_anim = false | |
3444 | ||
3445 | end | |
3446 | end) | |
3447 | ||
3448 | ||
3449 | mouse.KeyDown:connect(function(k) | |
3450 | if k == "y" then | |
3451 | instinct = false | |
3452 | animid = 5 | |
3453 | no_anim = true | |
3454 | ||
3455 | local sbs = Instance.new("BodyPosition", torso) | |
3456 | sbs.P = 9000 | |
3457 | sbs.D = 1000 | |
3458 | sbs.maxForce = Vector3.new(900000, 900000000, 900000) | |
3459 | sbs.position = torso.CFrame.p + Vector3.new(0, 10, 0) | |
3460 | for i = 1, 20 do | |
3461 | wait() | |
3462 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(0)), 0.8)--head | |
3463 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
3464 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(-50)), 0.8)--rarm | |
3465 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(20),math.rad(50)), 0.8)--larm | |
3466 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, -0.5) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)), 0.8)--lleg | |
3467 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.5) * CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.8)--rleg | |
3468 | end | |
3469 | coroutine.resume(coroutine.create(function() | |
3470 | for i = 3,8 do | |
3471 | local Ball = Instance.new("Part",char) | |
3472 | Ball.Size = Vector3.new(1,1,1) | |
3473 | Ball.BrickColor = BrickColor.new("Magenta") | |
3474 | Ball.Material = "Neon" | |
3475 | Ball.Anchored = true | |
3476 | Ball.CanCollide = false | |
3477 | Ball.Transparency = 0 | |
3478 | Ball.CFrame = torso.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0) | |
3479 | local Ball2 = Instance.new("SpecialMesh",Ball) | |
3480 | Ball2.MeshType = 3 | |
3481 | Ball2.Scale = Vector3.new(2,2,2) | |
3482 | ||
3483 | ||
3484 | ||
3485 | ||
3486 | coroutine.resume(coroutine.create(function() | |
3487 | for i = 1,15 do | |
3488 | Ball2.Scale = Ball2.Scale + Vector3.new(19.4,19.4,19.4) | |
3489 | Ball.Transparency = Ball.Transparency + 0.06 | |
3490 | wait(0.00000000001) | |
3491 | end | |
3492 | Ball:Destroy() | |
3493 | ||
3494 | ||
3495 | end)) | |
3496 | wait(0.06) | |
3497 | end | |
3498 | end)) | |
3499 | root.Anchored = true | |
3500 | g = Instance.new("Explosion") | |
3501 | g.Parent = workspace | |
3502 | g.Position = root.Position | |
3503 | g.BlastRadius = 90 | |
3504 | g.BlastPressure = 4000200 | |
3505 | g.Visible = false | |
3506 | for i = 1, 70 do | |
3507 | wait() | |
3508 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(0)), 0.8)--head | |
3509 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
3510 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1,0)*CFrame.Angles(math.rad(90),math.rad(-50),math.rad(50)), 0.8)--rarm | |
3511 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1,0)*CFrame.Angles(math.rad(90),math.rad(50),math.rad(-50)), 0.8)--larm | |
3512 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-10)), 0.8)--lleg | |
3513 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
3514 | end | |
3515 | wait(0.2) | |
3516 | ||
3517 | sbs:Destroy() | |
3518 | no_anim = false | |
3519 | root.Anchored = false | |
3520 | ||
3521 | end | |
3522 | end) | |
3523 | local deb = false | |
3524 | function smooth(obj) | |
3525 | local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"} | |
3526 | for i,v in pairs(sides) do | |
3527 | obj[v.."Surface"] = "SmoothNoOutlines" | |
3528 | end | |
3529 | end | |
3530 | local multiplier = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
3531 | function hurt(hit, dmg) | |
3532 | if hit.Parent then | |
3533 | if hit.Parent.Name == "box" then print("bocks!11") hit.Parent:Destroy() end | |
3534 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
3535 | if hum then | |
3536 | if hum.Parent.Name ~= plr.Name then | |
3537 | if dmg == "Kill" or hum.Health > 100000 then | |
3538 | hit.Parent:BreakJoints() | |
3539 | return true | |
3540 | else | |
3541 | if math.random(0, 100) == 50 then | |
3542 | hit.Parent:BreakJoints() | |
3543 | else | |
3544 | hit.Parent:BreakJoints() | |
3545 | end | |
3546 | return true | |
3547 | end | |
3548 | end | |
3549 | end | |
3550 | end | |
3551 | end | |
3552 | local push = 100 | |
3553 | local huge = Vector3.new(math.huge,math.huge,math.huge) | |
3554 | function gethum(obj) | |
3555 | if obj.Parent then | |
3556 | if obj.Parent:FindFirstChild("Humanoid") then | |
3557 | if obj.Parent.Name ~= plr.Name then | |
3558 | return obj.Parent:FindFirstChildOfClass("Humanoid") | |
3559 | end | |
3560 | end | |
3561 | end | |
3562 | end | |
3563 | ||
3564 | mouse.KeyDown:connect(function(key) | |
3565 | if key == "p" and not deb and not attacking then | |
3566 | deb = true | |
3567 | no_anim = true | |
3568 | ||
3569 | local Aura = Instance.new("ParticleEmitter",Stone2) | |
3570 | Aura.Texture = "rbxassetid://271370648" | |
3571 | Aura.Color = ColorSequence.new(BrickColor.new("Magenta").Color) | |
3572 | Aura.EmissionDirection = "Top" | |
3573 | Aura.Speed = NumberRange.new(0) | |
3574 | Aura.Size = NumberSequence.new(2.5) | |
3575 | Aura.Transparency = NumberSequence.new(0,1) | |
3576 | Aura.Drag = 0.4 | |
3577 | Aura.LightInfluence = 0 | |
3578 | Aura.LockedToPart = true | |
3579 | Aura.Lifetime = NumberRange.new(0.9) | |
3580 | Aura.Rate = 60 | |
3581 | Aura.LightEmission = 0.6 | |
3582 | Aura.Rotation = NumberRange.new(-360,360) | |
3583 | Aura.VelocitySpread = 0 | |
3584 | Aura.Acceleration = Vector3.new(0,0,0) | |
3585 | Aura.ZOffset = 0.2 | |
3586 | ||
3587 | for i = 1, 10 do | |
3588 | wait() | |
3589 | ||
3590 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
3591 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
3592 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(150),math.rad(-50),math.rad(0)), 0.8)--larm | |
3593 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
3594 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
3595 | end | |
3596 | Aura.Rate = 0 | |
3597 | ||
3598 | for i = 0, 10 do | |
3599 | spawn(function() | |
3600 | local p = Instance.new("Part") | |
3601 | p.Anchored = true | |
3602 | p.CanCollide = false | |
3603 | p.CFrame = char.Torso.CFrame *CFrame.new(math.random(-12,12),-10,math.random(-12,12)) | |
3604 | smooth(p) | |
3605 | p.BrickColor = BrickColor.DarkGray() | |
3606 | p.Material = Enum.Material.Slate | |
3607 | p.Size = Vector3.new(9,9,9) | |
3608 | p.Transparency = 0 | |
3609 | ||
3610 | p.Parent = workspace | |
3611 | local FlyAt = Instance.new("Attachment",p)FlyAt.Position = Vector3.new(0,2.5,0) | |
3612 | local FlyAt2 = Instance.new("Attachment",p)FlyAt2.Position = Vector3.new(0,-2.5,0) | |
3613 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2 | |
3614 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3615 | Speed.Color = ColorSequence.new(Color3.fromRGB(248, 248, 248)) Speed.LightEmission = 5 | |
3616 | local endcf = p.CFrame *CFrame.new(0,30,0) | |
3617 | for i = 0, 20 do | |
3618 | p.CFrame = p.CFrame:Lerp(endcf, 0.3) | |
3619 | wait() | |
3620 | end | |
3621 | local z = Instance.new("Part") | |
3622 | z.CFrame = p.CFrame | |
3623 | z.CFrame = CFrame.new(z.Position, mouse.Hit.p) | |
3624 | local bv = Instance.new("BodyVelocity", p) | |
3625 | bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
3626 | bv.Velocity = z.CFrame.lookVector*140 | |
3627 | p.Anchored = false | |
3628 | z:Destroy() | |
3629 | p.CanCollide = false | |
3630 | local connection | |
3631 | spawn(function() | |
3632 | local angle = CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))) | |
3633 | repeat wait() | |
3634 | p.CFrame = p.CFrame *angle | |
3635 | until not p or p.CanCollide | |
3636 | end) | |
3637 | ||
3638 | connection = p.Touched:connect(function(hit) | |
3639 | hurt(hit, math.random(5,5)) | |
3640 | if not hit.Anchored and hit.Parent.Name ~= plr.Name and hit.Parent.ClassName ~= "Accessory" then | |
3641 | p.CanCollide = true | |
3642 | end | |
3643 | end) | |
3644 | game.Debris:AddItem(p, 5) | |
3645 | end) | |
3646 | ||
3647 | wait() | |
3648 | deb = false | |
3649 | no_anim = false | |
3650 | end | |
3651 | end | |
3652 | end) | |
3653 | function doBrick(parent,pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts) | |
3654 | local p=Instance.new('Part',parent);p.BrickColor=colour;p.Material=material;p.Transparency=transparency;p.Anchored=a;p.CanCollide=cc;p.FormFactor="Custom";p.Size=size;p.BackSurface=bs;p.BottomSurface=bts;p.FrontSurface=fs;p.LeftSurface=ls;p.RightSurface=rs;p.TopSurface=ts;p.Position=pos;p.CFrame=p.CFrame*cf; | |
3655 | return p | |
3656 | end | |
3657 | ||
3658 | function doMesh(parent,meshType,meshId,scale) | |
3659 | local m=Instance.new('SpecialMesh',parent);m.MeshType=meshType;m.MeshId=meshId;m.Scale=scale | |
3660 | return m | |
3661 | end | |
3662 | local EP=Instance.new("Model",char) | |
3663 | function magicBrick(pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts,meshType,meshId,scale,scaleAdd,loop,loopTransparency,repeatloop,repeatLoopWait,loopCFrame) | |
3664 | local cw1=coroutine.wrap(function() | |
3665 | for i=1,repeatloop do | |
3666 | local x=doBrick(EP,pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts) | |
3667 | local z=doMesh(x,meshType,meshId,scale) | |
3668 | ||
3669 | local cw2=coroutine.wrap(function() | |
3670 | for i=1,loop do | |
3671 | if loopTransparency then | |
3672 | x.Transparency=i/loop | |
3673 | z.Scale=z.Scale+scaleAdd | |
3674 | x.CFrame=x.CFrame*loopCFrame | |
3675 | wait() | |
3676 | else | |
3677 | z.Scale=z.Scale+scaleAdd | |
3678 | x.CFrame=x.CFrame*loopCFrame | |
3679 | end | |
3680 | end | |
3681 | x:Destroy() | |
3682 | end) | |
3683 | cw2() | |
3684 | swait(repeatLoopWait) | |
3685 | end | |
3686 | end) | |
3687 | cw1() | |
3688 | end | |
3689 | if MUI == true then | |
3690 | ||
3691 | speed=0.15 | |
3692 | sound(438666277,2,1.5,torso) | |
3693 | coroutine.resume(coroutine.create(function() | |
3694 | for i=1,20 do | |
3695 | magicBrick(Vector3.new(0,0,0),torso.CFrame*CFrame.Angles(math.random(1,50),math.random(1,50),math.random(1,50)),Vector3.new(1,1,1),BrickColor.new("Institutional white"),"Neon",0,true,false,10,10,10,10,10,10,"FileMesh","http://www.roblox.com/asset/?id=3270017",Vector3.new(math.random(10,15),math.random(20,30),0.2),Vector3.new(-2,-2,0),16,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0.2,0,0)) | |
3696 | swait(3) | |
3697 | end | |
3698 | end)) | |
3699 | for i=0,1,0.1*speed do | |
3700 | if lastAnim~=thisAnim then break end | |
3701 | ||
3702 | ||
3703 | ||
3704 | swait() | |
3705 | end | |
3706 | ||
3707 | doingMove=true | |
3708 | ||
3709 | coroutine.resume(coroutine.create(function() | |
3710 | for i=1,200 do | |
3711 | magicBrick(Vector3.new(0,0,0),torso.CFrame*CFrame.new(0,0,0)*CFrame.new(math.random(1,5),math.random(1,5),math.random(1,5))*CFrame.new(-5/2,-5/2,-5/2),Vector3.new(1,1,1),BrickColor.new("Institutional white"),"Neon",0,true,false,10,10,10,10,10,10,"Brick","",Vector3.new(1,1,1),Vector3.new(-0.2,-0.2,-0.2),15,true,1,0,CFrame.new(0,-1,0)*CFrame.Angles(math.random(),math.random(),math.random())) | |
3712 | swait() | |
3713 | end | |
3714 | end)) | |
3715 | ||
3716 | local beam=Instance.new("Part",char) | |
3717 | beam.Anchored=true | |
3718 | beam.CanCollide=false | |
3719 | beam.BrickColor=BrickColor.new("Institutional white") | |
3720 | beam.Material="Neon" | |
3721 | beam.Transparency=0.5 | |
3722 | ||
3723 | sound(415700134,1.75,0.85,torso) | |
3724 | ||
3725 | coroutine.resume(coroutine.create(function() | |
3726 | while true do | |
3727 | if not doingMove then break end | |
3728 | local dis=(torso.Position-mouse.Hit.p).magnitude | |
3729 | beam.Size=Vector3.new(2,2,dis) | |
3730 | beam.CFrame=CFrame.new(torso.CFrame.p,mouse.Hit.p)*CFrame.new(0,0,-dis/2) | |
3731 | swait() | |
3732 | end | |
3733 | end)) | |
3734 | ||
3735 | coroutine.resume(coroutine.create(function() | |
3736 | for i=1,20 do | |
3737 | if not doingMove then break end | |
3738 | magicBrick(Vector3.new(0,0,0),mouse.Hit*CFrame.Angles(0,0,0),Vector3.new(1,1,1),BrickColor.new("Deep orange"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(3,3,3),Vector3.new(2,6,2),8,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0)) | |
3739 | magicBrick(Vector3.new(0,0,0),mouse.Hit*CFrame.Angles(0,0,0),Vector3.new(1,1,1),BrickColor.new("Really red"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(3,3,3),Vector3.new(3,3,3),8,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0)) | |
3740 | coroutine.resume(coroutine.create(function() | |
3741 | for i=1,7 do | |
3742 | magicBrick(Vector3.new(0,0,0),mouse.Hit*CFrame.new(0,0,0)*CFrame.new(math.random(1,15),math.random(1,15),math.random(1,15))*CFrame.new(-15/2,-15/2,-15/2),Vector3.new(1,1,1),BrickColor.new("Really black"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(4,4,4),Vector3.new(1,1,1),12,true,1,0,CFrame.new(0,-1,0)*CFrame.Angles(math.random(),math.random(),math.random())) | |
3743 | end | |
3744 | end)) | |
3745 | for i,v in pairs(workspace:GetChildren()) do | |
3746 | if v:findFirstChild("Humanoid")~=nil and v~=char then | |
3747 | if (v:WaitForChild("Torso").Position-mouse.Hit.p).magnitude<=10 then | |
3748 | v:WaitForChild("Humanoid"):TakeDamage(v:WaitForChild("Humanoid").MaxHealth/20) | |
3749 | end | |
3750 | end | |
3751 | end | |
3752 | swait(10) | |
3753 | end | |
3754 | end)) | |
3755 | ||
3756 | for i=0,2,0.1*speed do | |
3757 | if lastAnim~=thisAnim then break end | |
3758 | ||
3759 | ||
3760 | ||
3761 | swait() | |
3762 | end | |
3763 | ||
3764 | beam:Destroy() | |
3765 | lastAnim=nil | |
3766 | lastPriority=0 | |
3767 | doingMove=false | |
3768 | end | |
3769 | ||
3770 | function chestBeam() | |
3771 | ||
3772 | ||
3773 | MUI = true | |
3774 | ||
3775 | ||
3776 | end | |
3777 | mouse.KeyDown:connect(function(k) | |
3778 | if k == "n" then | |
3779 | chestBeam() | |
3780 | end | |
3781 | end) | |
3782 | mouse.KeyDown:connect(function(k) | |
3783 | if k == "v" then | |
3784 | UltimateBattle:Stop() | |
3785 | Mode = true | |
3786 | local SFXZ = Instance.new("Sound",torso) | |
3787 | SFXZ.SoundId = "rbxassetid://316675316" | |
3788 | SFXZ.Volume = 8 | |
3789 | SFXZ.Pitch = 1 | |
3790 | SFXZ.Looped = true | |
3791 | wait(0.01) | |
3792 | SFXZ:Play() | |
3793 | local Wind = Instance.new("Sound",torso) | |
3794 | Wind.SoundId = "rbxassetid://142840797" | |
3795 | Wind.Volume = 0.5 | |
3796 | Wind.Pitch = 1 | |
3797 | Wind.Looped = true | |
3798 | wait(0.01) | |
3799 | Wind:Play() | |
3800 | ||
3801 | ||
3802 | Grab.Touched:connect(function(hit) | |
3803 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= p.Character.Name then | |
3804 | hit.Parent:BreakJoints() | |
3805 | wait(0.2) | |
3806 | hit.Parent:Destroy() | |
3807 | ||
3808 | ||
3809 | ||
3810 | end | |
3811 | end) | |
3812 | hum.WalkSpeed = 55 | |
3813 | ||
3814 | local FZcharge3 = Instance.new("ParticleEmitter",NeckS) | |
3815 | FZcharge3.Texture = "rbxassetid://37329477" | |
3816 | FZcharge3.Color = ColorSequence.new(Color3.fromRGB(255, 255, 0)) | |
3817 | FZcharge3.EmissionDirection = "Top" | |
3818 | FZcharge3.Speed = NumberRange.new(8) | |
3819 | FZcharge3.Size = NumberSequence.new(0.5,0) | |
3820 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
3821 | FZcharge3.Drag = 1.2 | |
3822 | FZcharge3.LockedToPart = false | |
3823 | FZcharge3.Lifetime = NumberRange.new(0.5) | |
3824 | FZcharge3.Rate = 195 | |
3825 | FZcharge3.LightEmission = 1 | |
3826 | FZcharge3.VelocitySpread = 100 | |
3827 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
3828 | FZcharge3.VelocitySpread = 100.2 | |
3829 | FZcharge3.ZOffset = 1 | |
3830 | local StoneEf2 = Instance.new("ParticleEmitter",Stone4) | |
3831 | StoneEf2.Texture = "rbxassetid://37329477" | |
3832 | StoneEf2.Color = ColorSequence.new(Color3.fromRGB(255, 0, 0)) | |
3833 | StoneEf2.EmissionDirection = "Top" | |
3834 | StoneEf2.Speed = NumberRange.new(8) | |
3835 | StoneEf2.Size = NumberSequence.new(0.5,0) | |
3836 | StoneEf2.Transparency = NumberSequence.new(0,1) | |
3837 | StoneEf2.LockedToPart = false | |
3838 | StoneEf2.Lifetime = NumberRange.new(0.5) | |
3839 | StoneEf2.Rate = 195 | |
3840 | StoneEf2.LightEmission = 1 | |
3841 | StoneEf2.VelocitySpread = 100 | |
3842 | StoneEf2.Rotation = NumberRange.new(-360,360) | |
3843 | StoneEf2.VelocitySpread = 100.2 | |
3844 | StoneEf2.ZOffset = 1 | |
3845 | local StoneEf3 = Instance.new("ParticleEmitter",Stone3) | |
3846 | StoneEf3.Texture = "rbxassetid://74675986" | |
3847 | StoneEf3.Color = ColorSequence.new(Color3.fromRGB(9, 137, 207)) | |
3848 | StoneEf3.EmissionDirection = "Top" | |
3849 | StoneEf3.Speed = NumberRange.new(8) | |
3850 | StoneEf3.Size = NumberSequence.new(0.5,0) | |
3851 | StoneEf3.Transparency = NumberSequence.new(0,1) | |
3852 | StoneEf3.LockedToPart = false | |
3853 | StoneEf3.Lifetime = NumberRange.new(0.5) | |
3854 | StoneEf3.Rate = 195 | |
3855 | StoneEf3.LightEmission = 1 | |
3856 | StoneEf3.VelocitySpread = 100 | |
3857 | StoneEf3.Rotation = NumberRange.new(-360,360) | |
3858 | StoneEf3.VelocitySpread = 100.2 | |
3859 | StoneEf3.ZOffset = 1 | |
3860 | local StoneEf5 = Instance.new("ParticleEmitter",Stone5) | |
3861 | StoneEf5.Texture = "rbxassetid://73229113" | |
3862 | StoneEf5.Color = ColorSequence.new(Color3.fromRGB(255, 176, 0)) | |
3863 | StoneEf5.EmissionDirection = "Top" | |
3864 | StoneEf5.Speed = NumberRange.new(8) | |
3865 | StoneEf5.Size = NumberSequence.new(0.5,0) | |
3866 | StoneEf5.Transparency = NumberSequence.new(0,1) | |
3867 | StoneEf5.LockedToPart = false | |
3868 | StoneEf5.Lifetime = NumberRange.new(0.5) | |
3869 | StoneEf5.Rate = 195 | |
3870 | StoneEf5.LightEmission = 1 | |
3871 | StoneEf5.VelocitySpread = 100 | |
3872 | StoneEf5.Rotation = NumberRange.new(-360,360) | |
3873 | StoneEf5.VelocitySpread = 100.2 | |
3874 | StoneEf5.ZOffset = 1 | |
3875 | local CHAINLINKS = {} | |
3876 | local POS = mouse.Hit.p | |
3877 | local CHAINS = false | |
3878 | local CHAINLINKS = {} | |
3879 | local A = Instance.new("Attachment",root) | |
3880 | A.Position = Vector3.new(0.5,0,0)*Player_Size | |
3881 | A.Orientation = Vector3.new(-90, -89.982, 0) | |
3882 | local B = Instance.new("Attachment",root) | |
3883 | B.Position = Vector3.new(-0.5,0,0)*Player_Size | |
3884 | B.Orientation = Vector3.new(-90, 89.988, 0) | |
3885 | local C = Instance.new("Attachment",root) | |
3886 | C.Position = Vector3.new(0.5,-0.1,0)*Player_Size | |
3887 | C.Orientation = Vector3.new(-90, -89.982, 0) | |
3888 | local D = Instance.new("Attachment",root) | |
3889 | D.Position = Vector3.new(-0.5,-0.3,0)*Player_Size | |
3890 | D.Orientation = Vector3.new(-90, 89.988, 0) | |
3891 | local LIGHT = Instance.new("Attachment",root) | |
3892 | LIGHT.Position = Vector3.new(0.5,-0,0)*Player_Size | |
3893 | local LIGHT2 = Instance.new("PointLight",larm) | |
3894 | LIGHT2.Range = 6 | |
3895 | LIGHT2.Brightness = 20 | |
3896 | LIGHT2.Color = Color3.new(255, 255, 0) | |
3897 | for i = 1, 2 do | |
3898 | local TWIST = -1 | |
3899 | local START = A | |
3900 | local END = B | |
3901 | if i == 1 then | |
3902 | START = B | |
3903 | END = A | |
3904 | end | |
3905 | local ChainLink = Instance.new("Beam",torso) | |
3906 | ChainLink.Texture = "rbxassetid://37329477" | |
3907 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(255, 255, 0)) | |
3908 | ChainLink.TextureSpeed = 5 | |
3909 | ChainLink.Width0 = 1 | |
3910 | ChainLink.Width1 = 1 | |
3911 | ChainLink.TextureLength = 2.5 | |
3912 | ChainLink.Attachment0 = START | |
3913 | ChainLink.Attachment1 = END | |
3914 | ChainLink.CurveSize0 = TWIST | |
3915 | ChainLink.CurveSize1 = TWIST | |
3916 | --ChainLink.FaceCamera = true | |
3917 | ChainLink.Segments = 85 | |
3918 | ChainLink.Transparency = NumberSequence.new(0) | |
3919 | table.insert(CHAINLINKS,ChainLink) | |
3920 | end | |
3921 | coroutine.resume(coroutine.create(function() | |
3922 | for i = 3,60060 do | |
3923 | ||
3924 | ||
3925 | local HQG = Instance.new("Part",char) | |
3926 | HQG.Size = Vector3.new(1,0,1) | |
3927 | HQG.BrickColor = BrickColor.new("Ghost grey") | |
3928 | HQG.Material = "Neon" | |
3929 | HQG.Anchored = true | |
3930 | HQG.CanCollide = false | |
3931 | HQG.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
3932 | local HQG2 = Instance.new("SpecialMesh",HQG) | |
3933 | HQG2.MeshId = "rbxassetid://1726537151" | |
3934 | HQG2.Scale = Vector3.new(0.01,0.01,0.01) | |
3935 | ||
3936 | ||
3937 | coroutine.resume(coroutine.create(function() | |
3938 | for i = 1,200 do | |
3939 | ||
3940 | ||
3941 | HQG2.Scale = HQG2.Scale + Vector3.new(0.01,0.03,0.01) | |
3942 | HQG.Transparency = HQG.Transparency + 0.07 | |
3943 | HQG.CFrame = HQG.CFrame*CFrame.Angles(0,-0.3,0) | |
3944 | ||
3945 | wait(0.00000000001) | |
3946 | end | |
3947 | ||
3948 | HQG:Destroy() | |
3949 | HQG2:Destroy() | |
3950 | ||
3951 | end)) | |
3952 | ||
3953 | ||
3954 | wait(0.3) | |
3955 | end | |
3956 | end)) | |
3957 | end | |
3958 | end) | |
3959 | ||
3960 | ||
3961 | ||
3962 | mouse.KeyDown:connect(function(k) | |
3963 | if k == "j" then | |
3964 | ||
3965 | animid = 5 | |
3966 | no_anim = true | |
3967 | ||
3968 | ||
3969 | local Aura = Instance.new("ParticleEmitter",Stone2) | |
3970 | Aura.Texture = "rbxassetid://271370648" | |
3971 | Aura.Color = ColorSequence.new(BrickColor.new("Magenta").Color) | |
3972 | Aura.EmissionDirection = "Top" | |
3973 | Aura.Speed = NumberRange.new(0) | |
3974 | Aura.Size = NumberSequence.new(2.5) | |
3975 | Aura.Transparency = NumberSequence.new(0,1) | |
3976 | Aura.Drag = 0.4 | |
3977 | Aura.LightInfluence = 0 | |
3978 | Aura.LockedToPart = true | |
3979 | Aura.Lifetime = NumberRange.new(0.9) | |
3980 | Aura.Rate = 60 | |
3981 | Aura.LightEmission = 0.6 | |
3982 | Aura.Rotation = NumberRange.new(-360,360) | |
3983 | Aura.VelocitySpread = 0 | |
3984 | Aura.Acceleration = Vector3.new(0,0,0) | |
3985 | Aura.ZOffset = 0.2 | |
3986 | ||
3987 | for i = 1, 30 do | |
3988 | wait() | |
3989 | ||
3990 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
3991 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
3992 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(90),math.rad(-50),math.rad(0)), 0.8)--larm | |
3993 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
3994 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
3995 | end | |
3996 | ||
3997 | ||
3998 | local HQ = Instance.new("Part",char) | |
3999 | HQ.Size = Vector3.new(1,0,1) | |
4000 | HQ.BrickColor = BrickColor.new("Grey") | |
4001 | HQ.Material = "Neon" | |
4002 | HQ.Anchored = true | |
4003 | HQ.CanCollide = false | |
4004 | HQ.Transparency = 0.7 | |
4005 | HQ.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
4006 | local HQ2 = Instance.new("SpecialMesh",HQ) | |
4007 | HQ2.MeshId = "rbxassetid://20329976" | |
4008 | HQ2.Scale = Vector3.new(1,1,1) | |
4009 | ||
4010 | local HQG = Instance.new("Part",char) | |
4011 | HQG.Size = Vector3.new(1,0,1) | |
4012 | HQG.BrickColor = BrickColor.new("Grey") | |
4013 | HQG.Material = "Neon" | |
4014 | HQG.Anchored = true | |
4015 | HQG.Transparency = 0.7 | |
4016 | HQG.CanCollide = false | |
4017 | HQG.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
4018 | local HQG2 = Instance.new("SpecialMesh",HQG) | |
4019 | HQG2.MeshId = "rbxassetid://20329976" | |
4020 | HQG2.Scale = Vector3.new(1,1,1) | |
4021 | ||
4022 | ||
4023 | coroutine.resume(coroutine.create(function() | |
4024 | for i = 1,200 do | |
4025 | HQ2.Scale = HQ2.Scale + Vector3.new(1.5,0.3,1.5) | |
4026 | HQ.Transparency = HQ.Transparency + 0.01 | |
4027 | HQ.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
4028 | ||
4029 | HQG2.Scale = HQG2.Scale + Vector3.new(1,0.5,1) | |
4030 | HQG.Transparency = HQG.Transparency + 0.01 | |
4031 | HQG.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
4032 | ||
4033 | wait(0.00000000001) | |
4034 | ||
4035 | ||
4036 | end | |
4037 | HQ:Destroy() | |
4038 | HQ2:Destroy() | |
4039 | HQG:Destroy() | |
4040 | HQG2:Destroy() | |
4041 | end)) | |
4042 | ||
4043 | laz0r() | |
4044 | wait(0.5) | |
4045 | no_anim = false | |
4046 | Aura.Rate = 0 | |
4047 | ||
4048 | instinct = true | |
4049 | end | |
4050 | end) | |
4051 | ||
4052 | ||
4053 | ||
4054 | ||
4055 | ||
4056 | mouse.KeyDown:connect(function(key) | |
4057 | if key == "r" then | |
4058 | local Aura = Instance.new('ParticleEmitter',Stone3) | |
4059 | Aura.Texture = "rbxassetid://271370648" | |
4060 | Aura.Color = ColorSequence.new(BrickColor.new("Lapis").Color) | |
4061 | Aura.EmissionDirection = "Top" | |
4062 | Aura.Speed = NumberRange.new(0) | |
4063 | Aura.Size = NumberSequence.new(2.5) | |
4064 | Aura.Transparency = NumberSequence.new(0,1) | |
4065 | Aura.Drag = 0.4 | |
4066 | Aura.LightInfluence = 0 | |
4067 | Aura.LockedToPart = true | |
4068 | Aura.Lifetime = NumberRange.new(0.9) | |
4069 | Aura.Rate = 60 | |
4070 | Aura.LightEmission = 0.6 | |
4071 | Aura.Rotation = NumberRange.new(-360,360) | |
4072 | Aura.VelocitySpread = 0 | |
4073 | Aura.Acceleration = Vector3.new(0,0,0) | |
4074 | Aura.ZOffset = 0.2 | |
4075 | no_anim = true | |
4076 | for i = 1, 15 do | |
4077 | wait() | |
4078 | ||
4079 | 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) | |
4080 | 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) | |
4081 | end | |
4082 | ||
4083 | local Grab = Instance.new("Part",root) | |
4084 | Grab.Size = Vector3.new(5.2,5.8,3.9) | |
4085 | Grab.CanCollide = true | |
4086 | Grab.Material = "Neon" | |
4087 | Grab.BrickColor = BrickColor.new("Cyan") | |
4088 | Grab.Transparency = 0.5 | |
4089 | local Hat2 = Instance.new("SpecialMesh",Grab) | |
4090 | Hat2.MeshType = 3 | |
4091 | Hat2.Scale = Vector3.new(3.35,3.15,0.95) | |
4092 | local Grabo = Instance.new("Weld",Grab) | |
4093 | Grabo.Part0 = root | |
4094 | Grabo.Part1 = Grab | |
4095 | Grabo.C0 = CFrame.new(0,0.3,-6.8) | |
4096 | ||
4097 | local AuraB = Instance.new("Part",root) | |
4098 | AuraB.Size = Vector3.new(2,1,2) | |
4099 | AuraB.CanCollide = false | |
4100 | AuraB.BrickColor = BrickColor.new("Deep orange") | |
4101 | AuraB.Transparency = 1 | |
4102 | local AuraBo = Instance.new("Weld",AuraB) | |
4103 | AuraBo.Part0 = root | |
4104 | AuraBo.Part1 = AuraB | |
4105 | AuraBo.C0 = CFrame.new(0,-0.6,0) | |
4106 | Grab.Touched:connect(function(hit) | |
4107 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= p.Character.Name then | |
4108 | ||
4109 | ||
4110 | hit.Anchored = false | |
4111 | local Fl = Instance.new("BodyVelocity",hit.Parent.Head) | |
4112 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
4113 | Fl.velocity = root.CFrame.lookVector*340 | |
4114 | wait(0.05) | |
4115 | Fl:remove() | |
4116 | ||
4117 | end | |
4118 | end) | |
4119 | ||
4120 | ||
4121 | end | |
4122 | end) | |
4123 | mouse.KeyUp:connect(function(key) | |
4124 | if key == "r" then | |
4125 | ||
4126 | for i, v in pairs(root:GetChildren()) do | |
4127 | if v:IsA("Part")then | |
4128 | v:Remove() | |
4129 | end | |
4130 | end | |
4131 | for i, v in pairs(Stone3:GetChildren()) do | |
4132 | if v:IsA('ParticleEmitter')then | |
4133 | v.Rate = 0 | |
4134 | end | |
4135 | end | |
4136 | ||
4137 | no_anim = false | |
4138 | end | |
4139 | end) | |
4140 | ||
4141 | ||
4142 | mouse.KeyDown:connect(function(key) | |
4143 | if key == "n" then | |
4144 | ||
4145 | end | |
4146 | end) | |
4147 | ||
4148 | ||
4149 | mouse.KeyDown:connect(function(key) | |
4150 | if key == "t" then | |
4151 | local Aura = Instance.new("ParticleEmitter",Stone4) | |
4152 | Aura.Texture = "rbxassetid://271370648" | |
4153 | Aura.Color = ColorSequence.new(BrickColor.new("Really red").Color) | |
4154 | Aura.EmissionDirection = "Top" | |
4155 | Aura.Speed = NumberRange.new(0) | |
4156 | Aura.Size = NumberSequence.new(2.5) | |
4157 | Aura.Transparency = NumberSequence.new(0,1) | |
4158 | Aura.Drag = 0.4 | |
4159 | Aura.LightInfluence = 0 | |
4160 | Aura.LockedToPart = true | |
4161 | Aura.Lifetime = NumberRange.new(0.9) | |
4162 | Aura.Rate = 60 | |
4163 | Aura.LightEmission = 0.6 | |
4164 | Aura.Rotation = NumberRange.new(-360,360) | |
4165 | Aura.VelocitySpread = 0 | |
4166 | Aura.Acceleration = Vector3.new(0,0,0) | |
4167 | Aura.ZOffset = 0.2 | |
4168 | no_anim = true | |
4169 | for i = 1, 15 do | |
4170 | wait() | |
4171 | ||
4172 | 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) | |
4173 | 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) | |
4174 | end | |
4175 | ||
4176 | local Grab = Instance.new("Part",root) | |
4177 | Grab.Size = Vector3.new(5.2,5.8,3.9) | |
4178 | Grab.CanCollide = false | |
4179 | Grab.Material = "Neon" | |
4180 | Grab.BrickColor = BrickColor.new("Really red") | |
4181 | Grab.Transparency = 0.5 | |
4182 | local Hat2 = Instance.new("SpecialMesh",Grab) | |
4183 | Hat2.MeshType = 3 | |
4184 | Hat2.Scale = Vector3.new(3.35,3.15,0.95) | |
4185 | local Grabo = Instance.new("Weld",Grab) | |
4186 | Grabo.Part0 = root | |
4187 | Grabo.Part1 = Grab | |
4188 | Grabo.C0 = CFrame.new(0,0.3,-6.8) | |
4189 | ||
4190 | local AuraB = Instance.new("Part",root) | |
4191 | AuraB.Size = Vector3.new(2,1,2) | |
4192 | AuraB.CanCollide = false | |
4193 | AuraB.BrickColor = BrickColor.new("Deep orange") | |
4194 | AuraB.Transparency = 1 | |
4195 | local AuraBo = Instance.new("Weld",AuraB) | |
4196 | AuraBo.Part0 = root | |
4197 | AuraBo.Part1 = AuraB | |
4198 | AuraBo.C0 = CFrame.new(0,-0.6,0) | |
4199 | Grab.Touched:connect(function(hit) | |
4200 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= p.Character.Name then | |
4201 | ||
4202 | ||
4203 | Snap(hit.Parent) | |
4204 | local Fl = Instance.new("BodyVelocity",hit.Parent.Head) | |
4205 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
4206 | Fl.velocity = root.CFrame.lookVector*340 | |
4207 | wait(0.05) | |
4208 | Fl:remove() | |
4209 | ||
4210 | end | |
4211 | end) | |
4212 | ||
4213 | ||
4214 | end | |
4215 | end) | |
4216 | mouse.KeyUp:connect(function(key) | |
4217 | if key == "t" then | |
4218 | ||
4219 | for i, v in pairs(root:GetChildren()) do | |
4220 | if v:IsA("Part")then | |
4221 | v:Remove() | |
4222 | end | |
4223 | end | |
4224 | for i, v in pairs(Stone4:GetChildren()) do | |
4225 | if v:IsA("ParticleEmitter")then | |
4226 | v.Rate = 0 | |
4227 | end | |
4228 | end | |
4229 | ||
4230 | no_anim = false | |
4231 | end | |
4232 | end) | |
4233 | ||
4234 | ||
4235 | mouse.KeyDown:connect(function(k) | |
4236 | if k == "e" and MUI == false then --highjump | |
4237 | ||
4238 | animid = 5 | |
4239 | no_anim = true | |
4240 | ||
4241 | local sbs = Instance.new("BodyPosition", torso) | |
4242 | sbs.P = 9000 | |
4243 | sbs.D = 1000 | |
4244 | sbs.maxForce = Vector3.new(900000, 9000000000, 900000) | |
4245 | sbs.position = torso.CFrame.p + Vector3.new(0, 150, 0) | |
4246 | local FlyAt = Instance.new("Attachment",NeckS)FlyAt.Position = Vector3.new(0,0.5,0) | |
4247 | local FlyAt2 = Instance.new("Attachment",NeckS)FlyAt2.Position = Vector3.new(0,-0.5,0) | |
4248 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2 | |
4249 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4250 | Speed.Color = ColorSequence.new(Color3.fromRGB(255, 255, 0)) Speed.LightEmission = 5 | |
4251 | ||
4252 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--head | |
4253 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
4254 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-60),math.rad(0),math.rad(0)), 0.8)--rarm | |
4255 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.8)--larm | |
4256 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.8)--lleg | |
4257 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-50),math.rad(0),math.rad(5)), 0.8)--rleg | |
4258 | ||
4259 | ||
4260 | ||
4261 | local HQ = Instance.new("Part",char) | |
4262 | HQ.Size = Vector3.new(1,0,1) | |
4263 | HQ.BrickColor = BrickColor.new("New Yeller") | |
4264 | HQ.Material = "Neon" | |
4265 | HQ.Anchored = true | |
4266 | HQ.CanCollide = false | |
4267 | HQ.Transparency = 0.7 | |
4268 | HQ.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
4269 | local HQ2 = Instance.new("SpecialMesh",HQ) | |
4270 | HQ2.MeshId = "rbxassetid://20329976" | |
4271 | HQ2.Scale = Vector3.new(1,50,1) | |
4272 | ||
4273 | local HQG = Instance.new("Part",char) | |
4274 | HQG.Size = Vector3.new(1,0,1) | |
4275 | HQG.BrickColor = BrickColor.new("Grey") | |
4276 | HQG.Material = "Neon" | |
4277 | HQG.Anchored = true | |
4278 | HQG.Transparency = 0.7 | |
4279 | HQG.CanCollide = false | |
4280 | HQG.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
4281 | local HQG2 = Instance.new("SpecialMesh",HQG) | |
4282 | HQG2.MeshId = "rbxassetid://20329976" | |
4283 | HQG2.Scale = Vector3.new(1,1,1) | |
4284 | ||
4285 | ||
4286 | coroutine.resume(coroutine.create(function() | |
4287 | for i = 1,500 do | |
4288 | HQ2.Scale = HQ2.Scale + Vector3.new(1.5,0.3,1.5) | |
4289 | HQ.Transparency = HQ.Transparency + 0.005 | |
4290 | HQ.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
4291 | ||
4292 | HQG2.Scale = HQG2.Scale + Vector3.new(1,0.5,1) | |
4293 | HQG.Transparency = HQG.Transparency + 0.005 | |
4294 | HQG.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
4295 | ||
4296 | wait(0.00000000001) | |
4297 | ||
4298 | ||
4299 | end | |
4300 | HQ:Destroy() | |
4301 | HQ2:Destroy() | |
4302 | HQG:Destroy() | |
4303 | HQG2:Destroy() | |
4304 | end)) | |
4305 | ||
4306 | ||
4307 | wait(0.5) | |
4308 | sbs:Destroy() | |
4309 | ||
4310 | FlyAt:Destroy() | |
4311 | wait(0.2) | |
4312 | ||
4313 | no_anim = false | |
4314 | instinct = true | |
4315 | end | |
4316 | end) | |
4317 | ||
4318 | ||
4319 | mouse.KeyDown:connect(function(k) | |
4320 | if k == "e" and MUI == true then --highjump | |
4321 | ||
4322 | animid = 5 | |
4323 | no_anim = true | |
4324 | hum.WalkSpeed = 60 | |
4325 | local sbs = Instance.new("BodyPosition", torso) | |
4326 | sbs.P = 9000 | |
4327 | sbs.D = 1000 | |
4328 | sbs.maxForce = Vector3.new(900000, 9000000000, 900000) | |
4329 | sbs.position = torso.CFrame.p + Vector3.new(0, 120, 0) | |
4330 | local FlyAt = Instance.new("Attachment",torso)FlyAt.Position = Vector3.new(0,2,0) | |
4331 | local FlyAt2 = Instance.new("Attachment",torso)FlyAt2.Position = Vector3.new(0,-2.5,0) | |
4332 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2 | |
4333 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4334 | Speed.Color = ColorSequence.new(Color3.fromRGB(248, 248, 248)) Speed.LightEmission = 5 | |
4335 | ||
4336 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--head | |
4337 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
4338 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-60),math.rad(0),math.rad(0)), 0.8)--rarm | |
4339 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.8)--larm | |
4340 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.8)--lleg | |
4341 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-50),math.rad(0),math.rad(5)), 0.8)--rleg | |
4342 | ||
4343 | ||
4344 | ||
4345 | local HQ = Instance.new("Part",char) | |
4346 | HQ.Size = Vector3.new(1,0,1) | |
4347 | HQ.BrickColor = BrickColor.new("Grey") | |
4348 | HQ.Material = "Neon" | |
4349 | HQ.Anchored = true | |
4350 | HQ.CanCollide = false | |
4351 | HQ.Transparency = 0.7 | |
4352 | HQ.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
4353 | local HQ2 = Instance.new("SpecialMesh",HQ) | |
4354 | HQ2.MeshId = "rbxassetid://20329976" | |
4355 | HQ2.Scale = Vector3.new(1,1,1) | |
4356 | ||
4357 | local HQG = Instance.new("Part",char) | |
4358 | HQG.Size = Vector3.new(1,0,1) | |
4359 | HQG.BrickColor = BrickColor.new("Grey") | |
4360 | HQG.Material = "Neon" | |
4361 | HQG.Anchored = true | |
4362 | HQG.Transparency = 0.7 | |
4363 | HQG.CanCollide = false | |
4364 | HQG.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
4365 | local HQG2 = Instance.new("SpecialMesh",HQG) | |
4366 | HQG2.MeshId = "rbxassetid://20329976" | |
4367 | HQG2.Scale = Vector3.new(1,1,1) | |
4368 | ||
4369 | ||
4370 | coroutine.resume(coroutine.create(function() | |
4371 | for i = 1,200 do | |
4372 | HQ2.Scale = HQ2.Scale + Vector3.new(1.5,0.3,1.5) | |
4373 | HQ.Transparency = HQ.Transparency + 0.01 | |
4374 | HQ.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
4375 | ||
4376 | HQG2.Scale = HQG2.Scale + Vector3.new(1,0.5,1) | |
4377 | HQG.Transparency = HQG.Transparency + 0.01 | |
4378 | HQG.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
4379 | ||
4380 | wait(0.00000000001) | |
4381 | ||
4382 | ||
4383 | end | |
4384 | HQ:Destroy() | |
4385 | HQ2:Destroy() | |
4386 | HQG:Destroy() | |
4387 | HQG2:Destroy() | |
4388 | end)) | |
4389 | ||
4390 | ||
4391 | wait(0.5) | |
4392 | sbs:Destroy() | |
4393 | hum.WalkSpeed = 260 | |
4394 | FlyAt:Destroy() | |
4395 | wait(0.2) | |
4396 | hum.WalkSpeed = 16 | |
4397 | no_anim = false | |
4398 | instinct = true | |
4399 | end | |
4400 | end) | |
4401 | ||
4402 | mouse.KeyDown:connect(function(k) | |
4403 | if k == "q" and MUI == false then --highjump | |
4404 | ||
4405 | animid = 5 | |
4406 | no_anim = true | |
4407 | ||
4408 | local FlyAt = Instance.new("Attachment",torso)FlyAt.Position = Vector3.new(0,2,0) | |
4409 | local FlyAt2 = Instance.new("Attachment",torso)FlyAt2.Position = Vector3.new(0,-2.5,0) | |
4410 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2 | |
4411 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4412 | Speed.Color = ColorSequence.new(Color3.fromRGB(248, 248, 248)) Speed.LightEmission = 5 | |
4413 | local bv = Instance.new("BodyVelocity") | |
4414 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4415 | bv.velocity = root.CFrame.lookVector*200 | |
4416 | bv.Parent = root | |
4417 | ||
4418 | ||
4419 | ||
4420 | for i = 1, 30 do | |
4421 | wait() | |
4422 | ||
4423 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(0)), 0.1)--head | |
4424 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-80), math.rad(0), math.rad(0)), 0.1)--torso | |
4425 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(15)), 0.1)--arm | |
4426 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-15)), 0.1)--arm | |
4427 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.1)--leg | |
4428 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(10)), 0.1)--leg | |
4429 | end | |
4430 | ||
4431 | ||
4432 | ||
4433 | ||
4434 | ||
4435 | ||
4436 | ||
4437 | ||
4438 | ||
4439 | wait(0.5) | |
4440 | bv:Destroy() | |
4441 | ||
4442 | wait(0.2) | |
4443 | ||
4444 | ||
4445 | FlyAt:Destroy() | |
4446 | no_anim = false | |
4447 | end | |
4448 | end) | |
4449 | holdclick=false | |
4450 | ||
4451 | mouse.KeyDown:connect(function(k) | |
4452 | if k == "q" and MUI == true then --highjump | |
4453 | ||
4454 | animid = 5 | |
4455 | no_anim = true | |
4456 | hum.WalkSpeed = 60 | |
4457 | local bv = Instance.new("BodyVelocity") | |
4458 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4459 | bv.velocity = root.CFrame.lookVector*190 | |
4460 | bv.Parent = root | |
4461 | ||
4462 | local FlyAt = Instance.new("Attachment",torso)FlyAt.Position = Vector3.new(0,1,0) | |
4463 | local FlyAt2 = Instance.new("Attachment",torso)FlyAt2.Position = Vector3.new(0,-1,0) | |
4464 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2 | |
4465 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4466 | Speed.Color = ColorSequence.new(Color3.fromRGB(4, 175, 236)) Speed.LightEmission = 5 | |
4467 | ||
4468 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)), 0.8)--torso | |
4469 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-80),math.rad(0),math.rad(0)), 0.8)--rarm | |
4470 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-85),math.rad(0),math.rad(0)), 0.8)--larm | |
4471 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-60),math.rad(0),math.rad(-10)), 0.8)--lleg | |
4472 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.3, -1) * CFrame.Angles(math.rad(-50),math.rad(0),math.rad(5)), 0.8)--rleg | |
4473 | ||
4474 | ||
4475 | ||
4476 | local HQ = Instance.new("Part",char) | |
4477 | HQ.Size = Vector3.new(1,0,1) | |
4478 | HQ.BrickColor = BrickColor.new("Grey") | |
4479 | HQ.Material = "Neon" | |
4480 | HQ.Anchored = true | |
4481 | HQ.CanCollide = false | |
4482 | HQ.Transparency = 0.7 | |
4483 | HQ.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(1.55,0,0) | |
4484 | local HQ2 = Instance.new("SpecialMesh",HQ) | |
4485 | HQ2.MeshId = "rbxassetid://20329976" | |
4486 | HQ2.Scale = Vector3.new(1,1,1) | |
4487 | ||
4488 | local HQG = Instance.new("Part",char) | |
4489 | HQG.Size = Vector3.new(1,0,1) | |
4490 | HQG.BrickColor = BrickColor.new("Grey") | |
4491 | HQG.Material = "Neon" | |
4492 | HQG.Anchored = true | |
4493 | HQG.Transparency = 0.7 | |
4494 | HQG.CanCollide = false | |
4495 | HQG.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(1.55,0,0) | |
4496 | local HQG2 = Instance.new("SpecialMesh",HQG) | |
4497 | HQG2.MeshId = "rbxassetid://20329976" | |
4498 | HQG2.Scale = Vector3.new(1,1,1) | |
4499 | ||
4500 | ||
4501 | coroutine.resume(coroutine.create(function() | |
4502 | for i = 1,200 do | |
4503 | HQ2.Scale = HQ2.Scale + Vector3.new(1.5,0.3,1.5) | |
4504 | HQ.Transparency = HQ.Transparency + 0.01 | |
4505 | HQ.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
4506 | ||
4507 | HQG2.Scale = HQG2.Scale + Vector3.new(1,0.5,1) | |
4508 | HQG.Transparency = HQG.Transparency + 0.01 | |
4509 | HQG.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
4510 | ||
4511 | wait() | |
4512 | ||
4513 | ||
4514 | end | |
4515 | HQ:Destroy() | |
4516 | HQ2:Destroy() | |
4517 | HQG:Destroy() | |
4518 | HQG2:Destroy() | |
4519 | end)) | |
4520 | ||
4521 | ||
4522 | wait(0.5) | |
4523 | bv:Destroy() | |
4524 | hum.WalkSpeed = 60 | |
4525 | wait(0.2) | |
4526 | hum.WalkSpeed = 16 | |
4527 | FlyAt:Destroy() | |
4528 | no_anim = false | |
4529 | instinct = true | |
4530 | end | |
4531 | end) | |
4532 | mouse.KeyDown:connect(function(k) | |
4533 | if k == "l" then | |
4534 | ||
4535 | animid = 5 | |
4536 | no_anim = true | |
4537 | UltimateBattle:Stop() | |
4538 | ||
4539 | ||
4540 | for i = 1, 10 do | |
4541 | wait() | |
4542 | ||
4543 | ||
4544 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
4545 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
4546 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(0)), 0.8)--larm | |
4547 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
4548 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
4549 | end | |
4550 | wait(2) | |
4551 | local SFXZ = Instance.new("Sound",char) | |
4552 | SFXZ.SoundId = "rbxassetid://242076158" | |
4553 | SFXZ.Volume = 10 | |
4554 | SFXZ.Pitch = 1 | |
4555 | SFXZ.Looped = false | |
4556 | wait(0.01) | |
4557 | SFXZ:Play() | |
4558 | ||
4559 | for i = 1, 10 do | |
4560 | wait() | |
4561 | ||
4562 | ||
4563 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
4564 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
4565 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(120),math.rad(30),math.rad(0)), 0.8)--larm | |
4566 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
4567 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
4568 | end | |
4569 | ||
4570 | ||
4571 | coroutine.resume(coroutine.create(function() | |
4572 | for i = 3,80 do | |
4573 | local Ball = Instance.new("Part",char) | |
4574 | Ball.Size = Vector3.new(0,0,0) | |
4575 | Ball.BrickColor = BrickColor.new("White") | |
4576 | Ball.Material = "Neon" | |
4577 | Ball.Anchored = true | |
4578 | Ball.CanCollide = false | |
4579 | Ball.Transparency = 0 | |
4580 | Ball.CFrame = torso.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0) | |
4581 | local Ball2 = Instance.new("SpecialMesh",Ball) | |
4582 | Ball2.MeshType = 3 | |
4583 | Ball2.Scale = Vector3.new(0.4,0.4,0.4) | |
4584 | ||
4585 | ||
4586 | ||
4587 | ||
4588 | coroutine.resume(coroutine.create(function() | |
4589 | for i = 1,15 do | |
4590 | Ball2.Scale = Ball2.Scale + Vector3.new(1980.4,1980.4,1980.4) | |
4591 | Ball.Transparency = Ball.Transparency + 0.06 | |
4592 | ||
4593 | wait(0.00000000001) | |
4594 | end | |
4595 | Ball:Destroy() | |
4596 | ||
4597 | ||
4598 | end)) | |
4599 | wait(0.02) | |
4600 | end | |
4601 | end)) | |
4602 | ||
4603 | wait(5) | |
4604 | ||
4605 | ||
4606 | ||
4607 | ||
4608 | coroutine.wrap(function() | |
4609 | for i,v in next, workspace:children() do | |
4610 | if v:IsA"Model" or v:IsA"Part" then | |
4611 | if v:FindFirstChildOfClass"Humanoid" and v ~= char then | |
4612 | Eviscerate(v) | |
4613 | if v:FindFirstChildOfClass"Humanoid" then Eviscerate(v) end | |
4614 | wait(.15) | |
4615 | end | |
4616 | end | |
4617 | end | |
4618 | end)() | |
4619 | ||
4620 | ||
4621 | wait(10) | |
4622 | no_anim = false | |
4623 | ||
4624 | ||
4625 | ||
4626 | end | |
4627 | end) | |
4628 | ||
4629 | ||
4630 | ||
4631 | ||
4632 | ||
4633 | ||
4634 | ||
4635 | ||
4636 | ||
4637 | ||
4638 | ||
4639 | ||
4640 | ||
4641 | ||
4642 | mouse.KeyDown:connect(function(key) | |
4643 | if debounce == false then | |
4644 | if key == "=" and MUI == true then | |
4645 | dashasdf() | |
4646 | elseif key == "=" and cooldownult == false then | |
4647 | cooldownult = true | |
4648 | if animid == 0 then | |
4649 | animid = 1 | |
4650 | else | |
4651 | animid = 0 | |
4652 | end | |
4653 | debounce = true | |
4654 | holdr = true | |
4655 | aiming_anim = true | |
4656 | wait(0.2) | |
4657 | repeat | |
4658 | rs:wait() | |
4659 | timer = 150 | |
4660 | until holdr == false | |
4661 | nukewelpo() | |
4662 | ||
4663 | local Position = mouse.Hit.p | |
4664 | local Target = root.Position | |
4665 | local direction = Target - Position | |
4666 | local direction = computeDirection(direction) | |
4667 | root.Velocity = direction * 300 | |
4668 | ||
4669 | aiming_anim = false | |
4670 | delay(5,function() cooldownult = false end) | |
4671 | delay(1,function() debounce = false end) | |
4672 | ||
4673 | elseif key == "=" then | |
4674 | debounce = true | |
4675 | if animid == 0 then | |
4676 | animid = 1 | |
4677 | else | |
4678 | animid = 0 | |
4679 | end | |
4680 | holdq = true | |
4681 | attack = true | |
4682 | ||
4683 | ||
4684 | ||
4685 | ||
4686 | repeat rs:wait() timer = 150 until holdq == false | |
4687 | laz0r() | |
4688 | attack = false | |
4689 | ||
4690 | end | |
4691 | end | |
4692 | ||
4693 | end) | |
4694 | ||
4695 | mouse.KeyUp:connect(function(key) | |
4696 | if key == "=" then | |
4697 | holdq = false | |
4698 | elseif key == "=" then | |
4699 | holdr = false | |
4700 | end | |
4701 | end) | |
4702 | -- | |
4703 | hum.Name = 'Goku' | |
4704 | ---------------------------------------------------------------------------- | |
4705 | music(themeid,themepitch) | |
4706 | velocityYFall=0 | |
4707 | velocityYFall2=0 | |
4708 | velocityYFall3=0 | |
4709 | velocityYFall4=0 | |
4710 | neckrotY=0 | |
4711 | neckrotY2=0 | |
4712 | torsorotY=0 | |
4713 | torsorotY2=0 | |
4714 | torsoY=0 | |
4715 | torsoY2=0 | |
4716 | sine = 0 | |
4717 | newWeld(torso, larm, -1.5, 0.5, 0) | |
4718 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
4719 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
4720 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
4721 | newWeld(torso, hed, 0, 1.5, 0) | |
4722 | newWeld(torso, lleg, -0.5, -1, 0) | |
4723 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
4724 | newWeld(torso, rleg, 0.5, -1, 0) | |
4725 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
4726 | newWeld(root, torso, 0, -1, 0) | |
4727 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
4728 | ||
4729 | rs:connect(function() | |
4730 | ||
4731 | bg.MaxTorque = Vector3.new(0,0,0) | |
4732 | ||
4733 | for i,v in pairs(DebrisModel:GetChildren()) do | |
4734 | ||
4735 | ||
4736 | if v.Name == "EXPLOSION" then | |
4737 | local change = 0.04-(v.Transparency*0.02) | |
4738 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
4739 | vm.Scale = vm.Scale + Vector3.new(change,change,change) | |
4740 | v.Transparency = v.Transparency + 0.02 | |
4741 | if v.Transparency >= 1 then | |
4742 | v:Destroy() | |
4743 | end | |
4744 | ||
4745 | elseif v.Name == "EXPLOSION2" then | |
4746 | local change = 0.04-(v.Transparency*0.04) | |
4747 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
4748 | vm.Scale = vm.Scale + Vector3.new(change,change,0) | |
4749 | v.Transparency = v.Transparency + 0.025 | |
4750 | if v.Transparency >= 1 then | |
4751 | v:Destroy() | |
4752 | end | |
4753 | ||
4754 | elseif v.Name == "EXPLOSION3" then | |
4755 | local change = 0.5-(v.Transparency*0.5) | |
4756 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
4757 | vm.Scale = vm.Scale + Vector3.new(change,change,0) | |
4758 | v.Transparency = v.Transparency + 0.1 | |
4759 | if v.Transparency >= 1 then | |
4760 | v:Destroy() | |
4761 | end | |
4762 | ||
4763 | elseif v.Name == "EXPLOSION4" then | |
4764 | local change = 0.15-(v.Transparency*0.125) | |
4765 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
4766 | vm.Scale = vm.Scale + Vector3.new(change,change,change) | |
4767 | v.Transparency = v.Transparency + 0.01 | |
4768 | if v.Transparency >= 1 then | |
4769 | v:Destroy() | |
4770 | end | |
4771 | ||
4772 | elseif v.Name == "SMOKE" then | |
4773 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
4774 | vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075) | |
4775 | if vm.Scale.X <= 0 then | |
4776 | v:Destroy() | |
4777 | end | |
4778 | ||
4779 | elseif v.Name == "SMOKE2" then | |
4780 | local change = 2-(v.Transparency*2) | |
4781 | local vm = v:FindFirstChildOfClass("SpecialMesh") | |
4782 | local Position = nil | |
4783 | if animid == 0 then | |
4784 | Position = larm.Position | |
4785 | else | |
4786 | Position = rarm.Position | |
4787 | end | |
4788 | local Target = mouse.Hit.p | |
4789 | local direction = Target - Position | |
4790 | local direction = computeDirection(direction) | |
4791 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
4792 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
4793 | vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change) | |
4794 | local pos = Position + (direction * (vm.Scale.Y/2)) | |
4795 | v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
4796 | vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0) | |
4797 | v.Transparency = v.Transparency + 0.1 | |
4798 | if v.Transparency >= 1 then | |
4799 | v:Destroy() | |
4800 | end | |
4801 | ||
4802 | ||
4803 | elseif v.Name == "LIGHTNING" then | |
4804 | local vm = v:FindFirstChildOfClass("BlockMesh") | |
4805 | vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0) | |
4806 | if vm.Scale.X <= 0 then | |
4807 | v:Destroy() | |
4808 | end | |
4809 | ||
4810 | end | |
4811 | end | |
4812 | ||
4813 | if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then | |
4814 | velocityYFall = root.Velocity.Y/1.5 | |
4815 | end | |
4816 | if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then | |
4817 | velocityYFall2 = root.Velocity.Y/180 | |
4818 | end | |
4819 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then | |
4820 | velocityYFall3 = root.Velocity.Y/1.5 | |
4821 | end | |
4822 | if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then | |
4823 | velocityYFall4 = root.Velocity.Y/1.5 | |
4824 | end | |
4825 | if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then | |
4826 | neckrotY = root.RotVelocity.Y/6 | |
4827 | end | |
4828 | if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then | |
4829 | neckrotY2 = root.RotVelocity.Y/8 | |
4830 | end | |
4831 | ||
4832 | if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then | |
4833 | torsorotY = root.RotVelocity.Y/6 | |
4834 | end | |
4835 | if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then | |
4836 | torsorotY2 = root.RotVelocity.Y/8 | |
4837 | end | |
4838 | ||
4839 | ||
4840 | torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20 | |
4841 | torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36 | |
4842 | ||
4843 | ||
4844 | local SINE = 0 | |
4845 | local jumped = false | |
4846 | local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0)) | |
4847 | local part1, endPoint = workspace:FindPartOnRay(ray1, char) | |
4848 | local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0)) | |
4849 | local part2, endPoint = workspace:FindPartOnRay(ray2, char) | |
4850 | local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0)) | |
4851 | local part3, endPoint = workspace:FindPartOnRay(ray3, char) | |
4852 | local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0)) | |
4853 | local part4, endPoint = workspace:FindPartOnRay(ray4, char) | |
4854 | ||
4855 | if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end | |
4856 | ||
4857 | local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0)) | |
4858 | local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char) | |
4859 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
4860 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
4861 | ||
4862 | local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0)) | |
4863 | local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char) | |
4864 | local sizem = 1 | |
4865 | if no_anim == false then | |
4866 | if hum.Health > 0 then | |
4867 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then | |
4868 | 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) | |
4869 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1) | |
4870 | 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) | |
4871 | 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) | |
4872 | 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) | |
4873 | 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) | |
4874 | 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) | |
4875 | elseif jumped == true then | |
4876 | 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) | |
4877 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1) | |
4878 | 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) | |
4879 | 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) | |
4880 | 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) | |
4881 | 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) | |
4882 | 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) | |
4883 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then | |
4884 | 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) | |
4885 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1) | |
4886 | 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) | |
4887 | 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) | |
4888 | 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) | |
4889 | 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) | |
4890 | 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) | |
4891 | end | |
4892 | for i=1,5 do | |
4893 | if aiming_anim == true then | |
4894 | bg.MaxTorque = Vector3.new(9e9,9e9,9e9) | |
4895 | if jumped == false then | |
4896 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
4897 | else | |
4898 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
4899 | end | |
4900 | if animid == 0 then | |
4901 | hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4) | |
4902 | 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) | |
4903 | 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) | |
4904 | else | |
4905 | if animid == 5 then | |
4906 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(85),math.rad(0)), 1)--head | |
4907 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-85), math.rad(0)), 1)--torso | |
4908 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,0)*CFrame.Angles(math.rad(30),math.rad(-40),math.rad(-10)), 1)--rarm | |
4909 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.2,-0.2)*CFrame.Angles(math.rad(30),math.rad(40),math.rad(40)), 1)--larm | |
4910 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 1)--lleg | |
4911 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 1)--rleg | |
4912 | else | |
4913 | hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4) | |
4914 | 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) | |
4915 | 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) | |
4916 | end | |
4917 | end | |
4918 | else | |
4919 | if timer <= 0 then | |
4920 | animid = math.random(0,1) | |
4921 | else | |
4922 | timer = timer - 1 | |
4923 | end | |
4924 | end | |
4925 | end | |
4926 | end | |
4927 | end | |
4928 | main_color = Color3.fromRGB(main.r,main.g,main.b) | |
4929 | pr.Value = main.r | |
4930 | pg.Value = main.g | |
4931 | pb.Value = main.b | |
4932 | pv.Value = main.v | |
4933 | idth.Value = themeid | |
4934 | pith.Value = themepitch | |
4935 | HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2) | |
4936 | HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v) | |
4937 | sine = sine + change | |
4938 | if hum.Health <= 0 then | |
4939 | debounce = true | |
4940 | end | |
4941 | end) |