SHOW:
|
|
- or go back to the newest paste.
1 | -----------//INFLUX\\----------- | |
2 | --[[Movelist | |
3 | Mouseclick = 3 attacks | |
4 | Attack 1 = Basic swipe | |
5 | Attack 2 = Lunge | |
6 | Attack 3 = Whirlwind | |
7 | E = Waterball | |
8 | R = Orbital Cannon(WILL CAUSE LAG AND ANNIHILATES ALMOST EVERYTHING!, DO THIS IN PLACE 2 TO PREVENT BANS!!!) | |
9 | ---------]] | |
10 | ||
11 | --Whoever thought it was funny to decompile my best work and leak it deserves to get shot in his leg.-- | |
12 | --I've seen alot of scripters quit lately, i won't be one of them though, i still find enjoyment out of scripting.-- | |
13 | --Influx! Yes the brother of Reflux! Even though it's alot smaller than Reflux... Stupid FE!-- | |
14 | ||
15 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {} | |
16 | do | |
17 | script.Parent = owner.Character | |
18 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
19 | local function NewFakeEvent() | |
20 | local Bind = Instance.new("BindableEvent") | |
21 | local Fake;Fake = {Connections = {}, | |
22 | fakeEvent=true; | |
23 | Connect=function(self,Func) | |
24 | Bind.Event:connect(Func) | |
25 | self.Connections[Bind] = true | |
26 | return setmetatable({Connected = true},{ | |
27 | __index = function (self,Index) | |
28 | if Index:lower() == "disconnect" then | |
29 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
30 | end | |
31 | return Fake[Index] | |
32 | end; | |
33 | __tostring = function() return "Connection" end; | |
34 | }) | |
35 | end} | |
36 | Fake.connect = Fake.Connect;return Fake; | |
37 | end | |
38 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
39 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
40 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
41 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
42 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
43 | local function TriggerEvent(self,Event,...) | |
44 | local Trigger = Mouse[Event] | |
45 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
46 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
47 | end | |
48 | end | |
49 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
50 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
51 | if FiredBy.Name ~= owner.Name then return end | |
52 | if Input.MouseEvent then | |
53 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
54 | else | |
55 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
56 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
57 | for _,Action in pairs(ContextActionService.Actions) do | |
58 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
59 | end | |
60 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
61 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
62 | end | |
63 | end) | |
64 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
65 | Event.Parent = NLS([[ | |
66 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
67 | local Input = function(Input,gameProcessedEvent) | |
68 | if gameProcessedEvent then return end | |
69 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
70 | end | |
71 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
72 | local Hit,Target | |
73 | while wait(1/30) do | |
74 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
75 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
76 | end | |
77 | end | |
78 | ]],owner.Character) | |
79 | end | |
80 | RealGame = game;game = setmetatable({},{ | |
81 | __index = function (self,Index) | |
82 | local Sandbox = function (Thing) | |
83 | if Thing:IsA("Player") then | |
84 | local RealPlayer = Thing | |
85 | return setmetatable({},{ | |
86 | __index = function (self,Index) | |
87 | local Type = type(RealPlayer[Index]) | |
88 | if Type == "function" then | |
89 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
90 | return function (self)return InternalData["Mouse"] end | |
91 | end | |
92 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
93 | end | |
94 | return RealPlayer[Index] | |
95 | end; | |
96 | __tostring = function(self) return RealPlayer.Name end | |
97 | }) | |
98 | end | |
99 | end | |
100 | if RealGame[Index] then | |
101 | local Type = type(RealGame[Index]) | |
102 | if Type == "function" then | |
103 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
104 | return function (self,Service) | |
105 | local FakeServices = { | |
106 | ["players"] = function() | |
107 | return setmetatable({},{ | |
108 | __index = function (self2,Index2) | |
109 | local RealService = RealGame:GetService(Service) | |
110 | local Type2 = type(Index2) | |
111 | if Type2 == "function" then | |
112 | return function (self,...) return RealService[Index2](RealService,...)end | |
113 | else | |
114 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
115 | return RealService[Index2] | |
116 | end | |
117 | end; | |
118 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
119 | }) | |
120 | end; | |
121 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
122 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
123 | ["runservice"] = function() | |
124 | return setmetatable({},{ | |
125 | __index = function(self2,Index2) | |
126 | local RealService = RealGame:GetService(Service) | |
127 | local Type2 = type(Index2) | |
128 | if Type2 == "function" then | |
129 | return function (self,...) return RealService[Index2](RealService,...) end | |
130 | else | |
131 | local RunServices = { | |
132 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
133 | ["renderstepped"] = function() return RealService["Stepped"] end | |
134 | } | |
135 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
136 | return RealService[Index2] | |
137 | end | |
138 | end | |
139 | }) | |
140 | end | |
141 | } | |
142 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
143 | return RealGame:GetService(Service) | |
144 | end | |
145 | end | |
146 | return function (self,...) return RealGame[Index](RealGame,...) end | |
147 | else | |
148 | if game:GetService(Index) then return game:GetService(Index) end | |
149 | return RealGame[Index] | |
150 | end | |
151 | end | |
152 | return nil | |
153 | end | |
154 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...") | |
155 | ||
156 | Player=game.Players.LocalPlayer | |
157 | Character=Player.Character | |
158 | Character.Humanoid.Name = "noneofurbusiness" | |
159 | hum = Character.noneofurbusiness | |
160 | LeftArm=Character["Left Arm"] | |
161 | LeftLeg=Character["Left Leg"] | |
162 | RightArm=Character["Right Arm"] | |
163 | RightLeg=Character["Right Leg"] | |
164 | Root=Character["HumanoidRootPart"] | |
165 | Head=Character["Head"] | |
166 | Torso=Character["Torso"] | |
167 | Neck=Torso["Neck"] | |
168 | mouse = Player:GetMouse() | |
169 | walking = false | |
170 | hitdebounce = false | |
171 | debounce = false | |
172 | jumping = false | |
173 | attacking = false | |
174 | firsttime = false | |
175 | tauntdebounce = false | |
176 | position = nil | |
177 | MseGuide = true | |
178 | running = false | |
179 | settime = 0 | |
180 | sine = 0 | |
181 | t = 0 | |
182 | throwballv = false | |
183 | ws = 18 | |
184 | change = 1 | |
185 | wtr1 = false | |
186 | combo1 = true | |
187 | equip = false | |
188 | dgs = 75 | |
189 | combo2 = false | |
190 | switch1 = true | |
191 | switch2 = false | |
192 | firsttime2 = false | |
193 | combo3 = false | |
194 | gunallowance = false | |
195 | orbitalcannon = false | |
196 | shooting = false | |
197 | RunSrv = game:GetService("RunService") | |
198 | RenderStepped = game:GetService("RunService").RenderStepped | |
199 | removeuseless = game:GetService("Debris") | |
200 | ||
201 | screenGui = Instance.new("ScreenGui") | |
202 | screenGui.Parent = script.Parent | |
203 | ||
204 | local HEADLERP = Instance.new("ManualWeld") | |
205 | HEADLERP.Parent = Head | |
206 | HEADLERP.Part0 = Head | |
207 | HEADLERP.Part1 = Head | |
208 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
209 | ||
210 | local TORSOLERP = Instance.new("ManualWeld") | |
211 | TORSOLERP.Parent = Root | |
212 | TORSOLERP.Part0 = Torso | |
213 | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
214 | ||
215 | local ROOTLERP = Instance.new("ManualWeld") | |
216 | ROOTLERP.Parent = Root | |
217 | ROOTLERP.Part0 = Root | |
218 | ROOTLERP.Part1 = Torso | |
219 | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
220 | ||
221 | local RIGHTARMLERP = Instance.new("ManualWeld") | |
222 | RIGHTARMLERP.Parent = RightArm | |
223 | RIGHTARMLERP.Part0 = RightArm | |
224 | RIGHTARMLERP.Part1 = Torso | |
225 | RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
226 | ||
227 | local LEFTARMLERP = Instance.new("ManualWeld") | |
228 | LEFTARMLERP.Parent = LeftArm | |
229 | LEFTARMLERP.Part0 = LeftArm | |
230 | LEFTARMLERP.Part1 = Torso | |
231 | LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
232 | ||
233 | local RIGHTLEGLERP = Instance.new("ManualWeld") | |
234 | RIGHTLEGLERP.Parent = RightLeg | |
235 | RIGHTLEGLERP.Part0 = RightLeg | |
236 | RIGHTLEGLERP.Part1 = Torso | |
237 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
238 | ||
239 | local LEFTLEGLERP = Instance.new("ManualWeld") | |
240 | LEFTLEGLERP.Parent = LeftLeg | |
241 | LEFTLEGLERP.Part0 = LeftLeg | |
242 | LEFTLEGLERP.Part1 = Torso | |
243 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
244 | ||
245 | local function weldBetween(a, b) | |
246 | local weld = Instance.new("ManualWeld", a) | |
247 | weld.Part0 = a | |
248 | weld.Part1 = b | |
249 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
250 | return weld | |
251 | end | |
252 | ||
253 | leftlocation = Instance.new("Part",LeftArm) | |
254 | leftlocation.Size = Vector3.new(1,1,1) | |
255 | leftlocation.Transparency = 1 | |
256 | leftlocationweld = weldBetween(leftlocation,LeftArm) | |
257 | leftlocation.Name = "leftloc" | |
258 | leftlocationweld.C0 = CFrame.new(0,1.2,0) | |
259 | ||
260 | function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) | |
261 | A = Instance.new("Attachment", PARENT) | |
262 | A.Position = POSITION1 | |
263 | A.Name = "A" | |
264 | B = Instance.new("Attachment", PARENT) | |
265 | B.Position = POSITION2 | |
266 | B.Name = "B" | |
267 | tr1 = Instance.new("Trail", PARENT) | |
268 | tr1.Attachment0 = A | |
269 | tr1.Attachment1 = B | |
270 | tr1.Enabled = true | |
271 | tr1.Lifetime = LIFETIME | |
272 | tr1.TextureMode = "Static" | |
273 | tr1.LightInfluence = 0 | |
274 | tr1.Color = COLOR | |
275 | tr1.Transparency = NumberSequence.new(0, 1) | |
276 | end | |
277 | ||
278 | shirt = Instance.new("Shirt", Character) | |
279 | shirt.Name = "Shirt" | |
280 | pants = Instance.new("Pants", Character) | |
281 | pants.Name = "Pants" | |
282 | - | Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1992079297" |
282 | + | Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1367756389" |
283 | - | Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1735735443" |
283 | + | Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1367755899" |
284 | ||
285 | skull = Instance.new("Part",Character) | |
286 | skull.Size = Vector3.new(2,2,2) | |
287 | skull.CFrame = Head.CFrame | |
288 | skull.CanCollide = false | |
289 | skullweld = Instance.new("Weld",skull) | |
290 | skullweld.Part0 = skull | |
291 | skullweld.Part1 = Head | |
292 | skullweld.C0 = skull.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.39,0) | |
293 | mskull = Instance.new("SpecialMesh", skull) | |
294 | mskull.MeshType = "FileMesh" | |
295 | mskull.Scale = Vector3.new(1.25, 1.25, 1.25) | |
296 | mskull.VertexColor = Vector3.new(0,0,25) | |
297 | - | mskull.MeshId,mskull.TextureId = 'http://www.roblox.com/asset/?id=116524125','http://www.roblox.com/asset/?id=116524213' |
297 | + | mskull.MeshId,mskull.TextureId = 'http://www.roblox.com/asset/?id=116524125','http://www.roblox.com/asset/?id=116705717' |
298 | ||
299 | johndoe = Instance.new("Part",Head) | |
300 | johndoe.Shape = "Ball" | |
301 | johndoe.Material = "Neon" | |
302 | johndoe.BrickColor = BrickColor.new("Really red") | |
303 | johndoe.Size = Vector3.new(1.68,1.68,1.68) | |
304 | johndoeweld = weldBetween(johndoe,Head) | |
305 | johndoeweld.C0 = CFrame.new(0,-.15,.1) | |
306 | ||
307 | seacutlass = Instance.new("Part",Character) | |
308 | seacutlass.Size = Vector3.new(2,2,2) | |
309 | seacutlass.CFrame = RightArm.CFrame | |
310 | seacutlass.CanCollide = false | |
311 | seacutlassweld = Instance.new("Weld",seacutlass) | |
312 | seacutlassweld.Part0 = seacutlass | |
313 | seacutlassweld.Part1 = RightArm | |
314 | seacutlassweld.C0 = seacutlass.CFrame:inverse() * RightArm.CFrame * CFrame.new(-.7,-2.1,0) * CFrame.Angles(math.rad(230),math.rad(0),math.rad(45)) | |
315 | mseacutlass = Instance.new("SpecialMesh", seacutlass) | |
316 | mseacutlass.MeshType = "FileMesh" | |
317 | mseacutlass.Scale = Vector3.new(1, 1, 1) | |
318 | mseacutlass.MeshId,mseacutlass.TextureId = 'http://www.roblox.com/asset/?id=155403991','http://www.roblox.com/asset/?id=155403949' | |
319 | ||
320 | hitbox = Instance.new("Part",seacutlass) | |
321 | hitbox.Size = Vector3.new(1,4,1) | |
322 | hitbox.CanCollide = false | |
323 | hitbox.Transparency = 1 | |
324 | hitboxweld = weldBetween(hitbox,seacutlass) | |
325 | hitboxweld.C0 = CFrame.new(0,-1,.25) * CFrame.Angles(math.rad(40),0,0) | |
326 | ||
327 | swordslash1 = Instance.new("Sound",seacutlass) | |
328 | swordslash1.SoundId = "rbxassetid://553461718" | |
329 | swordslash1.Volume = 4 | |
330 | swordslash1.Name = "swordslash1" | |
331 | swordslash1.Pitch = 1 | |
332 | ||
333 | swordslash2 = Instance.new("Sound",seacutlass) | |
334 | swordslash2.SoundId = "rbxassetid://553461718" | |
335 | swordslash2.Volume = 4 | |
336 | swordslash2.Name = "swordslash2" | |
337 | swordslash2.Pitch = .85 | |
338 | ||
339 | swordslash3 = Instance.new("Sound",seacutlass) | |
340 | swordslash3.SoundId = "rbxassetid://553461718" | |
341 | swordslash3.Volume = 4 | |
342 | swordslash3.Name = "swordslash3" | |
343 | swordslash3.Pitch = 1.15 | |
344 | ||
345 | seacutlass.ChildRemoved:connect(function(removed) | |
346 | if removed.Name == "swordslash1" then | |
347 | swordslash1 = Instance.new("Sound",seacutlass) | |
348 | swordslash1.SoundId = "rbxassetid://553461718" | |
349 | swordslash1.Name = "swordslash1" | |
350 | swordslash1.Volume = 4 | |
351 | swordslash1.Pitch = 1 | |
352 | elseif removed.Name == "swordslash2" then | |
353 | swordslash2 = Instance.new("Sound",seacutlass) | |
354 | swordslash2.SoundId = "rbxassetid://553461718" | |
355 | swordslash2.Volume = 4 | |
356 | swordslash2.Name = "swordslash2" | |
357 | swordslash2.Pitch = .85 | |
358 | elseif removed.Name == "swordslash3" then | |
359 | swordslash3 = Instance.new("Sound",seacutlass) | |
360 | swordslash3.SoundId = "rbxassetid://553461718" | |
361 | swordslash3.Volume = 4 | |
362 | swordslash3.Name = "swordslash3" | |
363 | swordslash3.Pitch = 1.15 | |
364 | end | |
365 | end) | |
366 | ||
367 | A = Instance.new("Attachment", seacutlass) | |
368 | A.Position = Vector3.new(0,2.25,0) | |
369 | A.Name = "A" | |
370 | B = Instance.new("Attachment", seacutlass) | |
371 | B.Position = Vector3.new(0,-.50,0) | |
372 | B.Name = "B" | |
373 | tr1 = Instance.new("Trail", seacutlass) | |
374 | tr1.Attachment0 = A | |
375 | tr1.Attachment1 = B | |
376 | tr1.Enabled = false | |
377 | tr1.Lifetime = 1 | |
378 | tr1.TextureMode = "Static" | |
379 | tr1.LightInfluence = 0 | |
380 | tr1.Color = ColorSequence.new(BrickColor.new("Really red").Color,BrickColor.new("Really red")) | |
381 | tr1.Transparency = NumberSequence.new(0, 1) | |
382 | ||
383 | coroutine.wrap(function() | |
384 | while wait() do | |
385 | hum.WalkSpeed = ws | |
386 | LeftArm.BrickColor = BrickColor.new("Really black") | |
387 | RightArm.BrickColor = BrickColor.new("Really black") | |
388 | Head.BrickColor = BrickColor.new("Really black") | |
389 | end | |
390 | end)() | |
391 | godmode = coroutine.wrap(function() | |
392 | for i,v in pairs(Character:GetChildren()) do | |
393 | if v:IsA("BasePart") and v ~= Root then | |
394 | v.Anchored = false | |
395 | end | |
396 | end | |
397 | while true do | |
398 | hum.MaxHealth = math.huge | |
399 | wait(0.0000001) | |
400 | hum.Health = math.huge | |
401 | wait() | |
402 | end | |
403 | end) | |
404 | godmode() | |
405 | ff = Instance.new("ForceField", Character) | |
406 | ff.Visible = false | |
407 | ||
408 | coroutine.wrap(function() | |
409 | for i,v in pairs(Character:GetChildren()) do | |
410 | if v.Name == "Animate" then v:Remove() | |
411 | end | |
412 | end | |
413 | end)() | |
414 | ||
415 | function damagealll(Radius,Position) | |
416 | local Returning = {} | |
417 | for _,v in pairs(workspace:GetChildren()) do | |
418 | if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then | |
419 | if v:FindFirstChild("Torso") then | |
420 | local Mag = (v.Torso.Position - Position).magnitude | |
421 | if Mag < Radius then | |
422 | table.insert(Returning,v) | |
423 | end | |
424 | elseif v:FindFirstChild("UpperTorso") then | |
425 | local Mag = (v.UpperTorso.Position - Position).magnitude | |
426 | if Mag < Radius then | |
427 | table.insert(Returning,v) | |
428 | end | |
429 | end | |
430 | end | |
431 | end | |
432 | return Returning | |
433 | end | |
434 | ||
435 | ArtificialHB = Instance.new("BindableEvent", script) | |
436 | ArtificialHB.Name = "Heartbeat" | |
437 | script:WaitForChild("Heartbeat") | |
438 | ||
439 | frame = 1 / 60 | |
440 | tf = 0 | |
441 | allowframeloss = false | |
442 | tossremainder = false | |
443 | ||
444 | ||
445 | lastframe = tick() | |
446 | script.Heartbeat:Fire() | |
447 | ||
448 | ||
449 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
450 | tf = tf + s | |
451 | if tf >= frame then | |
452 | if allowframeloss then | |
453 | script.Heartbeat:Fire() | |
454 | lastframe = tick() | |
455 | else | |
456 | for i = 1, math.floor(tf / frame) do | |
457 | script.Heartbeat:Fire() | |
458 | end | |
459 | lastframe = tick() | |
460 | end | |
461 | if tossremainder then | |
462 | tf = 0 | |
463 | else | |
464 | tf = tf - frame * math.floor(tf / frame) | |
465 | end | |
466 | end | |
467 | end) | |
468 | ||
469 | function swait(num) | |
470 | if num == 0 or num == nil then | |
471 | game:service("RunService").Stepped:wait(0) | |
472 | else | |
473 | for i = 0, num do | |
474 | game:service("RunService").Stepped:wait(0) | |
475 | end | |
476 | end | |
477 | end | |
478 | ||
479 | doomtheme = Instance.new("Sound", Torso) | |
480 | doomtheme.Volume = 10 | |
481 | doomtheme.Name = "doomtheme" | |
482 | doomtheme.Looped = true | |
483 | doomtheme.SoundId = "rbxassetid://1956225934" | |
484 | doomtheme:Play() | |
485 | ||
486 | Torso.ChildRemoved:connect(function(removed) | |
487 | if removed.Name == "doomtheme" then | |
488 | doomtheme = Instance.new("Sound", Torso) | |
489 | doomtheme.Volume = 10 | |
490 | doomtheme.Name = "doomtheme" | |
491 | doomtheme.Looped = true | |
492 | doomtheme.SoundId = "rbxassetid://1956225934" | |
493 | doomtheme:Play() | |
494 | end | |
495 | end) | |
496 | ||
497 | for _,n in pairs(Character:GetChildren()) do | |
498 | if n:IsA("Accessory") then n:Remove() end | |
499 | end | |
500 | for _,x in pairs(Character:GetChildren()) do | |
501 | if x:IsA("Decal") then x:Remove() end | |
502 | end | |
503 | ||
504 | function SOUND(PARENT,ID,VOL,LOOP,REMOVE) | |
505 | so = Instance.new("Sound") | |
506 | so.Parent = PARENT | |
507 | so.SoundId = "rbxassetid://"..ID | |
508 | so.Volume = VOL | |
509 | so.Looped = LOOP | |
510 | so:Play() | |
511 | removeuseless:AddItem(so,REMOVE) | |
512 | end | |
513 | ||
514 | locpart = Instance.new("Part",Torso) | |
515 | locpart.Size = Vector3.new(1.1,1.1,1.1) | |
516 | locpart.Transparency = 1 | |
517 | locpart.CanCollide = false | |
518 | locweld = weldBetween(locpart,Torso) | |
519 | ||
520 | circlepart = Instance.new("Part",Torso) | |
521 | circlepart.Size = Vector3.new(1,1,1) | |
522 | circlepart.Transparency = 1 | |
523 | circlepart.CanCollide = false | |
524 | circlepart.Anchored = false | |
525 | circlepart.Name = "c1" | |
526 | circlepartweld = weldBetween(circlepart,locpart) | |
527 | ||
528 | circlepart2 = Instance.new("Part",Torso) | |
529 | circlepart2.Size = Vector3.new(1,1,1) | |
530 | circlepart2.Transparency = 1 | |
531 | circlepart2.CanCollide = false | |
532 | circlepart2.Anchored = false | |
533 | circlepart2.Name = "c2" | |
534 | circlepart2weld = weldBetween(circlepart2,locpart) | |
535 | ||
536 | circlepart3 = Instance.new("Part",Torso) | |
537 | circlepart3.Size = Vector3.new(1,1,1) | |
538 | circlepart3.Transparency = 1 | |
539 | circlepart3.CanCollide = false | |
540 | circlepart3.Anchored = false | |
541 | circlepart3.Name = "c3" | |
542 | circlepart3weld = weldBetween(circlepart3,locpart) | |
543 | ||
544 | circlepart4 = Instance.new("Part",Torso) | |
545 | circlepart4.Size = Vector3.new(1,1,1) | |
546 | circlepart4.Transparency = 1 | |
547 | circlepart4.CanCollide = false | |
548 | circlepart4.Anchored = false | |
549 | circlepart4.Name = "c4" | |
550 | circlepart4weld = weldBetween(circlepart4,locpart) | |
551 | ||
552 | A = Instance.new("Attachment", circlepart3) | |
553 | A.Position = Vector3.new(0,.05,0) | |
554 | A.Name = "A" | |
555 | B = Instance.new("Attachment", circlepart3) | |
556 | B.Position = Vector3.new(0,-.05,0) | |
557 | B.Name = "B" | |
558 | trail = Instance.new("Trail", circlepart3) | |
559 | trail.Attachment0 = A | |
560 | trail.Attachment1 = B | |
561 | trail.Enabled = true | |
562 | trail.Lifetime = 2.5 | |
563 | trail.TextureMode = "Static" | |
564 | trail.LightInfluence = 0 | |
565 | trail.Color = ColorSequence.new(BrickColor.new("Really red").Color,BrickColor.new("Really red")) | |
566 | trail.Transparency = NumberSequence.new(0, 1) | |
567 | ||
568 | A2 = Instance.new("Attachment", circlepart4) | |
569 | A2.Position = Vector3.new(0,.05,0) | |
570 | A.Name = "A" | |
571 | B2 = Instance.new("Attachment", circlepart4) | |
572 | B2.Position = Vector3.new(0,-.05,0) | |
573 | B.Name = "B" | |
574 | trail2 = Instance.new("Trail", circlepart4) | |
575 | trail2.Attachment0 = A2 | |
576 | trail2.Attachment1 = B2 | |
577 | trail2.Enabled = true | |
578 | trail2.Lifetime = 2.5 | |
579 | trail2.TextureMode = "Static" | |
580 | trail2.LightInfluence = 0 | |
581 | trail2.Color = ColorSequence.new(BrickColor.new("Really red").Color,BrickColor.new("Really red")) | |
582 | trail2.Transparency = NumberSequence.new(0, 1) | |
583 | ||
584 | ||
585 | A = Instance.new("Attachment", circlepart) | |
586 | A.Position = Vector3.new(0,.05,0) | |
587 | A.Name = "A" | |
588 | B = Instance.new("Attachment", circlepart) | |
589 | B.Position = Vector3.new(0,-.05,0) | |
590 | B.Name = "B" | |
591 | trail3 = Instance.new("Trail", circlepart) | |
592 | trail3.Attachment0 = A | |
593 | trail3.Attachment1 = B | |
594 | trail3.Enabled = true | |
595 | trail3.Lifetime = 1 | |
596 | trail3.TextureMode = "Static" | |
597 | trail3.LightInfluence = 0 | |
598 | trail3.Color = ColorSequence.new(BrickColor.new("Really red").Color,BrickColor.new("Really red")) | |
599 | trail3.Transparency = NumberSequence.new(0, 1) | |
600 | ||
601 | A2 = Instance.new("Attachment", circlepart2) | |
602 | A2.Position = Vector3.new(0,.05,0) | |
603 | A.Name = "A" | |
604 | B2 = Instance.new("Attachment", circlepart2) | |
605 | B2.Position = Vector3.new(0,-.05,0) | |
606 | B.Name = "B" | |
607 | trail4 = Instance.new("Trail", circlepart2) | |
608 | trail4.Attachment0 = A2 | |
609 | trail4.Attachment1 = B2 | |
610 | trail4.Enabled = true | |
611 | trail4.Lifetime = 1 | |
612 | trail4.TextureMode = "Static" | |
613 | trail4.LightInfluence = 0 | |
614 | trail4.Color = ColorSequence.new(BrickColor.new("Really red").Color,BrickColor.new("Really red")) | |
615 | trail4.Transparency = NumberSequence.new(0, 1) | |
616 | ||
617 | x = 0 | |
618 | g = 0 | |
619 | range = 2.5 | |
620 | range2 = 5 | |
621 | ||
622 | coroutine.wrap(function() | |
623 | while true do | |
624 | x = x + 2 | |
625 | g = g + 1 | |
626 | swait() | |
627 | circlepartweld.C0 = CFrame.new(range,0,0) * CFrame.Angles(math.rad(0),math.rad(x),math.rad(0)) | |
628 | circlepart2weld.C0 = CFrame.new(-range,0,0) * CFrame.Angles(math.rad(0),math.rad(x),math.rad(0)) | |
629 | circlepart3weld.C0 = CFrame.new(-range2,0,0) * CFrame.Angles(math.rad(0),math.rad(g),math.rad(0)) | |
630 | circlepart4weld.C0 = CFrame.new(range2,0,0) * CFrame.Angles(math.rad(0),math.rad(g),math.rad(0)) | |
631 | end | |
632 | end)() | |
633 | ||
634 | wind = Instance.new("Part", Torso) | |
635 | wind.BrickColor = BrickColor.new("Really red") | |
636 | wind.Size = Vector3.new(5,5,5) | |
637 | wind.CanCollide = false | |
638 | wind.Anchored = true | |
639 | wind.Name = "wind" | |
640 | wind.Transparency = .75 | |
641 | wind.Material = "Neon" | |
642 | windmesh = Instance.new("SpecialMesh", wind) | |
643 | windmesh.Scale = Vector3.new(.5,.8,.5) | |
644 | windmesh.MeshId = "rbxassetid://168892432" | |
645 | n = 0 | |
646 | ||
647 | ||
648 | coroutine.wrap(function() | |
649 | while true do | |
650 | swait() | |
651 | n = n + 3 | |
652 | wind.CFrame = Root.CFrame * CFrame.new(0,-1,-1.5) * CFrame.Angles(math.rad(0),math.rad(n),0) | |
653 | end | |
654 | end)() | |
655 | coroutine.wrap(function() | |
656 | while true do | |
657 | swait() | |
658 | if spin then | |
659 | trail.Enabled = true | |
660 | trail2.Enabled = true | |
661 | trail3.Enabled = true | |
662 | trail4.Enabled = true | |
663 | while wind.Transparency > .75 do | |
664 | if not spin then break end | |
665 | swait() | |
666 | wind.Transparency = wind.Transparency - .025 | |
667 | end | |
668 | elseif not spin then | |
669 | trail.Enabled = false | |
670 | trail2.Enabled = false | |
671 | trail3.Enabled = false | |
672 | trail4.Enabled = false | |
673 | while wind.Transparency < 1 do | |
674 | if spin then break end | |
675 | swait() | |
676 | wind.Transparency = wind.Transparency + .025 | |
677 | end | |
678 | end | |
679 | end | |
680 | end)() | |
681 | ||
682 | checks1 = coroutine.wrap(function() -------Checks | |
683 | while true do | |
684 | if Root.Velocity.y > 1 then | |
685 | position = "Jump" | |
686 | elseif Root.Velocity.y < -1 then | |
687 | position = "Falling" | |
688 | elseif Root.Velocity.Magnitude < 2 then | |
689 | position = "Idle" | |
690 | elseif Root.Velocity.Magnitude < 20 then | |
691 | position = "Walking" | |
692 | elseif Root.Velocity.Magnitude > 20 then | |
693 | position = "Running" | |
694 | else | |
695 | end | |
696 | wait() | |
697 | end | |
698 | end) | |
699 | checks1() | |
700 | ||
701 | mouse.Button1Down:connect(function() | |
702 | if debounce then return end | |
703 | debounce = true | |
704 | attacking = true | |
705 | spin = false | |
706 | if combo1 then | |
707 | combo1 = false | |
708 | combo3 = false | |
709 | combo2 = true | |
710 | ws = 12 | |
711 | g1 = Instance.new("BodyGyro", Root) | |
712 | g1.D = 175 | |
713 | g1.P = 20000 | |
714 | g1.MaxTorque = Vector3.new(0,9000,0) | |
715 | g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p) | |
716 | for i = 1, 12 do | |
717 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.1) | |
718 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.3) | |
719 | seacutlassweld.C0 = seacutlassweld.C0:lerp(CFrame.new(0,-1.5,1.5) * CFrame.Angles(math.rad(0),math.rad(-90),math.rad(240)),.3) | |
720 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,0,.5) * CFrame.Angles(math.rad(-90),math.rad(-40),math.rad(0)), 0.3) | |
721 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.55,0) * CFrame.Angles(math.rad(20),math.rad(5),math.rad(20)),.3) | |
722 | swait() | |
723 | end | |
724 | hitdebounce = false | |
725 | swordslash1:Play() | |
726 | tr1.Enabled = true | |
727 | hitbox.Touched:connect(function(hit) | |
728 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
729 | slachtoffer = hit.Parent:FindFirstChildOfClass("Humanoid") | |
730 | if slachtoffer.Parent.Name ~= Player.Name then | |
731 | if hitdebounce then return end | |
732 | hitdebounce = true | |
733 | slachtoffer:TakeDamage(math.random(17000,2600000)) | |
734 | end | |
735 | end | |
736 | end) | |
737 | for i = 1, 12 do | |
738 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3) | |
739 | seacutlassweld.C0 = seacutlassweld.C0:lerp(CFrame.new(0,-2.2,1.4) * CFrame.Angles(math.rad(0),math.rad(-90),math.rad(200)),.15) | |
740 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,1.35,.5) * CFrame.Angles(math.rad(-90),math.rad(40),math.rad(0)), 0.3) | |
741 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.55,0) * CFrame.Angles(math.rad(-20),math.rad(5),math.rad(20)),.3) | |
742 | swait() | |
743 | end | |
744 | removeuseless:AddItem(g1,.01) | |
745 | tr1.Enabled = false | |
746 | attacking = false | |
747 | hitdebounce = true | |
748 | debounce = false | |
749 | spin = true | |
750 | ws = 18 | |
751 | elseif combo2 then | |
752 | combo3 = true | |
753 | combo2 = false | |
754 | combo1 = false | |
755 | ws = 12 | |
756 | g1 = Instance.new("BodyGyro", Root) | |
757 | g1.D = 175 | |
758 | g1.P = 20000 | |
759 | g1.MaxTorque = Vector3.new(0,9000,0) | |
760 | g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p) | |
761 | for i = 1, 12 do | |
762 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.1) | |
763 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.3) | |
764 | seacutlassweld.C0 = seacutlassweld.C0:lerp(CFrame.new(0,-1.8,2) * CFrame.Angles(math.rad(0),math.rad(-90),math.rad(-130)),.3) | |
765 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,0,.5) * CFrame.Angles(math.rad(-90),math.rad(-40),math.rad(0)), 0.3) | |
766 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.55,0) * CFrame.Angles(math.rad(20),math.rad(5),math.rad(20)),.3) | |
767 | swait() | |
768 | end | |
769 | hitdebounce = false | |
770 | tr1.Enabled = true | |
771 | swordslash2:Play() | |
772 | hitbox.Touched:connect(function(hit) | |
773 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
774 | slachtoffer = hit.Parent:FindFirstChildOfClass("Humanoid") | |
775 | if slachtoffer.Parent.Name ~= Player.Name then | |
776 | if hitdebounce then return end | |
777 | hitdebounce = true | |
778 | slachtoffer:TakeDamage(math.random(31,42)) | |
779 | end | |
780 | end | |
781 | end) | |
782 | ws = 7 | |
783 | for i = 1, 12 do | |
784 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
785 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
786 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.3) | |
787 | seacutlassweld.C0 = seacutlassweld.C0:lerp(CFrame.new(0,-1.8,2) * CFrame.Angles(math.rad(0),math.rad(-90),math.rad(-130)),.3) | |
788 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.25,1.75,.5) * CFrame.Angles(math.rad(-90),math.rad(70),math.rad(0)), 0.3) | |
789 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.4,-.2) * CFrame.Angles(math.rad(20),math.rad(7),math.rad(12)),.3) | |
790 | swait() | |
791 | end | |
792 | removeuseless:AddItem(g1,.01) | |
793 | ws = 18 | |
794 | tr1.Enabled = false | |
795 | attacking = false | |
796 | hitdebounce = true | |
797 | debounce = false | |
798 | spin = true | |
799 | elseif combo3 then | |
800 | combo1 = true | |
801 | combo2 = false | |
802 | combo3 = false | |
803 | z = 0 | |
804 | ws = 4 | |
805 | tr1.Enabled = true | |
806 | for i = 1, 10 do | |
807 | swait() | |
808 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.45, 1.55, .15) * CFrame.Angles(math.rad(0), math.rad(2), math.rad(-2)), .3) | |
809 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.45, 1.8, .2) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(2)), .3) | |
810 | seacutlassweld.C0 = seacutlassweld.C0:lerp(CFrame.new(0,-1,1.5) * CFrame.Angles(math.rad(-310),math.rad(0),math.rad(0)),.8) | |
811 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.25,1.75,.5) * CFrame.Angles(math.rad(-90),math.rad(70),math.rad(0)), 0.3) | |
812 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.4,-.2) * CFrame.Angles(math.rad(20),math.rad(7),math.rad(12)),.3) | |
813 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.5, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.3) | |
814 | end | |
815 | hitdebounce = false | |
816 | hitbox.Touched:connect(function(hit2) | |
817 | if hit2.Parent:FindFirstChildOfClass("Humanoid") then | |
818 | slachtoffer = hit2.Parent:FindFirstChildOfClass("Humanoid") | |
819 | if slachtoffer.Parent.Name ~= Player.Name then | |
820 | if hitdebounce then return end | |
821 | slachtoffer:TakeDamage(math.random(1,5)) | |
822 | end | |
823 | end | |
824 | end) | |
825 | coroutine.wrap(function() | |
826 | for i = 1, 9 do | |
827 | swordslash3:Play() | |
828 | swait(5) | |
829 | end | |
830 | end)() | |
831 | for i = 1, 50 do | |
832 | z = z + 50 | |
833 | swait() | |
834 | seacutlassweld.C0 = seacutlassweld.C0:lerp(CFrame.new(0,-0,1) * CFrame.Angles(math.rad(z),math.rad(0),math.rad(0)),.8) | |
835 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.25,1.75,.5) * CFrame.Angles(math.rad(-90),math.rad(70),math.rad(0)), 0.3) | |
836 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.4,-.2) * CFrame.Angles(math.rad(20),math.rad(7),math.rad(12)),.3) | |
837 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.5, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.3) | |
838 | end | |
839 | hitdebounce = true | |
840 | ws = 18 | |
841 | attacking = false | |
842 | debounce = false | |
843 | tr1.Enabled = false | |
844 | spin = true | |
845 | end | |
846 | end) | |
847 | ||
848 | mouse.KeyDown:connect(function(Press) | |
849 | Press=Press:lower() | |
850 | if Press=='r' then | |
851 | if orbitalcannon then return end | |
852 | if debounce then return end | |
853 | orbitalcannon = true | |
854 | debounce = true | |
855 | uhoh = true | |
856 | attacking = true | |
857 | ws = 0 | |
858 | coroutine.wrap(function() | |
859 | for i = 1, 15 do | |
860 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.5,2,0) * CFrame.Angles(math.rad(0),math.rad(-20),math.rad(140)),.3) | |
861 | swait() | |
862 | end | |
863 | end)() | |
864 | powerball = Instance.new("Part",Torso) | |
865 | powerball.Anchored = true | |
866 | powerball.CanCollide = false | |
867 | powerball.Size = Vector3.new(1,1,1) | |
868 | powerball.Transparency = 1 | |
869 | powerball.Material = "Neon" | |
870 | powerball.BrickColor = BrickColor.new("Really red") | |
871 | powerball.CFrame = leftlocation.CFrame * CFrame.new(-40,0,0) | |
872 | powerball.Shape = "Ball" | |
873 | gz = Instance.new("Sound", powerball) | |
874 | gz.SoundId = "rbxassetid://907530407" | |
875 | gz.Looped = true | |
876 | gz.Volume = 0 | |
877 | gz:Play() | |
878 | for i = 1, 300 do | |
879 | gz.Volume = gz.Volume + .25 | |
880 | powerball.CFrame = leftlocation.CFrame * CFrame.new(0,-40,0) | |
881 | seacutlassweld.C0 = seacutlassweld.C0:lerp(CFrame.new(-.7,-2.1,0) * CFrame.Angles(math.rad(230),math.rad(0),math.rad(45)),.8) | |
882 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
883 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,0,.5) * CFrame.Angles(math.rad(-90 - 3 * math.sin(sine/12)),math.rad(-40),math.rad(0)), 0.1) | |
884 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
885 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
886 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
887 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
888 | powerball.Size = powerball.Size + Vector3.new(.25,.25,.25) | |
889 | powerball.Transparency = powerball.Transparency - .025 | |
890 | swait() | |
891 | end | |
892 | gz:Remove() | |
893 | g1 = Instance.new("BodyGyro", Root) | |
894 | g1.D = 175 | |
895 | g1.P = 20000 | |
896 | g1.MaxTorque = Vector3.new(0,9000,0) | |
897 | LightOfDeath = Instance.new("Part", Torso) | |
898 | LightOfDeath.Size = Vector3.new(0.5, 0.5, 0.5) | |
899 | LightOfDeath.Material = "Neon" | |
900 | LightOfDeath.BrickColor = BrickColor.new("Really red") | |
901 | LightOfDeath.Transparency = 1 | |
902 | LightOfDeath.Anchored = true | |
903 | LightOfDeath.CanCollide = false | |
904 | LightOfDeathMESH = Instance.new("SpecialMesh", LightOfDeath) | |
905 | LightOfDeathMESH.MeshType = "Cylinder" | |
906 | LightOfDeathMESH.Scale = Vector3.new(1000,3,3) | |
907 | LightOfDeath.CFrame = CFrame.new(mouse.Hit.p) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)) | |
908 | coroutine.wrap(function() | |
909 | wait(9) | |
910 | uhoh = false | |
911 | end)() | |
912 | soundofdoom = Instance.new("Sound", powerball) | |
913 | soundofdoom.SoundId = "rbxassetid://1545630949" | |
914 | soundofdoom.Volume = 10 | |
915 | soundofdoom:Play() | |
916 | ws = 0 | |
917 | while uhoh do | |
918 | if mouse.Target ~= nil then | |
919 | LightOfDeath.CFrame = LightOfDeath.CFrame:lerp(CFrame.new(mouse.Hit.p) * CFrame.Angles(0,0,math.rad(90)),.1) | |
920 | powerball.CFrame = powerball.CFrame:lerp(CFrame.new(mouse.Hit.p) * CFrame.new(0,250,0),.1) | |
921 | end | |
922 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
923 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) | |
924 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(3), math.rad(4)), 0.3) | |
925 | LightOfDeath.Transparency = LightOfDeath.Transparency - .05 | |
926 | swait() | |
927 | end | |
928 | coroutine.wrap(function() | |
929 | coroutine.wrap(function() | |
930 | for i = 1, 400 do | |
931 | Hit = damagealll(200,LightOfDeath.Position) | |
932 | for _,v in pairs(Hit) do | |
933 | v:FindFirstChildOfClass("Humanoid").Parent:BreakJoints() | |
934 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
935 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
936 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
937 | vel.velocity = CFrame.new(LightOfDeath.Position,torso.Position).lookVector*875 | |
938 | removeuseless:AddItem(vel,.1) | |
939 | end | |
940 | explosionc = Instance.new("Part",Torso) | |
941 | explosionc.Anchored = true | |
942 | explosionc.CanCollide = false | |
943 | explosionc.Size = Vector3.new(1,1,1) | |
944 | explosionc.BrickColor = BrickColor.new("Really red") | |
945 | explosionc.Material = "Neon" | |
946 | explosionc.CFrame = CFrame.new(LightOfDeath.Position) | |
947 | explosionc.Shape = "Ball" | |
948 | explosionc.Name = "explob" | |
949 | removeuseless:AddItem(explosionc,2) | |
950 | swait(.1) | |
951 | end | |
952 | end)() | |
953 | powerball.Transparency = 0 | |
954 | LightOfDeath.Transparency = 0 | |
955 | for i = 1, 400 do | |
956 | powerball.Transparency = powerball.Transparency + .05 | |
957 | LightOfDeath.Transparency = LightOfDeath.Transparency + .05 | |
958 | sk = Instance.new("Part",Torso) | |
959 | sk.CanCollide = false | |
960 | sk.Anchored = true | |
961 | sk.BrickColor = BrickColor.new("Really red") | |
962 | sk.Name = "sk" | |
963 | sk.CFrame = LightOfDeath.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))) | |
964 | skmesh = Instance.new("SpecialMesh",sk) | |
965 | skmesh.MeshId = "rbxassetid://662586858" | |
966 | skmesh.Name = "waterwave" | |
967 | skmesh.Scale = Vector3.new(.04,.01,.04) | |
968 | removeuseless:AddItem(sk,2) | |
969 | for i,v in pairs(Torso:GetDescendants()) do if v.Name == "waterwave" then | |
970 | v.Scale = v.Scale + Vector3.new(.2,0,.2) | |
971 | v.Parent.Transparency = v.Parent.Transparency + .05 | |
972 | end | |
973 | end | |
974 | for i,v in pairs(Torso:GetChildren()) do | |
975 | if v.Name == "explob" then | |
976 | v.Size = v.Size + Vector3.new(20,20,20) | |
977 | v.Transparency = v.Transparency + .05 | |
978 | end | |
979 | end | |
980 | swait() | |
981 | end | |
982 | for i = 1, 50 do | |
983 | for i,v in pairs(Torso:GetDescendants()) do if v.Name == "waterwave" then | |
984 | v.Scale = v.Scale + Vector3.new(.2,0,.2) | |
985 | v.Parent.Transparency = v.Parent.Transparency + .05 | |
986 | end | |
987 | end | |
988 | for i,v in pairs(Torso:GetChildren()) do | |
989 | if v.Name == "explob" then | |
990 | v.Size = v.Size + Vector3.new(20,20,20) | |
991 | v.Transparency = v.Transparency + .05 | |
992 | end | |
993 | end | |
994 | swait() | |
995 | end | |
996 | powerball:Remove() | |
997 | LightOfDeath:Remove() | |
998 | orbitalcannon = false | |
999 | end)() | |
1000 | for i = 1, 35 do | |
1001 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, .8, 0.4) * CFrame.Angles(math.rad(-60 - 2 * math.sin(sine/12)), math.rad(3), math.rad(4)), 0.3) | |
1002 | swait() | |
1003 | end | |
1004 | removeuseless:AddItem(g1,.001) | |
1005 | ws = 18 | |
1006 | attacking = false | |
1007 | debounce = false | |
1008 | end | |
1009 | end) | |
1010 | ||
1011 | mouse.KeyDown:connect(function(Press) | |
1012 | Press=Press:lower() | |
1013 | if Press=='e' then | |
1014 | if debounce then return end | |
1015 | debounce = true | |
1016 | attacking = true | |
1017 | ws = 2 | |
1018 | g1 = Instance.new("BodyGyro", Root) | |
1019 | g1.D = 175 | |
1020 | g1.P = 20000 | |
1021 | g1.MaxTorque = Vector3.new(0,9000,0) | |
1022 | SOUND(leftlocation,214876666,8,false,6) | |
1023 | coroutine.wrap(function() | |
1024 | for i = 1, 49 do | |
1025 | waterballs = Instance.new("Part",Torso) | |
1026 | waterballs.Anchored = true | |
1027 | waterballs.CanCollide = false | |
1028 | waterballs.Shape = "Ball" | |
1029 | waterballs.BrickColor = BrickColor.new("Really red") | |
1030 | waterballs.Material = "Neon" | |
1031 | waterballs.Transparency = .6 | |
1032 | waterballs.CFrame = leftlocation.CFrame | |
1033 | waterballs.Size = Vector3.new(10,10,10) | |
1034 | waterballs.Name = "wter" | |
1035 | removeuseless:AddItem(waterballs,2) | |
1036 | sk = Instance.new("Part",Torso) | |
1037 | sk.CanCollide = false | |
1038 | sk.Anchored = true | |
1039 | sk.BrickColor = BrickColor.new("Really red") | |
1040 | sk.Name = "sk" | |
1041 | sk.CFrame = leftlocation.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))) | |
1042 | skmesh = Instance.new("SpecialMesh",sk) | |
1043 | skmesh.MeshId = "rbxassetid://662586858" | |
1044 | skmesh.Name = "waterwave" | |
1045 | skmesh.Scale = Vector3.new(.04,.01,.04) | |
1046 | removeuseless:AddItem(sk,2) | |
1047 | for i,v in pairs(Torso:GetDescendants()) do if v.Name == "waterwave" then | |
1048 | v.Scale = v.Scale + Vector3.new(.02,0,.02) | |
1049 | v.Parent.Transparency = v.Parent.Transparency + .05 | |
1050 | end | |
1051 | end | |
1052 | for i,v in pairs(Torso:GetDescendants()) do if v.Name == "wter" then | |
1053 | v.Size = v.Size - Vector3.new(1,1,1) | |
1054 | v.Transparency = v.Transparency + .05 | |
1055 | end | |
1056 | end | |
1057 | swait() | |
1058 | end | |
1059 | for i = 1, 40 do | |
1060 | for i,v in pairs(Torso:GetDescendants()) do if v.Name == "wter" then | |
1061 | v.Size = v.Size - Vector3.new(1,1,1) | |
1062 | v.Transparency = v.Transparency + .05 | |
1063 | end | |
1064 | end | |
1065 | for i,v in pairs(Torso:GetDescendants()) do if v.Name == "waterwave" then | |
1066 | v.Scale = v.Scale + Vector3.new(.02,0,.01) | |
1067 | v.Parent.Transparency = v.Parent.Transparency + .05 | |
1068 | end | |
1069 | end | |
1070 | swait() | |
1071 | end | |
1072 | end)() | |
1073 | for i = 1, 50 do | |
1074 | seacutlassweld.C0 = seacutlassweld.C0:lerp(CFrame.new(0,-1,1.5) * CFrame.Angles(math.rad(-315),math.rad(0),math.rad(0)),.8) | |
1075 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.55,0) * CFrame.Angles(math.rad(-20),math.rad(-5),math.rad(-20)),.3) | |
1076 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) | |
1077 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.2,0) * CFrame.Angles(math.rad(10),math.rad(15),math.rad(0)),.5) | |
1078 | LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
1079 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(-14), math.rad(-20), math.rad(90)), 0.3) | |
1080 | swait() | |
1081 | end | |
1082 | ws = 0 | |
1083 | coroutine.wrap(function() | |
1084 | local throwball = Instance.new("Part",Torso) | |
1085 | throwball.Anchored = false | |
1086 | throwball.CanCollide = false | |
1087 | throwball.Size = Vector3.new(2,2,2) | |
1088 | throwball.Material = "Neon" | |
1089 | throwball.Shape = "Ball" | |
1090 | throwball.CFrame = leftlocation.CFrame | |
1091 | throwball.BrickColor = BrickColor.new("Really red") | |
1092 | throwball.Name = "throwball" | |
1093 | removeuseless:AddItem(throwball,4) | |
1094 | throwball.Touched:connect(function(hit) | |
1095 | if hit.Name ~= "watblock" and hit.Name ~= "sk" and hit.Name ~= "wter" and hit.Name ~= "leftloc" and hit.Name ~= "c1" and hit.Name ~= "c2" and hit.Name ~= "c3" and hit.Name ~= "c4" and hit.Parent ~= "Torso" and hit.Parent ~= "LeftArm" and hit.Parent ~= "RightArm" and hit.Parent ~= "Head" and hit.Name ~= "wind" then | |
1096 | if throwballv then return end | |
1097 | throwballv = true | |
1098 | explo = Instance.new("Sound",throwball) | |
1099 | explo.SoundId = "rbxassetid://821439273" | |
1100 | explo.Volume = 8 | |
1101 | explo.Pitch = 1.3 | |
1102 | explo:Play() | |
1103 | hit.Transparency = 0 | |
1104 | throwball.Anchored = true | |
1105 | for i = 1, 15 do | |
1106 | sk = Instance.new("Part",Torso) | |
1107 | sk.CanCollide = false | |
1108 | sk.Anchored = true | |
1109 | sk.BrickColor = BrickColor.new("Really red") | |
1110 | sk.Name = "sk" | |
1111 | sk.CFrame = throwball.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))) | |
1112 | skmesh = Instance.new("SpecialMesh",sk) | |
1113 | skmesh.MeshId = "rbxassetid://662586858" | |
1114 | skmesh.Name = "waterwave2" | |
1115 | skmesh.Scale = Vector3.new(.04,.01,.04) | |
1116 | removeuseless:AddItem(sk,2) | |
1117 | end | |
1118 | Hit = damagealll(25000,throwball.Position) | |
1119 | for _,v in pairs(Hit) do | |
1120 | v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(100,520)) | |
1121 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
1122 | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) | |
1123 | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
1124 | vel.velocity = CFrame.new(throwball.Position,torso.Position).lookVector*125 | |
1125 | removeuseless:AddItem(vel,.1) | |
1126 | end | |
1127 | explosion = Instance.new("Part",Torso) | |
1128 | explosion.Anchored = true | |
1129 | explosion.CanCollide = false | |
1130 | explosion.Shape = "Ball" | |
1131 | explosion.BrickColor = BrickColor.new("Really red") | |
1132 | explosion.Material = "Neon" | |
1133 | explosion.CFrame = throwball.CFrame | |
1134 | explosion2 = Instance.new("Part",Torso) | |
1135 | explosion2.Anchored = true | |
1136 | explosion2.CanCollide = false | |
1137 | explosion2.Shape = "Ball" | |
1138 | explosion2.BrickColor = BrickColor.new("Really red") | |
1139 | explosion2.Material = "Neon" | |
1140 | explosion2.CFrame = throwball.CFrame | |
1141 | for i = 1, 30 do | |
1142 | explo.Volume = explo.Volume - .5 | |
1143 | for i,v in pairs(Torso:GetDescendants()) do if v.Name == "waterwave2" then | |
1144 | v.Scale = v.Scale + Vector3.new(.02,0,.02) | |
1145 | v.Parent.Transparency = v.Parent.Transparency + .05 | |
1146 | end | |
1147 | end | |
1148 | explosion.Size = explosion.Size + Vector3.new(2,2,2) | |
1149 | explosion.Transparency = explosion.Transparency + .05 | |
1150 | explosion2.Size = explosion2.Size + Vector3.new(1,1,1) | |
1151 | explosion2.Transparency = explosion2.Transparency + .045 | |
1152 | swait() | |
1153 | end | |
1154 | explosion:Remove() | |
1155 | explosion2:Remove() | |
1156 | throwball:Remove() | |
1157 | throwballv = false | |
1158 | end | |
1159 | end) | |
1160 | local bov = Instance.new("BodyVelocity",throwball) | |
1161 | bov.maxForce = Vector3.new(99999,99999,99999) | |
1162 | throwball.CFrame = CFrame.new(throwball.Position,mouse.Hit.p) | |
1163 | bov.velocity = throwball.CFrame.lookVector*215 | |
1164 | if wtr1 then return end | |
1165 | wtr1 = true | |
1166 | while true do | |
1167 | for i,v in pairs(Torso:GetDescendants()) do if v.Name == "throwball" then | |
1168 | watblock = Instance.new("Part",Torso) | |
1169 | watblock.Size = Vector3.new(3,3,3) | |
1170 | watblock.CanCollide = false | |
1171 | watblock.BrickColor = BrickColor.new("Rally red") | |
1172 | watblock.Anchored = false | |
1173 | watblock.CFrame = v.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) | |
1174 | watblock.Material = "Neon" | |
1175 | watblock.Name = "watblock" | |
1176 | removeuseless:AddItem(watblock,2) | |
1177 | end | |
1178 | end | |
1179 | for i,v in pairs(Torso:GetDescendants()) do if v.Name == "watblock" then | |
1180 | v.Size = v.Size - Vector3.new(.25,.25,.25) | |
1181 | v.Transparency = v.Transparency - .05 | |
1182 | end | |
1183 | end | |
1184 | swait() | |
1185 | end | |
1186 | end)() | |
1187 | for i = 1, 12 do | |
1188 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.2,0) * CFrame.Angles(math.rad(-10),math.rad(-15),math.rad(0)),.5) | |
1189 | LEFTARMLERP.C1 = CFrame.new(0,0,0) | |
1190 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1,.5) * CFrame.Angles(math.rad(-90),math.rad(25),math.rad(0)), 0.5) | |
1191 | swait() | |
1192 | end | |
1193 | removeuseless:AddItem(g1,.001) | |
1194 | ws = 18 | |
1195 | attacking = false | |
1196 | debounce = false | |
1197 | end | |
1198 | end) | |
1199 | ||
1200 | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
1201 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
1202 | end | |
1203 | ||
1204 | function ray2(StartPos, EndPos, Distance, Ignore) | |
1205 | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector | |
1206 | return ray(StartPos, DIRECTION, Distance, Ignore) | |
1207 | end | |
1208 | ||
1209 | OrgnC0 = Neck.C0 | |
1210 | local movelimbs = coroutine.wrap(function() | |
1211 | while RunSrv.RenderStepped:wait() do | |
1212 | TrsoLV = Torso.CFrame.lookVector | |
1213 | Dist = nil | |
1214 | Diff = nil | |
1215 | if not MseGuide then | |
1216 | print("Failed to recognize") | |
1217 | else | |
1218 | local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
1219 | Dist = (Head.CFrame.p-Point).magnitude | |
1220 | Diff = Head.CFrame.Y-Point.Y | |
1221 | local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
1222 | Dist2 = (LeftArm.CFrame.p-Point).magnitude | |
1223 | Diff2 = LeftArm.CFrame.Y-Point.Y | |
1224 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1225 | Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) | |
1226 | end | |
1227 | end | |
1228 | end) | |
1229 | movelimbs() | |
1230 | immortal = {} | |
1231 | for i,v in pairs(Character:GetDescendants()) do | |
1232 | if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then | |
1233 | if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then | |
1234 | v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1235 | end | |
1236 | table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency}) | |
1237 | elseif v:IsA("JointInstance") then | |
1238 | table.insert(immortal,{v,v.Parent,nil,nil,nil}) | |
1239 | end | |
1240 | end | |
1241 | for e = 1, #immortal do | |
1242 | if immortal[e] ~= nil then | |
1243 | local STUFF = immortal[e] | |
1244 | local PART = STUFF[1] | |
1245 | local PARENT = STUFF[2] | |
1246 | local MATERIAL = STUFF[3] | |
1247 | local COLOR = STUFF[4] | |
1248 | local TRANSPARENCY = STUFF[5] | |
1249 | if levitate then | |
1250 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
1251 | PART.Material = MATERIAL | |
1252 | PART.Color = COLOR | |
1253 | PART.Transparency = TRANSPARENCY | |
1254 | end | |
1255 | PART.AncestryChanged:connect(function() | |
1256 | PART.Parent = PARENT | |
1257 | end) | |
1258 | else | |
1259 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
1260 | PART.Material = MATERIAL | |
1261 | PART.Color = COLOR | |
1262 | PART.Transparency = TRANSPARENCY | |
1263 | end | |
1264 | PART.AncestryChanged:connect(function() | |
1265 | PART.Parent = PARENT | |
1266 | end) | |
1267 | end | |
1268 | end | |
1269 | end | |
1270 | function immortality() | |
1271 | for e = 1, #immortal do | |
1272 | if immortal[e] ~= nil then | |
1273 | local STUFF = immortal[e] | |
1274 | local PART = STUFF[1] | |
1275 | local PARENT = STUFF[2] | |
1276 | local MATERIAL = STUFF[3] | |
1277 | local COLOR = STUFF[4] | |
1278 | local TRANSPARENCY = STUFF[5] | |
1279 | if PART.ClassName == "Part" and PART == Root then | |
1280 | PART.Material = MATERIAL | |
1281 | PART.Color = COLOR | |
1282 | PART.Transparency = TRANSPARENCY | |
1283 | end | |
1284 | if PART.Parent ~= PARENT then | |
1285 | hum:Remove() | |
1286 | PART.Parent = PARENT | |
1287 | hum = Instance.new("Humanoid",Character) | |
1288 | hum.Name = "noneofurbusiness" | |
1289 | end | |
1290 | end | |
1291 | end | |
1292 | end | |
1293 | coroutine.wrap(function() | |
1294 | while true do | |
1295 | if hum.Health < .1 then | |
1296 | deadsound = Instance.new("Sound", Torso) | |
1297 | deadsound.Volume = 6 | |
1298 | deadsound.SoundId = "rbxassetid://1411352723" | |
1299 | deadsound:Play() | |
1300 | immortality() | |
1301 | end | |
1302 | wait() | |
1303 | end | |
1304 | end)() | |
1305 | ||
1306 | local anims = coroutine.wrap(function() | |
1307 | while true do | |
1308 | settime = 0.05 | |
1309 | sine = sine + change | |
1310 | if position == "Jump" and attacking == false then | |
1311 | change = 1 | |
1312 | spin = false | |
1313 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1314 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1315 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
1316 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1317 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4) | |
1318 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
1319 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
1320 | elseif position == "Jump2" and attacking == false then | |
1321 | change = 1 | |
1322 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
1323 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
1324 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
1325 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
1326 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
1327 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
1328 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
1329 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
1330 | elseif position == "Falling" and attacking == false then | |
1331 | change = 1 | |
1332 | spin = false | |
1333 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1334 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1335 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
1336 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
1337 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2) | |
1338 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
1339 | elseif position == "Falling2" and attacking == false then | |
1340 | change = 1 | |
1341 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
1342 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
1343 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
1344 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
1345 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
1346 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
1347 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
1348 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
1349 | elseif position == "Walking" and attacking == false and running == false then | |
1350 | change = 1.2 | |
1351 | walking = true | |
1352 | spin = false | |
1353 | seacutlassweld.C0 = seacutlassweld.C0:lerp(CFrame.new(0,-1,1.5) * CFrame.Angles(math.rad(-315),math.rad(0),math.rad(0)),.8) | |
1354 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5 + Root.RotVelocity.Y / 85,.35,-.5*math.sin(sine/8)) * CFrame.Angles(math.rad(35*math.sin(sine/8)),math.rad(0*math.sin(sine/8)),math.rad(-10 + Root.RotVelocity.Y / 10, math.sin(-20 * math.sin(sine/4)))),.3) | |
1355 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1356 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1357 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.35,.5*math.sin(sine/8)) * CFrame.Angles(math.rad(-35*math.sin(sine/8)),math.rad(0*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3) | |
1358 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(-10), math.rad(5 * math.cos(sine/7)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.1) | |
1359 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.3) | |
1360 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.3) | |
1361 | elseif position == "Idle" and attacking == false and running == false then | |
1362 | change = .5 | |
1363 | spin = true | |
1364 | seacutlassweld.C0 = seacutlassweld.C0:lerp(CFrame.new(-.7,-2.1,0) * CFrame.Angles(math.rad(230),math.rad(0),math.rad(45)),.8) | |
1365 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
1366 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,0,.5) * CFrame.Angles(math.rad(-90 - 3 * math.sin(sine/12)),math.rad(40),math.rad(0)), 0.1) | |
1367 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,0,.5) * CFrame.Angles(math.rad(-90 - 3 * math.sin(sine/12)),math.rad(-40),math.rad(0)), 0.1) | |
1368 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1369 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
1370 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
1371 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
1372 | elseif position == "Idle2" and attacking == false and running == false then | |
1373 | change = .75 | |
1374 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1) | |
1375 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
1376 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1) | |
1377 | LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
1378 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,0,.5) * CFrame.Angles(math.rad(-90),math.rad(40),math.rad(0)), 0.4) | |
1379 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,0,.5) * CFrame.Angles(math.rad(-90),math.rad(-40),math.rad(0)), 0.4) | |
1380 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4) | |
1381 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4) | |
1382 | elseif position == "Walking2" and attacking == false and running == false then | |
1383 | ws = 50 | |
1384 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
1385 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
1386 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
1387 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
1388 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
1389 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
1390 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
1391 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
1392 | elseif position == "Running" and attacking == false then | |
1393 | change = 1 | |
1394 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3) | |
1395 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3) | |
1396 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1397 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3) | |
1398 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3) | |
1399 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3) | |
1400 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3) | |
1401 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3) | |
1402 | end | |
1403 | swait() | |
1404 | end | |
1405 | end) | |
1406 | anims() | |
1407 | warn("The power of water. Made by Supr14") |