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