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