SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | local RealPlayer = Player | |
4 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
5 | ||
6 | local Player = game:GetService("Players").SlobberyMist9 | |
7 | local Mouse,mouse,UserInputService,ContextActionService | |
8 | do | |
9 | script.Parent = Player.Character | |
10 | local CAS = {Actions={}} | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | Event.Parent = Player.Character | |
14 | local fakeEvent = function() | |
15 | local t = {_fakeEvent=true} | |
16 | t.Connect = function(self,f)self.Function=f end | |
17 | - | Player = game:GetService("Players").LocalPlayer |
17 | + | t.connect = t.Connect |
18 | return t | |
19 | end | |
20 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
21 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
22 | function CAS:BindAction(name,fun,touch,...) | |
23 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
24 | end | |
25 | function CAS:UnbindAction(name) | |
26 | CAS.Actions[name] = nil | |
27 | end | |
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 | Event.OnServerEvent:Connect(function(plr,io) | |
37 | if plr~=Player then return end | |
38 | if io.isMouse then | |
39 | m.Target = io.Target | |
40 | m.Hit = io.Hit | |
41 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
42 | if io.UserInputState == Enum.UserInputState.Begin then | |
43 | m:TrigEvent("Button1Down") | |
44 | else | |
45 | m:TrigEvent("Button1Up") | |
46 | end | |
47 | else | |
48 | for n,t in pairs(CAS.Actions) do | |
49 | for _,k in pairs(t.Keys) do | |
50 | if k==io.KeyCode then | |
51 | t.Function(t.Name,io.UserInputState,io) | |
52 | - | Mouse = Player:GetMouse() |
52 | + | end |
53 | end | |
54 | end | |
55 | if io.UserInputState == Enum.UserInputState.Begin then | |
56 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
57 | UIS:TrigEvent("InputBegan",io,false) | |
58 | else | |
59 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) | |
60 | UIS:TrigEvent("InputEnded",io,false) | |
61 | end | |
62 | end | |
63 | end) | |
64 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
65 | end | |
66 | ||
67 | --[[ | |
68 | ||
69 | ||
70 | --------------------------------------------------------------- | |
71 | Remake by: 123jl123 | |
72 | --------------------------------------------------------------- | |
73 | Script: Giga Vanta | |
74 | --------------------------------------------------------------- | |
75 | Type: Boss/Class | |
76 | --------------------------------------------------------------- | |
77 | ||
78 | ||
79 | ]] | |
80 | local intro = true | |
81 | local Removeface = true | |
82 | wait(0.016666666666666666) | |
83 | Player = game:GetService("Players").SlobberyMist9 | |
84 | Character = Player.Character | |
85 | char = Character | |
86 | torso = char.Torso | |
87 | hed = char.Head | |
88 | maincolor = BrickColor.new("Eggplant") | |
89 | PlayerGui = Player.PlayerGui | |
90 | Backpack = Player.Backpack | |
91 | Torso = Character.Torso | |
92 | Head = Character.Head | |
93 | Humanoid = Character.Humanoid | |
94 | LeftArm = Character["Left Arm"] | |
95 | LeftLeg = Character["Left Leg"] | |
96 | RightArm = Character["Right Arm"] | |
97 | RightLeg = Character["Right Leg"] | |
98 | LS = Torso["Left Shoulder"] | |
99 | LH = Torso["Left Hip"] | |
100 | RS = Torso["Right Shoulder"] | |
101 | RH = Torso["Right Hip"] | |
102 | Face = Head.face | |
103 | Neck = Torso.Neck | |
104 | it = Instance.new | |
105 | attacktype = 1 | |
106 | vt = Vector3.new | |
107 | cf = CFrame.new | |
108 | euler = CFrame.fromEulerAnglesXYZ | |
109 | angles = CFrame.Angles | |
110 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
111 | LHC1 = cf(-0.5, 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 | equipped = false | |
118 | - | local lp = game.Players.LocalPlayer |
118 | + | |
119 | local idle = 0 | |
120 | - | local mouseV2 = lp:GetMouse() |
120 | + | |
121 | local ShotTarget = RootPart | |
122 | player = nil | |
123 | local Stats = Instance.new("Folder", Character) | |
124 | Stats.Name = "Stats" | |
125 | local Defense = Instance.new("NumberValue", Stats) | |
126 | Defense.Name = "Defense" | |
127 | Defense.Value = 0.6 | |
128 | local Speed = Instance.new("NumberValue", Stats) | |
129 | Speed.Name = "Speed" | |
130 | Speed.Value = 1.6625 | |
131 | local Damage = Instance.new("NumberValue", Stats) | |
132 | Damage.Name = "Damage" | |
133 | Damage.Value = 1 | |
134 | local BlockValue = Instance.new("BoolValue", Stats) | |
135 | BlockValue.Name = "BlockValue" | |
136 | - | Music1 = New("Sound",Character,"Music",{SoundId = "rbxassetid://190845741",Volume = 2.5,Looped = true}) |
136 | + | |
137 | local StaggerHitAnim = Instance.new("BoolValue", Stats) | |
138 | StaggerHitAnim.Name = "StaggerHitAnim" | |
139 | StaggerHitAnim.Value = false | |
140 | local staghitanim = false | |
141 | local StaggerAnim = Instance.new("BoolValue", Stats) | |
142 | StaggerAnim.Name = "StaggerAnim" | |
143 | StaggerAnim.Value = false | |
144 | local staganim = false | |
145 | local StunAnim = Instance.new("BoolValue", Stats) | |
146 | StunAnim.Name = "StunAnim" | |
147 | StunAnim.Value = false | |
148 | local stunanim = false | |
149 | local StunValue = Instance.new("NumberValue", Stats) | |
150 | StunValue.Name = "StunValue" | |
151 | StunValue.Value = 0 | |
152 | local cooldown1 = 0 | |
153 | local cooldown2 = 0 | |
154 | local cooldown3 = 0 | |
155 | local cooldown4 = 0 | |
156 | local mana = 0 | |
157 | CustomColor = BrickColor.new("Really black") | |
158 | Colorpart1 = CustomColor.r | |
159 | Colorpart2 = CustomColor.g | |
160 | Colorpart3 = CustomColor.b | |
161 | local scrn = Instance.new("ScreenGui", PlayerGui) | |
162 | local ud = UDim2.new | |
163 | local c3 = Color3.new | |
164 | local skillcolorscheme = c3(1, 1, 1) | |
165 | local co1 = 0 | |
166 | local co2 = 0 | |
167 | local co3 = 0 | |
168 | local co4 = 0 | |
169 | local maxmana = 0 | |
170 | local maxstun = 1 | |
171 | local recovermana = 0 | |
172 | local losestun = 0 | |
173 | local stunwait = 0 | |
174 | local manawait = 0 | |
175 | local skill1mana = 0 | |
176 | local skill2mana = 0 | |
177 | local skill3mana = 0 | |
178 | local skill4mana = 0 | |
179 | local menuupdatespeed = 0 | |
180 | local constantupdate = false | |
181 | local showstats = false | |
182 | local showstunbar = false | |
183 | local lp = game.Players.SlobberyMist9 | |
184 | local chr = lp.Character | |
185 | local euler = CFrame.fromEulerAnglesXYZ | |
186 | local rad = math.rad | |
187 | local trso = chr.Torso | |
188 | script.Name = "Soul Of Darkness" | |
189 | ||
190 | ||
191 | New = function(Object, Parent, Name, Data) | |
192 | local Object = Instance.new(Object) | |
193 | for Index, Value in pairs(Data or {}) do | |
194 | Object[Index] = Value | |
195 | end | |
196 | Object.Parent = Parent | |
197 | Object.Name = Name | |
198 | return Object | |
199 | end | |
200 | Music1 = New("Sound",Character,"Music",{SoundId = "rbxassetid://965845438",Volume = 1,Looped = true}) | |
201 | Music1.Pitch = 1 | |
202 | ||
203 | Music2 = New("Sound",Torso,"Music",{SoundId = "rbxassetid://215931322",Volume = 2,Looped = false}) | |
204 | Music2.Pitch = 1.7 | |
205 | ||
206 | TalkSound = New("Sound",Torso,"Music",{SoundId = "rbxassetid://615716445",Volume = 4,Looped = false}) | |
207 | TalkSound.Pitch = .2 | |
208 | ||
209 | ||
210 | ||
211 | ||
212 | ||
213 | ||
214 | hum = chr.Humanoid | |
215 | ||
216 | ||
217 | function newface() | |
218 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=0" | |
219 | if Removeface == true then | |
220 | char.Head.face:Destroy() | |
221 | end | |
222 | local eye12 = Instance.new("Part") | |
223 | eye12.Parent = char | |
224 | eye12.Size = Vector3.new(0.2, 0.2, 0.2) | |
225 | eye12.Archivable = true | |
226 | eye12.Transparency = 0 | |
227 | eye12.Shape = "Ball" | |
228 | eye12.BrickColor = maincolor | |
229 | eye12.Material = "Neon" | |
230 | eye12.CanCollide = false | |
231 | local mesh2 = Instance.new("SpecialMesh",eye12) | |
232 | mesh2.MeshType = "Sphere" | |
233 | mesh2.Scale = Vector3.new(.6, 1.2, 1) | |
234 | local weld1en2 = Instance.new("Weld") | |
235 | weld1en2.Parent = char.Head | |
236 | weld1en2.Part0 = char.Head | |
237 | weld1en2.Part1 = eye12 | |
238 | weld1en2.C1 = CFrame.new(0.15, -0.15, 0.5175) | |
239 | local eye1 = Instance.new("Part") | |
240 | eye1.Parent = char | |
241 | eye1.Size = Vector3.new(0.2, 0.2, 0.2) | |
242 | eye1.Archivable = true | |
243 | eye1.Transparency = 0 | |
244 | eye1.Shape = "Ball" | |
245 | eye1.BrickColor = maincolor | |
246 | eye1.Material = "Neon" | |
247 | eye1.CanCollide = false | |
248 | local mesh = Instance.new("SpecialMesh",eye1) | |
249 | mesh.MeshType = "Sphere" | |
250 | mesh.Scale = Vector3.new(.6, 1.2, 1) | |
251 | local weld1en = Instance.new("Weld") | |
252 | weld1en.Parent = char.Head | |
253 | weld1en.Part0 = char.Head | |
254 | weld1en.Part1 = eye1 | |
255 | weld1en.C1 = CFrame.new(-0.15, -0.15, 0.5175) | |
256 | end | |
257 | ||
258 | ||
259 | ||
260 | function CreateMesh(parent, id, x, y, z, texture) | |
261 | local m=Instance.new("SpecialMesh", parent) | |
262 | m.MeshType = "FileMesh" | |
263 | m.MeshId="http://www.roblox.com/asset/?id="..id | |
264 | if texture ~= nil then | |
265 | m.TextureId="http://www.roblox.com/asset/?id="..texture | |
266 | end | |
267 | m.Scale = Vector3.new(x,y,z) | |
268 | end | |
269 | ||
270 | ||
271 | ||
272 | Hat=function() | |
273 | hat = Instance.new("Part", chr) | |
274 | hat.Transparency = 1 | |
275 | hat.Name = "Top hat" | |
276 | hat.Locked = true | |
277 | hat.BrickColor = BrickColor.new("Really black") | |
278 | hat.CanCollide=true | |
279 | hat.Size=Vector3.new(1,1,1) | |
280 | hatw = Instance.new("Weld",hat) | |
281 | hatw.Part0=hat | |
282 | hatw.Part1=chr['Head'] | |
283 | hatw.C0=CFrame.new(0,-1.7,0) | |
284 | hatw.C1=euler(rad(0),rad(0),rad(0)) | |
285 | end | |
286 | ||
287 | Hat() | |
288 | ||
289 | ||
290 | ||
291 | function Name(msg) | |
292 | if hat.Parent then | |
293 | pcall(function() | |
294 | local Gui = Instance.new('BillboardGui', hat) | |
295 | Gui.ExtentsOffset = Vector3.new(0,1.5,0) | |
296 | Gui.Size = UDim2.new(0,200,0,300) | |
297 | local Frame = Instance.new('Frame',Gui) | |
298 | Frame.BackgroundTransparency = 1 | |
299 | Frame.Size = UDim2.new(1,0,1,0) | |
300 | local Txt = Instance.new('TextLabel',Frame) | |
301 | Txt.BackgroundTransparency = 1 | |
302 | Txt.Size = UDim2.new(1,0,1,0) | |
303 | Txt.Font = 'ArialBold' | |
304 | Txt.FontSize = 'Size24' | |
305 | Txt.Text = msg | |
306 | Txt.TextColor3 = BrickColor.new("Really black").Color | |
307 | Txt.TextStrokeColor3 = Color3.new(1,0,0) | |
308 | Txt.TextStrokeTransparency = 0 | |
309 | Txt.TextWrapped = true | |
310 | Txt.TextScaled = false | |
311 | end) | |
312 | else | |
313 | end | |
314 | end | |
315 | ||
316 | function Chat(msg) -- Credit to jillmiles1, kthxbye | |
317 | if hat.Parent then | |
318 | pcall(function() | |
319 | if hat:FindFirstChild("Vanta Chat Gui") then | |
320 | hat['Vanta Chat Gui']:destroy() | |
321 | end | |
322 | local Gui = Instance.new('BillboardGui', hat) | |
323 | Gui.Name = "Vanta Chat Gui" | |
324 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
325 | Gui.Size = UDim2.new(0,200,0,300) | |
326 | local Frame = Instance.new('Frame',Gui) | |
327 | Frame.BackgroundTransparency = 1 | |
328 | Frame.Size = UDim2.new(1,0,1,0) | |
329 | local Txt = Instance.new('TextLabel',Frame) | |
330 | Txt.BackgroundTransparency = 1 | |
331 | Txt.Size = UDim2.new(1,0,1,0) | |
332 | Txt.Font = 'ArialBold' | |
333 | Txt.Name = "ChatGui" | |
334 | Txt.FontSize = 'Size24' | |
335 | Txt.Text = '' | |
336 | Txt.TextColor3 = BrickColor.new("Really black").Color | |
337 | Txt.TextStrokeColor3 = Color3.new(.2,0,.6) | |
338 | Txt.TextStrokeTransparency = .5 | |
339 | Txt.TextWrapped = true | |
340 | Txt.TextScaled = false | |
341 | ||
342 | delay(wait(),function() | |
343 | for v = 1, #msg do | |
344 | Txt.Text=string.sub(msg,1,v) | |
345 | TalkSound:Play() | |
346 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
347 | wait(.009) | |
348 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
349 | wait(.009) | |
350 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
351 | end; | |
352 | ||
353 | ||
354 | ||
355 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
356 | wait(.03) | |
357 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
358 | wait(.03) | |
359 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
360 | wait(.03) | |
361 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
362 | wait(.03) | |
363 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
364 | wait(.03) | |
365 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
366 | wait(.03) | |
367 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
368 | wait(.03) | |
369 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
370 | wait(.03) | |
371 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
372 | wait(.03) | |
373 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
374 | wait(.03) | |
375 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
376 | wait(.03) | |
377 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
378 | wait(.03) | |
379 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
380 | wait(.03) | |
381 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
382 | wait(.03) | |
383 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
384 | wait(.03) | |
385 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
386 | wait(.03) | |
387 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
388 | wait(.03) | |
389 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
390 | wait(.03) | |
391 | ||
392 | Txt.TextStrokeTransparency = .6 | |
393 | wait() | |
394 | Txt.TextStrokeTransparency = .7 | |
395 | wait() | |
396 | Txt.TextStrokeTransparency = .8 | |
397 | wait() | |
398 | Txt.TextStrokeTransparency = .9 | |
399 | wait() | |
400 | Txt.TextStrokeTransparency = 1 | |
401 | wait() | |
402 | ||
403 | for v = 1, #Txt.Text do | |
404 | Txt.Text=string.sub(msg,-1,v) | |
405 | ||
406 | ||
407 | ||
408 | ||
409 | ||
410 | ||
411 | ||
412 | end; | |
413 | Gui:remove() | |
414 | end) | |
415 | end) | |
416 | else | |
417 | end | |
418 | end | |
419 | ||
420 | ||
421 | ||
422 | ||
423 | function PlaySound(id, pitch, looped) | |
424 | epicsound = Instance.new("Sound") | |
425 | epicsound.Name = "FazbearSound" | |
426 | epicsound.SoundId = "rbxassetid://"..id | |
427 | epicsound.Volume = 1.5 | |
428 | epicsound.Pitch = pitch | |
429 | if looped == nil then | |
430 | looped = true | |
431 | else | |
432 | looped = looped | |
433 | end | |
434 | wait() | |
435 | epicsound.Looped = looped | |
436 | epicsound.Parent = workspace | |
437 | es=epicsound:clone() | |
438 | es:Stop() | |
439 | es.Parent = chr | |
440 | wait() | |
441 | es:Play() | |
442 | end | |
443 | ||
444 | ||
445 | ||
446 | ||
447 | lp.Chatted:connect(function(msg) | |
448 | Chat(msg) | |
449 | end) | |
450 | ||
451 | goldie=true | |
452 | ||
453 | ||
454 | function StopMusic() | |
455 | if chr:FindFirstChild("FazbearSound") then | |
456 | if chr.FazbearSound.ClassName == "Sound" then | |
457 | chr.FazbearSound:Stop() | |
458 | wait() | |
459 | chr.FazbearSound:Destroy() | |
460 | end | |
461 | end | |
462 | end | |
463 | ||
464 | Name("") | |
465 | ||
466 | ||
467 | mouseV2.KeyDown:connect(function(key) | |
468 | if key == "g" then | |
469 | if goldie==false then | |
470 | goldie=true | |
471 | ||
472 | elseif goldie==true then | |
473 | goldie=false | |
474 | ||
475 | end | |
476 | elseif key == "q" then -- Plays a song | |
477 | StopMusic() | |
478 | PlaySound(449394841, 0.8, false) | |
479 | elseif key == "e" then -- Plays a song | |
480 | StopMusic() | |
481 | PlaySound(449394892, 0.8, false) | |
482 | wait(2.4) | |
483 | StopMusic() | |
484 | elseif key == "t" then -- Stops any sound(s) playing from your torso | |
485 | StopMusic() | |
486 | ||
487 | end | |
488 | end) | |
489 | ||
490 | ||
491 | ||
492 | hum.Died:connect(function() | |
493 | es.Pitch = 10 | |
494 | wait() | |
495 | es:Pause() | |
496 | es:Stop() | |
497 | es.Name = "Ded" | |
498 | wait() | |
499 | es:Destroy() | |
500 | end) | |
501 | ||
502 | ||
503 | ||
504 | ||
505 | ||
506 | ||
507 | function makeframe(par, trans, pos, size, color, name) | |
508 | local frame = Instance.new("Frame") | |
509 | frame.Parent = par | |
510 | frame.BackgroundTransparency = trans | |
511 | frame.BorderSizePixel = 0 | |
512 | frame.Position = pos | |
513 | frame.Size = size | |
514 | frame.BackgroundColor3 = color | |
515 | frame.Name = name | |
516 | return frame | |
517 | end | |
518 | function makelabel(par, text, trans, stroketrans, name) | |
519 | local label = Instance.new("TextLabel") | |
520 | label.Parent = par | |
521 | label.BackgroundTransparency = 1 | |
522 | label.Size = ud(1, 0, 1, 0) | |
523 | label.Position = ud(0, 0, 0, 0) | |
524 | label.TextColor3 = c3(255, 255, 255) | |
525 | label.TextStrokeTransparency = stroketrans | |
526 | label.TextTransparency = trans | |
527 | label.FontSize = Enum.FontSize.Size32 | |
528 | label.Font = Enum.Font.Legacy | |
529 | label.BorderSizePixel = 0 | |
530 | label.TextScaled = true | |
531 | label.Text = text | |
532 | label.Name = name | |
533 | return label | |
534 | end | |
535 | framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 1") | |
536 | framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 2") | |
537 | framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 3") | |
538 | framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 4") | |
539 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 1") | |
540 | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 2") | |
541 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 3") | |
542 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 4") | |
543 | text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1") | |
544 | text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2") | |
545 | text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3") | |
546 | text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4") | |
547 | manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar") | |
548 | manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover") | |
549 | manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text") | |
550 | healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Bar") | |
551 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover") | |
552 | healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text") | |
553 | if showstunbar == true then | |
554 | stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137254902), "Stun Frame") | |
555 | stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar") | |
556 | stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text") | |
557 | end | |
558 | if showstats == true then | |
559 | defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 0.39215686274509803, 1), "Defense Frame") | |
560 | damageframe = makeframe(scrn, 0.5, ud(0.322, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.39215686274509803, 0.39215686274509803), "Damage Frame") | |
561 | speedframe = makeframe(scrn, 0.5, ud(0.4145, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 1, 0.39215686274509803), "Speed Frame") | |
562 | defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text") | |
563 | damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text") | |
564 | speedtext = makelabel(speedframe, "Speed: " .. Speed.Value, 1, 1, "Speed Text") | |
565 | end | |
566 | function NoOutline(Part) | |
567 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
568 | end | |
569 | local weldBetween = function(a, b) | |
570 | local weldd = Instance.new("ManualWeld") | |
571 | weldd.Part0 = a | |
572 | weldd.Part1 = b | |
573 | weldd.C0 = CFrame.new() | |
574 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
575 | weldd.Parent = a | |
576 | return weldd | |
577 | end | |
578 | ArtificialHeartbeat = Instance.new("BindableEvent", script) | |
579 | ArtificialHeartbeat.Name = "ArtificialHeartbeat" | |
580 | script:WaitForChild("ArtificialHeartbeat") | |
581 | frame = 0.016666666666666666 | |
582 | tf = 0 | |
583 | allowframeloss = false | |
584 | tossremainder = false | |
585 | lastframe = tick() | |
586 | script.ArtificialHeartbeat:Fire() | |
587 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
588 | tf = tf + s | |
589 | if tf >= frame then | |
590 | if allowframeloss then | |
591 | script.ArtificialHeartbeat:Fire() | |
592 | lastframe = tick() | |
593 | else | |
594 | for i = 1, math.floor(tf / frame) do | |
595 | script.ArtificialHeartbeat:Fire() | |
596 | end | |
597 | lastframe = tick() | |
598 | end | |
599 | if tossremainder then | |
600 | tf = 0 | |
601 | else | |
602 | tf = tf - frame * math.floor(tf / frame) | |
603 | end | |
604 | end | |
605 | end) | |
606 | function nooutline(part) | |
607 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
608 | end | |
609 | function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
610 | local fp = it("Part") | |
611 | fp.formFactor = formfactor | |
612 | fp.Parent = parent | |
613 | fp.Reflectance = reflectance | |
614 | fp.Transparency = transparency | |
615 | fp.CanCollide = false | |
616 | fp.Locked = true | |
617 | fp.BrickColor = BrickColor.new(tostring(brickcolor)) | |
618 | fp.Name = name | |
619 | fp.Size = size | |
620 | fp.Position = Character.Torso.Position | |
621 | nooutline(fp) | |
622 | fp.Material = material | |
623 | fp:BreakJoints() | |
624 | return fp | |
625 | end | |
626 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
627 | local mesh = it(Mesh) | |
628 | mesh.Parent = part | |
629 | if Mesh == "SpecialMesh" then | |
630 | mesh.MeshType = meshtype | |
631 | mesh.MeshId = meshid | |
632 | end | |
633 | mesh.Offset = offset | |
634 | mesh.Scale = scale | |
635 | return mesh | |
636 | end | |
637 | function weld(parent, part0, part1, c0, c1) | |
638 | local weld = it("Weld") | |
639 | weld.Parent = parent | |
640 | weld.Part0 = part0 | |
641 | weld.Part1 = part1 | |
642 | weld.C0 = c0 | |
643 | weld.C1 = c1 | |
644 | return weld | |
645 | end | |
646 | Humanoid.CameraOffset = vt(0, 12, 0) | |
647 | Humanoid.JumpPower = Humanoid.JumpPower * 2 | |
648 | coroutine.resume(coroutine.create(function() | |
649 | Humanoid.MaxHealth = 50000 | |
650 | wait(0.1) | |
651 | Humanoid.Health = Humanoid.MaxHealth | |
652 | end)) | |
653 | m = Instance.new("Model", Character) | |
654 | m.Name = "Outer Being" | |
655 | healthscript = Character:FindFirstChild("Health") | |
656 | if healthscript ~= nil then | |
657 | healthscript:Destroy() | |
658 | end | |
659 | Effects = Instance.new("Folder", m) | |
660 | Effects.Name = "Effects" | |
661 | local outerbeingtransparency = 1 | |
662 | local head2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "Head2", vt(0, 0, 0))head2.Material = "Neon" | |
663 | local head2mesh = mesh("SpecialMesh", head2, "Head", "", vt(0, 0, 0), vt(62.5, 31.25, 31.25)*4) | |
664 | local torso2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "Torso2", vt(0, 0, 0))torso2.Material = "Neon" | |
665 | local torso2mesh = mesh("BlockMesh", torso2, "", "", vt(0, 0, 0), vt(50, 50, 25)*4) | |
666 | local leftarm2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "LeftArm2", vt(0, 0, 0))leftarm2.Material = "Neon" | |
667 | local leftarm2mesh = mesh("BlockMesh", leftarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4) | |
668 | local rightarm2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "RightArm2", vt(0, 0, 0))rightarm2.Material = "Neon" | |
669 | local rightarm2mesh = mesh("BlockMesh", rightarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4) | |
670 | local leftleg2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "LeftLeg2", vt(0, 0, 0))leftleg2.Material = "Neon" | |
671 | local leftleg2mesh = mesh("BlockMesh", leftleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4) | |
672 | local rightleg2 = part(0, m, "Neon", 0, outerbeingtransparency, CustomColor, "RightLeg2", vt(0, 0, 0))rightleg2.Material = "Neon" | |
673 | ||
674 | local rightleg2mesh = mesh("BlockMesh", rightleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)*4) | |
675 | head2.CFrame = Head.CFrame | |
676 | torso2.CFrame = Head.CFrame | |
677 | leftarm2.CFrame = Head.CFrame | |
678 | rightarm2.CFrame = Head.CFrame | |
679 | leftleg2.CFrame = Head.CFrame | |
680 | rightleg2.CFrame = Head.CFrame | |
681 | local head2weld = weld(m, Torso, head2, cf(0, 0, 0), cf(0, 0, 0)) | |
682 | local torso2weld = weld(m, Torso, torso2, cf(0, 0, 0), cf(0, 0, 0)) | |
683 | local leftarm2weld = weld(m, Torso, leftarm2, cf(0, 0, 0), cf(0, 0, 0)) | |
684 | local rightarm2weld = weld(m, Torso, rightarm2, cf(0, 0, 0), cf(0, 0, 0)) | |
685 | local leftleg2weld = weld(m, Torso, leftleg2, cf(0, 0, 0), cf(0, 0, 0)) | |
686 | local rightleg2weld = weld(m, Torso, rightleg2, cf(0, 0, 0), cf(0, 0, 0)) | |
687 | head2weld.C1 = cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0) | |
688 | torso2weld.C1 = cf(0, 0, 0) | |
689 | rightarm2weld.C1 = cf(0, 2.5, -0.5) | |
690 | leftarm2weld.C1 = cf(0, 2.5, -0.5) | |
691 | rightleg2weld.C1 = cf(0, 5, 0) | |
692 | leftleg2weld.C1 = cf(0, 5, 0) | |
693 | coroutine.resume(coroutine.create(function() | |
694 | while Humanoid.Health ~= 0 do | |
695 | ArtificialHeartbeat.Event:wait() | |
696 | head2weld.C0 = cf(0, 4, 0) * Neck.C0 | |
697 | torso2weld.C0 = cf(0, 0, 0) | |
698 | rightarm2weld.C0 = cf(6, 2, 0) * RW.C0 | |
699 | leftarm2weld.C0 = cf(-6, 2, 0) * LW.C0 | |
700 | rightleg2weld.C0 = cf(1.5, -4, 0) * RH.C0 | |
701 | leftleg2weld.C0 = cf(-1.5, -4, 0) * LH.C0 | |
702 | head2.Transparency = outerbeingtransparency | |
703 | torso2.Transparency = outerbeingtransparency | |
704 | leftarm2.Transparency = outerbeingtransparency | |
705 | rightarm2.Transparency = outerbeingtransparency | |
706 | leftleg2.Transparency = outerbeingtransparency | |
707 | rightleg2.Transparency = outerbeingtransparency | |
708 | end | |
709 | end)) | |
710 | Humanoid.Died:connect(function() | |
711 | end) | |
712 | for i, v in pairs(Character:GetChildren()) do | |
713 | if v:IsA("Model") then | |
714 | for _, c in pairs(v:GetChildren()) do | |
715 | if c:IsA("Part") then | |
716 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
717 | end | |
718 | end | |
719 | end | |
720 | end | |
721 | tran = 0 | |
722 | for i,v in pairs(Character:GetChildren()) do | |
723 | if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then | |
724 | Glow1 = Color3.new(.1,0,.6) | |
725 | Glow2 = Color3.new(0,0,0) | |
726 | ||
727 | GlowParticle = Instance.new("ParticleEmitter",v) | |
728 | GlowParticle.LightEmission = 1 | |
729 | GlowParticle.Color = ColorSequence.new(Glow1,Glow2) | |
730 | GlowParticle.Size = NumberSequence.new(0,2) | |
731 | ||
732 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=467188845" | |
733 | GlowParticle.Transparency = NumberSequence.new(tran,1) | |
734 | GlowParticle.LockedToPart = true | |
735 | GlowParticle.Lifetime = NumberRange.new(0.5) | |
736 | GlowParticle.Rate= 300 | |
737 | GlowParticle.Speed =NumberRange.new(0) | |
738 | end end | |
739 | print([[ | |
740 | Vanta loaded. | |
741 | Unleash your power on your enemies.]]) | |
742 | function so(id, par, vol, pit) | |
743 | coroutine.resume(coroutine.create(function() | |
744 | local sou = Instance.new("Sound", par or workspace) | |
745 | sou.Volume = vol | |
746 | sou.Pitch = pit or 1 | |
747 | sou.SoundId = id | |
748 | ArtificialHeartbeat.Event:wait() | |
749 | sou:play() | |
750 | game:GetService("Debris"):AddItem(sou, 6) | |
751 | end)) | |
752 | end | |
753 | function clerp(a, b, t) | |
754 | local qa = { | |
755 | QuaternionFromCFrame(a) | |
756 | } | |
757 | local qb = { | |
758 | QuaternionFromCFrame(b) | |
759 | } | |
760 | local ax, ay, az = a.x, a.y, a.z | |
761 | local bx, by, bz = b.x, b.y, b.z | |
762 | local _t = 1 - t | |
763 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
764 | end | |
765 | function QuaternionFromCFrame(cf) | |
766 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
767 | local trace = m00 + m11 + m22 | |
768 | if trace > 0 then | |
769 | local s = math.sqrt(1 + trace) | |
770 | local recip = 0.5 / s | |
771 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
772 | else | |
773 | local i = 0 | |
774 | if m00 < m11 then | |
775 | i = 1 | |
776 | end | |
777 | if m22 > (i == 0 and m00 or m11) then | |
778 | i = 2 | |
779 | end | |
780 | if i == 0 then | |
781 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
782 | local recip = 0.5 / s | |
783 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
784 | elseif i == 1 then | |
785 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
786 | local recip = 0.5 / s | |
787 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
788 | elseif i == 2 then | |
789 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
790 | local recip = 0.5 / s | |
791 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
792 | end | |
793 | end | |
794 | end | |
795 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
796 | local xs, ys, zs = x + x, y + y, z + z | |
797 | local wx, wy, wz = w * xs, w * ys, w * zs | |
798 | local xx = x * xs | |
799 | local xy = x * ys | |
800 | local xz = x * zs | |
801 | local yy = y * ys | |
802 | local yz = y * zs | |
803 | local zz = z * zs | |
804 | 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)) | |
805 | end | |
806 | function QuaternionSlerp(a, b, t) | |
807 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
808 | local startInterp, finishInterp | |
809 | if cosTheta >= 1.0E-4 then | |
810 | if 1 - cosTheta > 1.0E-4 then | |
811 | local theta = math.acos(cosTheta) | |
812 | local invSinTheta = 1 / math.sin(theta) | |
813 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
814 | finishInterp = math.sin(t * theta) * invSinTheta | |
815 | else | |
816 | startInterp = 1 - t | |
817 | finishInterp = t | |
818 | end | |
819 | elseif 1 + cosTheta > 1.0E-4 then | |
820 | local theta = math.acos(-cosTheta) | |
821 | local invSinTheta = 1 / math.sin(theta) | |
822 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
823 | finishInterp = math.sin(t * theta) * invSinTheta | |
824 | else | |
825 | startInterp = t - 1 | |
826 | finishInterp = t | |
827 | end | |
828 | 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 | |
829 | end | |
830 | function rayCast(Pos, Dir, Max, Ignore) | |
831 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
832 | end | |
833 | function makegui(cframe, text, color) | |
834 | local c = Instance.new("Part") | |
835 | c.Size = vt(0.2, 0.2, 0.2) | |
836 | c.Transparency = 1 | |
837 | Instance.new("BodyGyro").Parent = c | |
838 | c.Parent = Effects | |
839 | c.CFrame = cf(cframe.p + vt(0, 1.5, 0)) | |
840 | local f = Instance.new("BodyPosition") | |
841 | f.P = 2000 | |
842 | f.D = 100 | |
843 | f.maxForce = vt(math.huge, math.huge, math.huge) | |
844 | f.position = c.Position + vt(0, 6, 0) | |
845 | f.Parent = c | |
846 | game:GetService("Debris"):AddItem(c, 5) | |
847 | c.CanCollide = false | |
848 | c.Parent = workspace | |
849 | c.CanCollide = false | |
850 | local bg = Instance.new("BillboardGui", c) | |
851 | bg.Adornee = c | |
852 | bg.Size = UDim2.new(2.5, 0, 2.5, 0) | |
853 | bg.StudsOffset = vt(-2, 2, 0) | |
854 | bg.AlwaysOnTop = false | |
855 | local tl = Instance.new("TextLabel", bg) | |
856 | tl.BackgroundTransparency = 1 | |
857 | tl.Size = UDim2.new(2.5, 0, 2.5, 0) | |
858 | tl.Text = text | |
859 | tl.Font = Enum.Font.SourceSans | |
860 | tl.FontSize = Enum.FontSize.Size42 | |
861 | tl.TextColor3 = color | |
862 | tl.TextScaled = false | |
863 | tl.TextStrokeTransparency = 0 | |
864 | tl.TextScaled = true | |
865 | tl.TextWrapped = true | |
866 | f.Parent = c | |
867 | coroutine.resume(coroutine.create(function() | |
868 | wait(0.25) | |
869 | for i = 1, 5 do | |
870 | ArtificialHeartbeat.Event:wait() | |
871 | f.position = c.Position - vt(0, 0.5, 0) | |
872 | end | |
873 | end)) | |
874 | coroutine.resume(coroutine.create(function() | |
875 | wait(2) | |
876 | for i = 1, 10 do | |
877 | ArtificialHeartbeat.Event:wait() | |
878 | tl.TextTransparency = tl.TextTransparency + 0.1 | |
879 | tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1 | |
880 | f.position = c.Position + vt(0, 0.5, 0) | |
881 | end | |
882 | c.Parent = nil | |
883 | end)) | |
884 | end | |
885 | local CritChance = Instance.new("NumberValue", Stats) | |
886 | CritChance.Name = "CritChance" | |
887 | CritChance.Value = 1 | |
888 | local critchancenumber = 50 | |
889 | local cancrit = false | |
890 | local canpenetratearmor = false | |
891 | local cancollidewithhitbox = false | |
892 | local sethitblockvaluetofalse = true | |
893 | local antiteamkill = false | |
894 | local HitPlayerSounds = { | |
895 | 199149137, | |
896 | 199149186, | |
897 | 199149221, | |
898 | 199149235, | |
899 | 199149269, | |
900 | 199149297 | |
901 | } | |
902 | local HitArmorSounds = { | |
903 | 199149321, | |
904 | 199149338, | |
905 | 199149367, | |
906 | 199149409, | |
907 | 199149452 | |
908 | } | |
909 | local HitWeaponSounds = { | |
910 | 199148971, | |
911 | 199149025, | |
912 | 199149072, | |
913 | 199149109, | |
914 | 199149119 | |
915 | } | |
916 | local HitBlockSounds = {199148933, 199148947} | |
917 | function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
918 | if hit.Parent == nil then | |
919 | return | |
920 | end | |
921 | h = hit.Parent:FindFirstChild("Humanoid") | |
922 | for _, v in pairs(hit.Parent:children()) do | |
923 | if v:IsA("Humanoid") then | |
924 | h = v | |
925 | end | |
926 | end | |
927 | if antiteamkill == true then | |
928 | if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then | |
929 | opponent = game.Players:FindFirstChild(hit.Parent.Name) | |
930 | end | |
931 | if opponent ~= nil and opponent.TeamColor == Player.TeamColor then | |
932 | return | |
933 | end | |
934 | end | |
935 | if hit.Name == "Hitbox" and hit:FindFirstChild("TouchInterest") ~= nil then | |
936 | StaggerHitAnim.Value = true | |
937 | so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1) | |
938 | return | |
939 | end | |
940 | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then | |
941 | h = hit.Parent.Parent:FindFirstChild("Humanoid") | |
942 | end | |
943 | if hit.Parent.className == "Hat" then | |
944 | hit = hit.Parent.Parent:findFirstChild("Head") | |
945 | end | |
946 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
947 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
948 | return | |
949 | end | |
950 | if hit.Parent:findFirstChild("Stats") ~= nil then | |
951 | if hit.Parent.Stats:findFirstChild("StunValue") ~= nil then | |
952 | hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun | |
953 | end | |
954 | elseif hit.Parent:findFirstChild("StunValue") ~= nil then | |
955 | hit.Parent:findFirstChild("StunValue").Value = hit.Parent:findFirstChild("StunValue").Value + incstun | |
956 | end | |
957 | if hit.Parent:findFirstChild("StaggerAnim") ~= nil and stagger == true then | |
958 | hit.Parent:findFirstChild("StaggerAnim").Value = true | |
959 | end | |
960 | if hit.Parent:findFirstChild("Stats") ~= nil then | |
961 | if hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then | |
962 | makegui(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1)) | |
963 | so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1) | |
964 | if ranged ~= true then | |
965 | if sethitblockvaluetofalse == true then | |
966 | hit.Parent.Stats:findFirstChild("BlockValue").Value = false | |
967 | end | |
968 | StaggerAnim.Value = true | |
969 | end | |
970 | return | |
971 | end | |
972 | elseif hit.Parent:findFirstChild("BlockValue") ~= nil and hit.Parent:findFirstChild("BlockValue").Value == true then | |
973 | makegui(Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1)) | |
974 | so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1) | |
975 | if ranged ~= true then | |
976 | if sethitblockvaluetofalse == true then | |
977 | hit.Parent:findFirstChild("BlockValue").Value = false | |
978 | end | |
979 | StaggerAnim.Value = true | |
980 | end | |
981 | return | |
982 | end | |
983 | local D = math.random(minim, maxim) * Damage.Value | |
984 | if hit.Parent:FindFirstChild("Stats") ~= nil then | |
985 | if hit.Parent.Stats:FindFirstChild("Defense") then | |
986 | if canpenetratearmor == true then | |
987 | else | |
988 | D = D / hit.Parent.Stats:FindFirstChild("Defense").Value | |
989 | end | |
990 | elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then | |
991 | end | |
992 | elseif hit.Parent:FindFirstChild("Defense") then | |
993 | if canpenetratearmor == true then | |
994 | else | |
995 | D = D / hit.Parent:FindFirstChild("Defense").Value | |
996 | end | |
997 | elseif hit.Parent:FindFirstChild("Defense") == nil then | |
998 | end | |
999 | if cancrit == true then | |
1000 | CritChance.Value = math.random(1, critchancenumber) | |
1001 | if CritChance.Value == critchancenumber then | |
1002 | D = D * 2 | |
1003 | end | |
1004 | end | |
1005 | h.Health = h.Health - D | |
1006 | if D <= 3 and staghit == true then | |
1007 | if ranged ~= true then | |
1008 | StaggerHitAnim.Value = true | |
1009 | end | |
1010 | so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1) | |
1011 | elseif D > 3 and ranged ~= true then | |
1012 | so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1) | |
1013 | end | |
1014 | if D > 2 and D < 20 then | |
1015 | if CritChance.Value == critchancenumber then | |
1016 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
1017 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1) | |
1018 | else | |
1019 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0.8627450980392157, 0)) | |
1020 | end | |
1021 | elseif D >= 20 then | |
1022 | if CritChance.Value == critchancenumber then | |
1023 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
1024 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1) | |
1025 | else | |
1026 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0)) | |
1027 | end | |
1028 | else | |
1029 | if D <= 2 then | |
1030 | if CritChance.Value == critchancenumber then | |
1031 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
1032 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1) | |
1033 | else | |
1034 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706)) | |
1035 | end | |
1036 | else | |
1037 | end | |
1038 | end | |
1039 | if Type == "Normal" then | |
1040 | vp = Instance.new("BodyVelocity") | |
1041 | vp.P = 500 | |
1042 | vp.maxForce = vt(math.huge, 0, math.huge) | |
1043 | if KnockbackType == 1 then | |
1044 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1045 | elseif KnockbackType == 2 then | |
1046 | vp.velocity = Property.CFrame.lookVector * knockback | |
1047 | end | |
1048 | if knockback > 0 then | |
1049 | vp.Parent = hit.Parent.Torso | |
1050 | end | |
1051 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1052 | end | |
1053 | debounce = Instance.new("BoolValue") | |
1054 | debounce.Name = "DebounceHit" | |
1055 | debounce.Parent = hit.Parent | |
1056 | - | Damagefunc(head, mindam, maxdam, knock, Type, RootPart, Delay, KnockbackType, incstun, stagger, staghit, ranged) |
1056 | + | |
1057 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1058 | c = Instance.new("ObjectValue") | |
1059 | c.Name = "creator" | |
1060 | c.Value = Player | |
1061 | c.Parent = h | |
1062 | game:GetService("Debris"):AddItem(c, 0.5) | |
1063 | end | |
1064 | end | |
1065 | function DecreaseStat(Location, CFrame, Stat, Amount, Duration, ShowDebuff) | |
1066 | if Location[Stat] ~= nil then | |
1067 | Location[Stat].Value = Location[Stat].Value - Amount | |
1068 | if ShowDebuff == true then | |
1069 | if Location[Stat].Name == "Defense" then | |
1070 | makegui(CFrame, "-Defense", c3(1, 1, 1)) | |
1071 | elseif Location[Stat].Name == "Damage" then | |
1072 | makegui(CFrame, "-Damage", c3(1, 1, 1)) | |
1073 | elseif Location[Stat].Name == "Speed" then | |
1074 | makegui(CFrame, "-Movement", c3(1, 1, 1)) | |
1075 | end | |
1076 | end | |
1077 | coroutine.resume(coroutine.create(function() | |
1078 | wait(Duration) | |
1079 | Location[Stat].Value = Location[Stat].Value + Amount | |
1080 | end)) | |
1081 | end | |
1082 | end | |
1083 | function IncreaseStat(Location, CFrame, Stat, Amount, Duration, ShowBuff) | |
1084 | if Location[Stat] ~= nil then | |
1085 | Location[Stat].Value = Location[Stat].Value + Amount | |
1086 | if ShowBuff == true then | |
1087 | if Location[Stat].Name == "Defense" then | |
1088 | makegui(CFrame, "+Defense", c3(1, 1, 1)) | |
1089 | elseif Location[Stat].Name == "Damage" then | |
1090 | makegui(CFrame, "+Damage", c3(1, 1, 1)) | |
1091 | elseif Location[Stat].Name == "Speed" then | |
1092 | makegui(CFrame, "+Movement", c3(1, 1, 1)) | |
1093 | end | |
1094 | end | |
1095 | coroutine.resume(coroutine.create(function() | |
1096 | wait(Duration) | |
1097 | Location[Stat].Value = Location[Stat].Value - Amount | |
1098 | end)) | |
1099 | end | |
1100 | end | |
1101 | function GetDist(Part1, Part2, magni) | |
1102 | local targ = Part1.Position - Part2.Position | |
1103 | local mag = targ.magnitude | |
1104 | if magni >= mag then | |
1105 | return true | |
1106 | else | |
1107 | return false | |
1108 | end | |
1109 | end | |
1110 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
1111 | for _, c in pairs(workspace:children()) do | |
1112 | local hum = c:findFirstChild("Humanoid") | |
1113 | if hum ~= nil then | |
1114 | local head = c:findFirstChild("Torso") | |
1115 | if head ~= nil then | |
1116 | local targ = head.Position - Part.Position | |
1117 | local mag = targ.magnitude | |
1118 | if magni >= mag and c.Name ~= Player.Name then | |
1119 | Damagefunc(head, torso, mindam, maxdam, knock, Type, RootPart, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
1120 | end | |
1121 | end | |
1122 | end | |
1123 | end | |
1124 | end | |
1125 | function Lightning(p0, p1, tym, ofs, brickcolor, th, tra, last) | |
1126 | local magz = (p0 - p1).magnitude | |
1127 | local curpos = p0 | |
1128 | local trz = { | |
1129 | -ofs, | |
1130 | ofs | |
1131 | } | |
1132 | for i = 1, tym do | |
1133 | do | |
1134 | local li = Instance.new("Part", workspace) | |
1135 | li.TopSurface = 0 | |
1136 | li.BottomSurface = 0 | |
1137 | li.Anchored = true | |
1138 | li.Transparency = tra or 0.4 | |
1139 | li.BrickColor = brickcolor | |
1140 | li.formFactor = "Custom" | |
1141 | li.CanCollide = false | |
1142 | li.Size = vt(th, th, magz / tym) | |
1143 | local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
1144 | local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz | |
1145 | if tym == i then | |
1146 | local magz2 = (curpos - p1).magnitude | |
1147 | li.Size = vt(th, th, magz2)*4 | |
1148 | li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2) | |
1149 | else | |
1150 | li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2) | |
1151 | end | |
1152 | curpos = li.CFrame * cf(0, 0, magz / tym / 2).p | |
1153 | game.Debris:AddItem(li, last) | |
1154 | coroutine.resume(coroutine.create(function() | |
1155 | while li.Transparency ~= 1 do | |
1156 | for i = 0, 1, last do | |
1157 | ArtificialHeartbeat.Event:wait() | |
1158 | li.Transparency = li.Transparency + 0.1 / last | |
1159 | end | |
1160 | end | |
1161 | end)) | |
1162 | end | |
1163 | end | |
1164 | end | |
1165 | function MagicRing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1166 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
1167 | prt.Anchored = true | |
1168 | prt.CFrame = cframe | |
1169 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1)) | |
1170 | game:GetService("Debris"):AddItem(prt, 10) | |
1171 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1172 | for i = 0, 1, delay do | |
1173 | ArtificialHeartbeat.Event:wait() | |
1174 | Part.CFrame = Part.CFrame | |
1175 | Part.Transparency = i | |
1176 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1177 | end | |
1178 | Part.Parent = nil | |
1179 | end), prt, msh) | |
1180 | end | |
1181 | function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1182 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
1183 | prt.Anchored = true | |
1184 | prt.CFrame = cframe | |
1185 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
1186 | game:GetService("Debris"):AddItem(prt, 10) | |
1187 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1188 | for i = 0, 1, delay do | |
1189 | ArtificialHeartbeat.Event:wait() | |
1190 | Part.CFrame = Part.CFrame | |
1191 | Part.Transparency = i | |
1192 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1193 | end | |
1194 | Part.Parent = nil | |
1195 | end), prt, msh) | |
1196 | end | |
1197 | function MagicBlock(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1198 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
1199 | prt.Anchored = true | |
1200 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1201 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4) | |
1202 | game:GetService("Debris"):AddItem(prt, 10) | |
1203 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1204 | for i = 0, 1, delay do | |
1205 | ArtificialHeartbeat.Event:wait() | |
1206 | if rotate == true then | |
1207 | Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1208 | else | |
1209 | end | |
1210 | Part.Transparency = i | |
1211 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1212 | end | |
1213 | Part.Parent = nil | |
1214 | end), prt, msh) | |
1215 | end | |
1216 | function MagicBlock2(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1217 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
1218 | prt.Anchored = true | |
1219 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1220 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4) | |
1221 | game:GetService("Debris"):AddItem(prt, 10) | |
1222 | CF = prt.CFrame | |
1223 | num = math.random(5, 20) | |
1224 | coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num) | |
1225 | for i = 0, 1, delay do | |
1226 | ArtificialHeartbeat.Event:wait() | |
1227 | if rotate == true then | |
1228 | Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1229 | else | |
1230 | Part.CFrame = CF2 * cf(0, i * Num, 0) | |
1231 | end | |
1232 | Part.Transparency = i | |
1233 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1234 | end | |
1235 | Part.Parent = nil | |
1236 | end), prt, msh, CF, num) | |
1237 | end | |
1238 | function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1239 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
1240 | prt.Anchored = true | |
1241 | prt.CFrame = cframe | |
1242 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)*4) | |
1243 | game:GetService("Debris"):AddItem(prt, 10) | |
1244 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1245 | for i = 0, 1, delay do | |
1246 | ArtificialHeartbeat.Event:wait() | |
1247 | Part.Transparency = i | |
1248 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1249 | end | |
1250 | Part.Parent = nil | |
1251 | end), prt, msh) | |
1252 | end | |
1253 | function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1254 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
1255 | prt.Anchored = true | |
1256 | prt.CFrame = cframe | |
1257 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)*4) | |
1258 | game:GetService("Debris"):AddItem(prt, 10) | |
1259 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1260 | for i = 0, 1, delay do | |
1261 | ArtificialHeartbeat.Event:wait() | |
1262 | Part.Transparency = i | |
1263 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1264 | end | |
1265 | Part.Parent = nil | |
1266 | end), prt, msh) | |
1267 | end | |
1268 | function BreakEffect(brickcolor, rotate, cframe, x1, y1, z1, delay) | |
1269 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
1270 | prt.Anchored = true | |
1271 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1272 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)*4) | |
1273 | game:GetService("Debris"):AddItem(prt, 10) | |
1274 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
1275 | CF = Part.CFrame | |
1276 | Numbb = 0 | |
1277 | randnumb = math.random() - math.random() | |
1278 | for i = 0, 1, delay do | |
1279 | ArtificialHeartbeat.Event:wait() | |
1280 | CF = CF * cf(0, 1, 0) | |
1281 | if rotate == true then | |
1282 | Part.CFrame = CF * angles(Numbb, 0, 0) | |
1283 | elseif rotate == false then | |
1284 | Part.CFrame = CF | |
1285 | end | |
1286 | Part.Transparency = i | |
1287 | Numbb = Numbb + randnumb | |
1288 | end | |
1289 | Part.Parent = nil | |
1290 | end), prt, CF, Numbb, randnumb) | |
1291 | end | |
1292 | function ElecEffect(brickcolor, cf, x, y, z, delay) | |
1293 | local prt = part(3, Effects, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
1294 | prt.Anchored = true | |
1295 | prt.CFrame = cf | |
1296 | xval = math.random() | |
1297 | yval = math.random() | |
1298 | zval = math.random() | |
1299 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z)*4) | |
1300 | game:GetService("Debris"):AddItem(prt, 10) | |
1301 | coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal) | |
1302 | for i = 0, 1, delay do | |
1303 | ArtificialHeartbeat.Event:wait() | |
1304 | Part.CFrame = Part.CFrame | |
1305 | xvaal = xvaal - 0.1 * (delay * 10) | |
1306 | yvaal = yvaal - 0.1 * (delay * 10) | |
1307 | zvaal = zvaal - 0.1 * (delay * 10) | |
1308 | Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal) | |
1309 | Part.Transparency = i | |
1310 | end | |
1311 | Part.Parent = nil | |
1312 | end), prt, msh, xval, yval, zval) | |
1313 | end | |
1314 | function subtractmana(k) | |
1315 | if k <= mana then | |
1316 | mana = mana - k | |
1317 | end | |
1318 | end | |
1319 | local idleangle = 0 | |
1320 | local idlen = 0 | |
1321 | local donum = 0 | |
1322 | local sine = 0 | |
1323 | local change = 1 | |
1324 | local val = 0 | |
1325 | local walkinganim = false | |
1326 | local handidle = false | |
1327 | local walk = 0 | |
1328 | local someangle = 0 | |
1329 | local change2 = 1 | |
1330 | local stundelay = 0 | |
1331 | local manadelay = 0 | |
1332 | local dieanim = false | |
1333 | local robloxidleanimation = Instance.new("Animation", Torso) | |
1334 | robloxidleanimation.Name = "robloxidleanimation" | |
1335 | robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
1336 | Animator = Humanoid:findFirstChild("Animator") | |
1337 | Animate = Character:findFirstChild("Animate") | |
1338 | Running = Head:FindFirstChild("Running") | |
1339 | if Running ~= nil then | |
1340 | Running.Volume = 0 | |
1341 | end | |
1342 | local startequipped = false | |
1343 | local startequippedwithequipanimation = true | |
1344 | local disableanimator = true | |
1345 | local disableanimate = false | |
1346 | local alternatewalk = false | |
1347 | local customwalk = false | |
1348 | local hidemenu = false | |
1349 | local allowmenutofunction = false | |
1350 | local allowabilitestofunction = false | |
1351 | local canunequiporequip = false | |
1352 | local allowidle = false | |
1353 | local allowwalking = false | |
1354 | local disablemovingarms = false | |
1355 | local usemotorsinsteadofwelds = false | |
1356 | local leftarm = false | |
1357 | local rightarm = false | |
1358 | local allowhopperbin = false | |
1359 | local allowstunbar = false | |
1360 | local walkspeeddependsonspeedvalue = true | |
1361 | local alternatemanaregensystem = false | |
1362 | local showhealthmanaandstunnumbers = false | |
1363 | local changebarcolorsifnotenoughmana = false | |
1364 | local disablejumpifstaggeredorstunned = false | |
1365 | if hidemenu == true then | |
1366 | for _, v in pairs(scrn:children()) do | |
1367 | if v.ClassName == "Frame" or v.ClassName == "TextLabel" then | |
1368 | v.Visible = false | |
1369 | end | |
1370 | end | |
1371 | end | |
1372 | if disablejumpifstaggeredorstunned == true then | |
1373 | Humanoid.Changed:connect(function(Jump) | |
1374 | if Jump == "Jump" and (StaggerAnim.Value == true or StunAnim.Value == true) then | |
1375 | Humanoid.Jump = false | |
1376 | end | |
1377 | end) | |
1378 | end | |
1379 | if allowmenutofunction == true then | |
1380 | for _, v in pairs(scrn:GetChildren()) do | |
1381 | if v.ClassName == "Frame" then | |
1382 | for _, b in pairs(v:GetChildren()) do | |
1383 | if b.ClassName == "TextLabel" and b.Name ~= "Text 1" and b.Name ~= "Text 2" and b.Name ~= "Text 3" and b.Name ~= "Text 4" then | |
1384 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
1385 | wait(menuupdatespeed) | |
1386 | for i = 1, 0, -0.1 do | |
1387 | ArtificialHeartbeat.Event:wait() | |
1388 | TheTextLabel.TextTransparency = i | |
1389 | TheTextLabel.TextStrokeTransparency = i | |
1390 | end | |
1391 | TheTextLabel.TextTransparency = 0 | |
1392 | TheTextLabel.TextStrokeTransparency = 0 | |
1393 | end), b) | |
1394 | end | |
1395 | end | |
1396 | end | |
1397 | end | |
1398 | end | |
1399 | if allowmenutofunction == true and allowabilitestofunction == true then | |
1400 | for _, v in pairs(scrn:GetChildren()) do | |
1401 | if v.ClassName == "Frame" then | |
1402 | for _, b in pairs(v:GetChildren()) do | |
1403 | if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then | |
1404 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
1405 | wait(menuupdatespeed) | |
1406 | for i = 1, 0, -0.1 do | |
1407 | ArtificialHeartbeat.Event:wait() | |
1408 | TheTextLabel.TextTransparency = i | |
1409 | TheTextLabel.TextStrokeTransparency = i | |
1410 | end | |
1411 | TheTextLabel.TextTransparency = 0 | |
1412 | TheTextLabel.TextStrokeTransparency = 0 | |
1413 | end), b) | |
1414 | end | |
1415 | end | |
1416 | end | |
1417 | end | |
1418 | end | |
1419 | if allowhopperbin == true then | |
1420 | if script.Parent.className ~= "HopperBin" then | |
1421 | Tool = Instance.new("HopperBin") | |
1422 | Tool.Parent = Backpack | |
1423 | Tool.Name = "Weapon Name" | |
1424 | script.Parent = Tool | |
1425 | end | |
1426 | Bin = script.Parent | |
1427 | end | |
1428 | if disablemovingarms == true then | |
1429 | RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
1430 | LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
1431 | RSH, LSH = nil, nil | |
1432 | if usemotorsinsteadofwelds == true then | |
1433 | RW = Instance.new("Motor") | |
1434 | LW = Instance.new("Motor") | |
1435 | else | |
1436 | RW = Instance.new("Weld") | |
1437 | LW = Instance.new("Weld") | |
1438 | end | |
1439 | RW.Name = "Right Shoulder" | |
1440 | LW.Name = "Left Shoulder" | |
1441 | RSH = Torso["Right Shoulder"] | |
1442 | LSH = Torso["Left Shoulder"] | |
1443 | RSH.Parent = Torso | |
1444 | LSH.Parent = Torso | |
1445 | RW.Name = "Right Shoulder" | |
1446 | RW.Part0 = Torso | |
1447 | RW.C0 = cf(1.5, 0.5, 0) | |
1448 | RW.C1 = cf(0, 0.5, 0) | |
1449 | RW.Part1 = Character["Right Arm"] | |
1450 | RW.Parent = nil | |
1451 | LW.Name = "Left Shoulder" | |
1452 | LW.Part0 = Torso | |
1453 | LW.C0 = cf(-1.5, 0.5, 0) | |
1454 | LW.C1 = cf(0, 0.5, 0) | |
1455 | LW.Part1 = Character["Left Arm"] | |
1456 | LW.Parent = nil | |
1457 | else | |
1458 | RW = Torso["Right Shoulder"] | |
1459 | LW = Torso["Left Shoulder"] | |
1460 | LH = Torso["Left Hip"] | |
1461 | RH = Torso["Right Hip"] | |
1462 | RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) | |
1463 | LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) | |
1464 | end | |
1465 | if allowidle == true then | |
1466 | coroutine.resume(coroutine.create(function() | |
1467 | while true do | |
1468 | for i = 0, 1, 0.08 do | |
1469 | wait() | |
1470 | idleangle = idleangle + 0.005 * idlen | |
1471 | idlen = idlen - 0.1 | |
1472 | end | |
1473 | idlen = 0 | |
1474 | for i = 0, 1, 0.08 do | |
1475 | wait() | |
1476 | idleangle = idleangle - 0.005 * idlen | |
1477 | idlen = idlen - 0.1 | |
1478 | end | |
1479 | idlen = 0 | |
1480 | idleangle = 0 | |
1481 | end | |
1482 | - | Chat("my soul hurts...") |
1482 | + | |
1483 | end | |
1484 | function equipanim() | |
1485 | attack = true | |
1486 | - | Chat("but i can feel it now...") |
1486 | + | |
1487 | equipvelocity.P = 500 | |
1488 | - | Chat("the power darkness...") |
1488 | + | |
1489 | equipvelocity.Velocity = Vector3.new(0, 0.1, 0) | |
1490 | if intro == true then | |
1491 | Music2:Play() | |
1492 | - | Chat("the lost feeling...") |
1492 | + | |
1493 | ArtificialHeartbeat.Event:wait() | |
1494 | ||
1495 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
1496 | - | Chat("the feeling of being free") |
1496 | + | |
1497 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(40), math.rad(-10)) * RWC0, 0.15) | |
1498 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(60), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
1499 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
1500 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.15) | |
1501 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
1502 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
1503 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
1504 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
1505 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
1506 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
1507 | end | |
1508 | wait(1) | |
1509 | end | |
1510 | for i = 0, 1, 0.02 do | |
1511 | ArtificialHeartbeat.Event:wait() | |
1512 | MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), 15, 15, 15, 0.5, 0.5, 0.5, 0.04) | |
1513 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.05) | |
1514 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
1515 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
1516 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
1517 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
1518 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15) | |
1519 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
1520 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
1521 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
1522 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
1523 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
1524 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
1525 | end | |
1526 | for i = 0, 1, 0.02 do | |
1527 | ArtificialHeartbeat.Event:wait() | |
1528 | ||
1529 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.05) | |
1530 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
1531 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
1532 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
1533 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
1534 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15) | |
1535 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
1536 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
1537 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
1538 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
1539 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
1540 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
1541 | end | |
1542 | if intro == true then | |
1543 | Chat("...") | |
1544 | wait(4) | |
1545 | Chat("Ugh...") | |
1546 | wait(4) | |
1547 | Chat("...") | |
1548 | wait(2) | |
1549 | Chat("Something isnt right...") | |
1550 | wait(4) | |
1551 | Chat("I was damaged to much...") | |
1552 | wait(4) | |
1553 | Chat("...") | |
1554 | wait(2) | |
1555 | Chat("I dont feel well...") | |
1556 | wait(2) | |
1557 | Chat("...run") | |
1558 | wait(2) | |
1559 | Chat("Run before its too late...") | |
1560 | wait(2.1) | |
1561 | end | |
1562 | coroutine.resume(coroutine.create(function() | |
1563 | for i = 0, 1, 0.1 do | |
1564 | wait() | |
1565 | outerbeingtransparency = outerbeingtransparency - 0.05 | |
1566 | end | |
1567 | outerbeingtransparency = 0.5 | |
1568 | end)) | |
1569 | ||
1570 | equipvelocity.Velocity = Vector3.new(0, 0, 0) | |
1571 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01) | |
1572 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01) | |
1573 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 1) | |
1574 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 1) | |
1575 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 1) | |
1576 | so("http://roblox.com/asset/?id=160740121", Torso, 1, 1.5) | |
1577 | newface() | |
1578 | local BC = char["Body Colors"] | |
1579 | BC.HeadColor = BrickColor.new("Black") | |
1580 | BC.LeftArmColor = BrickColor.new("Black") | |
1581 | BC.LeftLegColor = BrickColor.new("Black") | |
1582 | BC.RightArmColor = BrickColor.new("Black") | |
1583 | BC.RightLegColor = BrickColor.new("Black") | |
1584 | BC.TorsoColor = BrickColor.new("Black") | |
1585 | ||
1586 | local HBill = Instance.new("BillboardGui", hed) | |
1587 | local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame") | |
1588 | local HHealth, HName = Instance.new("TextLabel", HBill), Instance.new("TextLabel") | |
1589 | local HText, HName = Instance.new("TextLabel", HBill), Instance.new("TextLabel") | |
1590 | HBill.Size = UDim2.new(15,0,2.2,0) | |
1591 | HBill.Name = "Health Display" | |
1592 | HBill.StudsOffset = Vector3.new(0,13,0) | |
1593 | HBill.AlwaysOnTop = true | |
1594 | HBill.Enabled = true | |
1595 | ||
1596 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
1597 | HMain.BackgroundTransparency = 0.8 | |
1598 | HMain.Size = UDim2.new(1,0,1,0) | |
1599 | HBarBack.Parent = HMain | |
1600 | HBarBack.BackgroundColor3 = Color3.new(.5,0,1) | |
1601 | HBarBack.BorderColor3 = Color3.new(0,0,0) | |
1602 | HBarBack.BorderSizePixel = 2 | |
1603 | HBarBack.Position = UDim2.new(.025, 0, .55, 0) | |
1604 | HBarBack.Size = UDim2.new(.95, 0, .3, 0) | |
1605 | ||
1606 | ||
1607 | ||
1608 | ||
1609 | ||
1610 | ||
1611 | ||
1612 | ||
1613 | ||
1614 | HHealth.BackgroundTransparency = 1 | |
1615 | HHealth.Size = UDim2.new(1,0,0.5,0) | |
1616 | HHealth.Font = "Code" | |
1617 | HHealth.TextScaled = true | |
1618 | HHealth.TextColor3 = Color3.new(1,1,1) | |
1619 | HHealth.TextStrokeColor3 = BrickColor.new("Really black").Color | |
1620 | HHealth.TextStrokeTransparency = 0 | |
1621 | ||
1622 | ||
1623 | ||
1624 | ||
1625 | ||
1626 | ||
1627 | ||
1628 | ||
1629 | HName.Parent = HMain | |
1630 | HName.BackgroundTransparency = 1 | |
1631 | HName.Size = UDim2.new(1,0,.3,0) | |
1632 | HName.Font = "Code" | |
1633 | HName.Text = "" | |
1634 | HName.TextScaled = true | |
1635 | HName.TextColor3 = BrickColor.new("Forest green").Color | |
1636 | HName.TextStrokeColor3 = Color3.new(0,0,0) | |
1637 | HName.TextStrokeTransparency = 0 | |
1638 | HName.TextYAlignment = "Top" | |
1639 | HName.Position = UDim2.new(0, 0, 0, 0) | |
1640 | ||
1641 | ||
1642 | ||
1643 | ||
1644 | ||
1645 | ||
1646 | ||
1647 | ||
1648 | Humanoid = char.Humanoid | |
1649 | ||
1650 | function GainCharge(Humanoid) | |
1651 | HHealth.Text = ""..Humanoid.Health.." HP" | |
1652 | if Humanoid.Health < 100 and dieanim == false then | |
1653 | HHealth.Text = "0 HP" | |
1654 | end | |
1655 | HBill.Frame.Frame.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,.3,0) | |
1656 | if Humanoid.Health >= Humanoid.MaxHealth/2 then | |
1657 | HBill.Frame.Frame.BackgroundColor3 = Color3.new(.5,0,1) | |
1658 | elseif Humanoid.Health >= Humanoid.MaxHealth/4 and Humanoid.Health <= Humanoid.MaxHealth/2 then | |
1659 | HBill.Frame.Frame.BackgroundColor3 = Color3.new(.2,0,1) | |
1660 | elseif Humanoid.Health <= Humanoid.MaxHealth/4 then | |
1661 | HBill.Frame.Frame.BackgroundColor3 = Color3.new(0,0,0) | |
1662 | end | |
1663 | ||
1664 | end | |
1665 | ||
1666 | Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end) | |
1667 | HHealth.Text = ""..Humanoid.Health.." HP" | |
1668 | for i = 0, 1, 0.02 do | |
1669 | ArtificialHeartbeat.Event:wait() | |
1670 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
1671 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
1672 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(90)) * RWC0, 0.15) | |
1673 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)) * LWC0, 0.15) | |
1674 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
1675 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
1676 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
1677 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
1678 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1679 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1680 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
1681 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
1682 | end | |
1683 | ||
1684 | equipvelocity:Destroy() | |
1685 | Speed.Value = Speed.Value - 0.1 | |
1686 | Defense.Value = Defense.Value + 0.4 | |
1687 | attack = false | |
1688 | ||
1689 | ||
1690 | wait(.1) | |
1691 | Music2:Stop() | |
1692 | Music1:Play() | |
1693 | end | |
1694 | function unequipanim() | |
1695 | attack = true | |
1696 | coroutine.resume(coroutine.create(function() | |
1697 | Humanoid.MaxHealth = math.huge | |
1698 | wait(0.1) | |
1699 | Humanoid.Health = Humanoid.MaxHealth | |
1700 | end)) | |
1701 | local equipvelocity = Instance.new("BodyVelocity", Torso) | |
1702 | equipvelocity.P = 500 | |
1703 | equipvelocity.maxForce = vt(math.huge, math.huge, math.huge) | |
1704 | equipvelocity.Velocity = Vector3.new(0, 1, 0) | |
1705 | so("http://roblox.com/asset/?id=183763515", Torso, 1, 0.4) | |
1706 | for i = 0, 1, 0.005 do | |
1707 | ArtificialHeartbeat.Event:wait() | |
1708 | MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05) | |
1709 | BreakEffect(CustomColor, false, Torso.CFrame, 1, 25, 1, 0.05) | |
1710 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20 + math.random(-10, 10)), math.rad(0), math.rad(0 + math.random(-10, 10))), 0.15) | |
1711 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
1712 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
1713 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
1714 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
1715 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15) | |
1716 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
1717 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
1718 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
1719 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
1720 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
1721 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
1722 | end | |
1723 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01) | |
1724 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01) | |
1725 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6) | |
1726 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.6) | |
1727 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.6) | |
1728 | for i = 1, 2 do | |
1729 | so("http://roblox.com/asset/?id=160867463", Torso, 1, 0.8) | |
1730 | so("http://roblox.com/asset/?id=297472596", Torso, 1, 0.8) | |
1731 | end | |
1732 | Chat("AAAAAAAAAAAAAAAAAAHHHHH!!!") | |
1733 | coroutine.resume(coroutine.create(function() | |
1734 | for i = 0, 1, 0.01 do | |
1735 | tran = tran + 0.1 | |
1736 | ||
1737 | ||
1738 | ||
1739 | for i,v in pairs(Character:GetChildren()) do | |
1740 | if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then | |
1741 | Glow1 = Color3.new(.5,0,1) | |
1742 | Glow2 = Color3.new(0,0,0) | |
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | v.ParticleEmitter.Transparency = NumberSequence.new(tran,1) | |
1748 | ||
1749 | end end | |
1750 | ||
1751 | ||
1752 | ||
1753 | wait() | |
1754 | outerbeingtransparency = outerbeingtransparency + 0.005 | |
1755 | end | |
1756 | outerbeingtransparency = 1 | |
1757 | end)) | |
1758 | Face.Transparency = 1 | |
1759 | for _, v in pairs(Character:children()) do | |
1760 | if v:IsA("Part") and v.ClassName ~= "Model" then | |
1761 | coroutine.resume(coroutine.create(function(Part) | |
1762 | for i = 0, 1, 0.01 do | |
1763 | wait() | |
1764 | Part.Transparency = Part.Transparency + 0.01 | |
1765 | end | |
1766 | Part.Anchored = true | |
1767 | Part.Transparency = 1 | |
1768 | end), v) | |
1769 | elseif v:IsA("Hat") then | |
1770 | coroutine.resume(coroutine.create(function(Hat) | |
1771 | for i = 0, 1, 0.01 do | |
1772 | wait() | |
1773 | Hat.Transparency = Hat.Transparency + 0.01 | |
1774 | end | |
1775 | Hat.Anchored = true | |
1776 | Hat.Transparency = 1 | |
1777 | end), v.Handle) | |
1778 | end | |
1779 | end | |
1780 | local deathnum = 0 | |
1781 | for i = 0, 1, 0.005 do | |
1782 | ArtificialHeartbeat.Event:wait() | |
1783 | if deathnum >= 10 then | |
1784 | deathnum = 0 | |
1785 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
1786 | refpart.CFrame = Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)) | |
1787 | refpart.Anchored = true | |
1788 | game:GetService("Debris"):AddItem(refpart, 1) | |
1789 | MagicBlock(CustomColor, true, refpart.CFrame, 30, 30, 30, 0.5, 0.5, 0.5, 0.01) | |
1790 | MagicSphere(CustomColor, refpart.CFrame, 60, 60, 60, 1, 1, 1, 0.01) | |
1791 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6) | |
1792 | end | |
1793 | BreakEffect(CustomColor, false, Torso.CFrame, 1, 50, 1, 0.05) | |
1794 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(0 + math.random(-40, 40))), 0.15) | |
1795 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40))), 0.15) | |
1796 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))) * RWC0, 0.15) | |
1797 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))) * LWC0, 0.15) | |
1798 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))), 0.15) | |
1799 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))), 0.15) | |
1800 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
1801 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
1802 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1803 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1804 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
1805 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
1806 | deathnum = deathnum + 1 | |
1807 | end | |
1808 | Humanoid.MaxHealth = 0 | |
1809 | Humanoid.Health = 0 | |
1810 | equipvelocity.Velocity = Vector3.new(0, 0, 0) | |
1811 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.008) | |
1812 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.008) | |
1813 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.4) | |
1814 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.4) | |
1815 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.4) | |
1816 | so("http://roblox.com/asset/?id=160867463", Torso, 1, 1.2) | |
1817 | attack = false | |
1818 | end | |
1819 | if startequipped == true then | |
1820 | equipped = true | |
1821 | if disableanimate == true then | |
1822 | Animate.Disabled = true | |
1823 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
1824 | idleanimation:Play() | |
1825 | end | |
1826 | if disableanimator == true then | |
1827 | Animator.Parent = nil | |
1828 | end | |
1829 | if disablemovingarms == true then | |
1830 | RW.Parent = Torso | |
1831 | LW.Parent = Torso | |
1832 | RSH.Parent = nil | |
1833 | LSH.Parent = nil | |
1834 | end | |
1835 | Speed.Value = Speed.Value - 0.1 | |
1836 | Defense.Value = Defense.Value + 0.4 | |
1837 | elseif startequippedwithequipanimation == true then | |
1838 | equipped = true | |
1839 | if disableanimate == true then | |
1840 | Animate.Disabled = true | |
1841 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
1842 | idleanimation:Play() | |
1843 | end | |
1844 | if disableanimator == true then | |
1845 | Animator.Parent = nil | |
1846 | end | |
1847 | if disablemovingarms == true then | |
1848 | RW.Parent = Torso | |
1849 | LW.Parent = Torso | |
1850 | RSH.Parent = nil | |
1851 | LSH.Parent = nil | |
1852 | end | |
1853 | equipanim() | |
1854 | end | |
1855 | function StaggerHit() | |
1856 | attack = true | |
1857 | attack = false | |
1858 | end | |
1859 | function Stagger() | |
1860 | attack = true | |
1861 | attack = false | |
1862 | end | |
1863 | function Stun() | |
1864 | attack = true | |
1865 | attack = false | |
1866 | end | |
1867 | function EAbility() | |
1868 | attack = true | |
1869 | attack = false | |
1870 | end | |
1871 | function attackone() | |
1872 | attack = true | |
1873 | ||
1874 | --[[ | |
1875 | local equipvelocity3 = Instance.new("BodyVelocity", Torso) | |
1876 | equipvelocity3.P = 500 | |
1877 | equipvelocity3.maxForce = vt(math.huge, math.huge, math.huge) | |
1878 | equipvelocity3.Velocity = Vector3.new(0, 0, 0) | |
1879 | game:GetService("Debris"):AddItem(equipvelocity3, 1) | |
1880 | ||
1881 | --]] | |
1882 | local oldspeedvalue = Speed.Value | |
1883 | Speed.Value = .1 | |
1884 | ||
1885 | for i = 0, 0.5, .02 do | |
1886 | ArtificialHeartbeat.Event:wait() | |
1887 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11 + idleangle) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.1) | |
1888 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
1889 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(115), math.rad(0), math.rad(50)) * RWC0, 0.15) | |
1890 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(115), math.rad(0), math.rad(-50)) * LWC0, 0.15) | |
1891 | ||
1892 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.15) | |
1893 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
1894 | ||
1895 | ||
1896 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
1897 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
1898 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1899 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1900 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
1901 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
1902 | end | |
1903 | ||
1904 | --------------------------------- | |
1905 | for i = 0, .2, .02 do | |
1906 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
1907 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
1908 | ArtificialHeartbeat.Event:wait() | |
1909 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -10, 8 + idleangle) * angles(math.rad(55), math.rad(0), math.rad(0)), 0.15) | |
1910 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
1911 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
1912 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
1913 | ||
1914 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
1915 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15) | |
1916 | ||
1917 | ||
1918 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
1919 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
1920 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1921 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1922 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 4, 0), 0.15) | |
1923 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
1924 | end | |
1925 | local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt()) | |
1926 | refpart4.CFrame = RootPart.CFrame * cf(0, 0, -17) | |
1927 | game:GetService("Debris"):AddItem(refpart4, 1) | |
1928 | MagniDamage(refpart4, 10, 5, 20, math.random(1, 10), "Normal", 0, 1, 0, nil, true, true) | |
1929 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
1930 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
1931 | ---------------------------------------- | |
1932 | for i = 0, .5, .02 do | |
1933 | ||
1934 | ArtificialHeartbeat.Event:wait() | |
1935 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -10, 8 + idleangle) * angles(math.rad(55), math.rad(0), math.rad(0)), 0.15) | |
1936 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
1937 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
1938 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(85), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
1939 | ||
1940 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
1941 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15) | |
1942 | ||
1943 | ||
1944 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
1945 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
1946 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1947 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1948 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 4, 0), 0.15) | |
1949 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
1950 | end | |
1951 | ---------------------------------------- | |
1952 | Speed.Value = oldspeedvalue | |
1953 | --]] | |
1954 | ||
1955 | attack = false | |
1956 | end | |
1957 | function attacktwo() | |
1958 | attack = true | |
1959 | local oldspeedvalue = Speed.Value | |
1960 | Speed.Value = .2 | |
1961 | ||
1962 | so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6) | |
1963 | for i = 0, 1, 0.05 do | |
1964 | ArtificialHeartbeat.Event:wait() | |
1965 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
1966 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
1967 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15) | |
1968 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
1969 | RH.C0 = clerp(RH.C0, cf(1, -0.0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.15) | |
1970 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
1971 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
1972 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
1973 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1974 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1975 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 1.5, 0), 0.15) | |
1976 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
1977 | end | |
1978 | for i = 0, 0.5, 0.05 do | |
1979 | MagicBlock(CustomColor, true, rightleg2.CFrame * cf(0, -5, 0), 40, 40, 40, -7, -7, -7, 0.05) | |
1980 | ArtificialHeartbeat.Event:wait() | |
1981 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3) | |
1982 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
1983 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(40)) * RWC0, 0.15) | |
1984 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-40)) * LWC0, 0.15) | |
1985 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.3) | |
1986 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
1987 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
1988 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
1989 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1990 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
1991 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.3) | |
1992 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
1993 | end | |
1994 | Speed.Value = .0 | |
1995 | local refpart4 = part(3, Effects, "Neon", 0, 0, BrickColor.new("Dark indigo"), "Effect", vt()) | |
1996 | refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4) | |
1997 | game:GetService("Debris"):AddItem(refpart4, .5) | |
1998 | MagniDamage(refpart4, 15, 10, 30, math.random(10, 20), "Normal", 0, 1, 0, nil, true, true) | |
1999 | MagicBlock(CustomColor, true, refpart4.CFrame * cf(0, -0, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
2000 | MagicRing(CustomColor, refpart4.CFrame* cf(1, 1, 0) * angles(math.rad(90), math.rad(math.random(-0, 0)), math.rad(math.random(-0, 0))), 1, 1, 20, 1.1, 1.1, -0.5, 0.03) | |
2001 | for i = 0, 0.5, 0.05 do | |
2002 | ||
2003 | ArtificialHeartbeat.Event:wait() | |
2004 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3) | |
2005 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
2006 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(40)) * RWC0, 0.15) | |
2007 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-40)) * LWC0, 0.15) | |
2008 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.3) | |
2009 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
2010 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2011 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2012 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2013 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2014 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.3) | |
2015 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2016 | end | |
2017 | ---------------------------------------- | |
2018 | ------------------------------ | |
2019 | Speed.Value = oldspeedvalue | |
2020 | attack = false | |
2021 | end | |
2022 | function attackthree() | |
2023 | attack = true | |
2024 | local oldspeedvalue = Speed.Value | |
2025 | Speed.Value = .1 | |
2026 | for i = 0, .5, 0.05 do | |
2027 | ArtificialHeartbeat.Event:wait() | |
2028 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2029 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.15) | |
2030 | RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(20), math.rad(90)) * RWC0, 0.10) | |
2031 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2032 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2033 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2034 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2035 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2036 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2037 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2038 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2039 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2040 | end | |
2041 | ||
2042 | Speed.Value = 0 | |
2043 | for i = 0, .5, 0.05 do | |
2044 | ArtificialHeartbeat.Event:wait() | |
2045 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
2046 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2047 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.15) | |
2048 | RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(10), math.rad(90)) * RWC0, 0.15) | |
2049 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2050 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2051 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2052 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2053 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2054 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2055 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2056 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2057 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2058 | end | |
2059 | ||
2060 | local orbnumber = math.random(2, 2) | |
2061 | coroutine.resume(coroutine.create(function() | |
2062 | for i = 1, orbnumber do | |
2063 | wait(.1) | |
2064 | local orbblastpart = part(3, Effects, "Neon", 0, 1, CustomColor, "Effect", vt()) | |
2065 | local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)*4) | |
2066 | orbblastpart.Anchored = true | |
2067 | game:GetService("Debris"):AddItem(orbblastpart, 5) | |
2068 | orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(70, 80), math.random(-10, 10))) | |
2069 | ||
2070 | so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2) | |
2071 | coroutine.resume(coroutine.create(function(Part) | |
2072 | wait() | |
2073 | local spread = vt(math.random(-.1, .1), math.random(-.1, .1), math.random(-.1, .1)) * (Part.Position - (Part.Position + vt(0, -.4, 0))).magnitude / 100 | |
2074 | local TheHit = Part.Position + vt(0, -1, 0) | |
2075 | local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread) | |
2076 | local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character) | |
2077 | local mag = (rightarm2.Position - pos).magnitude | |
2078 | MagicCylinder(CustomColor, cf((rightarm2.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, mag * 5, 10, -1.5, 0, -1.5, 0.08) | |
2079 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 8, 8, 8, 0.25, 0.25, 0.25, 0.05) | |
2080 | Part.Parent = nil | |
2081 | if hit ~= nil then | |
2082 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2083 | refpart.CFrame = cf(pos) | |
2084 | refpart.Anchored = true | |
2085 | game:GetService("Debris"):AddItem(refpart, 1) | |
2086 | ||
2087 | MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 10, 10, 10, 0.05) | |
2088 | MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 20, 1.1, 1.1, -0.3, 0.06) | |
2089 | so("http://roblox.com/asset/?id=183763487", refpart, 1, 1) | |
2090 | Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true) | |
2091 | MagniDamage(refpart, 10, 5, 8, 0, "Normal", 0, 1, 0, nil, true, true) | |
2092 | end | |
2093 | end), orbblastpart) | |
2094 | end | |
2095 | ||
2096 | end)) | |
2097 | ||
2098 | for i = 0, 1, 0.05 do | |
2099 | ArtificialHeartbeat.Event:wait() | |
2100 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
2101 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2102 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2103 | RW.C0 = clerp(RW.C0, cf(1.3, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)) * RWC0, 0.15) | |
2104 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2105 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2106 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2107 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2108 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2109 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2110 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2111 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2112 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2113 | end | |
2114 | Speed.Value = oldspeedvalue | |
2115 | attack = false | |
2116 | end | |
2117 | function attackfour() | |
2118 | attack = true | |
2119 | for i = 0, 0.8, 0.05 do | |
2120 | ArtificialHeartbeat.Event:wait() | |
2121 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 6 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.15) | |
2122 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2123 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-45)) * RWC0, 0.15) | |
2124 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-60), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2125 | RH.C0 = clerp(RH.C0, cf(.99, -0.0 - idleangle, -.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2126 | LH.C0 = clerp(LH.C0, cf(-.99, -1.5 - idleangle, -.2) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.15) | |
2127 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2128 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2129 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2130 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2131 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2, 0, 0), 0.15) | |
2132 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(1, 4, 0), 0.15) | |
2133 | end | |
2134 | ||
2135 | ||
2136 | for i = 0, 0.6, 0.05 do | |
2137 | ArtificialHeartbeat.Event:wait() | |
2138 | ||
2139 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
2140 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.15) | |
2141 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2142 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.15) | |
2143 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
2144 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2145 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2146 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2147 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2148 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2149 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2150 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-0, 5, 0), 0.15) | |
2151 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2152 | end | |
2153 | local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt()) | |
2154 | refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4) | |
2155 | MagniDamage(refpart4, 13, 5, 20, math.random(5, 10), "Normal", 0, 1, 0, nil, true, true) | |
2156 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
2157 | game:GetService("Debris"):AddItem(refpart4, .5) | |
2158 | for i = 0, 0.6, 0.05 do | |
2159 | ArtificialHeartbeat.Event:wait() | |
2160 | ||
2161 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
2162 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.15) | |
2163 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2164 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.15) | |
2165 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
2166 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2167 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2168 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2169 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2170 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2171 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2172 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-0, 5, 0), 0.15) | |
2173 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2174 | end | |
2175 | ||
2176 | ||
2177 | local refpart4 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt()) | |
2178 | refpart4.CFrame = RootPart.CFrame * cf(0, -4, -4) | |
2179 | MagniDamage(refpart4, 13, 20, 20, math.random(10, 20), "Normal", 0, 1, 0, nil, true, true) | |
2180 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
2181 | game:GetService("Debris"):AddItem(refpart4, .5) | |
2182 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 15, 15, 15, 0.08) | |
2183 | attack = false | |
2184 | end | |
2185 | --[[ | |
2186 | for i = 0, 0.5, 0.05 do | |
2187 | ArtificialHeartbeat.Event:wait() | |
2188 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2189 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2190 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
2191 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
2192 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2193 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2194 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2195 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2196 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2197 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2198 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2199 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2200 | end | |
2201 | --]] | |
2202 | function Move1() | |
2203 | Chat("darkness... ") | |
2204 | attack = true | |
2205 | for i = 0, 1, 0.25 do | |
2206 | ArtificialHeartbeat.Event:wait() | |
2207 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2208 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2209 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
2210 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2211 | if Anim ~= "Walk" then | |
2212 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2213 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2214 | elseif Anim == "Walk" then | |
2215 | if walkinganim == true then | |
2216 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2217 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2218 | else | |
2219 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2220 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2221 | end | |
2222 | end | |
2223 | ||
2224 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2225 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2226 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2227 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2228 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2229 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2230 | end | |
2231 | for i = 0, 1, 0.04 do | |
2232 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
2233 | ArtificialHeartbeat.Event:wait() | |
2234 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2235 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2236 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
2237 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2238 | if Anim ~= "Walk" then | |
2239 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2240 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2241 | elseif Anim == "Walk" then | |
2242 | if walkinganim == true then | |
2243 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2244 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2245 | else | |
2246 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2247 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2248 | end | |
2249 | end | |
2250 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2251 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2252 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2253 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2254 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2255 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2256 | end | |
2257 | for i = 0, 3, 0.04 do | |
2258 | ArtificialHeartbeat.Event:wait() | |
2259 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
2260 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2261 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2262 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
2263 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2264 | if Anim ~= "Walk" then | |
2265 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2266 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2267 | elseif Anim == "Walk" then | |
2268 | if walkinganim == true then | |
2269 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2270 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2271 | else | |
2272 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2273 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2274 | end | |
2275 | end | |
2276 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2277 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2278 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2279 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2280 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2281 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2282 | end | |
2283 | ||
2284 | Chat("fall...") | |
2285 | local orbnumber = math.random(30, 40) | |
2286 | coroutine.resume(coroutine.create(function() | |
2287 | for i = 1, orbnumber do | |
2288 | wait() | |
2289 | local orbblastpart = part(3, Effects, "Neon", 0, 0.5, CustomColor, "Effect", vt()) | |
2290 | local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)*4) | |
2291 | orbblastpart.Anchored = true | |
2292 | game:GetService("Debris"):AddItem(orbblastpart, 5) | |
2293 | orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(70, 80), math.random(-10, 10))) | |
2294 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -5, -5, -5, 0.05) | |
2295 | MagicSphere(CustomColor, orbblastpart.CFrame, 10, 10, 10, 1.5, 1.5, 1.5, 0.04) | |
2296 | so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2) | |
2297 | coroutine.resume(coroutine.create(function(Part) | |
2298 | wait(.8) | |
2299 | local spread = vt(math.random(-26, 26), math.random(-10, 10), math.random(-26, 26)) * (Part.Position - (Part.Position + vt(0, -.4, 0))).magnitude / 100 | |
2300 | local TheHit = Part.Position + vt(0, -1, 0) | |
2301 | local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread) | |
2302 | local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character) | |
2303 | local mag = (Part.Position - pos).magnitude | |
2304 | MagicCylinder(CustomColor, cf((Part.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, -0.5, 0, -0.5, 0.08) | |
2305 | MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05) | |
2306 | Part.Parent = nil | |
2307 | if hit ~= nil then | |
2308 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2309 | refpart.CFrame = cf(pos) | |
2310 | refpart.Anchored = true | |
2311 | - | function Move2() |
2311 | + | |
2312 | MagicBlock(CustomColor, true, Part.CFrame, 18, 18, 18, 0.25, 0.25, 0.25, 0.05) | |
2313 | MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 10, 10, 10, 0.05) | |
2314 | MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 20, 1.1, 1.1, -0.3, 0.06) | |
2315 | so("http://roblox.com/asset/?id=183763487", refpart, 1, 1) | |
2316 | Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true) | |
2317 | MagniDamage(refpart, 15, 5, 10, 0, "Normal", 0, 1, 0, nil, true, true) | |
2318 | end | |
2319 | end), orbblastpart) | |
2320 | end | |
2321 | ||
2322 | end)) | |
2323 | local equipvelocity2 = Instance.new("BodyVelocity", Torso) | |
2324 | equipvelocity2.P = 500 | |
2325 | equipvelocity2.maxForce = vt(math.huge, math.huge, math.huge) | |
2326 | equipvelocity2.Velocity = Vector3.new(0, 0, 0) | |
2327 | game:GetService("Debris"):AddItem(equipvelocity2, 2) | |
2328 | for i = 0, 1, (0.015 + orbnumber / 10000) / 2 do | |
2329 | ArtificialHeartbeat.Event:wait() | |
2330 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8 + idleangle) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.15) | |
2331 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2332 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(45), math.rad(0), math.rad(0)) * RWC0, 0.04) | |
2333 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2334 | ||
2335 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.15) | |
2336 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15) | |
2337 | ||
2338 | ||
2339 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2340 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2341 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2342 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2343 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2344 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2345 | end | |
2346 | for i = 0, 1, 0.25 do | |
2347 | ArtificialHeartbeat.Event:wait() | |
2348 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2349 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2350 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
2351 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2352 | if Anim ~= "Walk" then | |
2353 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2354 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2355 | elseif Anim == "Walk" then | |
2356 | if walkinganim == true then | |
2357 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2358 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2359 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2360 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2361 | end | |
2362 | end | |
2363 | Humanoid.WalkSpeed = 16 * Speed.Value | |
2364 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2365 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2366 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2367 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2368 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2369 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2370 | end | |
2371 | attack = false | |
2372 | end | |
2373 | Chat("Die!") | |
2374 | attack = true | |
2375 | local oldspeedvalue = Speed.Value | |
2376 | Speed.Value = 0 | |
2377 | for i = 0, .5, 0.25 do | |
2378 | ArtificialHeartbeat.Event:wait() | |
2379 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2380 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2381 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2382 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2383 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2384 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2385 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2386 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2387 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
2388 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
2389 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2390 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2391 | end | |
2392 | for i = 0, .5, 0.015 do | |
2393 | ArtificialHeartbeat.Event:wait() | |
2394 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2395 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2396 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2397 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2398 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2399 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2400 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2401 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2402 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
2403 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
2404 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2405 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2406 | end | |
2407 | so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6) | |
2408 | for i = 0, 1.7, 0.25 do | |
2409 | ArtificialHeartbeat.Event:wait() | |
2410 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -10, -10, -10, 0.1) | |
2411 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, -10, -10, -10, 0.1) | |
2412 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2413 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2414 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2415 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2416 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
2417 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
2418 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2419 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2420 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2421 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2422 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
2423 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2424 | end | |
2425 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2426 | refpart.CFrame = RootPart.CFrame * cf(0, 500, -20) | |
2427 | refpart.Anchored = true | |
2428 | game:GetService("Debris"):AddItem(refpart, 1) | |
2429 | local TheHit = refpart.Position + vt(0, -1, 0) | |
2430 | local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit) | |
2431 | local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character) | |
2432 | local mag = (refpart.Position - pos).magnitude | |
2433 | local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2434 | refpart2.CFrame = cf(pos) | |
2435 | refpart2.Anchored = true | |
2436 | game:GetService("Debris"):AddItem(refpart2, 1) | |
2437 | MagicCylinder(CustomColor, cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, 0.4, 0, 0.4, 0.025) | |
2438 | if hit ~= nil then | |
2439 | MagicBlock(CustomColor, true, refpart2.CFrame, 15, 15, 15, 2.5, 2.5, 2.5, 0.02) | |
2440 | MagicSphere(CustomColor, refpart2.CFrame, 15, 15, 15, 7, 7, 7, 0.02) | |
2441 | MagicWave(CustomColor, refpart2.CFrame, 5, 5, 5, .6, 1.2, .6, 0.03) | |
2442 | MagicRing(CustomColor, refpart2.CFrame * angles(math.rad(90), 0, 0), 2.5, 2.5, 2.5, 2, 2, 2, 0.025) | |
2443 | so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8) | |
2444 | so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8) | |
2445 | MagniDamage(refpart2, 25, 20, 50, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true) | |
2446 | end | |
2447 | for i = 0, 1, 0.02 do | |
2448 | ArtificialHeartbeat.Event:wait() | |
2449 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2450 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2451 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2452 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2453 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
2454 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
2455 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2456 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2457 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2458 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2459 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
2460 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2461 | end | |
2462 | Speed.Value = Speed.Value + oldspeedvalue | |
2463 | attack = false | |
2464 | end | |
2465 | ||
2466 | function Move3() | |
2467 | Chat("...") | |
2468 | attack = true | |
2469 | local oldspeedvalue = Speed.Value | |
2470 | Speed.Value = 0 | |
2471 | so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6) | |
2472 | for i = 0, 1, 0.05 do | |
2473 | ArtificialHeartbeat.Event:wait() | |
2474 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
2475 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
2476 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15) | |
2477 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2478 | RH.C0 = clerp(RH.C0, cf(1, -0.0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.15) | |
2479 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
2480 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2481 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2482 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2483 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2484 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
2485 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2486 | end | |
2487 | for i = 0, 1.5, 0.05 do | |
2488 | MagicBlock(CustomColor, true, rightleg2.CFrame * cf(0, -5, 0), 40, 40, 40, -7, -7, -7, 0.05) | |
2489 | ArtificialHeartbeat.Event:wait() | |
2490 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
2491 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
2492 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15) | |
2493 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2494 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.2) | |
2495 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
2496 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2497 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2498 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2499 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2500 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.15) | |
2501 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2502 | end | |
2503 | MagicSphere(CustomColor, RootPart.CFrame * cf(2.5, -3, -2), 10, 4, 10, 2.5, 1.5, 2.5, 0.025) | |
2504 | local num = 0 | |
2505 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2506 | refpart.CFrame = RootPart.CFrame * cf(2.5, 0, -6) | |
2507 | refpart.Anchored = true | |
2508 | game:GetService("Debris"):AddItem(refpart, 3) | |
2509 | for i = 1, 40 do | |
2510 | local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2511 | refpart2.CFrame = refpart.CFrame * cf(0, 0, num) | |
2512 | refpart2.Anchored = true | |
2513 | game:GetService("Debris"):AddItem(refpart2, 1) | |
2514 | local TheHit = refpart2.Position + vt(0, -1, 0) | |
2515 | local MouseLook = cf((refpart2.Position + TheHit) / 2, TheHit) | |
2516 | local hit, pos = rayCast(refpart2.Position, MouseLook.lookVector, 999, Character) | |
2517 | if hit ~= nil then | |
2518 | local refpart3 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2519 | refpart3.CFrame = cf(pos) | |
2520 | refpart3.Anchored = true | |
2521 | game:GetService("Debris"):AddItem(refpart3, 1) | |
2522 | MagicSphere(BrickColor.new("Dark indigo"), refpart3.CFrame, 40, 20, 40, -2, -1, -2, 0.015) | |
2523 | MagicWave(CustomColor, refpart3.CFrame, 7, 10, 7,-0.08, -.2, -0.08, 0.03) | |
2524 | so("http://www.roblox.com/asset/?id=161006093", refpart3, 1, 0.6) | |
2525 | MagniDamage(refpart3, 20, 2, 6, math.random(5, 20), "Normal", 0, 1, 0, nil, true, true) | |
2526 | end | |
2527 | num = num - 5 | |
2528 | wait() | |
2529 | end | |
2530 | Speed.Value = Speed.Value + oldspeedvalue | |
2531 | attack = false | |
2532 | end | |
2533 | ||
2534 | ||
2535 | function DanceMoves() | |
2536 | attack = true | |
2537 | ||
2538 | local oldspeedvalue = Speed.Value | |
2539 | Speed.Value = 0 | |
2540 | ||
2541 | for i = 0,3 do | |
2542 | --[ | |
2543 | for i = 0, 0.5, 0.05 do | |
2544 | ArtificialHeartbeat.Event:wait() | |
2545 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2546 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2547 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
2548 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
2549 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2550 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2551 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2552 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2553 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2554 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2555 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2556 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2557 | end | |
2558 | ||
2559 | --]] | |
2560 | ||
2561 | ||
2562 | ||
2563 | ||
2564 | ||
2565 | ||
2566 | ||
2567 | ||
2568 | ||
2569 | ||
2570 | ||
2571 | ||
2572 | ||
2573 | ||
2574 | ||
2575 | ||
2576 | ||
2577 | ||
2578 | for i = 0, 1.5, 0.05 do | |
2579 | ArtificialHeartbeat.Event:wait() | |
2580 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(1, 0, 11.5 + idleangle) * angles(math.rad(-5), math.rad(-10), math.rad(45)), 0.15) | |
2581 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(45)), 0.15) | |
2582 | RW.C0 = clerp(RW.C0, cf(1.25, 0.1 + idleangle, 0) * angles(math.rad(90), math.rad(-20), math.rad(-50)) * RWC0, 0.15) | |
2583 | LW.C0 = clerp(LW.C0, cf(-1.25, 0.5 + idleangle, -0.2) * angles(math.rad(90), math.rad(-70), math.rad(-80)) * LWC0, 0.15) | |
2584 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(-20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2585 | LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2586 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2587 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2588 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 1.5, -0.5), 0.15) | |
2589 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2590 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2591 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(3, 2.5, 0), 0.15) | |
2592 | end | |
2593 | ||
2594 | ||
2595 | ||
2596 | ||
2597 | ||
2598 | ||
2599 | ||
2600 | for i = 0, 0.5, 0.05 do | |
2601 | ArtificialHeartbeat.Event:wait() | |
2602 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2603 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2604 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
2605 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
2606 | RH.C0 = clerp(RH.C0, cf(1, -1.0 - idleangle, -0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2607 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2608 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2609 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2610 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2611 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2612 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2613 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2614 | end | |
2615 | ||
2616 | ||
2617 | ||
2618 | ||
2619 | ||
2620 | ||
2621 | ||
2622 | ||
2623 | ||
2624 | ||
2625 | ||
2626 | for i = 0, 1.5, 0.05 do | |
2627 | ArtificialHeartbeat.Event:wait() | |
2628 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(-1, 0, 11.5 + idleangle) * angles(math.rad(-5), math.rad(10), math.rad(-45)), 0.15) | |
2629 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-45)), 0.15) | |
2630 | RW.C0 = clerp(RW.C0, cf(1.25, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(70), math.rad(80)) * RWC0, 0.15) | |
2631 | LW.C0 = clerp(LW.C0, cf(-1.25, 0.1 + idleangle, -0.2) * angles(math.rad(90), math.rad(20), math.rad(50)) * LWC0, 0.15) | |
2632 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2633 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2634 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2635 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2636 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2637 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 1.5, -0.5), 0.15) | |
2638 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-3, 2.5, 0), 0.15) | |
2639 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2640 | end | |
2641 | end | |
2642 | Speed.Value = Speed.Value + oldspeedvalue | |
2643 | attack = false | |
2644 | end | |
2645 | ||
2646 | function Move4() | |
2647 | Chat("Shadow Blast!...") | |
2648 | attack = true | |
2649 | for i = 0, 1, 0.25 do | |
2650 | ArtificialHeartbeat.Event:wait() | |
2651 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2652 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2653 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2654 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2655 | if Anim ~= "Walk" then | |
2656 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2657 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2658 | elseif Anim == "Walk" then | |
2659 | if walkinganim == true then | |
2660 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2661 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2662 | else | |
2663 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2664 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2665 | end | |
2666 | end | |
2667 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2668 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2669 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2670 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2671 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2672 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2673 | end | |
2674 | for i = 0, 1, 0.04 do | |
2675 | ArtificialHeartbeat.Event:wait() | |
2676 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2677 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2678 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2679 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2680 | if Anim ~= "Walk" then | |
2681 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2682 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2683 | elseif Anim == "Walk" then | |
2684 | if walkinganim == true then | |
2685 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2686 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2687 | else | |
2688 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2689 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2690 | end | |
2691 | end | |
2692 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2693 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2694 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2695 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2696 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2697 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2698 | end | |
2699 | local orbpart = part(3, Effects, "Neon", 0, 0.5, CustomColor, "Effect", vt()) | |
2700 | local orbmesh = mesh("SpecialMesh", orbpart, "Sphere", "", vt(0, 0, 0), vt(15, 15, 15)) | |
2701 | local orbweld = weld(orbpart, Torso, orbpart, cf(0, 0, 0), cf(0, -15, 0)) | |
2702 | game:GetService("Debris"):AddItem(orbpart, 5) | |
2703 | so("http://roblox.com/asset/?id=137463716", orbpart, 1, 0.6) | |
2704 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2705 | for i = 0, 0.4, 0.005 do | |
2706 | ArtificialHeartbeat.Event:wait() | |
2707 | Mesh.Scale = Mesh.Scale + vt(0.90, 0.90, 0.90) | |
2708 | MagicBlock(CustomColor, true, orbpart.CFrame, 30, 30, 30, -5, -5, -5, 0.05) | |
2709 | MagicBlock("Black", true, orbpart.CFrame, 24, 24, 24, 3,3,3, 0.4) | |
2710 | ||
2711 | local orbchargeeffect = part(3, Effects, "Neon", 0, 0, CustomColor, "Effect", vt()) | |
2712 | local orbchargeeffectmesh = mesh("SpecialMesh", orbchargeeffect, "Sphere", "", vt(0, 0, 0), vt(8, math.random(10, 15), 8)) | |
2713 | local orbchargecframe = angles(math.rad(math.random(-150, 150)), math.rad(math.random(-150, 150)), math.rad(math.random(-150, 150))) * cf(0, math.random(10, 50), 0) | |
2714 | orbchargeeffect.CFrame = orbpart.CFrame * orbchargecframe | |
2715 | orbchargeeffect.Anchored = true | |
2716 | game:GetService("Debris"):AddItem(orbchargeeffect, 2) | |
2717 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2718 | for i = 0, 1, 0.1 do | |
2719 | ArtificialHeartbeat.Event:wait() | |
2720 | Part.Transparency = i | |
2721 | Part.CFrame = Part.CFrame * cf(0, -1, 0) | |
2722 | end | |
2723 | Part.Parent = nil | |
2724 | end), orbchargeeffect, orbchargeeffectmesh) | |
2725 | end | |
2726 | wait(0.2) | |
2727 | local range = 1999 | |
2728 | local MainPos = Part.Position | |
2729 | local MainPos2 = Mouse.Hit.p | |
2730 | local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2) | |
2731 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, range, ShotTarget.Parent) | |
2732 | local mag = (MainPos - pos).magnitude | |
2733 | MagicCylinder("Black", cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 10, 2.5, 0, 2.5, 0.015) | |
2734 | MagicCylinder(CustomColor, cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 10, 3.0, 0, 3.0, 0.015) | |
2735 | for i = 1, 5 do | |
2736 | local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, mag / 5 * (i / 2), 0) | |
2737 | MagicRing("Black", ringcf * angles(math.rad(90), 0, 0), 5, 5, 1.1, 0.08, 0.08, 0.0, 0.02) | |
2738 | end | |
2739 | for i = 0, 5 do | |
2740 | local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, -mag / 5 * (i / 2), 0) | |
2741 | MagicRing("Black", ringcf * angles(math.rad(90), 0, 0), 5, 5, 1.1, 0.08, 0.08, 0.0, 0.02) | |
2742 | end | |
2743 | so("http://roblox.com/asset/?id=183763506", Part, 1, 0.6) | |
2744 | so("http://roblox.com/asset/?id=178452221", Part, 1, 0.6) | |
2745 | so("http://www.roblox.com/asset/?id=87767777", Part, 1, 1) | |
2746 | if hit ~= nil then | |
2747 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2748 | refpart.CFrame = cf(pos) | |
2749 | refpart.Anchored = true | |
2750 | game:GetService("Debris"):AddItem(refpart, 1) | |
2751 | MagicBlock(CustomColor, true, refpart.CFrame, 45, 45, 45, 4, 4, 4, 0.01) | |
2752 | MagicSphere("Black", refpart.CFrame, 35, 35, 35, 4, 4, 4, 0.02) | |
2753 | so("http://roblox.com/asset/?id=183763506", refpart, 1, 0.6) | |
2754 | so("http://roblox.com/asset/?id=178452221", refpart, 1, 0.6) | |
2755 | so("http://www.roblox.com/Asset?ID=87767777", refpart, 2, 2) | |
2756 | Damagefunc(hit, 40, 80, 60, "Normal", RootPart, 0, 1, 0, nil, true, true) | |
2757 | MagniDamage(refpart, 20, 10, 30, 40, "Normal", 0, 1, 0, nil, true, true) | |
2758 | end | |
2759 | for i = 0, 1, 0.01 do | |
2760 | ArtificialHeartbeat.Event:wait() | |
2761 | Mesh.Scale = Mesh.Scale + vt(0.5, 0.5, 0.5) | |
2762 | Part.Transparency = Part.Transparency + 0.01 | |
2763 | end | |
2764 | Part.Parent = nil | |
2765 | end), orbpart, orbmesh) | |
2766 | for i = 0, 0.35, 0.004 do | |
2767 | ArtificialHeartbeat.Event:wait() | |
2768 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2769 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2770 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2771 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2772 | if Anim ~= "Walk" then | |
2773 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2774 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2775 | elseif Anim == "Walk" then | |
2776 | if walkinganim == true then | |
2777 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2778 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2779 | else | |
2780 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2781 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2782 | end | |
2783 | end | |
2784 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2785 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2786 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2787 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2788 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2789 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2790 | end | |
2791 | for i = 0, 1, 0.25 do | |
2792 | ArtificialHeartbeat.Event:wait() | |
2793 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2794 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2795 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2796 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2797 | if Anim ~= "Walk" then | |
2798 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2799 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2800 | elseif Anim == "Walk" then | |
2801 | if walkinganim == true then | |
2802 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2803 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2804 | else | |
2805 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2806 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2807 | end | |
2808 | end | |
2809 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2810 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2811 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2812 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2813 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2814 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2815 | end | |
2816 | attack = false | |
2817 | end | |
2818 | function Move5() | |
2819 | Chat("Soul Blast!") | |
2820 | attack = true | |
2821 | local oldspeedvalue = Speed.Value | |
2822 | Speed.Value = 0 | |
2823 | for i = 0, 1, 0.25 do | |
2824 | ArtificialHeartbeat.Event:wait() | |
2825 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2826 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2827 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-10)) * RWC0, 0.15) | |
2828 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
2829 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2830 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2831 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2832 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2833 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
2834 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
2835 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2836 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2837 | end | |
2838 | ||
2839 | for i = 0, 1, 0.015 do | |
2840 | ArtificialHeartbeat.Event:wait() | |
2841 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2842 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2843 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-10)) * RWC0, 0.15) | |
2844 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.15) | |
2845 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2846 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2847 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2848 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2849 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
2850 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
2851 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2852 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2853 | end | |
2854 | wait(.1) | |
2855 | so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6) | |
2856 | for i = 0, 1, 0.25 do | |
2857 | ArtificialHeartbeat.Event:wait() | |
2858 | MagicBlock(BrickColor.new("Dark indigo"), true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05) | |
2859 | MagicBlock(BrickColor.new("Dark indigo"), true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05) | |
2860 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2861 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2862 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2863 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2864 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
2865 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
2866 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2867 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2868 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2869 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2870 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
2871 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2872 | end | |
2873 | local refpart = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt()) | |
2874 | refpart.CFrame = RootPart.CFrame * cf(0, 500, -20) | |
2875 | refpart.Anchored = true | |
2876 | game:GetService("Debris"):AddItem(refpart, 1) | |
2877 | local TheHit = refpart.Position + vt(0, -1, 0) | |
2878 | local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit) | |
2879 | local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character) | |
2880 | local mag = (refpart.Position - pos).magnitude | |
2881 | local refpart2 = part(3, Effects, "Neon", 0, 1, BrickColor.new("Dark indigo"), "Effect", vt()) | |
2882 | refpart2.CFrame = cf(pos) | |
2883 | refpart2.Anchored = true | |
2884 | game:GetService("Debris"):AddItem(refpart2, 1) | |
2885 | MagicCylinder(BrickColor.new("Dark indigo"), cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 145, mag * 145, 145, 0.1, 0, 0.1, 0.015) | |
2886 | if hit ~= nil then | |
2887 | MagicBlock(BrickColor.new("Dark indigo"), true, refpart2.CFrame, 15, 15, 15, 15.5, 15.5, 15.5, 0.005) | |
2888 | MagicSphere(BrickColor.new("Really black"), refpart2.CFrame, 15, 15, 15, 14, 14, 14, 0.005) | |
2889 | MagicWave(BrickColor.new("Dark indigo"), refpart2.CFrame, 5, 5, 5, 2, 0.5, 2, 0.025) | |
2890 | MagicRing(BrickColor.new("Dark indigo"), refpart2.CFrame * angles(math.rad(90), 0, 0), 12.5, 12.5, 12.5, 5, 5, 5, 0.025) | |
2891 | so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8) | |
2892 | so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8) | |
2893 | MagniDamage(refpart2, 99, 129, 149, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true) | |
2894 | end | |
2895 | for i = 0, 1, 0.02 do | |
2896 | ArtificialHeartbeat.Event:wait() | |
2897 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2898 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2899 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2900 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2901 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
2902 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
2903 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2904 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2905 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2906 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2907 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
2908 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2909 | end | |
2910 | Speed.Value = Speed.Value + oldspeedvalue | |
2911 | attack = false | |
2912 | end | |
2913 | ||
2914 | hold = false | |
2915 | Mouse.Button1Down:connect(function() | |
2916 | if attack == true or equipped == false then | |
2917 | return | |
2918 | end | |
2919 | hold = true | |
2920 | if attacktype == 1 then | |
2921 | attacktype = 2 | |
2922 | attackone() | |
2923 | elseif attacktype == 2 then | |
2924 | attacktype = 3 | |
2925 | attacktwo() | |
2926 | elseif attacktype == 3 then | |
2927 | attacktype = 4 | |
2928 | attackthree() | |
2929 | elseif attacktype == 4 then | |
2930 | attacktype = 1 | |
2931 | attackfour() | |
2932 | end | |
2933 | coroutine.resume(coroutine.create(function() | |
2934 | for i = 1, 50 do | |
2935 | if attack == false then | |
2936 | wait() | |
2937 | end | |
2938 | end | |
2939 | if attack == false then | |
2940 | attacktype = 1 | |
2941 | end | |
2942 | end)) | |
2943 | end) | |
2944 | if allowhopperbin == true then | |
2945 | function ob1u(Mouse) | |
2946 | hold = false | |
2947 | end | |
2948 | end | |
2949 | Mouse.KeyDown:connect(function(key) | |
2950 | if key == "f" and canunequiporequip == true and attack == false then | |
2951 | if equipped == false then | |
2952 | equipped = true | |
2953 | ||
2954 | if disableanimate == true then | |
2955 | Animate.Disabled = true | |
2956 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
2957 | idleanimation:Play() | |
2958 | end | |
2959 | if disableanimator == true then | |
2960 | Animator.Parent = nil | |
2961 | end | |
2962 | if disablemovingarms == true then | |
2963 | RW.Parent = Torso | |
2964 | LW.Parent = Torso | |
2965 | RSH.Parent = nil | |
2966 | LSH.Parent = nil | |
2967 | end | |
2968 | equipanim() | |
2969 | elseif equipped == true then | |
2970 | equipped = false | |
2971 | unequipanim() | |
2972 | ArtificialHeartbeat.Event:wait() | |
2973 | if disablemovingarms == true then | |
2974 | RW.Parent = nil | |
2975 | LW.Parent = nil | |
2976 | RSH.Parent = Torso | |
2977 | LSH.Parent = Torso | |
2978 | end | |
2979 | if disableanimator == true then | |
2980 | Animator.Parent = Humanoid | |
2981 | end | |
2982 | if disableanimate == true then | |
2983 | Animate.Disabled = false | |
2984 | end | |
2985 | end | |
2986 | end | |
2987 | if key == "e" and attack == false and equipped == true then | |
2988 | EAbility() | |
2989 | end | |
2990 | if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and mana >= skill1mana then | |
2991 | subtractmana(skill1mana) | |
2992 | cooldown1 = 0 | |
2993 | Move1() | |
2994 | end | |
2995 | if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and mana >= skill2mana then | |
2996 | subtractmana(skill2mana) | |
2997 | cooldown2 = 0 | |
2998 | Move2() | |
2999 | end | |
3000 | if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and mana >= skill3mana then | |
3001 | subtractmana(skill3mana) | |
3002 | cooldown3 = 0 | |
3003 | Move3() | |
3004 | end | |
3005 | if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then | |
3006 | subtractmana(skill4mana) | |
3007 | cooldown4 = 0 | |
3008 | Move4() | |
3009 | end | |
3010 | if key == "b" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then | |
3011 | subtractmana(skill4mana) | |
3012 | cooldown4 = 0 | |
3013 | Move5() | |
3014 | end | |
3015 | if key == "t" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then | |
3016 | DanceMoves() | |
3017 | end | |
3018 | if key == "m" then | |
3019 | hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character) | |
3020 | if hitfloor == nil then | |
3021 | RootPart.CFrame = RootPart.CFrame * cf(0, 12, 0) | |
3022 | end | |
3023 | end | |
3024 | end) | |
3025 | if allowhopperbin == true then | |
3026 | function key2(key) | |
3027 | end | |
3028 | end | |
3029 | if allowhopperbin == true then | |
3030 | function s(Mouse) | |
3031 | Mouse.Button1Down:connect(function() | |
3032 | ob1d(Mouse) | |
3033 | end) | |
3034 | Mouse.Button1Up:connect(function() | |
3035 | ob1u(Mouse) | |
3036 | end) | |
3037 | Mouse.KeyDown:connect(key) | |
3038 | Mouse.KeyUp:connect(key2) | |
3039 | end | |
3040 | end | |
3041 | if allowhopperbin == true then | |
3042 | function ds(Mouse) | |
3043 | end | |
3044 | end | |
3045 | if allowhopperbin == true then | |
3046 | Bin.Selected:connect(s) | |
3047 | Bin.Deselected:connect(ds) | |
3048 | end | |
3049 | function updateskills() | |
3050 | if allowabilitestofunction == true then | |
3051 | if cooldown1 <= co1 then | |
3052 | cooldown1 = cooldown1 + 0.03333333333333333 | |
3053 | if cooldown1 >= co1 then | |
3054 | cooldown1 = co1 | |
3055 | end | |
3056 | end | |
3057 | if cooldown2 <= co2 then | |
3058 | cooldown2 = cooldown2 + 0.03333333333333333 | |
3059 | if cooldown2 >= co2 then | |
3060 | cooldown2 = co2 | |
3061 | end | |
3062 | end | |
3063 | if cooldown3 <= co3 then | |
3064 | cooldown3 = cooldown3 + 0.03333333333333333 | |
3065 | if cooldown3 >= co3 then | |
3066 | cooldown3 = co3 | |
3067 | end | |
3068 | end | |
3069 | if cooldown4 <= co4 then | |
3070 | cooldown4 = cooldown4 + 0.03333333333333333 | |
3071 | elseif cooldown4 >= co4 then | |
3072 | cooldown4 = co4 | |
3073 | end | |
3074 | if changebarcolorsifnotenoughmana == true then | |
3075 | if mana <= skill1mana then | |
3076 | bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
3077 | else | |
3078 | bar4.BackgroundColor3 = skillcolorscheme | |
3079 | end | |
3080 | if mana <= skill2mana then | |
3081 | bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
3082 | else | |
3083 | bar3.BackgroundColor3 = skillcolorscheme | |
3084 | end | |
3085 | if mana <= skill3mana then | |
3086 | bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
3087 | else | |
3088 | bar1.BackgroundColor3 = skillcolorscheme | |
3089 | end | |
3090 | if mana <= skill4mana then | |
3091 | bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
3092 | else | |
3093 | bar2.BackgroundColor3 = skillcolorscheme | |
3094 | end | |
3095 | elseif changebarcolorsifnotenoughmana == false then | |
3096 | bar1.BackgroundColor3 = skillcolorscheme | |
3097 | bar2.BackgroundColor3 = skillcolorscheme | |
3098 | bar3.BackgroundColor3 = skillcolorscheme | |
3099 | bar4.BackgroundColor3 = skillcolorscheme | |
3100 | end | |
3101 | end | |
3102 | if alternatemanaregensystem == false then | |
3103 | if mana <= maxmana then | |
3104 | mana = mana + recovermana / 30 | |
3105 | elseif mana >= maxmana then | |
3106 | mana = maxmana | |
3107 | end | |
3108 | elseif alternatemanaregensystem == true then | |
3109 | if mana >= maxmana then | |
3110 | mana = maxmana | |
3111 | elseif manadelay <= manawait then | |
3112 | manadelay = manadelay + 1 | |
3113 | else | |
3114 | manadelay = 0 | |
3115 | mana = mana + 1 | |
3116 | end | |
3117 | end | |
3118 | if allowstunbar == true then | |
3119 | if 0 >= StunValue.Value then | |
3120 | StunValue.Value = 0 | |
3121 | elseif stundelay <= stunwait then | |
3122 | stundelay = stundelay + 1 | |
3123 | else | |
3124 | stundelay = 0 | |
3125 | StunValue.Value = StunValue.Value - 1 | |
3126 | end | |
3127 | elseif allowstunbar == false then | |
3128 | StunValue.Value = 0 | |
3129 | end | |
3130 | end | |
3131 | if allowmenutofunction == true then | |
3132 | ArtificialHeartbeat.Event:connect(function() | |
3133 | updateskills() | |
3134 | if allowabilitestofunction == true then | |
3135 | framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3136 | framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3137 | framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3138 | framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3139 | bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3140 | bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3141 | bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3142 | bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3143 | end | |
3144 | manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3145 | manacover:TweenSize(ud(1 * (mana / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3146 | healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3147 | healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3148 | if allowstunbar == true then | |
3149 | stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3150 | stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3151 | end | |
3152 | if showhealthmanaandstunnumbers == true then | |
3153 | manatext.Text = "Mana [" .. mana .. "]" | |
3154 | healthtext.Text = "Health [" .. Humanoid.Health .. "]" | |
3155 | if allowstunbar == true then | |
3156 | stuntext.Text = "Stun [" .. StunValue.Value .. "]" | |
3157 | end | |
3158 | end | |
3159 | if showstats == true then | |
3160 | defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3161 | damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3162 | speedframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3163 | defensetext.Text = "Defense: " .. Defense.Value | |
3164 | damagetext.Text = "Damage: " .. Damage.Value | |
3165 | speedtext.Text = "Speed: " .. Speed.Value | |
3166 | end | |
3167 | end) | |
3168 | end | |
3169 | ArtificialHeartbeat.Event:connect(function() | |
3170 | if Humanoid.Health < 100 and dieanim == false then | |
3171 | dieanim = true | |
3172 | Chat("Nooooooo!!!!") | |
3173 | ||
3174 | unequipanim() | |
3175 | ||
3176 | end | |
3177 | if Humanoid.Health > 0 then | |
3178 | if walkspeeddependsonspeedvalue == true then | |
3179 | if 0 > Speed.Value or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true then | |
3180 | Humanoid.WalkSpeed = 0 | |
3181 | else | |
3182 | Humanoid.WalkSpeed = 16 * Speed.Value | |
3183 | end | |
3184 | end | |
3185 | if StunValue.Value >= maxstun then | |
3186 | StunValue.Value = 0 | |
3187 | StunAnim.Value = true | |
3188 | end | |
3189 | if StaggerAnim.Value == true and staganim == false then | |
3190 | coroutine.resume(coroutine.create(function() | |
3191 | staganim = true | |
3192 | while attack == true do | |
3193 | ArtificialHeartbeat.Event:wait() | |
3194 | end | |
3195 | Stagger() | |
3196 | StaggerAnim.Value = false | |
3197 | staganim = false | |
3198 | end)) | |
3199 | end | |
3200 | if StaggerHitAnim.Value == true and staghitanim == false then | |
3201 | coroutine.resume(coroutine.create(function() | |
3202 | staghitanim = true | |
3203 | while attack == true do | |
3204 | ArtificialHeartbeat.Event:wait() | |
3205 | end | |
3206 | StaggerHit() | |
3207 | StaggerHitAnim.Value = false | |
3208 | staghitanim = false | |
3209 | end)) | |
3210 | end | |
3211 | if StunAnim.Value == true and stunanim == false or 100 <= StunValue.Value then | |
3212 | coroutine.resume(coroutine.create(function() | |
3213 | StunValue.Value = 0 | |
3214 | stunanim = true | |
3215 | while attack == true do | |
3216 | ArtificialHeartbeat.Event:wait() | |
3217 | end | |
3218 | Stun() | |
3219 | StunAnim.Value = false | |
3220 | stunanim = false | |
3221 | end)) | |
3222 | end | |
3223 | sine = sine + change | |
3224 | someangle = someangle % 100 + change2 / 10 | |
3225 | local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude | |
3226 | local velderp = RootPart.Velocity.y | |
3227 | local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position) | |
3228 | hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character) | |
3229 | if donum >= 0.5 then | |
3230 | handidle = true | |
3231 | elseif donum <= 0 then | |
3232 | handidle = false | |
3233 | end | |
3234 | if handidle == false then | |
3235 | donum = donum + 0.002 | |
3236 | else | |
3237 | donum = donum - 0.002 | |
3238 | end | |
3239 | if equipped == true or equipped == false then | |
3240 | if attack == false then | |
3241 | idle = idle + 1 | |
3242 | else | |
3243 | idle = 0 | |
3244 | end | |
3245 | if not (idle >= 500) or attack == false then | |
3246 | end | |
3247 | if leftarm == true then | |
3248 | if Anim == "Walk" and equipped == true and attack == false then | |
3249 | if alternatewalk == false then | |
3250 | if walkinganim == true then | |
3251 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3252 | else | |
3253 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3254 | end | |
3255 | elseif walkinganim == true then | |
3256 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3257 | else | |
3258 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3259 | end | |
3260 | elseif Anim ~= "Walk" and equipped == true or attack == true then | |
3261 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3262 | end | |
3263 | end | |
3264 | if rightarm == true then | |
3265 | if Anim == "Walk" and equipped == true and attack == false then | |
3266 | if alternatewalk == false then | |
3267 | if walkinganim == true then | |
3268 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3269 | else | |
3270 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3271 | end | |
3272 | elseif walkinganim == true then | |
3273 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3274 | else | |
3275 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3276 | end | |
3277 | elseif Anim ~= "Walk" and equipped == true or attack == true then | |
3278 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3279 | end | |
3280 | end | |
3281 | if allowwalking == true then | |
3282 | if Anim == "Walk" and equipped == true then | |
3283 | if alternatewalk == false then | |
3284 | if walkinganim == true then | |
3285 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3286 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3287 | else | |
3288 | RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3289 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3290 | end | |
3291 | elseif walkinganim == true then | |
3292 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3293 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3294 | else | |
3295 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3296 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3297 | end | |
3298 | elseif Anim ~= "Walk" and equipped == true then | |
3299 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3300 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3301 | end | |
3302 | end | |
3303 | if velderp > 1 and hitfloor == nil then | |
3304 | Anim = "Jump" | |
3305 | if attack == false and equipped == true then | |
3306 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3307 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.1) | |
3308 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)) * RWC0, 0.1) | |
3309 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * LWC0, 0.1) | |
3310 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.1) | |
3311 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.1) | |
3312 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
3313 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
3314 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3315 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3316 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
3317 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
3318 | end | |
3319 | elseif velderp < -1 and hitfloor == nil then | |
3320 | Anim = "Fall" | |
3321 | if attack == false and equipped == true then | |
3322 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3323 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1) | |
3324 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(60)) * RWC0, 0.1) | |
3325 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.1) | |
3326 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.1) | |
3327 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
3328 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
3329 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
3330 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3331 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3332 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
3333 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
3334 | end | |
3335 | elseif torvel < 1 and hitfloor ~= nil then | |
3336 | Anim = "Idle" | |
3337 | if attack == false and equipped == true then | |
3338 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
3339 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.075) | |
3340 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.075) | |
3341 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.075) | |
3342 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
3343 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
3344 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.075) | |
3345 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.075) | |
3346 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.075) | |
3347 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.075) | |
3348 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.075) | |
3349 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.075) | |
3350 | end | |
3351 | elseif torvel > 1 and hitfloor ~= nil then | |
3352 | Anim = "Walk" | |
3353 | walk = walk + 0.5 | |
3354 | if walk >= 20 then | |
3355 | walk = 0 | |
3356 | if walkinganim == true then | |
3357 | walkinganim = false | |
3358 | elseif walkinganim == false then | |
3359 | walkinganim = true | |
3360 | end | |
3361 | end | |
3362 | if attack == false and equipped == true then | |
3363 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3364 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
3365 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.1) | |
3366 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.1) | |
3367 | if walkinganim == true then | |
3368 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.1) | |
3369 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.1) | |
3370 | else | |
3371 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-55)), 0.1) | |
3372 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-55)), 0.1) | |
3373 | end | |
3374 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
3375 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
3376 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3377 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3378 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
3379 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
3380 | end | |
3381 | end | |
3382 | end | |
3383 | end | |
3384 | end) |