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