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