SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
6 | ||
7 | ||
8 | char.Health:Destroy() | |
9 | hum.MaxHealth = 50000 | |
10 | wait(0.1) | |
11 | hum.Health = 50000 | |
12 | ----------------- | |
13 | --some sin thing-- | |
14 | -------------------------------------------------------------- | |
15 | --By CKbackup (Sugarie Saffron), credits to original creator-- | |
16 | -------------------------------------------------------------- | |
17 | ||
18 | Player=game:GetService("Players").LocalPlayer | |
19 | Character=Player.Character | |
20 | PlayerGui=Player.PlayerGui | |
21 | Backpack=Player.Backpack | |
22 | Torso=Character.Torso | |
23 | Head=Character.Head | |
24 | Humanoid=Character:FindFirstChildOfClass("Humanoid") | |
25 | m=Instance.new('Model',Character) | |
26 | LeftArm=Character["Left Arm"] | |
27 | LeftLeg=Character["Left Leg"] | |
28 | RightArm=Character["Right Arm"] | |
29 | RightLeg=Character["Right Leg"] | |
30 | LS=Torso["Left Shoulder"] | |
31 | LH=Torso["Left Hip"] | |
32 | RS=Torso["Right Shoulder"] | |
33 | RH=Torso["Right Hip"] | |
34 | Face = Head.face | |
35 | Neck=Torso.Neck | |
36 | it=Instance.new | |
37 | attacktype=1 | |
38 | vt=Vector3.new | |
39 | cf=CFrame.new | |
40 | euler=CFrame.fromEulerAnglesXYZ | |
41 | angles=CFrame.Angles | |
42 | cloaked=false | |
43 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
44 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
45 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
46 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
47 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
48 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
49 | RootPart=Character.HumanoidRootPart | |
50 | RootJoint=RootPart.RootJoint | |
51 | RootCF=euler(-1.57,0,3.14) | |
52 | attack = false | |
53 | attackdebounce = false | |
54 | deb=false | |
55 | equipped=true | |
56 | hand=false | |
57 | MMouse=nil | |
58 | combo=0 | |
59 | trispeed=1 | |
60 | pathtrans=.7 | |
61 | attackmode='none' | |
62 | local idle=0 | |
63 | local Anim="Idle" | |
64 | local Effects={} | |
65 | local gun=false | |
66 | local shoot=false | |
67 | player=nil | |
68 | cloak=false | |
69 | lightcolor='Royal purple' | |
70 | ||
71 | local Color1=Torso.BrickColor | |
72 | ||
73 | mouse=Player:GetMouse() | |
74 | --save shoulders | |
75 | RSH, LSH=nil, nil | |
76 | --welds | |
77 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
78 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
79 | LH=Torso["Left Hip"] | |
80 | RH=Torso["Right Hip"] | |
81 | TorsoColor=BrickColor.new("Royal purple") | |
82 | function NoOutline(Part) | |
83 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
84 | end | |
85 | player=Player | |
86 | ch=Character | |
87 | RSH=ch.Torso["Right Shoulder"] | |
88 | LSH=ch.Torso["Left Shoulder"] | |
89 | -- | |
90 | RSH.Parent=nil | |
91 | LSH.Parent=nil | |
92 | -- | |
93 | RW.Name="Right Shoulder" | |
94 | RW.Part0=ch.Torso | |
95 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
96 | RW.C1=cf(0, 0.5, 0) | |
97 | RW.Part1=ch["Right Arm"] | |
98 | RW.Parent=ch.Torso | |
99 | -- | |
100 | LW.Name="Left Shoulder" | |
101 | LW.Part0=ch.Torso | |
102 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
103 | LW.C1=cf(0, 0.5, 0) | |
104 | LW.Part1=ch["Left Arm"] | |
105 | LW.Parent=ch.Torso | |
106 | ||
107 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
108 | local fp=it("Part") | |
109 | fp.formFactor=formfactor | |
110 | fp.Parent=parent | |
111 | fp.Reflectance=reflectance | |
112 | fp.Transparency=transparency | |
113 | fp.CanCollide=false | |
114 | fp.Locked=true | |
115 | fp.BrickColor=brickcolor | |
116 | fp.Name=name | |
117 | fp.Size=size | |
118 | fp.Position=Torso.Position | |
119 | NoOutline(fp) | |
120 | fp.Material="Neon" | |
121 | fp:BreakJoints() | |
122 | return fp | |
123 | end | |
124 | ||
125 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
126 | local mesh=it(Mesh) | |
127 | mesh.Parent=part | |
128 | if Mesh=="SpecialMesh" then | |
129 | mesh.MeshType=meshtype | |
130 | if meshid~="nil" then | |
131 | mesh.MeshId="rbxassetid://"..meshid | |
132 | end | |
133 | end | |
134 | mesh.Offset=offset | |
135 | mesh.Scale=scale | |
136 | return mesh | |
137 | end | |
138 | ||
139 | function weld(parent,part0,part1,c0) | |
140 | local weld=it("Weld") | |
141 | weld.Parent=parent | |
142 | weld.Part0=part0 | |
143 | weld.Part1=part1 | |
144 | weld.C0=c0 | |
145 | return weld | |
146 | end | |
147 | ||
148 | local Color1=Torso.BrickColor | |
149 | ||
150 | local bodvel=Instance.new("BodyVelocity") | |
151 | local bg=Instance.new("BodyGyro") | |
152 | ||
153 | ArtificialHB = Instance.new("BindableEvent", script) | |
154 | ArtificialHB.Name = "Heartbeat" | |
155 | script:WaitForChild("Heartbeat") | |
156 | frame = 0.015 | |
157 | tf = 0 | |
158 | allowframeloss = false | |
159 | tossremainder = false | |
160 | lastframe = tick() | |
161 | script.Heartbeat:Fire() | |
162 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
163 | tf = tf + s | |
164 | if tf >= frame then | |
165 | if allowframeloss then | |
166 | script.Heartbeat:Fire() | |
167 | lastframe = tick() | |
168 | else | |
169 | for i = 1, math.floor(tf / frame) do | |
170 | script.Heartbeat:Fire() | |
171 | end | |
172 | lastframe = tick() | |
173 | end | |
174 | if tossremainder then | |
175 | tf = 0 | |
176 | else | |
177 | tf = tf - frame * math.floor(tf / frame) | |
178 | end | |
179 | end | |
180 | end) | |
181 | function swait(num) | |
182 | if num == 0 or num == nil then | |
183 | ArtificialHB.Event:wait(0) | |
184 | else | |
185 | for i = 0, num do | |
186 | ArtificialHB.Event:wait(0) | |
187 | end | |
188 | end | |
189 | end | |
190 | ||
191 | ||
192 | function so(id,par,pit,vol) | |
193 | local sou = Instance.new("Sound", par or workspace) | |
194 | if par == Character then | |
195 | sou.Parent = Torso | |
196 | end | |
197 | sou.Volume = vol | |
198 | sou.Pitch = pit or 1 | |
199 | sou.SoundId = "rbxassetid://" .. id | |
200 | sou.PlayOnRemove = true | |
201 | sou:Destroy() | |
202 | end | |
203 | ||
204 | function clerp(a,b,t) | |
205 | local qa = {QuaternionFromCFrame(a)} | |
206 | local qb = {QuaternionFromCFrame(b)} | |
207 | local ax, ay, az = a.x, a.y, a.z | |
208 | local bx, by, bz = b.x, b.y, b.z | |
209 | local _t = 1-t | |
210 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
211 | end | |
212 | ||
213 | function QuaternionFromCFrame(cf) | |
214 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
215 | local trace = m00 + m11 + m22 | |
216 | if trace > 0 then | |
217 | local s = math.sqrt(1 + trace) | |
218 | local recip = 0.5/s | |
219 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
220 | else | |
221 | local i = 0 | |
222 | if m11 > m00 then | |
223 | i = 1 | |
224 | end | |
225 | if m22 > (i == 0 and m00 or m11) then | |
226 | i = 2 | |
227 | end | |
228 | if i == 0 then | |
229 | local s = math.sqrt(m00-m11-m22+1) | |
230 | local recip = 0.5/s | |
231 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
232 | elseif i == 1 then | |
233 | local s = math.sqrt(m11-m22-m00+1) | |
234 | local recip = 0.5/s | |
235 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
236 | elseif i == 2 then | |
237 | local s = math.sqrt(m22-m00-m11+1) | |
238 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
239 | end | |
240 | end | |
241 | end | |
242 | ||
243 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
244 | local xs, ys, zs = x + x, y + y, z + z | |
245 | local wx, wy, wz = w*xs, w*ys, w*zs | |
246 | local xx = x*xs | |
247 | local xy = x*ys | |
248 | local xz = x*zs | |
249 | local yy = y*ys | |
250 | local yz = y*zs | |
251 | local zz = z*zs | |
252 | 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)) | |
253 | end | |
254 | ||
255 | function QuaternionSlerp(a, b, t) | |
256 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
257 | local startInterp, finishInterp; | |
258 | if cosTheta >= 0.0001 then | |
259 | if (1 - cosTheta) > 0.0001 then | |
260 | local theta = math.acos(cosTheta) | |
261 | local invSinTheta = 1/math.sin(theta) | |
262 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
263 | finishInterp = math.sin(t*theta)*invSinTheta | |
264 | else | |
265 | startInterp = 1-t | |
266 | finishInterp = t | |
267 | end | |
268 | else | |
269 | if (1+cosTheta) > 0.0001 then | |
270 | local theta = math.acos(-cosTheta) | |
271 | local invSinTheta = 1/math.sin(theta) | |
272 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
273 | finishInterp = math.sin(t*theta)*invSinTheta | |
274 | else | |
275 | startInterp = t-1 | |
276 | finishInterp = t | |
277 | end | |
278 | end | |
279 | 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 | |
280 | end | |
281 | ||
282 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
283 | return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
284 | end | |
285 | ||
286 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
287 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
288 | prt.Anchored=true | |
289 | prt.CFrame=cframe | |
290 | local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://4770583",vt(0,0,0),vt(x1,y1,z1)) | |
291 | --rbxassetid://4770560 | |
292 | game:GetService("Debris"):AddItem(prt,2) | |
293 | CF=prt.CFrame | |
294 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
295 | for i=0,1,0.2 do | |
296 | swait() | |
297 | Part.CFrame=CF*cf(0,0,-0.4) | |
298 | end | |
299 | for i=0,1,delay do | |
300 | swait() | |
301 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
302 | Mesh.Scale=Mesh.Scale | |
303 | end | |
304 | for i=0,1,0.1 do | |
305 | swait() | |
306 | Part.Transparency=i | |
307 | end | |
308 | Part:Destroy() | |
309 | end),prt,msh,CF) | |
310 | end | |
311 | ||
312 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
313 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
314 | prt.Anchored=true | |
315 | prt.CFrame=cframe | |
316 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
317 | game:GetService("Debris"):AddItem(prt,5) | |
318 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
319 | for i=0,1,delay do | |
320 | swait() | |
321 | Part.CFrame=Part.CFrame*euler(math.random(0,360),math.random(0,360),math.random(0,360)) | |
322 | Part.Transparency=i | |
323 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
324 | end | |
325 | Part:Destroy() | |
326 | end),prt,msh) | |
327 | end | |
328 | ||
329 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
330 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
331 | prt.Anchored=false | |
332 | prt.CFrame=cframe | |
333 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
334 | local wld=weld(prt,prt,Parent,cframe) | |
335 | game:GetService("Debris"):AddItem(prt,5) | |
336 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
337 | for i=0,1,delay do | |
338 | swait() | |
339 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
340 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
341 | Part.Transparency=i | |
342 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
343 | end | |
344 | Part:Destroy() | |
345 | end),prt,msh,wld) | |
346 | end | |
347 | ||
348 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
349 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
350 | prt.Material = "Neon" | |
351 | prt.Anchored=false | |
352 | prt.CFrame=cframe | |
353 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
354 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
355 | game:GetService("Debris"):AddItem(prt,5) | |
356 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
357 | for i=0,1,delay do | |
358 | swait() | |
359 | Weld.C0=euler(i*20,0,0) | |
360 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
361 | Part.Transparency=i | |
362 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
363 | end | |
364 | Part:Destroy() | |
365 | end),prt,msh,wld) | |
366 | end | |
367 | ||
368 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
369 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
370 | prt.Material = "Neon" | |
371 | prt.Anchored=true | |
372 | prt.CFrame=cframe | |
373 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
374 | game:GetService("Debris"):AddItem(prt,2) | |
375 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
376 | for i=0,1,delay do | |
377 | swait() | |
378 | Part.CFrame=Part.CFrame | |
379 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
380 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
381 | prt2.Anchored=true | |
382 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
383 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
384 | game:GetService("Debris"):AddItem(prt2,2) | |
385 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
386 | for i=0,1,0.1 do | |
387 | swait() | |
388 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
389 | end | |
390 | Part:Destroy() | |
391 | end),prt2,msh2) | |
392 | end | |
393 | for i=0,1,delay*2 do | |
394 | swait() | |
395 | Part.CFrame=Part.CFrame | |
396 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
397 | end | |
398 | Part:Destroy() | |
399 | end),prt,msh) | |
400 | end | |
401 | ||
402 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
403 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
404 | prt.Anchored=true | |
405 | prt.CFrame=cframe | |
406 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
407 | game:GetService("Debris"):AddItem(prt,2) | |
408 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
409 | for i=0,1,delay do | |
410 | swait() | |
411 | Part.CFrame=Part.CFrame | |
412 | Part.Transparency=i | |
413 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
414 | end | |
415 | Part:Destroy() | |
416 | end),prt,msh) | |
417 | end | |
418 | ||
419 | function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3) | |
420 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
421 | prt.Anchored=true | |
422 | prt.CFrame=cframe*euler(x2,y2,z2) | |
423 | --"rbxassetid://168892465" | |
424 | local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://3270017",vt(0,0,0),vt(x1,y1,z1)) | |
425 | game:GetService("Debris"):AddItem(prt,2) | |
426 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
427 | for i=0,1,0.03 do | |
428 | swait() | |
429 | Part.CFrame=Part.CFrame | |
430 | Part.Transparency=i | |
431 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
432 | end | |
433 | Part:Destroy() | |
434 | end),prt,msh) | |
435 | end | |
436 | ||
437 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
438 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
439 | prt.Anchored=true | |
440 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
441 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
442 | game:GetService("Debris"):AddItem(prt,2) | |
443 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
444 | CF=Part.CFrame | |
445 | Numbb=0 | |
446 | randnumb=math.random()/10 | |
447 | rand1=math.random()/10 | |
448 | for i=0,1,rand1 do | |
449 | swait() | |
450 | CF=CF*cf(0,math.random()/2,0) | |
451 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
452 | Part.CFrame=CF*euler(Numbb,0,0) | |
453 | Part.Transparency=i | |
454 | Numbb=Numbb+randnumb | |
455 | end | |
456 | Part:Destroy() | |
457 | end),prt,CF,Numbb,randnumb) | |
458 | end | |
459 | ||
460 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
461 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
462 | prt.Anchored=true | |
463 | prt.CFrame=cframe | |
464 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://1051557",vt(0,0,0),vt(x1,y1,z1)) | |
465 | game:GetService("Debris"):AddItem(prt,5) | |
466 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
467 | for i=0,1,delay do | |
468 | swait() | |
469 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
470 | Part.Transparency=i | |
471 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
472 | end | |
473 | Part:Destroy() | |
474 | end),prt,msh) | |
475 | end | |
476 | ||
477 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
478 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
479 | prt.Anchored=true | |
480 | prt.CFrame=cframe | |
481 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://20329976",vt(0,0,0),vt(x1,y1,z1)) | |
482 | game:GetService("Debris"):AddItem(prt,2) | |
483 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
484 | for i=0,1,delay do | |
485 | swait() | |
486 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
487 | Part.Transparency=i | |
488 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
489 | end | |
490 | Part:Destroy() | |
491 | end),prt,msh) | |
492 | end | |
493 | ||
494 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
495 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
496 | prt.Anchored=true | |
497 | prt.CFrame=cframe*cf(x,y,z) | |
498 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
499 | game:GetService("Debris"):AddItem(prt,5) | |
500 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
501 | local num=math.random() | |
502 | local num2=math.random(-3,2)+math.random() | |
503 | local numm=0 | |
504 | for i=0,1,delay*2 do | |
505 | swait() | |
506 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
507 | Part.Transparency=i | |
508 | numm=numm+0.01 | |
509 | end | |
510 | Part:Destroy() | |
511 | Mesh:Destroy() | |
512 | end),prt,msh,x,y,z) | |
513 | end | |
514 | ||
515 | function puncheff(par) | |
516 | so(386946017,par,math.random(80,120)/100,1) | |
517 | MagicCircle(BrickColor.new("Alder"), par.CFrame, 1, 1, 1, 1, 1, 1, 0.05) | |
518 | end | |
519 | ||
520 | Damagefunc=function(hit,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
521 | if hit.Parent==nil then | |
522 | return | |
523 | end | |
524 | local torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso")) | |
525 | h=hit.Parent:FindFirstChildOfClass("Humanoid") | |
526 | for _,v in pairs(hit.Parent:children()) do | |
527 | if v:IsA("Humanoid") then | |
528 | h=v | |
529 | end | |
530 | end | |
531 | if hit.Parent.Parent:FindFirstChild("Head")~=nil then | |
532 | h=hit.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
533 | end | |
534 | if hit.Parent.className=="Hat" then | |
535 | hit=hit.Parent.Parent:findFirstChild("Head") | |
536 | end | |
537 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Head")~=nil then | |
538 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
539 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
540 | return | |
541 | end]] | |
542 | -- hs(hit,1.2) | |
543 | c=Instance.new("ObjectValue") | |
544 | c.Name="creator" | |
545 | c.Value=game:service("Players").LocalPlayer | |
546 | c.Parent=h | |
547 | game:GetService("Debris"):AddItem(c,.5) | |
548 | Damage=math.random(minim,maxim) | |
549 | -- h:TakeDamage(Damage) | |
550 | blocked=false | |
551 | block=hit.Parent:findFirstChild("Block") | |
552 | if block~=nil then | |
553 | print(block.className) | |
554 | if block.className=="NumberValue" then | |
555 | if block.Value>0 then | |
556 | blocked=true | |
557 | if decreaseblock==nil then | |
558 | block.Value=block.Value-1 | |
559 | end | |
560 | end | |
561 | end | |
562 | if block.className=="IntValue" then | |
563 | if block.Value>0 then | |
564 | blocked=true | |
565 | if decreaseblock~=nil then | |
566 | block.Value=block.Value-1 | |
567 | end | |
568 | end | |
569 | end | |
570 | end | |
571 | if efft == "Blunt" then | |
572 | puncheff(hit) | |
573 | end | |
574 | h.MaxHealth = 100 | |
575 | h.Health=h.Health-Damage | |
576 | showDamage(hit.Parent,Damage,.5,TorsoColor) | |
577 | if Type=="Knockdown" then | |
578 | local hum=hit.Parent:FindFirstChildOfClass("Humanoid") | |
579 | hum.PlatformStand=true | |
580 | coroutine.resume(coroutine.create(function(HHumanoid) | |
581 | swait(30) | |
582 | HHumanoid.PlatformStand=false | |
583 | end),hum) | |
584 | local bodvol=Instance.new("BodyVelocity") | |
585 | bodvol.velocity=RootPart.CFrame.lookVector*knockback | |
586 | bodvol.P=50000 | |
587 | bodvol.maxForce=Vector3.new(5000, 0, 5000) * 5000000000 | |
588 | bodvol.Parent=torsy | |
589 | torsy.CFrame = CFrame.new(torsy.Position)*CFrame.Angles(math.rad(90),0,0) | |
590 | game:GetService("Debris"):AddItem(bodvol,.5) | |
591 | elseif Type=="Normal" then | |
592 | vp=Instance.new("BodyVelocity") | |
593 | vp.P=500 | |
594 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
595 | vp.velocity=Character.Torso.CFrame.lookVector*knockback | |
596 | -- if KnockbackType==1 then | |
597 | -- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
598 | -- elseif KnockbackType==2 then | |
599 | -- vp.velocity=Property.CFrame.lookVector*knockback | |
600 | -- end | |
601 | if knockback>0 then | |
602 | vp.Parent=torsy | |
603 | end | |
604 | game:GetService("Debris"):AddItem(vp,.5) | |
605 | elseif Type=="Up" then | |
606 | local bodyVelocity=Instance.new("BodyVelocity") | |
607 | bodyVelocity.velocity=vt(0,10,0) | |
608 | bodyVelocity.P=1000 | |
609 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
610 | bodyVelocity.Parent=hit | |
611 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
612 | rl=Instance.new("BodyAngularVelocity") | |
613 | rl.P=3000 | |
614 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
615 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
616 | rl.Parent=hit | |
617 | game:GetService("Debris"):AddItem(rl,.5) | |
618 | elseif Type=="Snare" then | |
619 | bp=Instance.new("BodyPosition") | |
620 | bp.P=2000 | |
621 | bp.D=100 | |
622 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
623 | bp.position=torsy.Position | |
624 | bp.Parent=torsy | |
625 | game:GetService("Debris"):AddItem(bp,1) | |
626 | elseif Type=="Target" then | |
627 | if Targetting==false then | |
628 | ZTarget=torsy | |
629 | coroutine.resume(coroutine.create(function(Part) | |
630 | so("15666462",Part,1,1.5) | |
631 | swait(5) | |
632 | so("15666462",Part,1,1.5) | |
633 | end),ZTarget) | |
634 | TargHum=ZTarget.Parent:FindFirstChildOfClass("Humanoid") | |
635 | targetgui=Instance.new("BillboardGui") | |
636 | targetgui.Parent=ZTarget | |
637 | targetgui.Size=UDim2.new(10,100,10,100) | |
638 | targ=Instance.new("ImageLabel") | |
639 | targ.Parent=targetgui | |
640 | targ.BackgroundTransparency=1 | |
641 | targ.Image="rbxassetid://4834067" | |
642 | targ.Size=UDim2.new(1,0,1,0) | |
643 | cam.CameraType="Scriptable" | |
644 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
645 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
646 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
647 | Targetting=true | |
648 | RocketTarget=ZTarget | |
649 | for i=1,Property do | |
650 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
651 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
652 | swait() | |
653 | end | |
654 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
655 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
656 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
657 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
658 | end | |
659 | Targetting=false | |
660 | RocketTarget=nil | |
661 | targetgui:Destroy() | |
662 | cam.CameraType="Custom" | |
663 | end | |
664 | end | |
665 | debounce=Instance.new("BoolValue") | |
666 | debounce.Name="DebounceHit" | |
667 | debounce.Parent=hit.Parent | |
668 | debounce.Value=true | |
669 | game:GetService("Debris"):AddItem(debounce,Delay) | |
670 | c=Instance.new("ObjectValue") | |
671 | c.Name="creator" | |
672 | c.Value=Player | |
673 | c.Parent=h | |
674 | game:GetService("Debris"):AddItem(c,.5) | |
675 | CRIT=false | |
676 | hitDeb=true | |
677 | AttackPos=6 | |
678 | end | |
679 | end | |
680 | ||
681 | function showDamage(Dude, Text, Time, Color) | |
682 | coroutine.resume(coroutine.create(function() | |
683 | local naeeym2 = Instance.new("BillboardGui",Dude) | |
684 | naeeym2.Size = UDim2.new(0,100,0,40) | |
685 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
686 | naeeym2.Adornee = Dude.Head | |
687 | naeeym2.Name = "TalkingBillBoard" | |
688 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
689 | tecks2.BackgroundTransparency = 1 | |
690 | tecks2.BorderSizePixel = 0 | |
691 | tecks2.Text = Text | |
692 | tecks2.Font = "Fantasy" | |
693 | tecks2.TextSize = 24 | |
694 | tecks2.TextStrokeTransparency = 0 | |
695 | tecks2.TextColor3 = Color3.new(.8,0,1) | |
696 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
697 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
698 | swait(10) | |
699 | for i = 0,1,.05 do | |
700 | swait() | |
701 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0) | |
702 | tecks2.TextStrokeTransparency = i | |
703 | tecks2.TextTransparency = i | |
704 | end | |
705 | naeeym2:Destroy() | |
706 | end)) | |
707 | end | |
708 | ||
709 | Player=game:GetService('Players').LocalPlayer | |
710 | Character=Player.Character | |
711 | Mouse=Player:GetMouse() | |
712 | m=Instance.new('Model',Character) | |
713 | ||
714 | ||
715 | local function weldBetween(a, b) | |
716 | local weldd = Instance.new("ManualWeld") | |
717 | weldd.Part0 = a | |
718 | weldd.Part1 = b | |
719 | weldd.C0 = CFrame.new() | |
720 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
721 | weldd.Parent = a | |
722 | return weldd | |
723 | end | |
724 | ||
725 | it=Instance.new | |
726 | ||
727 | function nooutline(part) | |
728 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
729 | end | |
730 | ||
731 | function parta(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
732 | local fp=it("Part") | |
733 | fp.formFactor=formfactor | |
734 | fp.Parent=parent | |
735 | fp.Reflectance=reflectance | |
736 | fp.Transparency=transparency | |
737 | fp.CanCollide=false | |
738 | fp.Locked=true | |
739 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
740 | fp.Name=name | |
741 | fp.Size=size | |
742 | fp.Position=Character.Torso.Position | |
743 | nooutline(fp) | |
744 | fp.Material=material | |
745 | fp:BreakJoints() | |
746 | return fp | |
747 | end | |
748 | ||
749 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
750 | local mesh=it(Mesh) | |
751 | mesh.Parent=part | |
752 | if Mesh=="SpecialMesh" then | |
753 | mesh.MeshType=meshtype | |
754 | mesh.MeshId=meshid | |
755 | end | |
756 | mesh.Offset=offset | |
757 | mesh.Scale=scale | |
758 | return mesh | |
759 | end | |
760 | ||
761 | function weld(parent,part0,part1,c0,c1) | |
762 | local weld=it("Weld") | |
763 | weld.Parent=parent | |
764 | weld.Part0=part0 | |
765 | weld.Part1=part1 | |
766 | weld.C0=c0 | |
767 | weld.C1=c1 | |
768 | return weld | |
769 | end | |
770 | ||
771 | local modelzorz=Instance.new("Model") | |
772 | modelzorz.Parent=Character | |
773 | modelzorz.Name="Claw1" | |
774 | ||
775 | Handle=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1)) | |
776 | Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963)) | |
777 | Gear=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
778 | Gearweld=weld(modelzorz,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086)) | |
779 | ||
780 | local modelzorz2=Instance.new("Model") | |
781 | modelzorz2.Parent=Character | |
782 | modelzorz2.Name="Claw2" | |
783 | ||
784 | Handle2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1)) | |
785 | Handle2weld=weld(modelzorz2,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559)) | |
786 | Gear2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
787 | Gear2weld=weld(modelzorz2,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636)) | |
788 | ||
789 | local modelzorz3=Instance.new("Model") | |
790 | modelzorz3.Parent=Character | |
791 | modelzorz3.Name="Eye" | |
792 | ||
793 | handle=parta(Enum.FormFactor.Custom,modelzorz3,Enum.Material.SmoothPlastic,0,1,TorsoColor,"Handle",Vector3.new(1,6,6)) | |
794 | handleweld=weld(modelzorz3,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
795 | ||
796 | New = function(Object, Parent, Name, Data) | |
797 | local Object = Instance.new(Object) | |
798 | for Index, Value in pairs(Data or {}) do | |
799 | Object[Index] = Value | |
800 | end | |
801 | Object.Parent = Parent | |
802 | Object.Name = Name | |
803 | return Object | |
804 | end | |
805 | ||
806 | Gear2 = New("Part",modelzorz2,"Gear2",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(5, 7, 5),CFrame = CFrame.new(68.5, 2.5, -42.5, 0, 0, -1, -1, 0, 0, 0, 1, 0),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
807 | Mesh = New("SpecialMesh",Gear2,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://92052865",MeshType = Enum.MeshType.FileMesh,}) | |
808 | Weld = New("ManualWeld",Gear2,"Weld",{Part0 = Gear2,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, 1, -1, 0, 0),C1 = CFrame.new(0, 3.57627869e-06, 2.99999237, 0.999991357, -6.94066244e-08, 4.63798642e-07, 6.63525327e-07, -0.999994934, -2.62497252e-07, 2.04890966e-08, 2.84217094e-13, -0.999997139),}) | |
809 | Gear = New("Part",modelzorz,"Gear",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(5, 7, 5),CFrame = CFrame.new(78.5, 2.5, -42.5, 0, 0, 1, 1, 0, 0, 0, 1, 0),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
810 | Mesh = New("SpecialMesh",Gear,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://92053026",MeshType = Enum.MeshType.FileMesh,}) | |
811 | Weld = New("ManualWeld",Gear,"Weld",{Part0 = Gear,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0),C1 = CFrame.new(0, 3.57627869e-06, 2.99999237, 0.999991357, -6.94066244e-08, 4.63798642e-07, 6.63525327e-07, -0.999994934, -2.62497252e-07, 2.04890966e-08, 2.84217094e-13, -0.999997139),}) | |
812 | DragonHead = New("Part",modelzorz3,"DragonHead",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(72.5999985, 5.5999999, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
813 | Mesh = New("SpecialMesh",DragonHead,"Mesh",{Scale = Vector3.new(5, 5, 5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.FileMesh,}) | |
814 | Weld = New("ManualWeld",DragonHead,"Weld",{Part0 = DragonHead,Part1 = handle,C1 = CFrame.new(-4, 0, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),}) | |
815 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(70.0999985, 8.60000038, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.384314, 0.145098, 0.819608),}) | |
816 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(1, 1, 2),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,}) | |
817 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4, 3.00000048, 2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),}) | |
818 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(75.0999985, 8.60000038, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.384314, 0.145098, 0.819608),}) | |
819 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(1, 1, 2),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,}) | |
820 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4, 3.00000048, -2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),}) | |
821 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(70.0999985, 8.60000038, -64.0999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
822 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(0.899999976, 0.899999976, 0.5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,}) | |
823 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4.5, 3.00000048, 2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),}) | |
824 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(75.0999985, 8.60000038, -64.0999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
825 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(0.899999976, 0.899999976, 0.5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,}) | |
826 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4.5, 3.00000048, -2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),}) | |
827 | ||
828 | ||
829 | local moosick = it("Sound",Character) | |
830 | moosick.SoundId = "rbxassetid://608726256" | |
831 | --142653441, 175067863 | |
832 | moosick.Name = "moosick" | |
833 | moosick.Looped = true | |
834 | moosick.Volume = 1 | |
835 | ||
836 | anim = Character:findFirstChild("Animate") | |
837 | if anim then | |
838 | anim:Destroy() | |
839 | end | |
840 | ||
841 | local pemit = Instance.new("ParticleEmitter") | |
842 | pemit.Color = ColorSequence.new(Color3.new(.5,0,1)) | |
843 | pemit.Lifetime = NumberRange.new(1) | |
844 | pemit.Acceleration = Vector3.new(0,20,0) | |
845 | pemit.EmissionDirection = "Front" | |
846 | pemit.Size = NumberSequence.new(1,0) | |
847 | pemit.Speed = NumberRange.new(10) | |
848 | pemit.LightEmission = 1 | |
849 | pemit.Rate = 500 | |
850 | pemit.Rotation = NumberRange.new(0,360) | |
851 | pemit.RotSpeed = NumberRange.new(150) | |
852 | pemit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
853 | pemit.Enabled = false | |
854 | ||
855 | local pe1 = pemit:Clone() | |
856 | pe1.Parent = Handle | |
857 | local pe2 = pemit:Clone() | |
858 | pe2.Parent = Handle2 | |
859 | local pe3 = pemit:Clone() | |
860 | pe3.Parent = handle | |
861 | pe3.EmissionDirection = "Right" | |
862 | pe3.Rate = 1000 | |
863 | ||
864 | local light = Instance.new("PointLight", Character.Torso) | |
865 | light.Color = TorsoColor.Color | |
866 | light.Brightness = 5 | |
867 | light.Range = 15 | |
868 | light.Enabled = false | |
869 | ||
870 | local Footsteps = it("Sound",Character.Torso) | |
871 | Footsteps.SoundId = "rbxassetid://142665235" | |
872 | Footsteps.Looped = true | |
873 | Footsteps.Pitch = 0.8 | |
874 | Footsteps.Volume = 0.3 | |
875 | ||
876 | local Footsteps2 = it("Sound",Character.Torso) | |
877 | Footsteps2.SoundId = "rbxassetid://142665235" | |
878 | Footsteps2.Looped = true | |
879 | Footsteps2.Pitch = 1 | |
880 | Footsteps2.Volume = 0.4 | |
881 | ||
882 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
883 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
884 | prt.Material = Enum.Material.Neon | |
885 | prt.Anchored=true | |
886 | prt.CFrame=cframe | |
887 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
888 | game:GetService("Debris"):AddItem(prt,2) | |
889 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
890 | for i=0,1,delay do | |
891 | swait() | |
892 | Part.CFrame=Part.CFrame | |
893 | Part.Transparency=i | |
894 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
895 | end | |
896 | Part:Destroy() | |
897 | end),prt,msh) | |
898 | end | |
899 | ||
900 | TrailDeb = false | |
901 | ||
902 | function equipanim() | |
903 | attack=true | |
904 | Gear.Transparency = 1 | |
905 | Gear2.Transparency = 1 | |
906 | for i,v in pairs(modelzorz3:children()) do | |
907 | if v:IsA("BasePart") then v.Transparency = 1 end | |
908 | end | |
909 | Humanoid.WalkSpeed = 0 | |
910 | moosick:Play() | |
911 | for i=0,1,0.05 do | |
912 | swait() | |
913 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
914 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
915 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
916 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
917 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
918 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
919 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
920 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
921 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
922 | end | |
923 | swait(60) | |
924 | for i=0,1,0.05 do | |
925 | swait() | |
926 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
927 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
928 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
929 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
930 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
931 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
932 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
933 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
934 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
935 | end | |
936 | so(136007472,Torso,1,1) | |
937 | swait(30) | |
938 | for i=0,30 do | |
939 | swait(1) | |
940 | MagicRing(BrickColor.new("Alder"), Gear.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0) | |
941 | MagicRing(BrickColor.new("Alder"), Gear2.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0) | |
942 | MagicRing(BrickColor.new("Alder"), DragonHead.CFrame*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))), 60, 60, 6, 1, 1, 1, -3, -3, 0) | |
943 | end | |
944 | swait(180) | |
945 | so(233096557,Torso,1,5) | |
946 | so(233091205,Torso,1,5) | |
947 | so(150829983,DragonHead,.9,5) | |
948 | MagicCircle(BrickColor.new("Alder"), Gear.CFrame, 10, 10, 10, 1, 1, 1, 0.01) | |
949 | MagicCircle(BrickColor.new("Alder"), Gear2.CFrame, 10, 10, 10, 1, 1, 1, 0.01) | |
950 | MagicCircle(BrickColor.new("Alder"), DragonHead.CFrame, 20, 20, 20, 1, 1, 1, 0.01) | |
951 | Gear.Transparency = 0 | |
952 | Gear2.Transparency = 0 | |
953 | for i,v in pairs(modelzorz3:children()) do | |
954 | if v:IsA("BasePart") and v ~= handle then v.Transparency = 0 end | |
955 | end | |
956 | pe1.Enabled = true | |
957 | pe2.Enabled = true | |
958 | pe3.Enabled = true | |
959 | light.Enabled = true | |
960 | for a=1,300 do | |
961 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0)) | |
962 | swait() | |
963 | end | |
964 | attack = false | |
965 | end | |
966 | ||
967 | function attackone() | |
968 | attack=true | |
969 | if TrailDeb == false then | |
970 | TrailDeb = true | |
971 | end | |
972 | coroutine.wrap(function() | |
973 | local Old = Handle.CFrame.p | |
974 | while true do swait() | |
975 | if not TrailDeb then break end | |
976 | local New = Handle.CFrame.p | |
977 | local Mag =(Old -New).magnitude | |
978 | local Dis =(Old +New)/2 | |
979 | local Trail = Instance.new("Part",Character) | |
980 | Trail.Material = "Neon" | |
981 | Trail.Anchored = true | |
982 | Trail.CanCollide = false | |
983 | Trail.BrickColor = TorsoColor | |
984 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
985 | Trail.TopSurface = 0 | |
986 | Trail.BottomSurface = 0 | |
987 | Trail.formFactor = "Custom" | |
988 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
989 | local ms = Instance.new("BlockMesh",Trail) | |
990 | ms.Scale = Vector3.new(1,1,1) | |
991 | local TM = Instance.new("CylinderMesh",Trail) | |
992 | TM.Scale = Vector3.new(20,1,20) | |
993 | Old = New | |
994 | coroutine.wrap(function() | |
995 | for i = 1,0,-0.1 do | |
996 | swait() | |
997 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
998 | end | |
999 | Trail:remove() | |
1000 | end)() | |
1001 | coroutine.wrap(function() | |
1002 | for i = 1,10 do | |
1003 | swait() | |
1004 | Trail.Transparency = Trail.Transparency +0.1 | |
1005 | end end)()end end)() | |
1006 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end) | |
1007 | for i=0,1,0.08 do | |
1008 | swait() | |
1009 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
1010 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
1011 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
1012 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1013 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1014 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
1015 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1016 | end | |
1017 | so("231917758",Handle,1,.9) | |
1018 | so("159972643",Torso,1,1) | |
1019 | for i=0,1,0.1 do | |
1020 | swait() | |
1021 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
1022 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1023 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
1024 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1025 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1026 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
1027 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1028 | end | |
1029 | --dmgstop() | |
1030 | attack=false | |
1031 | con1:disconnect() | |
1032 | if TrailDeb == true then | |
1033 | TrailDeb = false | |
1034 | end | |
1035 | end | |
1036 | ||
1037 | function attacktwo() | |
1038 | attack=true | |
1039 | if TrailDeb == false then | |
1040 | TrailDeb = true | |
1041 | end | |
1042 | coroutine.wrap(function() | |
1043 | local Old = Handle2.CFrame.p | |
1044 | while true do swait() | |
1045 | if not TrailDeb then break end | |
1046 | local New = Handle2.CFrame.p | |
1047 | local Mag =(Old -New).magnitude | |
1048 | local Dis =(Old +New)/2 | |
1049 | local Trail = Instance.new("Part",Character) | |
1050 | Trail.Material = "Neon" | |
1051 | Trail.Anchored = true | |
1052 | Trail.CanCollide = false | |
1053 | Trail.BrickColor = TorsoColor | |
1054 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1055 | Trail.TopSurface = 0 | |
1056 | Trail.BottomSurface = 0 | |
1057 | Trail.formFactor = "Custom" | |
1058 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1059 | local ms = Instance.new("BlockMesh",Trail) | |
1060 | ms.Scale = Vector3.new(1,1,1) | |
1061 | local TM = Instance.new("CylinderMesh",Trail) | |
1062 | TM.Scale = Vector3.new(20,1,20) | |
1063 | Old = New | |
1064 | coroutine.wrap(function() | |
1065 | for i = 1,0,-0.1 do | |
1066 | swait() | |
1067 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1068 | end | |
1069 | Trail:remove() | |
1070 | end)() | |
1071 | coroutine.wrap(function() | |
1072 | for i = 1,10 do | |
1073 | swait() | |
1074 | Trail.Transparency = Trail.Transparency +0.1 | |
1075 | end end)()end end)() | |
1076 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end) | |
1077 | for i=0,1,0.08 do | |
1078 | swait() | |
1079 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
1080 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1081 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3) | |
1082 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
1083 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1084 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
1085 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1086 | end | |
1087 | so("231917758",Handle2,1,.8) | |
1088 | so("159972627",Torso,1,1) | |
1089 | for i=0,1,0.1 do | |
1090 | swait() | |
1091 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1092 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
1093 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
1094 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
1095 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1096 | Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2) | |
1097 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1098 | end | |
1099 | --dmgstop() | |
1100 | attack=false | |
1101 | con1:disconnect() | |
1102 | if TrailDeb == true then | |
1103 | TrailDeb = false | |
1104 | end | |
1105 | end | |
1106 | ||
1107 | function attackthree() | |
1108 | attack=true | |
1109 | if TrailDeb == false then | |
1110 | TrailDeb = true | |
1111 | end | |
1112 | coroutine.wrap(function() | |
1113 | local Old = Handle.CFrame.p | |
1114 | while true do swait() | |
1115 | if not TrailDeb then break end | |
1116 | local New = Handle.CFrame.p | |
1117 | local Mag =(Old -New).magnitude | |
1118 | local Dis =(Old +New)/2 | |
1119 | local Trail = Instance.new("Part",Character) | |
1120 | Trail.Material = "Neon" | |
1121 | Trail.Anchored = true | |
1122 | Trail.CanCollide = false | |
1123 | Trail.BrickColor = TorsoColor | |
1124 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1125 | Trail.TopSurface = 0 | |
1126 | Trail.BottomSurface = 0 | |
1127 | Trail.formFactor = "Custom" | |
1128 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1129 | local ms = Instance.new("BlockMesh",Trail) | |
1130 | ms.Scale = Vector3.new(1,1,1) | |
1131 | local TM = Instance.new("CylinderMesh",Trail) | |
1132 | TM.Scale = Vector3.new(20,1,20) | |
1133 | Old = New | |
1134 | coroutine.wrap(function() | |
1135 | for i = 1,0,-0.1 do | |
1136 | swait() | |
1137 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1138 | end | |
1139 | Trail:remove() | |
1140 | end)() | |
1141 | coroutine.wrap(function() | |
1142 | for i = 1,10 do | |
1143 | swait() | |
1144 | Trail.Transparency = Trail.Transparency +0.1 | |
1145 | end end)()end end)() | |
1146 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,30,"Up",RootPart,.2,1) end) | |
1147 | for i=0,1,0.08 do | |
1148 | swait() | |
1149 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1150 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
1151 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3) | |
1152 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1153 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1154 | Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2) | |
1155 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1156 | end | |
1157 | so("231917758",Handle,1,1) | |
1158 | so("159882477",Torso,1,1) | |
1159 | for i=0,1,0.05 do | |
1160 | swait() | |
1161 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1162 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1163 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1164 | Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2) | |
1165 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1166 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3) | |
1167 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1168 | end | |
1169 | --dmgstop() | |
1170 | attack=false | |
1171 | con1:disconnect() | |
1172 | if TrailDeb == true then | |
1173 | TrailDeb = false | |
1174 | end | |
1175 | end | |
1176 | ||
1177 | function attackfour() | |
1178 | attack=true | |
1179 | if TrailDeb == false then | |
1180 | TrailDeb = true | |
1181 | end | |
1182 | coroutine.wrap(function() | |
1183 | local Old = Handle2.CFrame.p | |
1184 | while true do swait() | |
1185 | if not TrailDeb then break end | |
1186 | local New = Handle2.CFrame.p | |
1187 | local Mag =(Old -New).magnitude | |
1188 | local Dis =(Old +New)/2 | |
1189 | local Trail = Instance.new("Part",Character) | |
1190 | Trail.Material = "Neon" | |
1191 | Trail.Anchored = true | |
1192 | Trail.CanCollide = false | |
1193 | Trail.BrickColor = TorsoColor | |
1194 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1195 | Trail.TopSurface = 0 | |
1196 | Trail.BottomSurface = 0 | |
1197 | Trail.formFactor = "Custom" | |
1198 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1199 | local ms = Instance.new("BlockMesh",Trail) | |
1200 | ms.Scale = Vector3.new(1,1,1) | |
1201 | local TM = Instance.new("CylinderMesh",Trail) | |
1202 | TM.Scale = Vector3.new(20,1,20) | |
1203 | Old = New | |
1204 | coroutine.wrap(function() | |
1205 | for i = 1,0,-0.1 do | |
1206 | swait() | |
1207 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1208 | end | |
1209 | Trail:remove() | |
1210 | end)() | |
1211 | coroutine.wrap(function() | |
1212 | for i = 1,10 do | |
1213 | swait() | |
1214 | Trail.Transparency = Trail.Transparency +0.1 | |
1215 | end end)()end end)() | |
1216 | coroutine.wrap(function() | |
1217 | local Old = Handle.CFrame.p | |
1218 | while true do swait() | |
1219 | if not TrailDeb then break end | |
1220 | local New = Handle.CFrame.p | |
1221 | local Mag =(Old -New).magnitude | |
1222 | local Dis =(Old +New)/2 | |
1223 | local Trail = Instance.new("Part",Character) | |
1224 | Trail.Material = "Neon" | |
1225 | Trail.Anchored = true | |
1226 | Trail.CanCollide = false | |
1227 | Trail.BrickColor = TorsoColor | |
1228 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1229 | Trail.TopSurface = 0 | |
1230 | Trail.BottomSurface = 0 | |
1231 | Trail.formFactor = "Custom" | |
1232 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1233 | local ms = Instance.new("BlockMesh",Trail) | |
1234 | ms.Scale = Vector3.new(1,1,1) | |
1235 | local TM = Instance.new("CylinderMesh",Trail) | |
1236 | TM.Scale = Vector3.new(20,1,20) | |
1237 | Old = New | |
1238 | coroutine.wrap(function() | |
1239 | for i = 1,0,-0.1 do | |
1240 | swait() | |
1241 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1242 | end | |
1243 | Trail:remove() | |
1244 | end)() | |
1245 | coroutine.wrap(function() | |
1246 | for i = 1,10 do | |
1247 | swait() | |
1248 | Trail.Transparency = Trail.Transparency +0.1 | |
1249 | end end)()end end)() | |
1250 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1251 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
1252 | for i=0,1,0.08 do | |
1253 | swait() | |
1254 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3) | |
1255 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3) | |
1256 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3) | |
1257 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1258 | LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3) | |
1259 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1260 | Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1261 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
1262 | end | |
1263 | if anim then | |
1264 | anim.Disabled=true | |
1265 | end | |
1266 | so("231917758",Torso,1,0.7) | |
1267 | so("159882584",Torso,1,1) | |
1268 | for i=0,1,0.04 do | |
1269 | swait() | |
1270 | Torso.Velocity=RootPart.CFrame.lookVector*50 | |
1271 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3) | |
1272 | RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
1273 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
1274 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1275 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1276 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1277 | Handleweld.C0=clerp(Handleweld.C0,cf(3,4,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2) | |
1278 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,4,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
1279 | end | |
1280 | --dmgstop() | |
1281 | attack=false | |
1282 | con1:disconnect() | |
1283 | con2:disconnect() | |
1284 | if anim then | |
1285 | anim.Disabled=false | |
1286 | end | |
1287 | if TrailDeb == true then | |
1288 | TrailDeb = false | |
1289 | end | |
1290 | end | |
1291 | ||
1292 | function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2) | |
1293 | local prt = parta(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1294 | prt.Anchored = true | |
1295 | prt.CFrame = cframe | |
1296 | local msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
1297 | coroutine.resume(coroutine.create(function() | |
1298 | for i = 0, 1, 0.05 do | |
1299 | swait() | |
1300 | prt.Transparency = i | |
1301 | msh.Scale = msh.Scale + vt(x2, y2, z2) | |
1302 | end | |
1303 | prt.Parent = nil | |
1304 | end)) | |
1305 | end | |
1306 | ||
1307 | function MagniDamage(par,efft,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
1308 | for _, c in pairs(workspace:GetDescendants()) do | |
1309 | local hum = c:FindFirstChildOfClass("Humanoid") | |
1310 | if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then | |
1311 | local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso")) | |
1312 | if head ~= nil then | |
1313 | local targ = head.Position - par.Position | |
1314 | local mag = targ.magnitude | |
1315 | if magni >= mag and c.Name ~= Player.Name then | |
1316 | Damagefunc(head,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
1317 | end | |
1318 | end | |
1319 | end | |
1320 | end | |
1321 | end | |
1322 | ||
1323 | function MagicCircle4(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1324 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1325 | prt.Anchored = true | |
1326 | prt.CFrame = cframe | |
1327 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1328 | game:GetService("Debris"):AddItem(prt, 2) | |
1329 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1330 | for i = 0, 1, delay do | |
1331 | swait() | |
1332 | Part.CFrame = Part.CFrame | |
1333 | Part.Transparency = i | |
1334 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1335 | end | |
1336 | Part.Parent = nil | |
1337 | end), prt, msh) | |
1338 | end | |
1339 | ||
1340 | function smashdown() | |
1341 | attack=true | |
1342 | ||
1343 | if TrailDeb == false then | |
1344 | TrailDeb = true | |
1345 | end | |
1346 | coroutine.wrap(function() | |
1347 | local Old = Handle2.CFrame.p | |
1348 | while true do swait() | |
1349 | if not TrailDeb then break end | |
1350 | local New = Handle2.CFrame.p | |
1351 | local Mag =(Old -New).magnitude | |
1352 | local Dis =(Old +New)/2 | |
1353 | local Trail = Instance.new("Part",Character) | |
1354 | Trail.Material = "Neon" | |
1355 | Trail.Anchored = true | |
1356 | Trail.CanCollide = false | |
1357 | Trail.BrickColor = TorsoColor | |
1358 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1359 | Trail.TopSurface = 0 | |
1360 | Trail.BottomSurface = 0 | |
1361 | Trail.formFactor = "Custom" | |
1362 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1363 | local ms = Instance.new("BlockMesh",Trail) | |
1364 | ms.Scale = Vector3.new(1,1,1) | |
1365 | local TM = Instance.new("CylinderMesh",Trail) | |
1366 | TM.Scale = Vector3.new(20,1,20) | |
1367 | Old = New | |
1368 | coroutine.wrap(function() | |
1369 | for i = 1,0,-0.1 do | |
1370 | swait() | |
1371 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1372 | end | |
1373 | Trail:remove() | |
1374 | end)() | |
1375 | coroutine.wrap(function() | |
1376 | for i = 1,10 do | |
1377 | swait() | |
1378 | Trail.Transparency = Trail.Transparency +0.1 | |
1379 | end end)()end end)() | |
1380 | coroutine.wrap(function() | |
1381 | local Old = Handle.CFrame.p | |
1382 | while true do swait() | |
1383 | if not TrailDeb then break end | |
1384 | local New = Handle.CFrame.p | |
1385 | local Mag =(Old -New).magnitude | |
1386 | local Dis =(Old +New)/2 | |
1387 | local Trail = Instance.new("Part",Character) | |
1388 | Trail.Material = "Neon" | |
1389 | Trail.Anchored = true | |
1390 | Trail.CanCollide = false | |
1391 | Trail.BrickColor = TorsoColor | |
1392 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1393 | Trail.TopSurface = 0 | |
1394 | Trail.BottomSurface = 0 | |
1395 | Trail.formFactor = "Custom" | |
1396 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1397 | local ms = Instance.new("BlockMesh",Trail) | |
1398 | ms.Scale = Vector3.new(1,1,1) | |
1399 | local TM = Instance.new("CylinderMesh",Trail) | |
1400 | TM.Scale = Vector3.new(20,1,20) | |
1401 | Old = New | |
1402 | coroutine.wrap(function() | |
1403 | for i = 1,0,-0.1 do | |
1404 | swait() | |
1405 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1406 | end | |
1407 | Trail:remove() | |
1408 | end)() | |
1409 | coroutine.wrap(function() | |
1410 | for i = 1,10 do | |
1411 | swait() | |
1412 | Trail.Transparency = Trail.Transparency +0.1 | |
1413 | end end)()end end)() | |
1414 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end) | |
1415 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end) | |
1416 | for i=0,1,0.08 do | |
1417 | swait() | |
1418 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1419 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
1420 | LW.C0=clerp(LW.C0,cf(-1.5,1,0)*euler(math.rad(180),0,0),.3) | |
1421 | RW.C0=clerp(RW.C0,cf(1.5,1,0)*euler(math.rad(180),0,0),.3) | |
1422 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1423 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1424 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
1425 | Handleweld.C0=clerp(Handleweld.C0,cf(4,30,10)*angles(math.rad(35),math.rad(0),math.rad(-90)),.2) | |
1426 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,30,10)*angles(math.rad(35),math.rad(0),math.rad(90)),.2) | |
1427 | end | |
1428 | Humanoid.WalkSpeed = 0 | |
1429 | so("231917758",Torso,1,0.7) | |
1430 | so("159882584",Torso,1,1) | |
1431 | for i=0,1,0.08 do | |
1432 | swait() | |
1433 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1434 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1435 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),0,0),.3) | |
1436 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(90),0,0),.3) | |
1437 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1438 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1439 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
1440 | Handleweld.C0=clerp(Handleweld.C0,cf(4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(-90)),.2) | |
1441 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(90)),.2) | |
1442 | end | |
1443 | con1:disconnect() | |
1444 | con2:disconnect() | |
1445 | attack=false | |
1446 | if anim then | |
1447 | anim.Disabled=false | |
1448 | end | |
1449 | if TrailDeb == true then | |
1450 | TrailDeb = false | |
1451 | end | |
1452 | local ref = it("Part",Character) | |
1453 | ref.Size = Vector3.new(0,0,0) | |
1454 | ref.Anchored = true | |
1455 | ref.CanCollide = false | |
1456 | ref.Transparency = 1 | |
1457 | local looky = RootPart.CFrame | |
1458 | for i=1,10 do | |
1459 | ref.CFrame = looky*CFrame.new(0,-2.5,-10*i) | |
1460 | BlastEffect(BrickColor.new("White"),ref.CFrame,1,.2,1,1,0,1) | |
1461 | BlastEffect(BrickColor.new("White"),ref.CFrame,5,1,.5,.1,2,.1) | |
1462 | MagniDamage(ref,"",10,30,35,50,"Knockdown",RootPart,.2,1) | |
1463 | so(178452221,ref,.6,1) | |
1464 | so(192410084,ref,1,1) | |
1465 | swait(5) | |
1466 | end | |
1467 | ref:Destroy() | |
1468 | swait(60) | |
1469 | --dmgstop() | |
1470 | end | |
1471 | ||
1472 | function mudads() | |
1473 | attack=true | |
1474 | so("624164065",Torso,1,3) | |
1475 | print("SUNLIGHT YELLO OVRDREV") | |
1476 | ||
1477 | ||
1478 | if TrailDeb == false then | |
1479 | TrailDeb = true | |
1480 | end | |
1481 | coroutine.wrap(function() | |
1482 | local Old = Handle2.CFrame.p | |
1483 | while true do swait() | |
1484 | if not TrailDeb then break end | |
1485 | local New = Handle2.CFrame.p | |
1486 | local Mag =(Old -New).magnitude | |
1487 | local Dis =(Old +New)/2 | |
1488 | local Trail = Instance.new("Part",Character) | |
1489 | Trail.Material = "Neon" | |
1490 | Trail.Anchored = true | |
1491 | Trail.CanCollide = false | |
1492 | Trail.BrickColor = TorsoColor | |
1493 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1494 | Trail.TopSurface = 0 | |
1495 | Trail.BottomSurface = 0 | |
1496 | Trail.formFactor = "Custom" | |
1497 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1498 | local ms = Instance.new("BlockMesh",Trail) | |
1499 | ms.Scale = Vector3.new(1,1,1) | |
1500 | local TM = Instance.new("CylinderMesh",Trail) | |
1501 | TM.Scale = Vector3.new(20,1,20) | |
1502 | Old = New | |
1503 | coroutine.wrap(function() | |
1504 | for i = 1,0,-0.1 do | |
1505 | swait() | |
1506 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1507 | end | |
1508 | Trail:remove() | |
1509 | end)() | |
1510 | coroutine.wrap(function() | |
1511 | for i = 1,10 do | |
1512 | swait() | |
1513 | Trail.Transparency = Trail.Transparency +0.1 | |
1514 | end end)()end end)() | |
1515 | coroutine.wrap(function() | |
1516 | local Old = Handle.CFrame.p | |
1517 | while true do swait() | |
1518 | if not TrailDeb then break end | |
1519 | local New = Handle.CFrame.p | |
1520 | local Mag =(Old -New).magnitude | |
1521 | local Dis =(Old +New)/2 | |
1522 | local Trail = Instance.new("Part",Character) | |
1523 | Trail.Material = "Neon" | |
1524 | Trail.Anchored = true | |
1525 | Trail.CanCollide = false | |
1526 | Trail.BrickColor = TorsoColor | |
1527 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1528 | Trail.TopSurface = 0 | |
1529 | Trail.BottomSurface = 0 | |
1530 | Trail.formFactor = "Custom" | |
1531 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1532 | local ms = Instance.new("BlockMesh",Trail) | |
1533 | ms.Scale = Vector3.new(1,1,1) | |
1534 | local TM = Instance.new("CylinderMesh",Trail) | |
1535 | TM.Scale = Vector3.new(20,1,20) | |
1536 | Old = New | |
1537 | coroutine.wrap(function() | |
1538 | for i = 1,0,-0.1 do | |
1539 | swait() | |
1540 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1541 | end | |
1542 | Trail:remove() | |
1543 | end)() | |
1544 | coroutine.wrap(function() | |
1545 | for i = 1,10 do | |
1546 | swait() | |
1547 | Trail.Transparency = Trail.Transparency +0.1 | |
1548 | end end)()end end)() | |
1549 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end) | |
1550 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end) | |
1551 | Humanoid.WalkSpeed = 16 | |
1552 | so("159882584",Torso,1,1) | |
1553 | for i=0,1,0.08 do | |
1554 | swait() | |
1555 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1556 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1557 | LW.C0=clerp(LW.C0,cf(-1.2,1,0)*euler(math.rad(90),math.rad(-90),0),.3) | |
1558 | RW.C0=clerp(RW.C0,cf(1.2,1,0)*euler(math.rad(90),math.rad(90),0),.3) | |
1559 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1560 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1561 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1562 | Handleweld.C0=clerp(Handleweld.C0,cf(4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1563 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1564 | end | |
1565 | for a = 1,20 do | |
1566 | so("231917758",Torso,math.random(6,10)/10,1) | |
1567 | for i=0,1,0.2 do | |
1568 | swait() | |
1569 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1570 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1571 | LW.C0=clerp(LW.C0,cf(-1.2,1,-2)*euler(math.rad(90),math.rad(-90),0),.3) | |
1572 | RW.C0=clerp(RW.C0,cf(1.2,1,2)*euler(math.rad(90),math.rad(90),0),.3) | |
1573 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1574 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1575 | handleweld.C0=clerp(handleweld.C0,cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1576 | Handleweld.C0=clerp(Handleweld.C0,cf(math.random(-10,10),math.random(0,4),-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1577 | Handle2weld.C0=clerp(Handle2weld.C0,cf(math.random(-10,10),math.random(0,4),20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1578 | end | |
1579 | so("231917758",Torso,math.random(6,10)/10,1) | |
1580 | for i=0,1,0.2 do | |
1581 | swait() | |
1582 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1583 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1584 | LW.C0=clerp(LW.C0,cf(-1.2,1,2)*euler(math.rad(90),math.rad(-90),0),.3) | |
1585 | RW.C0=clerp(RW.C0,cf(1.2,1,-2)*euler(math.rad(90),math.rad(90),0),.3) | |
1586 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1587 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1588 | handleweld.C0=clerp(handleweld.C0,cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1589 | Handleweld.C0=clerp(Handleweld.C0,cf(math.random(-10,10),math.random(0,4),20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1590 | Handle2weld.C0=clerp(Handle2weld.C0,cf(math.random(-10,10),math.random(0,4),-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1591 | end | |
1592 | end | |
1593 | con1:disconnect() | |
1594 | con2:disconnect() | |
1595 | --dmgstop() | |
1596 | attack=false | |
1597 | if anim then | |
1598 | anim.Disabled=false | |
1599 | end | |
1600 | if TrailDeb == true then | |
1601 | TrailDeb = false | |
1602 | end | |
1603 | end | |
1604 | ||
1605 | function laser() | |
1606 | attack = true | |
1607 | Humanoid.WalkSpeed = 16 | |
1608 | for i=0,1,0.05 do | |
1609 | swait() | |
1610 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1611 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1612 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
1613 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
1614 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1615 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1616 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
1617 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
1618 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
1619 | end | |
1620 | local blmod = Instance.new("Model",Character) | |
1621 | for a = 1, 5 do | |
1622 | local blast2 = it("Part",blmod) | |
1623 | blast2.Size = vt(1,1,1) | |
1624 | blast2.BrickColor = TorsoColor | |
1625 | blast2.Material = "Neon" | |
1626 | blast2.Anchored = false | |
1627 | blast2.CanCollide = false | |
1628 | local blwe = Instance.new("Weld",blast2) | |
1629 | blwe.Part0 = DragonHead | |
1630 | blwe.Part1 = blast2 | |
1631 | blwe.C0 = CFrame.new(0, 0, -5) | |
1632 | blwe.C1 = CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
1633 | local m = Instance.new("BlockMesh", blast2) | |
1634 | m.Scale = Vector3.new(6,6,6) | |
1635 | coroutine.resume(coroutine.create(function() | |
1636 | for i = 0,1,.1 do | |
1637 | blast2.Transparency = 1.2-i | |
1638 | swait() | |
1639 | blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
1640 | end | |
1641 | while blast2 do | |
1642 | swait() | |
1643 | blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
1644 | end | |
1645 | end)) | |
1646 | end | |
1647 | so(864314263,DragonHead,1,5) | |
1648 | for i=1,150 do | |
1649 | MagicRing(BrickColor.new("Alder"), DragonHead.CFrame * CFrame.new(0,0,-5) * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0) | |
1650 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0)) | |
1651 | swait() | |
1652 | end | |
1653 | for i=0,1,0.05 do | |
1654 | swait() | |
1655 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1656 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1657 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
1658 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
1659 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1660 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1661 | handleweld.C0=clerp(handleweld.C0,cf(math.random(-1,1),math.random(5,7),math.random(6,8))*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1662 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
1663 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
1664 | end | |
1665 | so(162246701,DragonHead,1,5) | |
1666 | local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5) | |
1667 | local sannd = Instance.new("Sound",Torso) | |
1668 | sannd.SoundId = "rbxassetid://162246683" | |
1669 | sannd.Looped = true | |
1670 | sannd.Volume = 1 | |
1671 | sannd:Play() | |
1672 | local hitcf = mouse.Hit | |
1673 | local ref = it("Part",Character) | |
1674 | ref.Size = Vector3.new(0,0,0) | |
1675 | ref.Anchored = true | |
1676 | ref.CanCollide = false | |
1677 | ref.Transparency = 1 | |
1678 | local blast = it("Part",blmod) | |
1679 | blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude) | |
1680 | blast.BrickColor = TorsoColor | |
1681 | blast.Material = "Neon" | |
1682 | blast.Anchored = true | |
1683 | blast.CanCollide = false | |
1684 | blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p) | |
1685 | local m = Instance.new("BlockMesh", blast) | |
1686 | m.Scale = Vector3.new(5,5,1) | |
1687 | for a = 1, 200 do | |
1688 | local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5) | |
1689 | local hitcf = mouse.Hit | |
1690 | ref.CFrame = hitcf | |
1691 | blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude) | |
1692 | blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p) | |
1693 | MagicBlock(TorsoColor, hitcf, 1, 1, 1, 6, 6, 6, 0.1) | |
1694 | MagniDamage(ref,"",10,5,7,0,"Knockdown",RootPart,.05,1) | |
1695 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-5),math.rad(0),math.rad(0)) | |
1696 | --handleweld.C0 = cf(math.random(-2,2),math.random(4,8),math.random(5,9))*angles(math.rad(-5),math.rad(0),math.rad(0)) | |
1697 | swait(1) | |
1698 | end | |
1699 | for a = 0,1,.05 do | |
1700 | sannd.Volume = a | |
1701 | for _, b in pairs(blmod:GetChildren()) do | |
1702 | b.Transparency = a | |
1703 | end | |
1704 | swait() | |
1705 | end | |
1706 | sannd:Destroy() | |
1707 | blmod:Destroy() | |
1708 | attack = false | |
1709 | end | |
1710 | ||
1711 | function yummy() | |
1712 | attack=true | |
1713 | if TrailDeb == false then | |
1714 | TrailDeb = true | |
1715 | end | |
1716 | coroutine.wrap(function() | |
1717 | local Old = Handle.CFrame.p | |
1718 | while true do swait() | |
1719 | if not TrailDeb then break end | |
1720 | local New = Handle.CFrame.p | |
1721 | local Mag =(Old -New).magnitude | |
1722 | local Dis =(Old +New)/2 | |
1723 | local Trail = Instance.new("Part",Character) | |
1724 | Trail.Material = "Neon" | |
1725 | Trail.Anchored = true | |
1726 | Trail.CanCollide = false | |
1727 | Trail.BrickColor = TorsoColor | |
1728 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1729 | Trail.TopSurface = 0 | |
1730 | Trail.BottomSurface = 0 | |
1731 | Trail.formFactor = "Custom" | |
1732 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1733 | local ms = Instance.new("BlockMesh",Trail) | |
1734 | ms.Scale = Vector3.new(1,1,1) | |
1735 | local TM = Instance.new("CylinderMesh",Trail) | |
1736 | TM.Scale = Vector3.new(20,1,20) | |
1737 | Old = New | |
1738 | coroutine.wrap(function() | |
1739 | for i = 1,0,-0.1 do | |
1740 | swait() | |
1741 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1742 | end | |
1743 | Trail:remove() | |
1744 | end)() | |
1745 | coroutine.wrap(function() | |
1746 | for i = 1,10 do | |
1747 | swait() | |
1748 | Trail.Transparency = Trail.Transparency +0.1 | |
1749 | end end)()end end)() | |
1750 | local grab | |
1751 | local torsy | |
1752 | local ghum | |
1753 | local soaa | |
1754 | for i=0,1,0.05 do | |
1755 | swait() | |
1756 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
1757 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
1758 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
1759 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1760 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1761 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
1762 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1763 | end | |
1764 | con1=Gear.Touched:connect(function(hit) | |
1765 | if grab == nil and hit.Parent ~= Character then | |
1766 | torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso")) | |
1767 | ghum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1768 | if ghum ~= nil and torsy ~= nil then | |
1769 | grab=hit.Parent | |
1770 | so(386946017,hit,1,1) | |
1771 | local soaa = it("Sound",grab.Head) | |
1772 | soaa.Volume = 1 | |
1773 | local cho = math.random(1,5) | |
1774 | if cho == 1 then | |
1775 | soaa.SoundId = "rbxassetid://111896685" | |
1776 | elseif cho == 2 then | |
1777 | soaa.SoundId = "rbxassetid://535528169" | |
1778 | elseif cho == 3 then | |
1779 | soaa.SoundId = "rbxassetid://1080363252" | |
1780 | elseif cho == 4 then | |
1781 | soaa.SoundId = "rbxassetid://147758746" | |
1782 | elseif cho == 5 then | |
1783 | soaa.SoundId = "rbxassetid://626777433" | |
1784 | soaa.Volume = .2 | |
1785 | soaa.TimePosition = 1 | |
1786 | end | |
1787 | soaa:Play() | |
1788 | end | |
1789 | end | |
1790 | end) | |
1791 | so("231917758",Handle,1,.9) | |
1792 | so("159972643",Torso,1,1) | |
1793 | for i=0,3,0.1 do | |
1794 | swait() | |
1795 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
1796 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1797 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
1798 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1799 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1800 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
1801 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1802 | if torsy~=nil then | |
1803 | ghum.PlatformStand = true | |
1804 | torsy.CFrame = Gear.CFrame | |
1805 | end | |
1806 | end | |
1807 | if grab ~= nil then | |
1808 | Humanoid.WalkSpeed = 0 | |
1809 | con1:disconnect() | |
1810 | for i=0,3,0.05 do | |
1811 | swait() | |
1812 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1813 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
1814 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
1815 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
1816 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1817 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1818 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
1819 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
1820 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1821 | if torsy~=nil then | |
1822 | ghum.PlatformStand = true | |
1823 | torsy.CFrame = Gear.CFrame | |
1824 | end | |
1825 | end | |
1826 | for i=0,1,0.1 do | |
1827 | swait() | |
1828 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1829 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
1830 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
1831 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
1832 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1833 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1834 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
1835 | Handleweld.C0=clerp(Handleweld.C0,cf(0,16,5)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
1836 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1837 | if torsy~=nil then | |
1838 | ghum.PlatformStand = true | |
1839 | torsy.CFrame = Gear.CFrame | |
1840 | end | |
1841 | end | |
1842 | grab:BreakJoints() | |
1843 | for i,v in pairs(grab:children()) do | |
1844 | if v:IsA("BasePart") then | |
1845 | game:service'Debris':AddItem(v,.01) | |
1846 | end | |
1847 | end | |
1848 | local ref = it("Part",Character) | |
1849 | ref.Size = Vector3.new(0,0,0) | |
1850 | ref.Anchored = true | |
1851 | ref.CanCollide = false | |
1852 | ref.Transparency = 1 | |
1853 | ref.CFrame = Gear.CFrame | |
1854 | so(206082327,Gear,1,3) | |
1855 | local partasdeff = Instance.new("ParticleEmitter",ref) | |
1856 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1857 | partasdeff.LightEmission = .1 | |
1858 | partasdeff.Size = NumberSequence.new(0.2) | |
1859 | partasdeff.Texture = "rbxassetid://771221224" | |
1860 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1861 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1862 | partasdeff.Transparency = bbb | |
1863 | partasdeff.Size = aaa | |
1864 | partasdeff.ZOffset = .9 | |
1865 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
1866 | partasdeff.LockedToPart = false | |
1867 | partasdeff.EmissionDirection = "Back" | |
1868 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
1869 | partasdeff.Rate = 1000 | |
1870 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
1871 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
1872 | partasdeff.Speed = NumberRange.new(6) | |
1873 | partasdeff.VelocitySpread = 10000 | |
1874 | partasdeff.Enabled=false | |
1875 | partasdeff:Emit(70) | |
1876 | game:service'Debris':AddItem(ref,5) | |
1877 | swait(90) | |
1878 | so(2767085,DragonHead,1,1) | |
1879 | swait(150) | |
1880 | for i=0,1,0.1 do | |
1881 | swait() | |
1882 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1883 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1884 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
1885 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
1886 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1887 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1888 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
1889 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
1890 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1891 | end | |
1892 | so(133966572,DragonHead,.8,2) | |
1893 | for i=1,15 do | |
1894 | for a=1,5 do | |
1895 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)) | |
1896 | swait() | |
1897 | end | |
1898 | local bo = it("Part",Character) | |
1899 | bo.Size = vt(.2,.6,1) | |
1900 | bo.BrickColor = BrickColor.new("Persimmon") | |
1901 | bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1902 | bo.Velocity = RootPart.CFrame.lookVector*40 | |
1903 | local m = it("SpecialMesh",bo) | |
1904 | m.MeshId = "rbxassetid://305829157" | |
1905 | m.Scale = vt(math.random(9,13)/10,math.random(9,13)/10,math.random(9,13)/10) | |
1906 | coroutine.wrap(function() | |
1907 | swait(300) | |
1908 | for a=0,1,.05 do | |
1909 | swait() | |
1910 | bo.Transparency = a | |
1911 | end | |
1912 | bo:Destroy() | |
1913 | end)() | |
1914 | end | |
1915 | for a=1,5 do | |
1916 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)) | |
1917 | swait() | |
1918 | end | |
1919 | local bo = it("Part",Character) | |
1920 | bo.Size = vt(1,1,1) | |
1921 | bo.BrickColor = BrickColor.new("Persimmon") | |
1922 | bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1923 | bo.Velocity = RootPart.CFrame.lookVector*40 | |
1924 | local m = it("SpecialMesh",bo) | |
1925 | m.MeshId = "rbxassetid://4770583" | |
1926 | m.Scale = vt(3,3,3) | |
1927 | coroutine.wrap(function() | |
1928 | swait(300) | |
1929 | for a=0,1,.05 do | |
1930 | swait() | |
1931 | bo.Transparency = a | |
1932 | end | |
1933 | bo:Destroy() | |
1934 | end)() | |
1935 | swait(60) | |
1936 | end | |
1937 | --dmgstop() | |
1938 | attack=false | |
1939 | con1:disconnect() | |
1940 | if TrailDeb == true then | |
1941 | TrailDeb = false | |
1942 | end | |
1943 | end | |
1944 | ||
1945 | function smek() | |
1946 | attack=true | |
1947 | if TrailDeb == false then | |
1948 | TrailDeb = true | |
1949 | end | |
1950 | coroutine.wrap(function() | |
1951 | local Old = Handle.CFrame.p | |
1952 | while true do swait() | |
1953 | if not TrailDeb then break end | |
1954 | local New = Handle.CFrame.p | |
1955 | local Mag =(Old -New).magnitude | |
1956 | local Dis =(Old +New)/2 | |
1957 | local Trail = Instance.new("Part",Character) | |
1958 | Trail.Material = "Neon" | |
1959 | Trail.Anchored = true | |
1960 | Trail.CanCollide = false | |
1961 | Trail.BrickColor = TorsoColor | |
1962 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
1963 | Trail.TopSurface = 0 | |
1964 | Trail.BottomSurface = 0 | |
1965 | Trail.formFactor = "Custom" | |
1966 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
1967 | local ms = Instance.new("BlockMesh",Trail) | |
1968 | ms.Scale = Vector3.new(1,1,1) | |
1969 | local TM = Instance.new("CylinderMesh",Trail) | |
1970 | TM.Scale = Vector3.new(20,1,20) | |
1971 | Old = New | |
1972 | coroutine.wrap(function() | |
1973 | for i = 1,0,-0.1 do | |
1974 | swait() | |
1975 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
1976 | end | |
1977 | Trail:remove() | |
1978 | end)() | |
1979 | coroutine.wrap(function() | |
1980 | for i = 1,10 do | |
1981 | swait() | |
1982 | Trail.Transparency = Trail.Transparency +0.1 | |
1983 | end end)()end end)() | |
1984 | local grab | |
1985 | local torsy | |
1986 | local ghum | |
1987 | local soaa | |
1988 | for i=0,1,0.05 do | |
1989 | swait() | |
1990 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
1991 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
1992 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
1993 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
1994 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
1995 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
1996 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1997 | end | |
1998 | con1=Gear.Touched:connect(function(hit) | |
1999 | if grab == nil and hit.Parent ~= Character then | |
2000 | torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso")) | |
2001 | ghum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
2002 | if ghum ~= nil and torsy ~= nil then | |
2003 | grab=hit.Parent | |
2004 | so(386946017,hit,1,1) | |
2005 | soaa = it("Sound",grab.Head) | |
2006 | soaa.Volume = 1 | |
2007 | local cho = math.random(1,5) | |
2008 | if cho == 1 then | |
2009 | soaa.SoundId = "rbxassetid://111896685" | |
2010 | elseif cho == 2 then | |
2011 | soaa.SoundId = "rbxassetid://535528169" | |
2012 | elseif cho == 3 then | |
2013 | soaa.SoundId = "rbxassetid://1080363252" | |
2014 | elseif cho == 4 then | |
2015 | soaa.SoundId = "rbxassetid://147758746" | |
2016 | elseif cho == 5 then | |
2017 | soaa.SoundId = "rbxassetid://626777433" | |
2018 | soaa.Volume = .2 | |
2019 | soaa.TimePosition = 1 | |
2020 | end | |
2021 | game:service'Debris':AddItem(soaa,8) | |
2022 | soaa:Play() | |
2023 | end | |
2024 | end | |
2025 | end) | |
2026 | so("231917758",Handle,1,.9) | |
2027 | so("159972643",Torso,1,1) | |
2028 | for i=0,3,0.1 do | |
2029 | swait() | |
2030 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
2031 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
2032 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
2033 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
2034 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
2035 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-10)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
2036 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2037 | if torsy~=nil then | |
2038 | ghum.PlatformStand = true | |
2039 | torsy.CFrame = Gear.CFrame | |
2040 | end | |
2041 | end | |
2042 | if grab ~= nil then | |
2043 | Humanoid.WalkSpeed = 0 | |
2044 | con1:disconnect() | |
2045 | for i=0,3,0.05 do | |
2046 | swait() | |
2047 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2048 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2049 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
2050 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
2051 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2052 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2053 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2054 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
2055 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2056 | if torsy~=nil then | |
2057 | ghum.PlatformStand = true | |
2058 | torsy.CFrame = Gear.CFrame | |
2059 | end | |
2060 | end | |
2061 | for a=1,5 do | |
2062 | for i=0,1,0.1 do | |
2063 | swait() | |
2064 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2065 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2066 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
2067 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
2068 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2069 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2070 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2071 | Handleweld.C0=clerp(Handleweld.C0,cf(2,-5,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2072 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2073 | if torsy~=nil then | |
2074 | ghum.PlatformStand = true | |
2075 | torsy.CFrame = Gear.CFrame | |
2076 | end | |
2077 | end | |
2078 | so(386946017,torsy,1,1) | |
2079 | BlastEffect(BrickColor.new("White"),CFrame.new(torsy.Position),.5,.5,.5,.5,.2,.5) | |
2080 | if ghum.Health > 10 then | |
2081 | Damagefunc(torsy,"",8,10,0,"Normal",RootPart,0,1) | |
2082 | end | |
2083 | for i=0,1,0.1 do | |
2084 | swait() | |
2085 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2086 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2087 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
2088 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
2089 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2090 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2091 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2092 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2093 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2094 | if torsy~=nil then | |
2095 | ghum.PlatformStand = true | |
2096 | torsy.CFrame = Gear.CFrame | |
2097 | end | |
2098 | end | |
2099 | end | |
2100 | for i=1,30 do | |
2101 | swait() | |
2102 | if torsy~=nil then | |
2103 | ghum.PlatformStand = true | |
2104 | torsy.CFrame = Gear.CFrame | |
2105 | end | |
2106 | end | |
2107 | for i=0,5,0.1 do | |
2108 | swait() | |
2109 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2110 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2111 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
2112 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
2113 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2114 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2115 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2116 | Handleweld.C0=clerp(Handleweld.C0,cf(2,15,10)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
2117 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2118 | if torsy~=nil then | |
2119 | ghum.PlatformStand = true | |
2120 | torsy.CFrame = Gear.CFrame | |
2121 | end | |
2122 | end | |
2123 | for i=0,1,0.1 do | |
2124 | swait() | |
2125 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2126 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2127 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
2128 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
2129 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2130 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2131 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
2132 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2133 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2134 | if torsy~=nil then | |
2135 | ghum.PlatformStand = true | |
2136 | torsy.CFrame = Gear.CFrame | |
2137 | end | |
2138 | end | |
2139 | torsy.Velocity = RootPart.CFrame.lookVector*100 | |
2140 | coroutine.wrap(function() | |
2141 | local par,pos | |
2142 | repeat swait() par,pos = rayCast(torsy.Position,Vector3.new(0,-1,0),2,grab) until par | |
2143 | Damagefunc(torsy,"",15,20,0,"Normal",RootPart,0,1) | |
2144 | BlastEffect(BrickColor.new("White"),CFrame.new(pos),0,0,0,.5,.2,.5) | |
2145 | so(260430079,torsy,1,5) | |
2146 | swait(60) | |
2147 | ghum.PlatformStand = false | |
2148 | end)() | |
2149 | swait(60) | |
2150 | end | |
2151 | --dmgstop() | |
2152 | attack=false | |
2153 | con1:disconnect() | |
2154 | if TrailDeb == true then | |
2155 | TrailDeb = false | |
2156 | end | |
2157 | end | |
2158 | ||
2159 | function rawr() | |
2160 | attack=true | |
2161 | Humanoid.WalkSpeed = 0 | |
2162 | for i=0,1,0.05 do | |
2163 | swait() | |
2164 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2165 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
2166 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
2167 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
2168 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2169 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2170 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
2171 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
2172 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
2173 | end | |
2174 | so(150829983,DragonHead,.9,5) | |
2175 | for a=1,300 do | |
2176 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0)) | |
2177 | BlastEffect(BrickColor.new("White"),RootPart.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,math.random(-50,50),0),1,.2,1,2,0,2) | |
2178 | MagniDamage(Torso,"",30,1,1,5,"Knockdown",RootPart,.05,1) | |
2179 | swait() | |
2180 | end | |
2181 | attack = false | |
2182 | end | |
2183 | ||
2184 | equipanim() | |
2185 | ||
2186 | mouse.Button1Down:connect(function() | |
2187 | if attack==false and attacktype==1 then | |
2188 | attacktype=2 | |
2189 | attackone() | |
2190 | elseif attack==false and attacktype==2 then | |
2191 | attacktype=3 | |
2192 | attacktwo() | |
2193 | elseif attack==false and attacktype==3 then | |
2194 | attacktype=1 | |
2195 | attackthree() | |
2196 | end | |
2197 | end) | |
2198 | ||
2199 | mouse.KeyDown:connect(function(k) | |
2200 | k = k:lower() | |
2201 | if k=='m' then | |
2202 | if Character:FindFirstChild("moosick")~=nil then | |
2203 | if moosick.IsPlaying == true then | |
2204 | moosick:Stop() | |
2205 | elseif moosick.IsPaused == true then | |
2206 | moosick:Play() | |
2207 | end | |
2208 | elseif Character:FindFirstChild("moosick")==nil then | |
2209 | local moosick = Instance.new("Sound",Character) | |
2210 | moosick.Name = "moosick" | |
2211 | moosick.SoundId = "rbxassetid://608726256" | |
2212 | moosick.Looped = true | |
2213 | moosick.Volume = 1 | |
2214 | moosick:Play() | |
2215 | end | |
2216 | end | |
2217 | if attack == false then | |
2218 | if k=='z' then | |
2219 | mudads() | |
2220 | elseif k=='x' then | |
2221 | smashdown() | |
2222 | elseif k=='c' then | |
2223 | laser() | |
2224 | elseif k=='v' then | |
2225 | smek() | |
2226 | elseif k=='b' then | |
2227 | yummy() | |
2228 | elseif k=='g' then | |
2229 | rawr() | |
2230 | end | |
2231 | end | |
2232 | end) | |
2233 | ||
2234 | local sine = 0 | |
2235 | local change = 1 | |
2236 | local val = 0 | |
2237 | ||
2238 | local mananum=0 | |
2239 | while true do | |
2240 | swait() | |
2241 | sine = sine + change | |
2242 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2243 | local velderp=RootPart.Velocity.y | |
2244 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2245 | if equipped==true or equipped==false then | |
2246 | --if Anim=="Idle" and attack==false then | |
2247 | --idle=idle+1 | |
2248 | --else | |
2249 | --idle=0 | |
2250 | --end | |
2251 | if idle>=1000 then | |
2252 | if attack==false then | |
2253 | --Sheath() | |
2254 | end | |
2255 | end | |
2256 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2257 | Anim="Jump" | |
2258 | if attack==false then | |
2259 | Footsteps:Stop() | |
2260 | Footsteps2:Stop() | |
2261 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
2262 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2263 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3) | |
2264 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3) | |
2265 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2266 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3) | |
2267 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2268 | RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2) | |
2269 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2) | |
2270 | handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
2271 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
2272 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
2273 | end | |
2274 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2275 | Anim="Fall" | |
2276 | if attack==false then | |
2277 | Footsteps:Stop() | |
2278 | Footsteps2:Stop() | |
2279 | Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3) | |
2280 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2281 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3) | |
2282 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3) | |
2283 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2284 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3) | |
2285 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2286 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2) | |
2287 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2) | |
2288 | handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
2289 | Handleweld.C0=clerp(Handleweld.C0,cf(4,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
2290 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
2291 | end | |
2292 | elseif torvel<1 and hitfloor~=nil then | |
2293 | Anim="Idle" | |
2294 | change=0.5 | |
2295 | if attack==false then | |
2296 | Footsteps:Stop() | |
2297 | Footsteps2:Stop() | |
2298 | Humanoid.WalkSpeed=12 | |
2299 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3) | |
2300 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3) | |
2301 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2302 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(16-6*math.cos(sine/28))),.3) | |
2303 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16+6*math.cos(sine/28))),.3) | |
2304 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(16)),.3) | |
2305 | LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(24)),.3) | |
2306 | handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
2307 | Handleweld.C0=clerp(Handleweld.C0,cf(4-1*math.cos(sine/30),0,0-1*math.cos(sine/30))*angles(math.rad(0+8*math.cos(sine/30)),math.rad(0),math.rad(0-8*math.cos(sine/30))),.2) | |
2308 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+1*math.cos(sine/36),0,0+1*math.cos(sine/36))*angles(math.rad(0-12*math.cos(sine/36)),math.rad(0),math.rad(0-12*math.cos(sine/36))),.2) | |
2309 | end | |
2310 | elseif torvel>2 and hitfloor~=nil then | |
2311 | Anim="Walk" | |
2312 | if attack==false then | |
2313 | change=1 | |
2314 | --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3) | |
2315 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3) | |
2316 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3) | |
2317 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3) | |
2318 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2319 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2320 | --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2321 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2322 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2) | |
2323 | --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2) | |
2324 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3) | |
2325 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3) | |
2326 | RH.C0=clerp(RH.C0,RHC0,.3) | |
2327 | LH.C0=clerp(LH.C0,LHC0,.3) | |
2328 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2329 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
2330 | ]]-- | |
2331 | Humanoid.WalkSpeed=50 | |
2332 | --Footsteps:Play() | |
2333 | --Footsteps2:Stop() | |
2334 | --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(10+1*math.cos(sine/2.5)),math.rad(0),math.rad(1-5*math.cos(sine/5))),.3) | |
2335 | --Neck.C0=clerp(Neck.C0,necko*euler(0+0.075*math.cos(sine/2.5),0,0)*angles(math.rad(0),math.rad(0),math.rad(1+5*math.cos(sine/5))),.3) | |
2336 | --Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2337 | --RW.C0=clerp(RW.C0,cf(1.4+0.25*math.cos(sine/5),0.5+0.25*math.cos(sine/5),-0.2+0.5*math.cos(sine/5))*angles(math.rad(20-60*math.cos(sine/5)),math.rad(0),math.rad(-4+30*math.cos(sine/5))),.3) | |
2338 | --LW.C0=clerp(LW.C0,cf(-1.4+0.25*math.cos(sine/5),0.5-0.25*math.cos(sine/5),-0.2-0.5*math.cos(sine/5))*angles(math.rad(20+60*math.cos(sine/5)),math.rad(0),math.rad(4+30*math.cos(sine/5))),.3) | |
2339 | --RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3) | |
2340 | --LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3) | |
2341 | --handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
2342 | --Handleweld.C0=clerp(Handleweld.C0,cf(4-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-30),math.rad(0-1*math.cos(sine/30))),.2) | |
2343 | --Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(30),math.rad(0-3*math.cos(sine/36))),.2) | |
2344 | --end | |
2345 | --elseif torvel>=22 and hitfloor~=nil then | |
2346 | --Anim="Run" | |
2347 | change=1 | |
2348 | --if attack==false then | |
2349 | Footsteps:Stop() | |
2350 | Footsteps2:Play() | |
2351 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3) | |
2352 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3) | |
2353 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2354 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3) | |
2355 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3) | |
2356 | RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3) | |
2357 | LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3) | |
2358 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
2359 | Handleweld.C0=clerp(Handleweld.C0,cf(4-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-60),math.rad(0-1*math.cos(sine/30))),.2) | |
2360 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(60),math.rad(0-3*math.cos(sine/36))),.2) | |
2361 | end | |
2362 | end | |
2363 | end | |
2364 | end |