SHOW:
|
|
- or go back to the newest paste.
1 | - | game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"With this blade forged with the blood of the great one's, you will be cut down!", "Green") |
1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | - | game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Mannitus's Annihilation Blade!", "Red") |
3 | + | do |
4 | - | Player=game:GetService("Players").LocalPlayer |
4 | + | print("FE Compatibility code by Mokiros") |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | ||
84 | wait(2.6) | |
85 | Player=owner | |
86 | Character=Player.Character | |
87 | PlayerGui=Player.PlayerGui | |
88 | Backpack=Player.Backpack | |
89 | Torso=Character.Torso | |
90 | Head=Character.Head | |
91 | Humanoid=Character.Humanoid | |
92 | print('Player is Eliagable') | |
93 | LeftArm=Character["Left Arm"] | |
94 | LeftLeg=Character["Left Leg"] | |
95 | RightArm=Character["Right Arm"] | |
96 | RightLeg=Character["Right Leg"] | |
97 | LS=Torso["Left Shoulder"] | |
98 | LH=Torso["Left Hip"] | |
99 | RS=Torso["Right Shoulder"] | |
100 | RH=Torso["Right Hip"] | |
101 | Neck=Torso.Neck | |
102 | it=Instance.new | |
103 | vt=Vector3.new | |
104 | cf=CFrame.new | |
105 | euler=CFrame.fromEulerAnglesXYZ | |
106 | angles=CFrame.Angles | |
107 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
108 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
109 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
110 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
111 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
112 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
113 | RootPart=Character.HumanoidRootPart | |
114 | RootJoint=RootPart.RootJoint | |
115 | RootCF=euler(-1.57,0,3.14) | |
116 | attack=false | |
117 | attackdebounce=false | |
118 | MMouse=nil | |
119 | combo=0 | |
120 | local Anim="Idle" | |
121 | local Effects={} | |
122 | equipped=false | |
123 | local idle=0 | |
124 | local hold=false | |
125 | local con1=nil | |
126 | local con2=nil | |
127 | local Mode="Binary" | |
128 | local idleanim=0 | |
129 | local idleanim2=false | |
130 | local impulse=1 | |
131 | local hitfloor,posfloor=nil,nil | |
132 | local damcount=0 | |
133 | local guard=false | |
134 | --player | |
135 | player=nil | |
136 | --save shoulders | |
137 | RSH, LSH=nil, nil | |
138 | --welds | |
139 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
140 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
141 | LH=Torso["Left Hip"] | |
142 | RH=Torso["Right Hip"] | |
143 | Asset="http://www.roblox.com/asset/?id=" | |
144 | Health=879000 | |
145 | Humanoid.MaxHealth=879000 | |
146 | Humanoid.Health=879000 | |
147 | coroutine.resume(coroutine.create(function() | |
148 | for i=1,20 do | |
149 | Humanoid.MaxHealth=879000 | |
150 | Humanoid.Health=879000 | |
151 | end | |
152 | Humanoid.MaxHealth=879000 | |
153 | Humanoid.Health=879000 | |
154 | Humanoid:TakeDamage(0) | |
155 | Humanoid.Health=Health | |
156 | end)) | |
157 | Humanoid.Health=Health | |
158 | ||
159 | function swait(num) | |
160 | if num==0 or num==nil then | |
161 | game:service'RunService'.RenderStepped:wait() | |
162 | else | |
163 | for i=0,num do | |
164 | game:service'RunService'.RenderStepped:wait() | |
165 | end | |
166 | end | |
167 | end | |
168 | ||
169 | if Character:findFirstChild("Hades Judgement Blade",true) ~= nil then | |
170 | Character:findFirstChild("Hades Judgement Blade",true).Parent = nil | |
171 | end | |
172 | if Character:findFirstChild("Demon Blade",true) ~= nil then | |
173 | Character:findFirstChild("Demon Blade",true).Parent = nil | |
174 | end | |
175 | if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then | |
176 | Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil | |
177 | end | |
178 | ||
179 | ||
180 | function NoOutline(Part) | |
181 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
182 | end | |
183 | ||
184 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
185 | local fp=it("Part") | |
186 | fp.formFactor=formfactor | |
187 | fp.Parent=parent | |
188 | fp.Reflectance=reflectance | |
189 | fp.Transparency=transparency | |
190 | fp.CanCollide=false | |
191 | fp.Locked=true | |
192 | fp.BrickColor=brickcolor | |
193 | fp.Name=name | |
194 | fp.Size=size | |
195 | fp.Position=Torso.Position | |
196 | NoOutline(fp) | |
197 | fp.Material="Granite" | |
198 | fp:BreakJoints() | |
199 | return fp | |
200 | end | |
201 | ||
202 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
203 | local mesh=it(Mesh) | |
204 | mesh.Parent=part | |
205 | if Mesh=="SpecialMesh" then | |
206 | mesh.MeshType=meshtype | |
207 | mesh.MeshId=meshid | |
208 | end | |
209 | mesh.Offset=offset | |
210 | mesh.Scale=scale | |
211 | return mesh | |
212 | end | |
213 | ||
214 | function weld(parent,part0,part1,c0) | |
215 | local weld=it("Weld") | |
216 | weld.Parent=parent | |
217 | weld.Part0=part0 | |
218 | weld.Part1=part1 | |
219 | weld.C0=c0 | |
220 | return weld | |
221 | end | |
222 | ||
223 | local fengui=it("GuiMain") | |
224 | fengui.Parent=Player.PlayerGui | |
225 | fengui.Name="WeaponGUI" | |
226 | ||
227 | local Color1=BrickColor.new("Really red") | |
228 | local Color2=BrickColor.new("Black") | |
229 | local Colorr3=BrickColor.new("Black") | |
230 | local Color4=BrickColor.new("Really red") | |
231 | ||
232 | local model1=Instance.new("Model") | |
233 | model1.Parent=Character | |
234 | model1.Name="Hades Judgement Blade" | |
235 | BSword={} | |
236 | BSwordWelds={} | |
237 | local model2=Instance.new("Model") | |
238 | model2.Parent=nil | |
239 | model2.Name="Demon Blade" | |
240 | DBlade={} | |
241 | DBladeWelds={} | |
242 | ||
243 | prt1=part(3,model1,0,1,Color1,"Part1",vt()) | |
244 | prt2=part(3,model1,0,0,Color2,"Part2",vt()) | |
245 | prt3=part(3,model1,0,0,Color2,"Part3",vt()) | |
246 | prt4=part(3,model1,0,0,Colorr3,"Part4",vt()) | |
247 | prt5=part(3,model1,0,0,Colorr3,"Part5",vt()) | |
248 | prt6=part(3,model1,0.7,0,Color4,"Part6",vt()) | |
249 | prt7=part(3,model1,0.7,0,Color4,"Part7",vt()) | |
250 | prt8=part(3,model1,0.7,0,Color4,"Part8",vt()) | |
251 | prt9=part(3,model1,0.7,0,Color4,"Part9",vt()) | |
252 | prt10=part(3,model1,0,0,Colorr3,"Part10",vt()) | |
253 | prt11=part(3,model1,0,0,Colorr3,"Part11",vt()) | |
254 | prt12=part(3,model1,0,0,Colorr3,"Part12",vt()) | |
255 | ||
256 | prtd1=part(3,model2,0,0.4,BrickColor.new("Really red"),"DPart1",vt()) | |
257 | prtd2=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart2",vt()) | |
258 | prtd3=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart3",vt()) | |
259 | prtd4=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart4",vt()) | |
260 | prtd5=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart5",vt()) | |
261 | prtd6=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart6",vt()) | |
262 | prtd7=part(3,model2,0.8,0,BrickColor.new("Really red"),"DPart7",vt()) | |
263 | prtd8=part(3,model2,0.8,0,BrickColor.new("Really red"),"DPart8",vt()) | |
264 | prtd9=part(3,model2,0.5,0.2,BrickColor.new("Really red"),"DPart9",vt()) | |
265 | prtd10=part(3,model2,0.5,0.2,BrickColor.new("Really red"),"DPart10",vt()) | |
266 | prtd11=part(3,model2,0.5,0,BrickColor.new("Really red"),"DPart11",vt()) | |
267 | prtd12=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart12",vt()) | |
268 | for _,c in pairs(model2:children()) do | |
269 | if c.className=="Part" then | |
270 | table.insert(DBlade,c) | |
271 | end | |
272 | end | |
273 | light=it("PointLight") | |
274 | light.Brightness=.8 | |
275 | light.Color=Color3.new(255/255,50/255,0) | |
276 | --light.Color=BrickColor.new("Really red") | |
277 | light.Range=10 | |
278 | light.Parent=prtd9 | |
279 | ||
280 | msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1)) | |
281 | msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2)) | |
282 | msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5)) | |
283 | msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3)) | |
284 | msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1)) | |
285 | msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1)) | |
286 | msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1)) | |
287 | msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1)) | |
288 | msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1)) | |
289 | msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2)) | |
290 | msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1)) | |
291 | msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1)) | |
292 | ||
293 | mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01)) | |
294 | mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1)) | |
295 | mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3)) | |
296 | mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3)) | |
297 | mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6)) | |
298 | mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6)) | |
299 | mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1)) | |
300 | mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5)) | |
301 | mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1)) | |
302 | mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8)) | |
303 | mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4)) | |
304 | mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3)) | |
305 | ||
306 | wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)) | |
307 | wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0)) | |
308 | wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0)) | |
309 | wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0)) | |
310 | wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0)) | |
311 | wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1)) | |
312 | wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1)) | |
313 | wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0)) | |
314 | wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0)) | |
315 | wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0)) | |
316 | wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01)) | |
317 | wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01)) | |
318 | ||
319 | wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0)) | |
320 | wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0)) | |
321 | wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0)) | |
322 | wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0)) | |
323 | wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0)) | |
324 | wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0)) | |
325 | wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0)) | |
326 | wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0)) | |
327 | wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0)) | |
328 | wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3)) | |
329 | wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0)) | |
330 | wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0)) | |
331 | for _,c in pairs(prtd1:children()) do | |
332 | if c.className=="Weld" then | |
333 | table.insert(DBladeWelds,c) | |
334 | print(c) | |
335 | end | |
336 | end | |
337 | ||
338 | for i=-.9,.9,0.2 do | |
339 | prt13=part(3,model1,0,0,Color1,"Part13",vt()) | |
340 | msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2)) | |
341 | wld13=weld(prt13,prt13,prt1,euler(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)*cf(0,i,0)) | |
342 | end | |
343 | ||
344 | local hitbox1=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1)) | |
345 | local hitbox2=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1)) | |
346 | ||
347 | if (script.Parent.className~="HopperBin") then | |
348 | Tool=Instance.new("HopperBin") | |
349 | Tool.Parent=Backpack | |
350 | Tool.Name="Hades Judgement Blade" | |
351 | script.Parent=Tool | |
352 | end | |
353 | Bin=script.Parent | |
354 | --Bin=Tool | |
355 | ||
356 | local bodvel=Instance.new("BodyVelocity") | |
357 | bodvel.Name="FixerVel" | |
358 | local bg=Instance.new("BodyGyro") | |
359 | bg.Name="FixerGyro" | |
360 | ||
361 | so = function(id,par,vol,pit) | |
362 | coroutine.resume(coroutine.create(function() | |
363 | local sou = Instance.new("Sound",par or workspace) | |
364 | sou.Parent=par | |
365 | sou.Volume=vol | |
366 | sou.Pitch=pit or 1 | |
367 | sou.SoundId=id | |
368 | swait() | |
369 | sou:Play() | |
370 | game:GetService("Debris"):AddItem(sou,6) | |
371 | end)) | |
372 | end | |
373 | ||
374 | function clerp(a,b,t) | |
375 | local qa = {QuaternionFromCFrame(a)} | |
376 | local qb = {QuaternionFromCFrame(b)} | |
377 | local ax, ay, az = a.x, a.y, a.z | |
378 | local bx, by, bz = b.x, b.y, b.z | |
379 | local _t = 1-t | |
380 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
381 | end | |
382 | ||
383 | function QuaternionFromCFrame(cf) | |
384 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
385 | local trace = m00 + m11 + m22 | |
386 | if trace > 0 then | |
387 | local s = math.sqrt(1 + trace) | |
388 | local recip = 0.5/s | |
389 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
390 | else | |
391 | local i = 0 | |
392 | if m11 > m00 then | |
393 | i = 1 | |
394 | end | |
395 | if m22 > (i == 0 and m00 or m11) then | |
396 | i = 2 | |
397 | end | |
398 | if i == 0 then | |
399 | local s = math.sqrt(m00-m11-m22+1) | |
400 | local recip = 0.5/s | |
401 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
402 | elseif i == 1 then | |
403 | local s = math.sqrt(m11-m22-m00+1) | |
404 | local recip = 0.5/s | |
405 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
406 | elseif i == 2 then | |
407 | local s = math.sqrt(m22-m00-m11+1) | |
408 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
409 | end | |
410 | end | |
411 | end | |
412 | ||
413 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
414 | local xs, ys, zs = x + x, y + y, z + z | |
415 | local wx, wy, wz = w*xs, w*ys, w*zs | |
416 | local xx = x*xs | |
417 | local xy = x*ys | |
418 | local xz = x*zs | |
419 | local yy = y*ys | |
420 | local yz = y*zs | |
421 | local zz = z*zs | |
422 | 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)) | |
423 | end | |
424 | ||
425 | function QuaternionSlerp(a, b, t) | |
426 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
427 | local startInterp, finishInterp; | |
428 | if cosTheta >= 0.0001 then | |
429 | if (1 - cosTheta) > 0.0001 then | |
430 | local theta = math.acos(cosTheta) | |
431 | local invSinTheta = 1/math.sin(theta) | |
432 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
433 | finishInterp = math.sin(t*theta)*invSinTheta | |
434 | else | |
435 | startInterp = 1-t | |
436 | finishInterp = t | |
437 | end | |
438 | else | |
439 | if (1+cosTheta) > 0.0001 then | |
440 | local theta = math.acos(-cosTheta) | |
441 | local invSinTheta = 1/math.sin(theta) | |
442 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
443 | finishInterp = math.sin(t*theta)*invSinTheta | |
444 | else | |
445 | startInterp = t-1 | |
446 | finishInterp = t | |
447 | end | |
448 | end | |
449 | 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 | |
450 | end | |
451 | ||
452 | function hideanim() | |
453 | equipped=false | |
454 | attack=true | |
455 | if Mode=="Binary" then | |
456 | so("rbxasset://sounds\\unsheath.wav",prt1,1,.8) | |
457 | for i=0,1,0.1 do | |
458 | swait() | |
459 | wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3) | |
460 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3) | |
461 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3) | |
462 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3) | |
463 | end | |
464 | wld1.Part1=Torso | |
465 | wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5) | |
466 | for i=0,1,0.2 do | |
467 | swait() | |
468 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3) | |
469 | end | |
470 | for i=0,1,0.1 do | |
471 | swait() | |
472 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4) | |
473 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4) | |
474 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4) | |
475 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4) | |
476 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3) | |
477 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3) | |
478 | end | |
479 | --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3)) | |
480 | else | |
481 | for i=0,1,0.1 do | |
482 | swait() | |
483 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3) | |
484 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3) | |
485 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3) | |
486 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3) | |
487 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3) | |
488 | LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3) | |
489 | end | |
490 | so("http://roblox.com/asset/?id=161006163",RightArm,1,.4) | |
491 | so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2) | |
492 | for i=0,1,0.015 do | |
493 | swait() | |
494 | for i=1,3 do | |
495 | if math.random(1,5)==1 then | |
496 | MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,0-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05) | |
497 | else | |
498 | MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05) | |
499 | end | |
500 | end | |
501 | end | |
502 | model2.Parent=nil | |
503 | for i=0,1,0.1 do | |
504 | swait() | |
505 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4) | |
506 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4) | |
507 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4) | |
508 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4) | |
509 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3) | |
510 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3) | |
511 | end | |
512 | end | |
513 | Torso.Neck.C0=necko | |
514 | Torso.Neck.C1=necko2 | |
515 | RootJoint.C0=RootCF | |
516 | RW.C0=cf(1.5,0.5,0)*euler(0,0,0) | |
517 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
518 | LW.C0=cf(-1.5,0.5,0)*euler(0,0,0) | |
519 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
520 | RH.C0=RHC0 | |
521 | RH.C1=RHC1 | |
522 | LH.C0=LHC0 | |
523 | LH.C1=LHC1 | |
524 | Mode="Binary" | |
525 | attack=false | |
526 | end | |
527 | ||
528 | function equipanim() | |
529 | equipped=true | |
530 | attack=true | |
531 | for i=0,1,0.2 do | |
532 | swait() | |
533 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3) | |
534 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4) | |
535 | end | |
536 | for i=0,1,0.1 do | |
537 | swait() | |
538 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3) | |
539 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3) | |
540 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3) | |
541 | end | |
542 | so("rbxasset://sounds\\unsheath.wav",prt1,1,.6) | |
543 | wld1.Part1=RightArm | |
544 | wld1.C0=euler(.2,0,-.5)*cf(0,1,0) | |
545 | for i=0,1,0.1 do | |
546 | swait() | |
547 | wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3) | |
548 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3) | |
549 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3) | |
550 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3) | |
551 | end | |
552 | for i=0,1,0.1 do | |
553 | swait() | |
554 | wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3) | |
555 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3) | |
556 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3) | |
557 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3) | |
558 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3) | |
559 | end | |
560 | --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3)) | |
561 | wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3) | |
562 | Torso.Neck.C0=necko*euler(0,0,0.5) | |
563 | RootJoint.C0=RootCF*euler(0,0,-0.5) | |
564 | RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7) | |
565 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
566 | LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5) | |
567 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
568 | attack=false | |
569 | end | |
570 | ||
571 | function Stomp() | |
572 | Humanoid.WalkSpeed=0 | |
573 | Torso.Velocity=RootPart.CFrame.lookVector*0 | |
574 | so("http://roblox.com/asset/?id=157878578",Torso,1,0.8) | |
575 | so("http://roblox.com/asset/?id=2760979",Torso,1,0.4) | |
576 | --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6) | |
577 | MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05) | |
578 | Dam=math.random(5,10) | |
579 | Humanoid.Health=Humanoid.Health-Dam | |
580 | MagniDamage(Torso,50,50,50,math.random(10000,20000),"Knockdown") | |
581 | --[[for i=0,1,0.2 do | |
582 | swait() | |
583 | if Mode=="Binary" then | |
584 | wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3) | |
585 | end | |
586 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3) | |
587 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3) | |
588 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3) | |
589 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3) | |
590 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3) | |
591 | LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3) | |
592 | end | |
593 | for i=0,1,0.1 do | |
594 | swait() | |
595 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3) | |
596 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3) | |
597 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3) | |
598 | LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3) | |
599 | end]] | |
600 | swait(10) | |
601 | Humanoid.WalkSpeed=16 | |
602 | end | |
603 | ||
604 | function attackone() | |
605 | attack=true | |
606 | for i=0,1,0.1 do | |
607 | swait() | |
608 | wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3) | |
609 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3) | |
610 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3) | |
611 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3) | |
612 | LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3) | |
613 | RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3) | |
614 | LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3) | |
615 | end | |
616 | hitbox1.Parent=model1 | |
617 | hitbox1.Size=vt(1,5,1) | |
618 | hitbox1.Transparency=1 | |
619 | hitbox1.CFrame=prt10.CFrame | |
620 | --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end) | |
621 | con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end) | |
622 | so("http://roblox.com/asset/?id=161006212",prt10,1,.7) | |
623 | blcf=nil | |
624 | scfr=nil | |
625 | for i=0,1,0.25 do | |
626 | swait() | |
627 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
628 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
629 | local h = 5 | |
630 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
631 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
632 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
633 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
634 | scfr = blcf | |
635 | elseif not scfr then | |
636 | scfr = blcf | |
637 | end | |
638 | hitbox1.CFrame=prt10.CFrame | |
639 | wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3) | |
640 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3) | |
641 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3) | |
642 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3) | |
643 | LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3) | |
644 | end | |
645 | for i=0,1,0.1 do | |
646 | swait() | |
647 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
648 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
649 | local h = 5 | |
650 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
651 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
652 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
653 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
654 | scfr = blcf | |
655 | elseif not scfr then | |
656 | scfr = blcf | |
657 | end | |
658 | hitbox1.CFrame=prt10.CFrame | |
659 | wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3) | |
660 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3) | |
661 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3) | |
662 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3) | |
663 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3) | |
664 | end | |
665 | con1:disconnect() | |
666 | hitbox1.Parent=nil | |
667 | attack=false | |
668 | end | |
669 | ||
670 | function attacktwo() | |
671 | attack=true | |
672 | for i=0,1,0.1 do | |
673 | swait() | |
674 | wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3) | |
675 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3) | |
676 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3) | |
677 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
678 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3) | |
679 | RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3) | |
680 | LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3) | |
681 | end | |
682 | hitbox1.Parent=model1 | |
683 | hitbox1.Size=vt(1,5,1) | |
684 | hitbox1.Transparency=1 | |
685 | hitbox1.CFrame=prt10.CFrame | |
686 | con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end) | |
687 | so("http://roblox.com/asset/?id=161006212",prt10,1,.8) | |
688 | blcf=nil | |
689 | scfr=nil | |
690 | for i=0,1,0.1 do | |
691 | swait() | |
692 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
693 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
694 | local h = 5 | |
695 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
696 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
697 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
698 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
699 | scfr = blcf | |
700 | elseif not scfr then | |
701 | scfr = blcf | |
702 | end | |
703 | hitbox1.CFrame=prt10.CFrame | |
704 | wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3) | |
705 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3) | |
706 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3) | |
707 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3) | |
708 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3) | |
709 | end | |
710 | con1:disconnect() | |
711 | hitbox1.Parent=nil | |
712 | attack=false | |
713 | end | |
714 | ||
715 | function attackthree() | |
716 | attack=true | |
717 | for i=0,1,0.1 do | |
718 | swait() | |
719 | wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3) | |
720 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3) | |
721 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3) | |
722 | RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3) | |
723 | LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3) | |
724 | RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3) | |
725 | LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3) | |
726 | end | |
727 | hitbox1.Parent=model1 | |
728 | hitbox1.Size=vt(1,5,1) | |
729 | hitbox1.Transparency=1 | |
730 | hitbox1.CFrame=prt10.CFrame | |
731 | con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end) | |
732 | so("http://roblox.com/asset/?id=161006212",prt10,1,.9) | |
733 | blcf=nil | |
734 | scfr=nil | |
735 | for i=0,1,0.25 do | |
736 | swait() | |
737 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
738 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
739 | local h = 5 | |
740 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
741 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
742 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
743 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
744 | scfr = blcf | |
745 | elseif not scfr then | |
746 | scfr = blcf | |
747 | end | |
748 | hitbox1.CFrame=prt10.CFrame | |
749 | wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4) | |
750 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4) | |
751 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4) | |
752 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4) | |
753 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4) | |
754 | end | |
755 | for i=0,1,0.2 do | |
756 | swait() | |
757 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
758 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
759 | local h = 5 | |
760 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
761 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
762 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
763 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
764 | scfr = blcf | |
765 | elseif not scfr then | |
766 | scfr = blcf | |
767 | end | |
768 | hitbox1.CFrame=prt10.CFrame | |
769 | wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4) | |
770 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4) | |
771 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4) | |
772 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4) | |
773 | end | |
774 | con1:disconnect() | |
775 | hitbox1.Parent=nil | |
776 | attack=false | |
777 | end | |
778 | ||
779 | function SpinSlash() | |
780 | attack=true | |
781 | for i=0,1,0.1 do | |
782 | swait() | |
783 | wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4) | |
784 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4) | |
785 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4) | |
786 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4) | |
787 | LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4) | |
788 | --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3) | |
789 | --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3) | |
790 | end | |
791 | hitbox1.Parent=model1 | |
792 | hitbox1.Size=vt(1,5,1) | |
793 | hitbox1.Transparency=1 | |
794 | hitbox1.CFrame=prt10.CFrame | |
795 | con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,15000,math.random(1,5),"Normal",RootPart,.2,1) end) | |
796 | blcf=nil | |
797 | scfr=nil | |
798 | so("http://roblox.com/asset/?id=161006212",prt10,1,.6) | |
799 | repeat | |
800 | hitbox1.Parent=model1 | |
801 | hitbox1.Size=vt(1,5,1) | |
802 | hitbox1.Transparency=1 | |
803 | hitbox1.CFrame=prt10.CFrame | |
804 | for i=0,1,0.15 do | |
805 | swait() | |
806 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
807 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
808 | local h = 5 | |
809 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
810 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
811 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
812 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
813 | scfr = blcf | |
814 | elseif not scfr then | |
815 | scfr = blcf | |
816 | end | |
817 | hitbox1.CFrame=prt10.CFrame | |
818 | wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3) | |
819 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3) | |
820 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25) | |
821 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3) | |
822 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3) | |
823 | RH.C0=clerp(RH.C0,RHC0,.3) | |
824 | LH.C0=clerp(LH.C0,LHC0,.3) | |
825 | end | |
826 | for i=0,1,0.05 do | |
827 | swait() | |
828 | if i>=0.45 and i<=0.5 then | |
829 | so("http://roblox.com/asset/?id=161006212",prt10,1,.7) | |
830 | end | |
831 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
832 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
833 | local h = 5 | |
834 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
835 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
836 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
837 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
838 | scfr = blcf | |
839 | elseif not scfr then | |
840 | scfr = blcf | |
841 | end | |
842 | hitbox1.CFrame=prt10.CFrame | |
843 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1) | |
844 | end | |
845 | until hold==false | |
846 | con1:disconnect() | |
847 | hitbox1.Parent=nil | |
848 | attack=false | |
849 | end | |
850 | ||
851 | function BinarySwing() | |
852 | attack=true | |
853 | for i=0,1,0.1 do | |
854 | swait() | |
855 | wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3) | |
856 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3) | |
857 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3) | |
858 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3) | |
859 | LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3) | |
860 | RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3) | |
861 | LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3) | |
862 | end | |
863 | Humanoid.Jump=true | |
864 | bodvol=Instance.new("BodyVelocity") | |
865 | bodvol.Parent=RootPart | |
866 | bodvol.velocity=vt(0,1,0)*100 | |
867 | bodvol.P=5000 | |
868 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
869 | --Torso.Velocity=vt(0,1,0)*100 | |
870 | hitbox1.Parent=model1 | |
871 | hitbox1.Size=vt(1,5,1) | |
872 | hitbox1.Transparency=1 | |
873 | hitbox1.CFrame=prt10.CFrame | |
874 | con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10000,20000),"Normal",RootPart,.2,1) end) | |
875 | so("http://roblox.com/asset/?id=161006212",prt10,1,.8) | |
876 | blcf=nil | |
877 | scfr=nil | |
878 | for i=0,1,0.1 do | |
879 | swait() | |
880 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
881 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
882 | local h = 5 | |
883 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
884 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
885 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
886 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
887 | scfr = blcf | |
888 | elseif not scfr then | |
889 | scfr = blcf | |
890 | end | |
891 | hitbox1.CFrame=prt10.CFrame | |
892 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3) | |
893 | LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3) | |
894 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3) | |
895 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3) | |
896 | RH.C0=clerp(RH.C0,RHC0,.3) | |
897 | LH.C0=clerp(LH.C0,LHC0,.3) | |
898 | end | |
899 | con1:disconnect() | |
900 | hitbox1.Parent=nil | |
901 | bodvol.Parent=nil | |
902 | attack=false | |
903 | end | |
904 | ||
905 | function BinaryImpulse() | |
906 | attack=true | |
907 | if impulse==1 then | |
908 | impulse=2 | |
909 | Humanoid.Jump=true | |
910 | for i=0,1,0.2 do | |
911 | swait() | |
912 | wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45) | |
913 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45) | |
914 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45) | |
915 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45) | |
916 | LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45) | |
917 | RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45) | |
918 | LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45) | |
919 | end | |
920 | blcf=nil | |
921 | scfr=nil | |
922 | hitbox1.Parent=model1 | |
923 | hitbox1.Size=vt(1,5,1) | |
924 | hitbox1.Transparency=1 | |
925 | hitbox1.CFrame=prt10.CFrame | |
926 | con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20000,30000,math.random(10,20),"Normal",RootPart,.5,1) end) | |
927 | for i=1,3 do | |
928 | so("http://roblox.com/asset/?id=161006212",prt10,1,1) | |
929 | for i=0,1,0.1 do | |
930 | swait() | |
931 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
932 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
933 | local h = 5 | |
934 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
935 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
936 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
937 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
938 | scfr = blcf | |
939 | elseif not scfr then | |
940 | scfr = blcf | |
941 | end | |
942 | hitbox1.CFrame=prt10.CFrame | |
943 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3) | |
944 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3) | |
945 | RootJoint.C0=RootCF*euler(0,0.5,6.6*i) | |
946 | end | |
947 | end | |
948 | con1:disconnect() | |
949 | hitbox1.Parent=nil | |
950 | elseif impulse==2 then | |
951 | impulse=3 | |
952 | Humanoid.Jump=true | |
953 | for i=0,1,0.2 do | |
954 | swait() | |
955 | wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45) | |
956 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45) | |
957 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45) | |
958 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45) | |
959 | LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45) | |
960 | RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45) | |
961 | LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45) | |
962 | end | |
963 | blcf=nil | |
964 | scfr=nil | |
965 | hitbox1.Parent=model1 | |
966 | hitbox1.Size=vt(1,5,1) | |
967 | hitbox1.Transparency=1 | |
968 | hitbox1.CFrame=prt10.CFrame | |
969 | con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,20000),"Normal",RootPart,.5,1) end) | |
970 | for i=1,3 do | |
971 | so("http://roblox.com/asset/?id=161006212",prt10,1,1.05) | |
972 | for i=0,1,0.1 do | |
973 | swait() | |
974 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
975 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
976 | local h = 5 | |
977 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
978 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
979 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
980 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
981 | scfr = blcf | |
982 | elseif not scfr then | |
983 | scfr = blcf | |
984 | end | |
985 | hitbox1.CFrame=prt10.CFrame | |
986 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3) | |
987 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3) | |
988 | RootJoint.C0=RootCF*euler(0,-0.5,6.6*i) | |
989 | end | |
990 | end | |
991 | con1:disconnect() | |
992 | hitbox1.Parent=nil | |
993 | elseif impulse==3 then | |
994 | impulse=1 | |
995 | for i=0,1,0.2 do | |
996 | swait() | |
997 | wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45) | |
998 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45) | |
999 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45) | |
1000 | RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45) | |
1001 | LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45) | |
1002 | RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45) | |
1003 | LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45) | |
1004 | end | |
1005 | Humanoid.Jump=true | |
1006 | blcf=nil | |
1007 | scfr=nil | |
1008 | hitbox1.Parent=model1 | |
1009 | hitbox1.Size=vt(1,5,1) | |
1010 | hitbox1.Transparency=1 | |
1011 | hitbox1.CFrame=prt10.CFrame | |
1012 | con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(20000,30000),"Normal",RootPart,.5,1) end) | |
1013 | for i=1,3 do | |
1014 | so("http://roblox.com/asset/?id=161006195",prt10,1,1) | |
1015 | for i=0,1,0.1 do | |
1016 | swait() | |
1017 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
1018 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
1019 | local h = 5 | |
1020 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1021 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1022 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1023 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1024 | scfr = blcf | |
1025 | elseif not scfr then | |
1026 | scfr = blcf | |
1027 | end | |
1028 | hitbox1.CFrame=prt10.CFrame | |
1029 | wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45) | |
1030 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45) | |
1031 | RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3) | |
1032 | LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3) | |
1033 | RootJoint.C0=RootCF*euler(6.28*i,0,0) | |
1034 | end | |
1035 | end | |
1036 | con1:disconnect() | |
1037 | hitbox1.Parent=nil | |
1038 | end | |
1039 | attack=false | |
1040 | end | |
1041 | ||
1042 | function Bash() | |
1043 | attack=true | |
1044 | for i=0,1,0.1 do | |
1045 | swait() | |
1046 | wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3) | |
1047 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3) | |
1048 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3) | |
1049 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3) | |
1050 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3) | |
1051 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3) | |
1052 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3) | |
1053 | end | |
1054 | Torso.Velocity=RootPart.CFrame.lookVector*200 | |
1055 | so("http://roblox.com/asset/?id=2767090",Torso,1,.7) | |
1056 | MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05) | |
1057 | hit=nil | |
1058 | for i=1,20 do | |
1059 | if hit==nil then | |
1060 | swait() | |
1061 | end | |
1062 | hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character) | |
1063 | end | |
1064 | Torso.Velocity=RootPart.CFrame.lookVector*0 | |
1065 | Humanoid.WalkSpeed=0 | |
1066 | for i=0,1,0.1 do | |
1067 | swait() | |
1068 | wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3) | |
1069 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3) | |
1070 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3) | |
1071 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3) | |
1072 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3) | |
1073 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3) | |
1074 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3) | |
1075 | end | |
1076 | so("http://roblox.com/asset/?id=161006195",prt10,1,.5) | |
1077 | blcf=nil | |
1078 | scfr=nil | |
1079 | for i=0,1,0.2 do | |
1080 | swait() | |
1081 | local blcf = prt10.CFrame*CFrame.new(0,.5,0) | |
1082 | if scfr and (prt10.Position-scfr.p).magnitude > .1 then | |
1083 | local h = 5 | |
1084 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1085 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1086 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1087 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1088 | scfr = blcf | |
1089 | elseif not scfr then | |
1090 | scfr = blcf | |
1091 | end | |
1092 | wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45) | |
1093 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45) | |
1094 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45) | |
1095 | RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45) | |
1096 | LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45) | |
1097 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45) | |
1098 | LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45) | |
1099 | end | |
1100 | hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character) | |
1101 | if hit~=nil then | |
1102 | local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt()) | |
1103 | ref.Anchored=true | |
1104 | ref.CFrame=cf(pos) | |
1105 | game:GetService("Debris"):AddItem(ref,3) | |
1106 | for i=1,10 do | |
1107 | Col=hit.BrickColor | |
1108 | local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100)) | |
1109 | groundpart.Anchored=true | |
1110 | groundpart.Material=hit.Material | |
1111 | groundpart.CanCollide=true | |
1112 | groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1113 | game:GetService("Debris"):AddItem(groundpart,5) | |
1114 | end | |
1115 | so("http://roblox.com/asset/?id=157878578",ref,.6,1.2) | |
1116 | MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05) | |
1117 | MagniDamage(ref,50,50,50,math.random(10000,20000),"Knockdown") | |
1118 | end | |
1119 | swait(50) | |
1120 | Humanoid.WalkSpeed=16 | |
1121 | attack=false | |
1122 | end | |
1123 | ||
1124 | function UnleashTheDemon() | |
1125 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Now you're in for a show, you'll be sent to the abyss when i'm done!", "Green") | |
1126 | wait(2.6) | |
1127 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Mannitus's Voiding Blade!", "Red") | |
1128 | attack=true | |
1129 | so("rbxasset://sounds\\unsheath.wav",prt1,1,.8) | |
1130 | for i=0,1,0.1 do | |
1131 | swait() | |
1132 | wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3) | |
1133 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3) | |
1134 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3) | |
1135 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3) | |
1136 | RH.C0=clerp(RH.C0,RHC0,.4) | |
1137 | LH.C0=clerp(LH.C0,LHC0,.4) | |
1138 | end | |
1139 | wld1.Part1=Torso | |
1140 | wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5) | |
1141 | for i=0,1,0.1 do | |
1142 | swait() | |
1143 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3) | |
1144 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3) | |
1145 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3) | |
1146 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3) | |
1147 | end | |
1148 | so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4) | |
1149 | so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6) | |
1150 | so("http://roblox.com/asset/?id=160740121",RightArm,1,.8) | |
1151 | num=0 | |
1152 | for i=0,1,0.01 do | |
1153 | swait() | |
1154 | if num>=10 then | |
1155 | num=0 | |
1156 | MagicWave(BrickColor.new("Really Really black"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05) | |
1157 | end | |
1158 | for i=1,2 do | |
1159 | if math.random(1,5)==1 then | |
1160 | MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05) | |
1161 | else | |
1162 | MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05) | |
1163 | end | |
1164 | end | |
1165 | num=num+1 | |
1166 | end | |
1167 | so("http://roblox.com/asset/?id=168586621",RightArm,1,.5) | |
1168 | so("http://roblox.com/asset/?id=160867463",RightArm,1,.8) | |
1169 | for i=1,4 do | |
1170 | MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05) | |
1171 | end | |
1172 | MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01) | |
1173 | Mode="Demon" | |
1174 | model2.Parent=Character | |
1175 | for i=1,#DBlade do | |
1176 | DBlade[i].Parent=model2 | |
1177 | DBladeWelds[i].Parent=DBlade[1] | |
1178 | end | |
1179 | for i=0,1,0.1 do | |
1180 | swait() | |
1181 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3) | |
1182 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3) | |
1183 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3) | |
1184 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3) | |
1185 | end | |
1186 | swait(50) | |
1187 | attack=false | |
1188 | end | |
1189 | ||
1190 | function Demonattackone() | |
1191 | attack=true | |
1192 | --[[ | |
1193 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3) | |
1194 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3) | |
1195 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3) | |
1196 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3) | |
1197 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3) | |
1198 | LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3) | |
1199 | ]] | |
1200 | for i=0,1,0.1 do | |
1201 | swait() | |
1202 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3) | |
1203 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3) | |
1204 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3) | |
1205 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3) | |
1206 | RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3) | |
1207 | LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3) | |
1208 | end | |
1209 | hitbox2.Parent=model2 | |
1210 | hitbox2.Size=vt(1,6,1) | |
1211 | hitbox2.Transparency=1 | |
1212 | hitbox2.CFrame=prtd7.CFrame | |
1213 | con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end) | |
1214 | so("http://roblox.com/asset/?id=28144425",prtd7,1,.7) | |
1215 | blcf=nil | |
1216 | scfr=nil | |
1217 | for i=0,1,0.08 do | |
1218 | swait() | |
1219 | local blcf = prtd7.CFrame*CFrame.new(0,-.5,0) | |
1220 | if scfr and (prtd7.Position-scfr.p).magnitude > .1 then | |
1221 | local h = 5 | |
1222 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1223 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1224 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1225 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1226 | scfr = blcf | |
1227 | elseif not scfr then | |
1228 | scfr = blcf | |
1229 | end | |
1230 | hitbox2.CFrame=prtd7.CFrame | |
1231 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3) | |
1232 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3) | |
1233 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3) | |
1234 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3) | |
1235 | RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3) | |
1236 | LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3) | |
1237 | end | |
1238 | con1:disconnect() | |
1239 | hitbox2.Parent=nil | |
1240 | attack=false | |
1241 | end | |
1242 | ||
1243 | function Demonattacktwo() | |
1244 | attack=true | |
1245 | for i=0,1,0.1 do | |
1246 | swait() | |
1247 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3) | |
1248 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3) | |
1249 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3) | |
1250 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3) | |
1251 | RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3) | |
1252 | LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3) | |
1253 | end | |
1254 | hitbox2.Parent=model2 | |
1255 | hitbox2.Size=vt(1,6,1) | |
1256 | hitbox2.Transparency=1 | |
1257 | hitbox2.CFrame=prtd7.CFrame | |
1258 | con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end) | |
1259 | so("http://roblox.com/asset/?id=28144425",prtd7,1,.5) | |
1260 | blcf=nil | |
1261 | scfr=nil | |
1262 | for i=0,1,0.1 do | |
1263 | swait() | |
1264 | local blcf = prtd7.CFrame*CFrame.new(0,-.5,0) | |
1265 | if scfr and (prtd7.Position-scfr.p).magnitude > .1 then | |
1266 | local h = 5 | |
1267 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1268 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1269 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1270 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1271 | scfr = blcf | |
1272 | elseif not scfr then | |
1273 | scfr = blcf | |
1274 | end | |
1275 | hitbox2.CFrame=prtd7.CFrame | |
1276 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3) | |
1277 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3) | |
1278 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3) | |
1279 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3) | |
1280 | RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3) | |
1281 | LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3) | |
1282 | end | |
1283 | con1:disconnect() | |
1284 | hitbox2.Parent=nil | |
1285 | attack=false | |
1286 | end | |
1287 | ||
1288 | function Demonattackthree() | |
1289 | attack=true | |
1290 | for i=0,1,0.1 do | |
1291 | swait() | |
1292 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3) | |
1293 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3) | |
1294 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3) | |
1295 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3) | |
1296 | RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3) | |
1297 | LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3) | |
1298 | end | |
1299 | Humanoid.WalkSpeed=0 | |
1300 | hitbox2.Parent=model2 | |
1301 | hitbox2.Size=vt(1,6,1) | |
1302 | hitbox2.Transparency=1 | |
1303 | hitbox2.CFrame=prtd7.CFrame | |
1304 | con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end) | |
1305 | so("http://roblox.com/asset/?id=28144425",prtd7,1,.6) | |
1306 | blcf=nil | |
1307 | scfr=nil | |
1308 | for i=0,1,0.15 do | |
1309 | swait() | |
1310 | local blcf = prtd7.CFrame*CFrame.new(0,-.5,0) | |
1311 | if scfr and (prtd7.Position-scfr.p).magnitude > .1 then | |
1312 | local h = 5 | |
1313 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1314 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1315 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1316 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1317 | scfr = blcf | |
1318 | elseif not scfr then | |
1319 | scfr = blcf | |
1320 | end | |
1321 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4) | |
1322 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4) | |
1323 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4) | |
1324 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4) | |
1325 | RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4) | |
1326 | LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4) | |
1327 | if i==0.6 then | |
1328 | hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
1329 | if hit~=nil then | |
1330 | local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt()) | |
1331 | ref.Anchored=true | |
1332 | ref.CFrame=cf(pos) | |
1333 | game:GetService("Debris"):AddItem(ref,3) | |
1334 | for i=1,5 do | |
1335 | Col=hit.BrickColor | |
1336 | local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100)) | |
1337 | groundpart.Anchored=true | |
1338 | groundpart.Material=hit.Material | |
1339 | groundpart.CanCollide=true | |
1340 | groundpart.CFrame=cf(pos)*cf(math.random(-200,200)/100,0,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1341 | game:GetService("Debris"):AddItem(groundpart,3) | |
1342 | end | |
1343 | so("http://roblox.com/asset/?id=157878578",ref,.6,1.5) | |
1344 | MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05) | |
1345 | MagniDamage(ref,50,50,50,math.random(10000,20000),"Normal") | |
1346 | end | |
1347 | end | |
1348 | end | |
1349 | con1:disconnect() | |
1350 | hitbox2.Parent=nil | |
1351 | swait(10) | |
1352 | Humanoid.WalkSpeed=16 | |
1353 | attack=false | |
1354 | end | |
1355 | ||
1356 | function LetItBuild() | |
1357 | attack=true | |
1358 | for i=0,1,0.1 do | |
1359 | swait() | |
1360 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3) | |
1361 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3) | |
1362 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3) | |
1363 | LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3) | |
1364 | RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3) | |
1365 | LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3) | |
1366 | end | |
1367 | local num=0 | |
1368 | local magik=0 | |
1369 | local num2=0 | |
1370 | while holdx==true do | |
1371 | swait() | |
1372 | if magik<25 then | |
1373 | if num>=10 then | |
1374 | Humanoid:TakeDamage(0) | |
1375 | pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100) | |
1376 | pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100) | |
1377 | Lightning(pos1,pos2,5,3,"Really red",.1,.5,.5) | |
1378 | MagicCircle(BrickColor.new("Really red"),cf(pos1),5,5,5,1,1,1,.1) | |
1379 | MagicBlood(BrickColor.new("Really red"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05) | |
1380 | so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5) | |
1381 | magik=magik+1 | |
1382 | num=0 | |
1383 | end | |
1384 | end | |
1385 | num=num+1 | |
1386 | num2=num2+magik | |
1387 | if num2>=50 then | |
1388 | MagicBlood(BrickColor.new("Really Really black"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1) | |
1389 | num2=0 | |
1390 | end | |
1391 | --MagicBlock(BrickColor.new("Really red"),cf(prtd8.Position)*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),magik/5,magik/5,magik/5,magik/8,magik/8,magik/8,.1) | |
1392 | end | |
1393 | Torso.Velocity=RootPart.CFrame.lookVector*(10*magik) | |
1394 | blcf=nil | |
1395 | scfr=nil | |
1396 | hitbox2.Parent=model2 | |
1397 | hitbox2.Size=vt(1,6,1) | |
1398 | hitbox2.Transparency=1 | |
1399 | hitbox2.CFrame=prtd7.CFrame | |
1400 | con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,math.ceil((200000/200000)),magik,1,"Lifesteal",RootPart,.5,1) end) | |
1401 | for i=1,3 do | |
1402 | so("http://roblox.com/asset/?id=28144425",prtd7,1,1) | |
1403 | for i=0,1,0.1 do | |
1404 | swait() | |
1405 | hitbox2.CFrame=prtd7.CFrame | |
1406 | local blcf = prtd7.CFrame*CFrame.new(0,-.5,0) | |
1407 | if scfr and (prtd7.Position-scfr.p).magnitude > .1 then | |
1408 | local h = 5 | |
1409 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1410 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1411 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1412 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1413 | scfr = blcf | |
1414 | elseif not scfr then | |
1415 | scfr = blcf | |
1416 | end | |
1417 | RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1) | |
1418 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3) | |
1419 | LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3) | |
1420 | RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3) | |
1421 | LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3) | |
1422 | end | |
1423 | end | |
1424 | con1:disconnect() | |
1425 | hitbox2.Parent=nil | |
1426 | attack=false | |
1427 | end | |
1428 | ||
1429 | function YourMoveCreep() | |
1430 | attack=true | |
1431 | local pers=nil | |
1432 | for i=0,1,0.1 do | |
1433 | swait() | |
1434 | cost=Humanoid.Health-0 | |
1435 | Humanoid:TakeDamage(0) | |
1436 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3) | |
1437 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3) | |
1438 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3) | |
1439 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3) | |
1440 | RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3) | |
1441 | LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3) | |
1442 | end | |
1443 | local blockprt=part(3,Character,0,1,BrickColor.new("Really Really black"),"Block",vt(8,.1,8)) | |
1444 | blockprt.Anchored=true | |
1445 | blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0) | |
1446 | conbl=blockprt.Touched:connect(function(hit) | |
1447 | if hit.Parent.Parent:findFirstChild("Torso")~=nil then | |
1448 | hit=hit.Parent.Parent.Torso | |
1449 | end | |
1450 | if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then | |
1451 | pers=hit | |
1452 | print("HIT") | |
1453 | guard=false | |
1454 | end | |
1455 | end) | |
1456 | num=0 | |
1457 | while guard==true do | |
1458 | swait() | |
1459 | if num>10 then | |
1460 | num=0 | |
1461 | MagicBlock(BrickColor.new("Really red"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05) | |
1462 | MagicCircle(BrickColor.new("Really Really black"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1) | |
1463 | end | |
1464 | blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0) | |
1465 | num=num+1 | |
1466 | end | |
1467 | conbl:disconnect() | |
1468 | blockprt.Parent=nil | |
1469 | print(pers) | |
1470 | if pers~=nil then | |
1471 | for i=0,1,0.1 do | |
1472 | swait() | |
1473 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3) | |
1474 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3) | |
1475 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3) | |
1476 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3) | |
1477 | RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3) | |
1478 | LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3) | |
1479 | end | |
1480 | swait(200) | |
1481 | end | |
1482 | attack=false | |
1483 | end | |
1484 | ||
1485 | function MagniDamage(Part,magni,mindam,maxdam,knock,Type) | |
1486 | for _,c in pairs(workspace:children()) do | |
1487 | local hum=c:findFirstChild("Humanoid") | |
1488 | if hum~=nil then | |
1489 | local head=c:findFirstChild("Torso") | |
1490 | if head~=nil then | |
1491 | local targ=head.Position-Part.Position | |
1492 | local mag=targ.magnitude | |
1493 | if mag<=magni and c.Name~=Player.Name then | |
1494 | Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1) | |
1495 | end | |
1496 | end | |
1497 | end | |
1498 | end | |
1499 | end | |
1500 | ||
1501 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1502 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1503 | end | |
1504 | ||
1505 | local Point=Torso.CFrame*cf(0,Torso.Size.Y,0) | |
1506 | LastPoint=Point | |
1507 | function effect(Color,Ref,LP,P1,returnn) | |
1508 | local effectsmsh=Instance.new("CylinderMesh") | |
1509 | effectsmsh.Scale=Vector3.new(0.2,1,0.2) | |
1510 | effectsmsh.Name="Mesh" | |
1511 | local effectsg=Instance.new("Part") | |
1512 | effectsg.formFactor=3 | |
1513 | effectsg.CanCollide=false | |
1514 | effectsg.Name="Eff" | |
1515 | effectsg.Locked=true | |
1516 | effectsg.Anchored=true | |
1517 | effectsg.Size=Vector3.new(0.5,1,0.5) | |
1518 | effectsg.Parent=workspace | |
1519 | effectsmsh.Parent=effectsg | |
1520 | effectsg.BrickColor=BrickColor.new(Color) | |
1521 | effectsg.Reflectance=Ref | |
1522 | local point1=P1 | |
1523 | local mg=(LP.p - point1.p).magnitude | |
1524 | effectsg.Size=Vector3.new(0.5,mg,0.5) | |
1525 | effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
1526 | effectsmsh.Scale=Vector3.new(0.2,1,0.2) | |
1527 | game:GetService("Debris"):AddItem(effectsg,2) | |
1528 | if returnn then return effectsg end | |
1529 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1530 | if not returnn then | |
1531 | for i=0,1,0.05 do | |
1532 | wait() | |
1533 | Part.Transparency=1*i | |
1534 | Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i) | |
1535 | end | |
1536 | Part.Parent=nil | |
1537 | end | |
1538 | end),effectsg,effectsmsh) | |
1539 | end | |
1540 | ||
1541 | local function CFrameFromTopBack(at, top, back) | |
1542 | local right = top:Cross(back) | |
1543 | return CFrame.new(at.x, at.y, at.z, | |
1544 | right.x, top.x, back.x, | |
1545 | right.y, top.y, back.y, | |
1546 | right.z, top.z, back.z) | |
1547 | end | |
1548 | ||
1549 | function Triangle(a, b, c) | |
1550 | local edg1 = (c-a):Dot((b-a).unit) | |
1551 | local edg2 = (a-b):Dot((c-b).unit) | |
1552 | local edg3 = (b-c):Dot((a-c).unit) | |
1553 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1554 | a, b, c = a, b, c | |
1555 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1556 | a, b, c = b, c, a | |
1557 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1558 | a, b, c = c, a, b | |
1559 | else | |
1560 | assert(false, "unreachable") | |
1561 | end | |
1562 | ||
1563 | local len1 = (c-a):Dot((b-a).unit) | |
1564 | local len2 = (b-a).magnitude - len1 | |
1565 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1566 | ||
1567 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1568 | ||
1569 | local list = {} | |
1570 | ||
1571 | if len2 > 0.01 then | |
1572 | end | |
1573 | return unpack(list) | |
1574 | end | |
1575 | --[[ | |
1576 | Things for effects | |
1577 | put the variables in one table | |
1578 | like effect={brick,interval,i} | |
1579 | ]] | |
1580 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1581 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt()) | |
1582 | prt.Anchored=true | |
1583 | prt.CFrame=cframe | |
1584 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1585 | game:GetService("Debris"):AddItem(prt,5) | |
1586 | table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay | |
1587 | --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur) | |
1588 | for i=0,1,delay do | |
1589 | wait() | |
1590 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1591 | Part.Transparency=i | |
1592 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1593 | end | |
1594 | Part.Parent=nil | |
1595 | end),prt,msh)]] | |
1596 | end | |
1597 | ||
1598 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1599 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt()) | |
1600 | prt.Anchored=true | |
1601 | prt.CFrame=cframe | |
1602 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1603 | game:GetService("Debris"):AddItem(prt,5) | |
1604 | table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3}) | |
1605 | --[[coroutine.resume(coroutine.create(function(Part,Mesh) | |
1606 | local wld=nil | |
1607 | for i=0,1,delay do | |
1608 | wait() | |
1609 | Part.CFrame=Part.CFrame | |
1610 | Part.Transparency=i | |
1611 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1612 | end | |
1613 | Part.Parent=nil | |
1614 | end),prt,msh)]] | |
1615 | end | |
1616 | ||
1617 | function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1618 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt()) | |
1619 | prt.Anchored=true | |
1620 | prt.CFrame=cframe | |
1621 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
1622 | game:GetService("Debris"):AddItem(prt,5) | |
1623 | table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3}) | |
1624 | end | |
1625 | ||
1626 | function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1627 | local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2)) | |
1628 | prt.Anchored=true | |
1629 | prt.CFrame=cframe | |
1630 | msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1)) | |
1631 | game:GetService("Debris"):AddItem(prt,5) | |
1632 | --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3}) | |
1633 | Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay | |
1634 | --[[coroutine.resume(coroutine.create(function(Part,Mesh) | |
1635 | for i=0,1,delay do | |
1636 | wait() | |
1637 | Part.CFrame=Part.CFrame | |
1638 | Part.Transparency=i | |
1639 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1640 | end | |
1641 | Part.Parent=nil | |
1642 | end),prt,msh)]] | |
1643 | end | |
1644 | ||
1645 | function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1646 | local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2)) | |
1647 | prt.Anchored=true | |
1648 | prt.CFrame=cframe | |
1649 | msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1650 | game:GetService("Debris"):AddItem(prt,5) | |
1651 | --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3}) | |
1652 | Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay | |
1653 | --[[coroutine.resume(coroutine.create(function(Part,Mesh) | |
1654 | for i=0,1,delay do | |
1655 | wait() | |
1656 | Part.CFrame=Part.CFrame | |
1657 | Part.Transparency=i | |
1658 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1659 | end | |
1660 | Part.Parent=nil | |
1661 | end),prt,msh)]] | |
1662 | end | |
1663 | ||
1664 | function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1665 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt()) | |
1666 | prt.Anchored=true | |
1667 | prt.CFrame=cframe | |
1668 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1669 | game:GetService("Debris"):AddItem(prt,5) | |
1670 | table.insert(Effects,{prt,"Blood",delay,x3,y3,z3}) | |
1671 | end | |
1672 | ||
1673 | function ElecEffect(cff,x,y,z) | |
1674 | local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1)) | |
1675 | prt.Anchored=true | |
1676 | prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z)) | |
1677 | prt.CFrame=cf(prt.Position) | |
1678 | --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z)) | |
1679 | game:GetService("Debris"):AddItem(prt,2) | |
1680 | xval=math.random()/2 | |
1681 | yval=math.random()/2 | |
1682 | zval=math.random()/2 | |
1683 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval)) | |
1684 | Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay | |
1685 | end | |
1686 | ||
1687 | function Lightning(p0,p1,tym,ofs,col,th,tra,last) | |
1688 | --[[p0=pos1 | |
1689 | p1=pos2 | |
1690 | tym=times | |
1691 | ofs=offset | |
1692 | col=color | |
1693 | th=size | |
1694 | tra=transparency | |
1695 | last=lastingtime]] | |
1696 | local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs} | |
1697 | for i=1,tym do | |
1698 | local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col) | |
1699 | li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
1700 | local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz | |
1701 | if tym == i then | |
1702 | local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2) | |
1703 | li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2) | |
1704 | else | |
1705 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2) | |
1706 | end | |
1707 | curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last) | |
1708 | end | |
1709 | end | |
1710 | ||
1711 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
1712 | if hit.Parent==nil then | |
1713 | return | |
1714 | end | |
1715 | h=hit.Parent:FindFirstChild("Humanoid") | |
1716 | for _,v in pairs(hit.Parent:children()) do | |
1717 | if v:IsA("Humanoid") then | |
1718 | h=v | |
1719 | end | |
1720 | end | |
1721 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
1722 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
1723 | end | |
1724 | if hit.Parent.className=="Hat" then | |
1725 | hit=hit.Parent.Parent:findFirstChild("Head") | |
1726 | end | |
1727 | -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent | |
1728 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
1729 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
1730 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
1731 | return | |
1732 | end]] | |
1733 | -- hs(hit,1.2) | |
1734 | so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100) | |
1735 | --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100) | |
1736 | c=Instance.new("ObjectValue") | |
1737 | c.Name="creator" | |
1738 | c.Value=game:service("Players").LocalPlayer | |
1739 | c.Parent=h | |
1740 | game:GetService("Debris"):AddItem(c,.5) | |
1741 | Damage=math.random(minim,maxim) | |
1742 | if Mode=="Demon" then | |
1743 | Damage=Damage+damcount | |
1744 | end | |
1745 | -- h:TakeDamage() | |
1746 | blocked=false | |
1747 | block=hit.Parent:findFirstChild("Block") | |
1748 | if block~=nil then | |
1749 | print(block.className) | |
1750 | if block.className=="NumberValue" then | |
1751 | if block.Value>0 then | |
1752 | blocked=true | |
1753 | if decreaseblock==nil then | |
1754 | block.Value=block.Value-1 | |
1755 | end | |
1756 | end | |
1757 | end | |
1758 | if block.className=="IntValue" then | |
1759 | if block.Value>0 then | |
1760 | blocked=true | |
1761 | if decreaseblock~=nil then | |
1762 | block.Value=block.Value-1 | |
1763 | end | |
1764 | end | |
1765 | end | |
1766 | end | |
1767 | if blocked==false then | |
1768 | -- h:TakeDamage(Damage) | |
1769 | h.Health=h.Health-Damage | |
1770 | else | |
1771 | h.Health=h.Health-(Damage/0) | |
1772 | end | |
1773 | if Type=="Knockdown" then | |
1774 | hum=hit.Parent.Humanoid | |
1775 | hum.PlatformStand=true | |
1776 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1777 | swait(1) | |
1778 | HHumanoid.PlatformStand=false | |
1779 | end),hum) | |
1780 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
1781 | --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
1782 | local bodvol=Instance.new("BodyVelocity") | |
1783 | bodvol.velocity=angle*knockback | |
1784 | bodvol.P=5000 | |
1785 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
1786 | bodvol.Parent=hit | |
1787 | rl=Instance.new("BodyAngularVelocity") | |
1788 | rl.P=3000 | |
1789 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
1790 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
1791 | rl.Parent=hit | |
1792 | game:GetService("Debris"):AddItem(bodvol,.5) | |
1793 | game:GetService("Debris"):AddItem(rl,.5) | |
1794 | elseif Type=="Normal" then | |
1795 | vp=Instance.new("BodyVelocity") | |
1796 | vp.P=500 | |
1797 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
1798 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
1799 | if KnockbackType==1 then | |
1800 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100 | |
1801 | elseif KnockbackType==2 then | |
1802 | vp.velocity=Property.CFrame.lookVector*knockback | |
1803 | end | |
1804 | if knockback>-100 then | |
1805 | vp.Parent=hit.Parent.Torso | |
1806 | end | |
1807 | game:GetService("Debris"):AddItem(vp,.5) | |
1808 | elseif Type=="Lifesteal" then | |
1809 | for i=1,5 do | |
1810 | MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05) | |
1811 | end | |
1812 | vp=Instance.new("BodyVelocity") | |
1813 | vp.P=500 | |
1814 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
1815 | if KnockbackType==1 then | |
1816 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250 | |
1817 | elseif KnockbackType==2 then | |
1818 | vp.velocity=Property.CFrame.lookVector*knockback | |
1819 | end | |
1820 | if knockback>-250 then | |
1821 | vp.Parent=hit.Parent.Torso | |
1822 | end | |
1823 | game:GetService("Debris"):AddItem(vp,.5) | |
1824 | Heal=math.ceil(Damage/25100) | |
1825 | Humanoid.Health=Humanoid.Health+Heal | |
1826 | elseif Type=="Up" then | |
1827 | local bodyVelocity=Instance.new("BodyVelocity") | |
1828 | bodyVelocity.velocity=vt(0,30,0) | |
1829 | bodyVelocity.P=5000 | |
1830 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
1831 | bodyVelocity.Parent=hit | |
1832 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
1833 | rl=Instance.new("BodyAngularVelocity") | |
1834 | rl.P=3000 | |
1835 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
1836 | rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
1837 | rl.Parent=hit | |
1838 | game:GetService("Debris"):AddItem(rl,.5) | |
1839 | elseif Type=="Snare" then | |
1840 | bp=Instance.new("BodyPosition") | |
1841 | bp.P=2000 | |
1842 | bp.D=100 | |
1843 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1844 | bp.position=hit.Parent.Torso.Position | |
1845 | bp.Parent=hit.Parent.Torso | |
1846 | game:GetService("Debris"):AddItem(bp,1) | |
1847 | elseif Type=="Charge" then | |
1848 | Charge=Charge+1 | |
1849 | coroutine.resume(coroutine.create(function(Part) | |
1850 | swait(30) | |
1851 | for i=1,5 do | |
1852 | swait(5) | |
1853 | so("rbxasset://sounds\\unsheath.wav",hit,1,2) | |
1854 | MagicCircle(BrickColor.new("Bright red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.1,.2,8,.1,0.05) | |
1855 | newdam=math.random(1,5) | |
1856 | if blocked==false then | |
1857 | h:TakeDamage() | |
1858 | else | |
1859 | h:TakeDamage(newdam/0) | |
1860 | end | |
1861 | end | |
1862 | end),hit) | |
1863 | end | |
1864 | debounce=Instance.new("BoolValue") | |
1865 | debounce.Name="DebounceHit" | |
1866 | debounce.Parent=hit.Parent | |
1867 | debounce.Value=true | |
1868 | game:GetService("Debris"):AddItem(debounce,Delay) | |
1869 | c=Instance.new("ObjectValue") | |
1870 | c.Name="creator" | |
1871 | c.Value=Player | |
1872 | c.Parent=h | |
1873 | game:GetService("Debris"):AddItem(c,.5) | |
1874 | CRIT=false | |
1875 | hitDeb=true | |
1876 | AttackPos=6 | |
1877 | end | |
1878 | end | |
1879 | ||
1880 | showDamage=function(Char,Dealt,du,Color) | |
1881 | m=Instance.new("Model") | |
1882 | m.Name=tostring(Dealt) | |
1883 | h=Instance.new("Humanoid") | |
1884 | h.Health=0 | |
1885 | h.MaxHealth=0 | |
1886 | h.Parent=m | |
1887 | c=Instance.new("Part") | |
1888 | c.Transparency=1 | |
1889 | c.BrickColor=Color | |
1890 | c.Name="Head" | |
1891 | c.TopSurface=0 | |
1892 | c.BottomSurface=0 | |
1893 | c.formFactor="Plate" | |
1894 | c.Size=Vector3.new(1,.4,1) | |
1895 | ms=Instance.new("CylinderMesh") | |
1896 | ms.Scale=Vector3.new(.8,.8,.8) | |
1897 | if CRIT==true then | |
1898 | ms.Scale=Vector3.new(1,1.25,1) | |
1899 | end | |
1900 | ms.Parent=c | |
1901 | c.Reflectance=0 | |
1902 | Instance.new("BodyGyro").Parent=c | |
1903 | c.Parent=m | |
1904 | if Char:findFirstChild("Head")~=nil then | |
1905 | c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
1906 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
1907 | c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
1908 | end | |
1909 | f=Instance.new("BodyPosition") | |
1910 | f.P=2000 | |
1911 | f.D=100 | |
1912 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1913 | f.position=c.Position+Vector3.new(0,3,0) | |
1914 | f.Parent=c | |
1915 | game:GetService("Debris"):AddItem(m,.5+du) | |
1916 | c.CanCollide=false | |
1917 | m.Parent=workspace | |
1918 | c.CanCollide=false | |
1919 | end | |
1920 | ||
1921 | combo=0 | |
1922 | function ob1d(mouse) | |
1923 | hold=true | |
1924 | if attack==true or equipped==false then return end | |
1925 | if Mode=="Binary" then | |
1926 | idle=0 | |
1927 | if Anim=="Run" then | |
1928 | SpinSlash() | |
1929 | else | |
1930 | if combo==0 then | |
1931 | combo=1 | |
1932 | attackone() | |
1933 | elseif combo==1 then | |
1934 | combo=2 | |
1935 | attacktwo() | |
1936 | elseif combo==2 then | |
1937 | combo=0 | |
1938 | attackthree() | |
1939 | end | |
1940 | end | |
1941 | else | |
1942 | if combo==0 then | |
1943 | combo=1 | |
1944 | Demonattackone() | |
1945 | elseif combo==1 then | |
1946 | combo=2 | |
1947 | Demonattacktwo() | |
1948 | elseif combo==2 then | |
1949 | combo=0 | |
1950 | Demonattackthree() | |
1951 | end | |
1952 | end | |
1953 | coroutine.resume(coroutine.create(function() | |
1954 | for i=1,20 do | |
1955 | if attack==false then | |
1956 | swait() | |
1957 | end | |
1958 | end | |
1959 | if attack==false then | |
1960 | combo=0 | |
1961 | --equipanim() | |
1962 | end | |
1963 | end)) | |
1964 | end | |
1965 | ||
1966 | function ob1u(mouse) | |
1967 | hold = false | |
1968 | end | |
1969 | ||
1970 | buttonhold = false | |
1971 | ||
1972 | eul=0 | |
1973 | holdx=false | |
1974 | equipped=false | |
1975 | function key(key) | |
1976 | if key=="c" then | |
1977 | if guard==true then | |
1978 | guard=false | |
1979 | else | |
1980 | guard=true | |
1981 | end | |
1982 | end | |
1983 | if key=="x" then | |
1984 | holdx=true | |
1985 | end | |
1986 | if attack==true then return end | |
1987 | if key=="f" then | |
1988 | if equipped==false then | |
1989 | equipped=true | |
1990 | RSH=ch.Torso["Right Shoulder"] | |
1991 | LSH=ch.Torso["Left Shoulder"] | |
1992 | -- | |
1993 | RSH.Parent=nil | |
1994 | LSH.Parent=nil | |
1995 | -- | |
1996 | RW.Name="Right Shoulder" | |
1997 | RW.Part0=ch.Torso | |
1998 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
1999 | RW.C1=cf(0, 0.5, 0) | |
2000 | RW.Part1=ch["Right Arm"] | |
2001 | RW.Parent=ch.Torso | |
2002 | -- | |
2003 | LW.Name="Left Shoulder" | |
2004 | LW.Part0=ch.Torso | |
2005 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
2006 | LW.C1=cf(0, 0.5, 0) | |
2007 | LW.Part1=ch["Left Arm"] | |
2008 | LW.Parent=ch.Torso | |
2009 | -- | |
2010 | equipanim() | |
2011 | else | |
2012 | equipped=false | |
2013 | hideanim() | |
2014 | swait(0) | |
2015 | RW.Parent=nil | |
2016 | LW.Parent=nil | |
2017 | RSH.Parent=player.Character.Torso | |
2018 | LSH.Parent=player.Character.Torso | |
2019 | end | |
2020 | end | |
2021 | if equipped==false then return end | |
2022 | if Mode=="Binary" then | |
2023 | if key=="q" then | |
2024 | idle=500 | |
2025 | end | |
2026 | if key=="z" and hitfloor~=nil then | |
2027 | BinarySwing() | |
2028 | end | |
2029 | if key=="x" then | |
2030 | BinaryImpulse() | |
2031 | end | |
2032 | if key=="c" then | |
2033 | Bash() | |
2034 | end | |
2035 | if key=="v" then | |
2036 | UnleashTheDemon() | |
2037 | end | |
2038 | end | |
2039 | if Mode=="Demon" then | |
2040 | if key=="x" then | |
2041 | LetItBuild() | |
2042 | end | |
2043 | if key=="c" then | |
2044 | YourMoveCreep() | |
2045 | end | |
2046 | end | |
2047 | if key=="0" then | |
2048 | Humanoid.WalkSpeed=(180) | |
2049 | end | |
2050 | end | |
2051 | ||
2052 | function key2(key) | |
2053 | if key=="0" then | |
2054 | Humanoid.WalkSpeed=16 | |
2055 | end | |
2056 | if key=="x" then | |
2057 | holdx=false | |
2058 | end | |
2059 | end | |
2060 | ||
2061 | function s(mouse) | |
2062 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
2063 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
2064 | mouse.KeyDown:connect(key) | |
2065 | mouse.KeyUp:connect(key2) | |
2066 | ||
2067 | player=Player | |
2068 | ch=Character | |
2069 | MMouse=mouse | |
2070 | end | |
2071 | ||
2072 | function ds(mouse) | |
2073 | end | |
2074 | ||
2075 | Bin.Selected:connect(s) | |
2076 | Bin.Deselected:connect(ds) | |
2077 | print("Fixer the Demon Mercenary loaded.") | |
2078 | ||
2079 | local thenum=0 | |
2080 | while true do | |
2081 | swait() | |
2082 | if Mode=="Demon" then | |
2083 | if thenum>=5 then | |
2084 | ElecEffect(prtd7.CFrame,2,4,2) | |
2085 | thenum=0 | |
2086 | end | |
2087 | thenum=thenum+1 | |
2088 | for _,c in pairs(Character:children()) do | |
2089 | for _,v in pairs(c:children()) do | |
2090 | if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then | |
2091 | if v.Name~="FixerVel" and v.Name~="FixerGyro" then | |
2092 | v.Parent=nil | |
2093 | end | |
2094 | end | |
2095 | end | |
2096 | end | |
2097 | end | |
2098 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2099 | local velderp=RootPart.Velocity.y | |
2100 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2101 | if equipped==true then | |
2102 | if Anim=="Idle" and attack==false and Mode=="Binary" then | |
2103 | idle=idle+1 | |
2104 | else | |
2105 | idle=0 | |
2106 | end | |
2107 | if idleanim>=0.3 then | |
2108 | idleanim2=true | |
2109 | elseif idleanim<=0 then | |
2110 | idleanim2=false | |
2111 | end | |
2112 | if idleanim2==false then | |
2113 | if Anim=="Walk" then | |
2114 | idleanim=idleanim+0.005 | |
2115 | elseif Anim=="Idle" then | |
2116 | idleanim=idleanim+0.003 | |
2117 | end | |
2118 | else | |
2119 | if Anim=="Walk" then | |
2120 | idleanim=idleanim-0.005 | |
2121 | elseif Anim=="Idle" then | |
2122 | idleanim=idleanim-0.003 | |
2123 | end | |
2124 | end | |
2125 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2126 | Anim="Jump" | |
2127 | if attack==false and Mode=="Binary" then | |
2128 | wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3) | |
2129 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3) | |
2130 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3) | |
2131 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3) | |
2132 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3) | |
2133 | RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2) | |
2134 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2) | |
2135 | end | |
2136 | if attack==false and Mode=="Demon" then | |
2137 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3) | |
2138 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3) | |
2139 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3) | |
2140 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3) | |
2141 | RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3) | |
2142 | LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3) | |
2143 | end | |
2144 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2145 | Anim="Fall" | |
2146 | if attack==false and Mode=="Binary" then | |
2147 | wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3) | |
2148 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3) | |
2149 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3) | |
2150 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3) | |
2151 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3) | |
2152 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2) | |
2153 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2) | |
2154 | end | |
2155 | if attack==false and Mode=="Demon" then | |
2156 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3) | |
2157 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3) | |
2158 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3) | |
2159 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3) | |
2160 | RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3) | |
2161 | LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3) | |
2162 | end | |
2163 | elseif torvel<1 and hitfloor~=nil then | |
2164 | if Anim=="Fall" then | |
2165 | if velderp<=-70 then | |
2166 | coroutine.resume(coroutine.create(function() | |
2167 | Stomp() | |
2168 | end)) | |
2169 | end | |
2170 | end | |
2171 | Anim="Idle" | |
2172 | if idle<=500 then | |
2173 | if attack==false and Mode=="Binary" then | |
2174 | wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3) | |
2175 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3) | |
2176 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3) | |
2177 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3) | |
2178 | LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3) | |
2179 | RH.C0=clerp(RH.C0,RHC0,.2) | |
2180 | LH.C0=clerp(LH.C0,LHC0,.2) | |
2181 | end | |
2182 | if attack==false and Mode=="Demon" then | |
2183 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3) | |
2184 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3) | |
2185 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3) | |
2186 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3) | |
2187 | RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3) | |
2188 | LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3) | |
2189 | end | |
2190 | else | |
2191 | if attack==false and Mode=="Binary" then | |
2192 | --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1) | |
2193 | wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1) | |
2194 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1) | |
2195 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1) | |
2196 | --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1) | |
2197 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1) | |
2198 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1) | |
2199 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15) | |
2200 | LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15) | |
2201 | end | |
2202 | end | |
2203 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
2204 | if Anim=="Fall" then | |
2205 | if velderp<=-70 then | |
2206 | coroutine.resume(coroutine.create(function() | |
2207 | Stomp() | |
2208 | end)) | |
2209 | end | |
2210 | end | |
2211 | Anim="Walk" | |
2212 | if attack==false and Mode=="Binary" then | |
2213 | wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2) | |
2214 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
2215 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2) | |
2216 | --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2) | |
2217 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2) | |
2218 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2) | |
2219 | RH.C0=clerp(RH.C0,RHC0,.3) | |
2220 | LH.C0=clerp(LH.C0,LHC0,.3) | |
2221 | end | |
2222 | if attack==false and Mode=="Demon" then | |
2223 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3) | |
2224 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3) | |
2225 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3) | |
2226 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3) | |
2227 | RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3) | |
2228 | LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3) | |
2229 | end | |
2230 | elseif torvel>=22 and hitfloor~=nil then | |
2231 | if Anim=="Fall" then | |
2232 | if velderp<=-70 then | |
2233 | coroutine.resume(coroutine.create(function() | |
2234 | Stomp() | |
2235 | end)) | |
2236 | end | |
2237 | end | |
2238 | Anim="Run" | |
2239 | if attack==false and Mode=="Binary" then | |
2240 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4) | |
2241 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4) | |
2242 | wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4) | |
2243 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4) | |
2244 | LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4) | |
2245 | RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3) | |
2246 | --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3) | |
2247 | LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3) | |
2248 | end | |
2249 | if attack==false and Mode=="Demon" then | |
2250 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3) | |
2251 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3) | |
2252 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3) | |
2253 | LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3) | |
2254 | RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3) | |
2255 | LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3) | |
2256 | end | |
2257 | end | |
2258 | end | |
2259 | if #Effects>0 then | |
2260 | --table.insert(Effects,{prt,"Block1",delay}) | |
2261 | for e=1,#Effects do | |
2262 | if Effects[e]~=nil then | |
2263 | --for j=1,#Effects[e] do | |
2264 | local Thing=Effects[e] | |
2265 | if Thing~=nil then | |
2266 | local Part=Thing[1] | |
2267 | local Mode=Thing[2] | |
2268 | local Delay=Thing[3] | |
2269 | local IncX=Thing[4] | |
2270 | local IncY=Thing[5] | |
2271 | local IncZ=Thing[6] | |
2272 | if Thing[1].Transparency<=1 then | |
2273 | if Thing[2]=="Block1" then | |
2274 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2275 | Mesh=Thing[1].Mesh | |
2276 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2277 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2278 | elseif Thing[2]=="Cylinder" then | |
2279 | Mesh=Thing[1].Mesh | |
2280 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2281 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2282 | elseif Thing[2]=="Blood" then | |
2283 | Mesh=Thing[1].Mesh | |
2284 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
2285 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2286 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2287 | elseif Thing[2]=="Elec" then | |
2288 | Mesh=Thing[1].Mesh | |
2289 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
2290 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2291 | elseif Thing[2]=="Disappear" then | |
2292 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2293 | end | |
2294 | else | |
2295 | Part.Parent=nil | |
2296 | table.remove(Effects,e) | |
2297 | end | |
2298 | end | |
2299 | --end | |
2300 | end | |
2301 | end | |
2302 | end | |
2303 | end |