SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {} | |
2 | do | |
3 | ||
4 | - | local kan = Instance.new("Sound") kan.Volume = 20 kan.SoundId = "rbxassetid://684376608" kan.Looped = true kan.Parent = owner.Character.Torso kan:Play() |
4 | + | local kan = Instance.new("Sound") kan.Volume = 20 kan.SoundId = "rbxassetid://2586219879" kan.Looped = true kan.Parent = owner.Character.Torso kan:Play() |
5 | ||
6 | script.Parent = owner.Character | |
7 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
8 | local function NewFakeEvent() | |
9 | local Bind = Instance.new("BindableEvent") | |
10 | local Fake;Fake = {Connections = {}, | |
11 | fakeEvent=true; | |
12 | Connect=function(self,Func) | |
13 | Bind.Event:connect(Func) | |
14 | self.Connections[Bind] = true | |
15 | return setmetatable({Connected = true},{ | |
16 | __index = function (self,Index) | |
17 | if Index:lower() == "disconnect" then | |
18 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
19 | end | |
20 | return Fake[Index] | |
21 | end; | |
22 | __tostring = function() return "Connection" end; | |
23 | }) | |
24 | end} | |
25 | Fake.connect = Fake.Connect;return Fake; | |
26 | end | |
27 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
28 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
29 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
30 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
31 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
32 | local function TriggerEvent(self,Event,...) | |
33 | local Trigger = Mouse[Event] | |
34 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
35 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
36 | end | |
37 | end | |
38 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
39 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
40 | if FiredBy.Name ~= owner.Name then return end | |
41 | if Input.MouseEvent then | |
42 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
43 | else | |
44 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
45 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
46 | for _,Action in pairs(ContextActionService.Actions) do | |
47 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
48 | end | |
49 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
50 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
51 | end | |
52 | end) | |
53 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
54 | Event.Parent = NLS([[ | |
55 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
56 | local Input = function(Input,gameProcessedEvent) | |
57 | if gameProcessedEvent then return end | |
58 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
59 | end | |
60 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
61 | local Hit,Target | |
62 | while wait(1/30) do | |
63 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
64 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self)return InternalData["Mouse"] end | |
80 | end | |
81 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
82 | end | |
83 | return RealPlayer[Index] | |
84 | end; | |
85 | __tostring = function(self) return RealPlayer.Name end | |
86 | }) | |
87 | end | |
88 | end | |
89 | if RealGame[Index] then | |
90 | local Type = type(RealGame[Index]) | |
91 | if Type == "function" then | |
92 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
93 | return function (self,Service) | |
94 | local FakeServices = { | |
95 | ["players"] = function() | |
96 | return setmetatable({},{ | |
97 | __index = function (self2,Index2) | |
98 | local RealService = RealGame:GetService(Service) | |
99 | local Type2 = type(Index2) | |
100 | if Type2 == "function" then | |
101 | return function (self,...) return RealService[Index2](RealService,...)end | |
102 | else | |
103 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
104 | return RealService[Index2] | |
105 | end | |
106 | end; | |
107 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
108 | }) | |
109 | end; | |
110 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
111 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
112 | ["runservice"] = function() | |
113 | return setmetatable({},{ | |
114 | __index = function(self2,Index2) | |
115 | local RealService = RealGame:GetService(Service) | |
116 | local Type2 = type(Index2) | |
117 | if Type2 == "function" then | |
118 | return function (self,...) return RealService[Index2](RealService,...) end | |
119 | else | |
120 | local RunServices = { | |
121 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
122 | ["renderstepped"] = function() return RealService["Stepped"] end | |
123 | } | |
124 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
125 | return RealService[Index2] | |
126 | end | |
127 | end | |
128 | }) | |
129 | end | |
130 | } | |
131 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
132 | return RealGame:GetService(Service) | |
133 | end | |
134 | end | |
135 | return function (self,...) return RealGame[Index](RealGame,...) end | |
136 | else | |
137 | if game:GetService(Index) then return game:GetService(Index) end | |
138 | return RealGame[Index] | |
139 | end | |
140 | end | |
141 | return nil | |
142 | end | |
143 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...") | |
144 | ||
145 | --[[KillerDarkness0105's/Codex's Sonic script]]-- | |
146 | ||
147 | plr = owner | |
148 | char = plr.Character | |
149 | ||
150 | gui = Instance.new("BillboardGui", char.Head) | |
151 | gui.Size = UDim2.new(0,200,0,50) | |
152 | gui.StudsOffset = Vector3.new(0, 2, 0) | |
153 | ||
154 | text = Instance.new("TextLabel", gui) | |
155 | text.BackgroundTransparency = 1 | |
156 | text.Size = UDim2.new(10,0,1,0) | |
157 | text.Position = UDim2.new(-4.5,0,0,0) | |
158 | text.Font = "SourceSans" | |
159 | text.TextSize = 50 | |
160 | text.TextColor3 = Color3.new(0, 0, 0) | |
161 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
162 | text.TextStrokeTransparency = 0.8 | |
163 | text.Text = "fast boye" | |
164 | text.TextWrapped = true | |
165 | ||
166 | ||
167 | wait(0.07) | |
168 | Player=game:GetService("Players").LocalPlayer | |
169 | Character=Player.Character | |
170 | PlayerGui=Player.PlayerGui | |
171 | Backpack=Player.Backpack | |
172 | Torso=Character.Torso | |
173 | Head=Character.Head | |
174 | Humanoid=Character.Humanoid | |
175 | LeftArm=Character["Left Arm"] | |
176 | LeftLeg=Character["Left Leg"] | |
177 | RightArm=Character["Right Arm"] | |
178 | RightLeg=Character["Right Leg"] | |
179 | LS=Torso["Left Shoulder"] | |
180 | LH=Torso["Left Hip"] | |
181 | RS=Torso["Right Shoulder"] | |
182 | RH=Torso["Right Hip"] | |
183 | Face = Head.face | |
184 | Neck=Torso.Neck | |
185 | it=Instance.new | |
186 | attacktype=1 | |
187 | attacktype2=1 | |
188 | vt=Vector3.new | |
189 | cf=CFrame.new | |
190 | cn=CFrame.new | |
191 | euler=CFrame.fromEulerAnglesXYZ | |
192 | angles=CFrame.Angles | |
193 | combo = 0 | |
194 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
195 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
196 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
197 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
198 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
199 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
200 | RootPart=Character.HumanoidRootPart | |
201 | RootJoint=RootPart.RootJoint | |
202 | RootCF=euler(-1.57,0,3.14) | |
203 | attack = false | |
204 | attackdebounce = false | |
205 | trispeed=.2 | |
206 | attackmode='none' | |
207 | local idle=0 | |
208 | local Anim="Idle" | |
209 | stance = false | |
210 | local ff = 2 | |
211 | noleg = false | |
212 | - | Humanoid.WalkSpeed = 200 |
212 | + | |
213 | Humanoid.Animator.Parent = nil | |
214 | - | Head.Running.SoundId = "rbxassetid://758199523" |
214 | + | |
215 | - | Head.Running.Volume = 2 |
215 | + | |
216 | attackspeed = 0.14 | |
217 | df = false | |
218 | Swing = 1 | |
219 | local sine = 0 | |
220 | local change = 1 | |
221 | local val = 0 | |
222 | local speed = 0 | |
223 | local rs = game:GetService("RunService").RenderStepped | |
224 | cam = workspace.CurrentCamera | |
225 | local RbxUtility = LoadLibrary("RbxUtility") | |
226 | local Create = RbxUtility.Create | |
227 | deb = game:GetService("Debris") | |
228 | Face.Transparency = 0 | |
229 | --Face.Texture = "rbxassetid://176217905" --176217905 | |
230 | Humanoid.WalkSpeed = 250 | |
231 | local freefall = 0 | |
232 | Head.Running.SoundId = "rbxassetid://2583830330" | |
233 | Head.Running.Volume = 3 | |
234 | local boost = false | |
235 | Humanoid.JumpPower = 88 | |
236 | local musicnum = 1 | |
237 | ||
238 | local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10 | |
239 | local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit | |
240 | local GravPoint = RootPart.Velocity.y | |
241 | local NV = Vector3.new(0,0,0) | |
242 | print("Move list") | |
243 | print("---------") | |
244 | print("Shift = Boost") | |
245 | print("Ctrl = Mach Speed Boost") | |
246 | - | stompsound.Volume = 2 |
246 | + | |
247 | print("C = Slide, in air to stomp") | |
248 | print("Jump Then Hold B near a wall to wallrun") | |
249 | - | stompsound.SoundId = "rbxassetid://1295424184" |
249 | + | |
250 | print("Space near a wall to walljump, away from a wall homing attack") | |
251 | ||
252 | warn("Fast boye edit by Trip3mario ya punks.") | |
253 | ||
254 | boostsound = Instance.new("Sound",PlayerGui) | |
255 | boostsound.Volume = .6 | |
256 | boostsound.TimePosition = 0 | |
257 | boostsound.Pitch = 1 | |
258 | boostsound.SoundId = "rbxassetid://924922553" | |
259 | boostsound.Looped = false | |
260 | ||
261 | ||
262 | ||
263 | stompsound = Instance.new("Sound",PlayerGui) | |
264 | stompsound.Volume = 5 | |
265 | stompsound.TimePosition = 0 | |
266 | stompsound.Pitch = 1 | |
267 | stompsound.SoundId = "rbxassetid://2583816610" | |
268 | stompsound.Looped = false | |
269 | ||
270 | ||
271 | ||
272 | so = function(id,par,vol,pit) | |
273 | coroutine.resume(coroutine.create(function() | |
274 | local sou = Instance.new("Sound",par or workspace) | |
275 | sou.Volume=vol | |
276 | sou.Pitch=pit or 1 | |
277 | sou.SoundId=id | |
278 | sou:play() | |
279 | game:GetService("Debris"):AddItem(sou,8) | |
280 | end)) | |
281 | end | |
282 | ||
283 | --save shoulders | |
284 | RSH, LSH=nil, nil | |
285 | --welds | |
286 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
287 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
288 | LH=Torso["Left Hip"] | |
289 | RH=Torso["Right Hip"] | |
290 | TorsoColor=Torso.BrickColor | |
291 | function NoOutline(Part) | |
292 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
293 | end | |
294 | player=Player | |
295 | ch=Character | |
296 | RSH=ch.Torso["Right Shoulder"] | |
297 | LSH=ch.Torso["Left Shoulder"] | |
298 | -- | |
299 | RSH.Parent=nil | |
300 | LSH.Parent=nil | |
301 | -- | |
302 | RW.Name="Right Shoulder" | |
303 | RW.Part0=ch.Torso | |
304 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
305 | RW.C1=cf(0, 0.5, 0) | |
306 | RW.Part1=ch["Right Arm"] | |
307 | RW.Parent=ch.Torso | |
308 | -- | |
309 | LW.Name="Left Shoulder" | |
310 | LW.Part0=ch.Torso | |
311 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
312 | LW.C1=cf(0, 0.5, 0) | |
313 | LW.Part1=ch["Left Arm"] | |
314 | LW.Parent=ch.Torso | |
315 | ||
316 | ||
317 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
318 | local wld = Instance.new("Weld", wp1) | |
319 | wld.Part0 = wp0 | |
320 | wld.Part1 = wp1 | |
321 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
322 | end | |
323 | local rs = game:GetService("RunService").RenderStepped | |
324 | ||
325 | newWeld(RootPart, Torso, 0, -1, 0) | |
326 | Torso.Weld.C1 = CFrame.new(0, -1, 0) | |
327 | newWeld(Torso, LeftLeg, -0.5, -1, 0) | |
328 | LeftLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
329 | newWeld(Torso, RightLeg, 0.5, -1, 0) | |
330 | RightLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
331 | ||
332 | Player=game:GetService('Players').LocalPlayer | |
333 | Character=Player.Character | |
334 | mouse=Player:GetMouse() | |
335 | m=Instance.new('Model',Character) | |
336 | ||
337 | ||
338 | local function weldBetween(a, b) | |
339 | local weldd = Instance.new("ManualWeld") | |
340 | weldd.Part0 = a | |
341 | weldd.Part1 = b | |
342 | weldd.C0 = CFrame.new() | |
343 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
344 | weldd.Parent = a | |
345 | return weldd | |
346 | end | |
347 | ||
348 | ArtificialHB = Instance.new("BindableEvent", script) | |
349 | ArtificialHB.Name = "Heartbeat" | |
350 | ||
351 | script:WaitForChild("Heartbeat") | |
352 | ||
353 | frame = 1 / 80 | |
354 | tf = 0 | |
355 | allowframeloss = false | |
356 | tossremainder = false | |
357 | lastframe = tick() | |
358 | script.Heartbeat:Fire() | |
359 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
360 | tf = tf + s | |
361 | if tf >= frame then | |
362 | if allowframeloss then | |
363 | script.Heartbeat:Fire() | |
364 | lastframe = tick() | |
365 | else | |
366 | for i = 1, math.floor(tf / frame) do | |
367 | script.Heartbeat:Fire() | |
368 | end | |
369 | lastframe = tick() | |
370 | end | |
371 | if tossremainder then | |
372 | tf = 0 | |
373 | else | |
374 | tf = tf - frame * math.floor(tf / frame) | |
375 | end | |
376 | end | |
377 | end) | |
378 | ||
379 | --[[] | |
380 | function swait(num) | |
381 | if num == 0 or num == nil then | |
382 | ArtificialHB.Event:wait() | |
383 | else | |
384 | for i = 0, num do | |
385 | ArtificialHB.Event:wait() | |
386 | end | |
387 | end | |
388 | end | |
389 | ||
390 | ]] | |
391 | ||
392 | ||
393 | ||
394 | ||
395 | function swait(num) | |
396 | if num == 0 or num == nil then | |
397 | game:service("RunService").Stepped:wait() | |
398 | else | |
399 | for i = 0, num do | |
400 | game:service("RunService").Stepped:wait() | |
401 | end | |
402 | end | |
403 | end | |
404 | ||
405 | function RemoveOutlines(part) | |
406 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
407 | end | |
408 | ||
409 | ||
410 | part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
411 | local fp = it("Part") | |
412 | fp.formFactor = formfactor | |
413 | fp.Parent = parent | |
414 | fp.Reflectance = reflectance | |
415 | fp.Transparency = transparency | |
416 | fp.CanCollide = false | |
417 | fp.Locked = true | |
418 | fp.BrickColor = brickcolor | |
419 | fp.Name = name | |
420 | fp.Size = size | |
421 | fp.Position = Torso.Position | |
422 | NoOutline(fp) | |
423 | if fp.BrickColor == BrickColor.new("Dark indigo") then | |
424 | fp.Material = "Neon" | |
425 | else | |
426 | if fp.BrickColor == BrickColor.new("Really black") then | |
427 | fp.BrickColor = BrickColor.new("Really black") | |
428 | fp.Material = "Metal" | |
429 | else | |
430 | fp.Material = "Neon" | |
431 | end | |
432 | end | |
433 | fp:BreakJoints() | |
434 | return fp | |
435 | end | |
436 | ||
437 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
438 | local mesh = it(Mesh) | |
439 | mesh.Parent = part | |
440 | if Mesh == "SpecialMesh" then | |
441 | mesh.MeshType = meshtype | |
442 | mesh.MeshId = meshid | |
443 | end | |
444 | mesh.Offset = offset | |
445 | mesh.Scale = scale | |
446 | return mesh | |
447 | end | |
448 | ||
449 | weld = function(parent, part0, part1, c0) | |
450 | local weld = it("Weld") | |
451 | weld.Parent = parent | |
452 | weld.Part0 = part0 | |
453 | weld.Part1 = part1 | |
454 | weld.C0 = c0 | |
455 | return weld | |
456 | end | |
457 | ||
458 | F1 = Instance.new("Folder", Character) | |
459 | F1.Name = "Effects Folder" | |
460 | F2 = Instance.new("Folder", F1) | |
461 | F2.Name = "Effects" | |
462 | Triangle = function(a, b, c) | |
463 | end | |
464 | ||
465 | MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
466 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt()) | |
467 | prt.Anchored = true | |
468 | prt.CanCollide = false | |
469 | prt.CFrame = cframe | |
470 | prt.Name = "prt" | |
471 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
472 | game:GetService("Debris"):AddItem(prt, 5) | |
473 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3}) | |
474 | end | |
475 | ||
476 | ||
477 | ||
478 | MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
479 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt()) | |
480 | prt.Anchored = true | |
481 | prt.CanCollide = false | |
482 | prt.CFrame = cframe | |
483 | prt.Name = "prt" | |
484 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
485 | game:GetService("Debris"):AddItem(prt, 5) | |
486 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3}) | |
487 | end | |
488 | ||
489 | MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
490 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt()) | |
491 | prt.Anchored = true | |
492 | prt.CFrame = cframe | |
493 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
494 | game:GetService("Debris"):AddItem(prt, 5) | |
495 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3}) | |
496 | end | |
497 | ||
498 | MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
499 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2)) | |
500 | prt.Anchored = true | |
501 | prt.CFrame = cframe | |
502 | msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
503 | game:GetService("Debris"):AddItem(prt, 5) | |
504 | Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3} | |
505 | end | |
506 | ||
507 | MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
508 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2)) | |
509 | prt.Anchored = true | |
510 | prt.CFrame = cframe | |
511 | msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
512 | game:GetService("Debris"):AddItem(prt, 5) | |
513 | Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3} | |
514 | end | |
515 | ||
516 | MagicBlood = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
517 | local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt()) | |
518 | prt.Anchored = true | |
519 | prt.CFrame = cframe | |
520 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
521 | game:GetService("Debris"):AddItem(prt, 5) | |
522 | table.insert(Effects, {prt, "Blood", delay, x3, y3, z3}) | |
523 | end | |
524 | ||
525 | ElecEffect = function(cff, x, y, z) | |
526 | local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1)) | |
527 | prt.Anchored = true | |
528 | prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
529 | prt.CFrame = cf(prt.Position) | |
530 | game:GetService("Debris"):AddItem(prt, 2) | |
531 | xval = math.random() / 2 | |
532 | yval = math.random() / 2 | |
533 | zval = math.random() / 2 | |
534 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval)) | |
535 | Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval} | |
536 | end | |
537 | ||
538 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
539 | if SinglePlayer then | |
540 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
541 | end | |
542 | local List = {} | |
543 | for i, v in pairs(workspace:GetChildren()) do | |
544 | if v:IsA("Model") then | |
545 | if v:findFirstChild("Torso") then | |
546 | if v ~= Character then | |
547 | if (v.Torso.Position - Position).magnitude <= Distance then | |
548 | table.insert(List, v) | |
549 | end | |
550 | end | |
551 | end | |
552 | end | |
553 | end | |
554 | return List | |
555 | end | |
556 | ||
557 | ||
558 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
559 | local Part = Create("Part"){ | |
560 | Parent = Parent, | |
561 | Reflectance = Reflectance, | |
562 | Transparency = Transparency, | |
563 | CanCollide = false, | |
564 | Locked = true, | |
565 | BrickColor = BrickColor.new(tostring(BColor)), | |
566 | Name = Name, | |
567 | Size = Size, | |
568 | Material = Material, | |
569 | } | |
570 | RemoveOutlines(Part) | |
571 | return Part | |
572 | end | |
573 | ||
574 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
575 | local Msh = Create(Mesh){ | |
576 | Parent = Part, | |
577 | Offset = OffSet, | |
578 | Scale = Scale, | |
579 | } | |
580 | if Mesh == "SpecialMesh" then | |
581 | Msh.MeshType = MeshType | |
582 | Msh.MeshId = MeshId | |
583 | end | |
584 | return Msh | |
585 | end | |
586 | ||
587 | ||
588 | ||
589 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
590 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
591 | prt.Anchored = true | |
592 | prt.CFrame = cframe | |
593 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
594 | game:GetService("Debris"):AddItem(prt, 10) | |
595 | if Type == 1 or Type == nil then | |
596 | table.insert(Effects, { | |
597 | prt, | |
598 | "Block1", | |
599 | delay, | |
600 | x3, | |
601 | y3, | |
602 | z3, | |
603 | msh | |
604 | }) | |
605 | elseif Type == 2 then | |
606 | table.insert(Effects, { | |
607 | prt, | |
608 | "Block2", | |
609 | delay, | |
610 | x3, | |
611 | y3, | |
612 | z3, | |
613 | msh | |
614 | }) | |
615 | end | |
616 | end | |
617 | ||
618 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
619 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
620 | prt.Anchored = true | |
621 | prt.CFrame = cframe | |
622 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
623 | game:GetService("Debris"):AddItem(prt, 10) | |
624 | table.insert(Effects, { | |
625 | prt, | |
626 | "Cylinder", | |
627 | delay, | |
628 | x3, | |
629 | y3, | |
630 | z3, | |
631 | msh | |
632 | }) | |
633 | end | |
634 | ||
635 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay,material) | |
636 | local prt=CreatePart(workspace,material,0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
637 | prt.Anchored=true | |
638 | prt.CFrame=cframe | |
639 | msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
640 | game:GetService("Debris"):AddItem(prt,2) | |
641 | coroutine.resume(coroutine.create(function(Part,Mesh,num) | |
642 | for i=0,1,delay do | |
643 | swait() | |
644 | Part.Transparency=i | |
645 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
646 | end | |
647 | Part.Parent=nil | |
648 | end),prt,msh,(math.random(0,1)+math.random())/5) | |
649 | end | |
650 | ||
651 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
652 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
653 | prt.Anchored = true | |
654 | prt.CFrame = cframe | |
655 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
656 | game:GetService("Debris"):AddItem(prt, 10) | |
657 | table.insert(Effects, { | |
658 | prt, | |
659 | "Cylinder", | |
660 | delay, | |
661 | x3, | |
662 | y3, | |
663 | z3, | |
664 | msh | |
665 | }) | |
666 | end | |
667 | ||
668 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
669 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
670 | prt.Anchored = true | |
671 | prt.CFrame = cframe | |
672 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
673 | game:GetService("Debris"):AddItem(prt, 10) | |
674 | table.insert(Effects, { | |
675 | prt, | |
676 | "Cylinder", | |
677 | delay, | |
678 | x3, | |
679 | y3, | |
680 | z3, | |
681 | msh | |
682 | }) | |
683 | end | |
684 | ||
685 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
686 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
687 | prt.Anchored = true | |
688 | prt.CFrame = cframe | |
689 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
690 | game:GetService("Debris"):AddItem(prt, 10) | |
691 | table.insert(Effects, { | |
692 | prt, | |
693 | "Cylinder", | |
694 | delay, | |
695 | x3, | |
696 | y3, | |
697 | z3, | |
698 | msh | |
699 | }) | |
700 | end | |
701 | ||
702 | ||
703 | function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
704 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
705 | prt.Anchored = true | |
706 | prt.CFrame = cframe | |
707 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
708 | game:GetService("Debris"):AddItem(prt, 10) | |
709 | table.insert(Effects, { | |
710 | prt, | |
711 | "Cylinder", | |
712 | delay, | |
713 | x3, | |
714 | y3, | |
715 | z3, | |
716 | msh | |
717 | }) | |
718 | end | |
719 | ||
720 | function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
721 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
722 | prt.Anchored = true | |
723 | prt.CFrame = cframe | |
724 | local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
725 | game:GetService("Debris"):AddItem(prt, 10) | |
726 | table.insert(Effects, { | |
727 | prt, | |
728 | "Cylinder", | |
729 | delay, | |
730 | x3, | |
731 | y3, | |
732 | z3, | |
733 | msh | |
734 | }) | |
735 | end | |
736 | ||
737 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
738 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
739 | prt.Anchored = true | |
740 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
741 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
742 | local num = math.random(10, 50) / 1000 | |
743 | game:GetService("Debris"):AddItem(prt, 10) | |
744 | table.insert(Effects, { | |
745 | prt, | |
746 | "Shatter", | |
747 | num, | |
748 | prt.CFrame, | |
749 | math.random() - math.random(), | |
750 | 0, | |
751 | math.random(50, 100) / 100 | |
752 | }) | |
753 | end | |
754 | ||
755 | local lerp = function(a, b, t) | |
756 | return a * (1 - t) + b * t | |
757 | end | |
758 | ||
759 | function clerp(a,b,t) | |
760 | local qa = {QuaternionFromCFrame(a)} | |
761 | local qb = {QuaternionFromCFrame(b)} | |
762 | local ax, ay, az = a.x, a.y, a.z | |
763 | local bx, by, bz = b.x, b.y, b.z | |
764 | local _t = 1-t | |
765 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
766 | end | |
767 | ||
768 | function QuaternionFromCFrame(cf) | |
769 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
770 | local trace = m00 + m11 + m22 | |
771 | if trace > 0 then | |
772 | local s = math.sqrt(1 + trace) | |
773 | local recip = 0.5/s | |
774 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
775 | else | |
776 | local i = 0 | |
777 | if m11 > m00 then | |
778 | i = 1 | |
779 | end | |
780 | if m22 > (i == 0 and m00 or m11) then | |
781 | i = 2 | |
782 | end | |
783 | if i == 0 then | |
784 | local s = math.sqrt(m00-m11-m22+1) | |
785 | local recip = 0.5/s | |
786 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
787 | elseif i == 1 then | |
788 | local s = math.sqrt(m11-m22-m00+1) | |
789 | local recip = 0.5/s | |
790 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
791 | elseif i == 2 then | |
792 | local s = math.sqrt(m22-m00-m11+1) | |
793 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
794 | end | |
795 | end | |
796 | end | |
797 | ||
798 | ||
799 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
800 | local xs, ys, zs = x + x, y + y, z + z | |
801 | local wx, wy, wz = w*xs, w*ys, w*zs | |
802 | local xx = x*xs | |
803 | local xy = x*ys | |
804 | local xz = x*zs | |
805 | local yy = y*ys | |
806 | local yz = y*zs | |
807 | local zz = z*zs | |
808 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
809 | end | |
810 | function QuaternionSlerp(a, b, t) | |
811 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
812 | local startInterp, finishInterp; | |
813 | if cosTheta >= 0.0001 then | |
814 | if (1 - cosTheta) > 0.0001 then | |
815 | local theta = math.acos(cosTheta) | |
816 | local invSinTheta = 1/math.sin(theta) | |
817 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
818 | finishInterp = math.sin(t*theta)*invSinTheta | |
819 | else | |
820 | startInterp = 1-t | |
821 | finishInterp = t | |
822 | end | |
823 | else | |
824 | if (1+cosTheta) > 0.0001 then | |
825 | local theta = math.acos(-cosTheta) | |
826 | local invSinTheta = 1/math.sin(theta) | |
827 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
828 | finishInterp = math.sin(t*theta)*invSinTheta | |
829 | else | |
830 | startInterp = t-1 | |
831 | finishInterp = t | |
832 | end | |
833 | end | |
834 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
835 | end | |
836 | ||
837 | function weld5(part0, part1, c0, c1) | |
838 | weeld=Instance.new("Weld", part0) | |
839 | weeld.Part0=part0 | |
840 | weeld.Part1=part1 | |
841 | weeld.C0=c0 | |
842 | weeld.C1=c1 | |
843 | return weeld | |
844 | end | |
845 | ||
846 | --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
847 | ||
848 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
849 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
850 | end | |
851 | ||
852 | ||
853 | ||
854 | ||
855 | ||
856 | ||
857 | Character.Humanoid.MaxHealth = 120 | |
858 | Character.Humanoid.Health = 120 | |
859 | ||
860 | local f = 0 | |
861 | local b = Instance.new("BlurEffect",cam) | |
862 | local c = Instance.new('PointLight', Torso) | |
863 | c.Range = 16 | |
864 | c.Color = Color3.new(0, 1,1) | |
865 | c.Brightness = 1.5 | |
866 | game:GetService("RunService"):BindToRenderStep("W0tT", 0, function() | |
867 | ||
868 | b.Size = b.Size - 4 | |
869 | if boost == true then | |
870 | c.Enabled = true | |
871 | cam.FieldOfView = lerp(cam.FieldOfView, 110, 0.5) | |
872 | -- cam.FieldOfView = 110 | |
873 | freefall = 0 | |
874 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,3),0.25) | |
875 | SphereEffect(BrickColor.new("Cyan"),RightLeg.CFrame*CFrame.new(0,-1,0)*angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)),1.4,12,1.4,2.8,26,2.8,0.07) | |
876 | SphereEffect(BrickColor.new("Cyan"),LeftLeg.CFrame*CFrame.new(0,-1,0)*angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)),1.4,12,1.4,2.8,26,2.8,0.07) | |
877 | if hitfloor ~= nil and Anim ~= "runIdle" then | |
878 | SpecialEffect(BrickColor.new("Cyan"),RootPart.CFrame*CFrame.new(0,-3.4,.78) ,2,2,2, 1.5,1.5,1.5,.09) | |
879 | end | |
880 | end | |
881 | if boost == false then | |
882 | cam.FieldOfView = lerp(cam.FieldOfView, 70, 0.076) | |
883 | --cam.FieldOfView = 70 | |
884 | c.Enabled = false | |
885 | end | |
886 | end) | |
887 | ||
888 | ||
889 | ||
890 | mouse.KeyDown:connect(function(key) | |
891 | if string.byte(key) == 48 then | |
892 | b.Size = 40 | |
893 | Swing = 2 | |
894 | freefall = 0 | |
895 | ||
896 | coroutine.resume(coroutine.create(function() | |
897 | for i = 0,1,0.1 do | |
898 | swait() | |
899 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24) | |
900 | end | |
901 | end)) | |
902 | Humanoid.WalkSpeed = 180 | |
903 | RootPart.Velocity = RootPart.CFrame.lookVector*150 | |
904 | RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-9.2) , 1, 1, 1, 8, 8, 8, 0.14,"Neon") | |
905 | boost = true | |
906 | boostsound:Play() | |
907 | end | |
908 | end) | |
909 | ||
910 | mouse.KeyUp:connect(function(key) | |
911 | if string.byte(key) == 48 then | |
912 | Swing = 1 | |
913 | Humanoid.WalkSpeed = 64 | |
914 | boost = false | |
915 | boostsound:Stop() | |
916 | ||
917 | end | |
918 | end) | |
919 | ||
920 | ||
921 | ||
922 | ||
923 | mouse.KeyDown:connect(function(key) | |
924 | if string.byte(key) == 50 then | |
925 | b.Size = 40 | |
926 | freefall = 0 | |
927 | Swing = 2 | |
928 | ||
929 | coroutine.resume(coroutine.create(function() | |
930 | for i = 0,1,0.1 do | |
931 | swait() | |
932 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.35*2.8,0.35*2.8),math.random(-0.35*2.8,0.35*2.8),math.random(-0.35*2.8,0.35*2.8)),0.48) | |
933 | end | |
934 | end)) | |
935 | ||
936 | Humanoid.WalkSpeed = 320 | |
937 | RootPart.Velocity = RootPart.CFrame.lookVector*550 | |
938 | RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-9.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon") | |
939 | RingEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,0,-11.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon") | |
940 | RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-13.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon") | |
941 | boost = true | |
942 | boostsound:Play() | |
943 | end | |
944 | end) | |
945 | ||
946 | mouse.KeyUp:connect(function(key) | |
947 | if string.byte(key) == 50 then | |
948 | Swing = 1 | |
949 | Humanoid.WalkSpeed = 64 | |
950 | boost = false | |
951 | boostsound:Stop() | |
952 | ||
953 | end | |
954 | end) | |
955 | ||
956 | ||
957 | local lastwall = nil | |
958 | local jumped = false | |
959 | ||
960 | ||
961 | ||
962 | ||
963 | ||
964 | ||
965 | local vwall = false | |
966 | ||
967 | mouse.KeyDown:connect(function(key) | |
968 | if key == 'b' and hitfloor == nil and attack == false then | |
969 | vrun() | |
970 | end | |
971 | end) | |
972 | ||
973 | ||
974 | function vrun() | |
975 | local ray = Ray.new( | |
976 | RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5 | |
977 | ) | |
978 | local hit, position, normal = workspace:FindPartOnRay(ray, character) | |
979 | ||
980 | if hit then | |
981 | if hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.CanCollide == true then | |
982 | vwall = true | |
983 | local NV = Vector3.new(0,0,0) | |
984 | local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10 | |
985 | local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit | |
986 | local GravPoint = RootPart.Velocity.y | |
987 | local velo = Instance.new("BodyVelocity",Torso) | |
988 | velo.MaxForce = Vector3.new(400000,400000,400000) | |
989 | ||
990 | attack = true | |
991 | while vwall == true and ray and hit do | |
992 | swait() | |
993 | change = 0.84+ Humanoid.WalkSpeed/132 | |
994 | if Humanoid.WalkSpeed > 40 and Humanoid.WalkSpeed < 70 then | |
995 | velo.Velocity = Vector3.new(0,40,0) | |
996 | end | |
997 | if Humanoid.WalkSpeed > 70 and Humanoid.WalkSpeed < 200 then | |
998 | velo.Velocity = Vector3.new(0,80,0) | |
999 | end | |
1000 | if Humanoid.WalkSpeed > 200 then | |
1001 | velo.Velocity = Vector3.new(0,130,0) | |
1002 | end | |
1003 | ray = Ray.new( | |
1004 | RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5 | |
1005 | ) | |
1006 | hit, position, normal = workspace:FindPartOnRay(ray, character) | |
1007 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/2), .6) * angles(math.rad(96), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1) | |
1008 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+20*math.sin(sine/2)),math.rad(0),math.rad(0+5*math.sin(sine/4)) + RootPart.RotVelocity.Y / 13),.1) | |
1009 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.1) * angles(math.rad(-90-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(15+2*math.sin(sine/4))- RootPart.RotVelocity.Y / 34),.15) | |
1010 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.1)*angles(math.rad(-90-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-15+2*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34),.15) | |
1011 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.28*math.cos(sine/4), 0-0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0+104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3+ Humanoid.WalkSpeed/272) | |
1012 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.28*math.cos(sine/4),0+0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0-104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3+ Humanoid.WalkSpeed/272) | |
1013 | end | |
1014 | velo:Destroy() | |
1015 | wait(0.07) | |
1016 | ||
1017 | if vwall == false then | |
1018 | ||
1019 | RootPart.Velocity = -RootPart.CFrame.lookVector*68 + Vector3.new(0,86,0) | |
1020 | ||
1021 | --[[] | |
1022 | for i = 0,5,0.2 do | |
1023 | rs:wait() | |
1024 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.79, 0) * CFrame.Angles(math.rad(0+100*i), math.rad(0), math.rad(0)), 0.2) | |
1025 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
1026 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(-60), math.rad(40)),.2) | |
1027 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(60), math.rad(-40)),.2) | |
1028 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1029 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1030 | end | |
1031 | ]] | |
1032 | ||
1033 | ||
1034 | for i = 0,4,0.1 do | |
1035 | swait() | |
1036 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1037 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6) | |
1038 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1) | |
1039 | RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1) | |
1040 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1) | |
1041 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1042 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1043 | end | |
1044 | ||
1045 | attack = false | |
1046 | ||
1047 | ||
1048 | end | |
1049 | ||
1050 | ||
1051 | if vwall == true then | |
1052 | RootPart.Velocity = RootPart.CFrame.lookVector*38 + Vector3.new(0,86,0) | |
1053 | ||
1054 | --[[] | |
1055 | for i = 0,5,0.2 do | |
1056 | rs:wait() | |
1057 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.79, 0) * CFrame.Angles(math.rad(0+100*i), math.rad(0), math.rad(0)), 0.2) | |
1058 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
1059 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(-60), math.rad(40)),.2) | |
1060 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(60), math.rad(-40)),.2) | |
1061 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1062 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1063 | end | |
1064 | ]] | |
1065 | ||
1066 | ||
1067 | for i = 0,4,0.15 do | |
1068 | swait() | |
1069 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1070 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0-260*i), math.rad(0), math.rad(0)), 0.6) | |
1071 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1) | |
1072 | RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1) | |
1073 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1) | |
1074 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1075 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1076 | end | |
1077 | ||
1078 | attack = false | |
1079 | ||
1080 | end | |
1081 | ||
1082 | ||
1083 | end | |
1084 | end | |
1085 | end | |
1086 | ||
1087 | ||
1088 | ||
1089 | ||
1090 | mouse.KeyUp:connect(function(key) | |
1091 | if key == 'b' and vwall == true then | |
1092 | vwall = false | |
1093 | end | |
1094 | end) | |
1095 | ||
1096 | ||
1097 | ||
1098 | ||
1099 | ||
1100 | function Ldash() | |
1101 | ||
1102 | ||
1103 | ||
1104 | evadecooldown = true | |
1105 | attack = true | |
1106 | k = math.random(1,2) | |
1107 | if k == 1 then | |
1108 | so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1) | |
1109 | else | |
1110 | so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1) | |
1111 | end | |
1112 | ||
1113 | ||
1114 | ||
1115 | ||
1116 | ||
1117 | --+173.8*i | |
1118 | for i = 0,.7,0.1 do | |
1119 | swait() | |
1120 | Head.Velocity = Head.CFrame.rightVector * -135 | |
1121 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(32)), 0.2) | |
1122 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-9),math.rad(-14)),.2) | |
1123 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(27), math.rad(0), math.rad(30)),.2) | |
1124 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)),.2) | |
1125 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(12)), 0.2) | |
1126 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(8)), 0.2) | |
1127 | end | |
1128 | ||
1129 | attack = false | |
1130 | wait(0.08) | |
1131 | evadecooldown = false | |
1132 | ||
1133 | ||
1134 | end | |
1135 | ||
1136 | ||
1137 | ||
1138 | ||
1139 | ||
1140 | function Rdash() | |
1141 | ||
1142 | ||
1143 | ||
1144 | evadecooldown = true | |
1145 | attack = true | |
1146 | k = math.random(1,2) | |
1147 | if k == 1 then | |
1148 | so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1) | |
1149 | else | |
1150 | so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1) | |
1151 | end | |
1152 | ||
1153 | ||
1154 | ||
1155 | ||
1156 | ||
1157 | --+173.8*i | |
1158 | for i = 0,.7,0.1 do | |
1159 | swait() | |
1160 | Head.Velocity = Head.CFrame.rightVector * 135 | |
1161 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-32)), 0.2) | |
1162 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(9),math.rad(14)),.2) | |
1163 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-30)),.2) | |
1164 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.2) * angles(math.rad(27), math.rad(0), math.rad(-30)),.2) | |
1165 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-8)), 0.2) | |
1166 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-12)), 0.2) | |
1167 | end | |
1168 | ||
1169 | attack = false | |
1170 | wait(0.08) | |
1171 | evadecooldown = false | |
1172 | ||
1173 | ||
1174 | end | |
1175 | local sliding = false | |
1176 | ||
1177 | ||
1178 | function Slide() | |
1179 | ||
1180 | local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10 | |
1181 | spd = spd + 30 | |
1182 | local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit | |
1183 | local GravPoint = RootPart.Velocity.y | |
1184 | if spd > 40 and hitfloor ~= nil then | |
1185 | noleg = true | |
1186 | ||
1187 | attack = true | |
1188 | k = math.random(1,2) | |
1189 | if k == 1 then | |
1190 | so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1) | |
1191 | else | |
1192 | so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1) | |
1193 | - | Head.Running.SoundId = "rbxassetid://1295468446" |
1193 | + | |
1194 | ||
1195 | ||
1196 | ||
1197 | ||
1198 | ||
1199 | ||
1200 | ||
1201 | ||
1202 | ||
1203 | ||
1204 | local NV = Vector3.new(0,0,0) | |
1205 | local bv = Instance.new("BodyVelocity", Torso) | |
1206 | bv.maxForce = Vector3.new(1/0,1/0,1/0) | |
1207 | bv.velocity = dir*spd | |
1208 | local bg = Instance.new("BodyGyro", Torso) | |
1209 | bg.maxTorque = Vector3.new(1/0,1/0,1/0) | |
1210 | bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0) | |
1211 | - | Head.Running.SoundId = "rbxassetid://758199523" |
1211 | + | Head.Running.SoundId = "rbxassetid://2583830330" |
1212 | Head.Running.TimePosition = 0 | |
1213 | ||
1214 | Humanoid.PlatformStand = true | |
1215 | while spd > 2 and hitfloor ~= nil and sliding == true do | |
1216 | swait() | |
1217 | spd = spd - 0.95 | |
1218 | bv.velocity = dir*spd + Vector3.new(0,0,0) | |
1219 | bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0) | |
1220 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2.3, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(12)), 0.2) | |
1221 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(34),math.rad(0),math.rad(12)),.2) | |
1222 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(70)),.2) | |
1223 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(-60)),.2) | |
1224 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1225 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.56, -0.2) * CFrame.Angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2) | |
1226 | end | |
1227 | bv:Destroy() | |
1228 | bg:Destroy() | |
1229 | Head.Running.SoundId = "rbxassetid://2583830330" | |
1230 | Head.Running.TimePosition = 0 | |
1231 | Humanoid.PlatformStand = false | |
1232 | attack = false | |
1233 | sliding = false | |
1234 | wait(0.05) | |
1235 | evadecooldown = false | |
1236 | ||
1237 | ||
1238 | end | |
1239 | end | |
1240 | ||
1241 | function land() | |
1242 | attack = true | |
1243 | RootPart.Velocity = Vector3.new(0,0,0) | |
1244 | WaveEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,-1,0) , 1, 1, 1, 3, 0.8, 3, 0.06) | |
1245 | so("http://www.roblox.com/asset/?id=1295424585", Torso, 3.5, 1) | |
1246 | ||
1247 | coroutine.resume(coroutine.create(function() | |
1248 | for i = 0,1,0.1 do | |
1249 | swait() | |
1250 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*2.8,0.55*2.8),math.random(-0.55*2.8,0.55*2.8),math.random(-0.55*2.8,0.55*2.8)),0.44) | |
1251 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.5) | |
1252 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(7),math.rad(0),math.rad(0)),.5) | |
1253 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(87)),.5) | |
1254 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(0), math.rad(0), math.rad(-87)),.5) | |
1255 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, 0, -0.5) * CFrame.Angles(math.rad(16), math.rad(0), math.rad(0)), 0.5) | |
1256 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.14, 0.2) * CFrame.Angles(math.rad(-17), math.rad(0), math.rad(0)), 0.5) | |
1257 | ||
1258 | end | |
1259 | attack = false | |
1260 | ||
1261 | ||
1262 | end)) | |
1263 | ||
1264 | ||
1265 | ||
1266 | end | |
1267 | ||
1268 | ||
1269 | ||
1270 | ||
1271 | function stomp() | |
1272 | attack = true | |
1273 | stompsound:Play() | |
1274 | ||
1275 | while hitfloor == nil do | |
1276 | swait() | |
1277 | b.Size = 12 | |
1278 | WaveEffect(BrickColor.new("Cyan"), LeftLeg.CFrame*CFrame.new(0,-2.4,0) , 1, 1, 1, 0.8, 0.8, 0.8, 0.14) | |
1279 | RootPart.Velocity = Vector3.new(0,RootPart.Velocity.y/1.6,0) +Vector3.new(0,-150,0) | |
1280 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1281 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(0+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07) | |
1282 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07) | |
1283 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07) | |
1284 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07) | |
1285 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(0+4*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1) | |
1286 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, .27+0.17*math.cos(sine/1.3), -0.56) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1) | |
1287 | ||
1288 | end | |
1289 | stompsound:Stop() | |
1290 | land() | |
1291 | ||
1292 | ||
1293 | end | |
1294 | ||
1295 | ||
1296 | function changemusic() | |
1297 | musicnum = musicnum + 1 | |
1298 | music.TimePosition = 0 | |
1299 | local osix = false | |
1300 | local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude | |
1301 | if musicnum > 14 then | |
1302 | musicnum = 1 | |
1303 | end | |
1304 | if musicnum == 1 then | |
1305 | music.SoundId = "rbxassetid://179029173" | |
1306 | end | |
1307 | if musicnum == 2 then | |
1308 | music.SoundId = "rbxassetid://146443855" | |
1309 | end | |
1310 | if musicnum == 3 then | |
1311 | music.SoundId = "rbxassetid://1342408291" | |
1312 | end | |
1313 | if musicnum == 4 then | |
1314 | music.SoundId = "rbxassetid://201219416" | |
1315 | end | |
1316 | if musicnum == 5 then | |
1317 | music.SoundId = "rbxassetid://1390472571" | |
1318 | end | |
1319 | if musicnum == 6 then | |
1320 | osix = true | |
1321 | music.SoundId = "rbxassetid://249974783" | |
1322 | end | |
1323 | if musicnum == 7 then | |
1324 | music.SoundId = "rbxassetid://1851880603" | |
1325 | end | |
1326 | if musicnum == 8 then | |
1327 | music.SoundId = "rbxassetid://412034984" | |
1328 | end | |
1329 | if musicnum == 9 then | |
1330 | music.SoundId = "rbxassetid://536915629" | |
1331 | end | |
1332 | if musicnum == 10 then | |
1333 | music.SoundId = "rbxassetid://1200005861" | |
1334 | end | |
1335 | if musicnum == 11 then | |
1336 | music.SoundId = "rbxassetid://1055930631" | |
1337 | end | |
1338 | if musicnum == 12 then | |
1339 | music.SoundId = "rbxassetid://300269553" | |
1340 | end | |
1341 | if musicnum == 13 then | |
1342 | music.SoundId = "rbxassetid://199897052" | |
1343 | end | |
1344 | if musicnum == 14 then | |
1345 | music.SoundId = "rbxassetid://638115895" | |
1346 | end | |
1347 | ||
1348 | if spd < 14 then | |
1349 | Humanoid.Jump = true | |
1350 | ||
1351 | if osix == false then | |
1352 | so("rbxassetid://537371462",PlayerGui,2,1) | |
1353 | end | |
1354 | ||
1355 | ||
1356 | RootPart.Velocity = Vector3.new(0,102,0) | |
1357 | attack = true | |
1358 | wait(0.08) | |
1359 | for i = 0,7,0.1 do | |
1360 | swait() | |
1361 | RootPart.Velocity = Vector3.new(0,2,0) | |
1362 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1363 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0-260*i), math.rad(0), math.rad(0)), 0.6) | |
1364 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1) | |
1365 | RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1) | |
1366 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1) | |
1367 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1368 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1369 | ||
1370 | end | |
1371 | b.Size = 40 | |
1372 | MoonEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,0) , 1, 1, 1, 8, 8, 8, 0.06) | |
1373 | ||
1374 | if osix == true then | |
1375 | osix = false | |
1376 | so("rbxassetid://156821036",PlayerGui,2,1) | |
1377 | end | |
1378 | ||
1379 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) | |
1380 | for i = 0,5,0.1 do | |
1381 | swait() | |
1382 | RootPart.Velocity = Vector3.new(0,3.5,0) | |
1383 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1384 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.1*i, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.21) | |
1385 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21) | |
1386 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.09*i, 0) * angles(math.rad(20-6*i), math.rad(0), math.rad(90+13*i)), 0.21) | |
1387 | LW.C0 = clerp(LW.C0, CFrame.new(-1.0-0.12*i, 0.5, -0.4+0.05*i) * angles(math.rad(20+13*i), math.rad(0), math.rad(20-13*i)), 0.21) | |
1388 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(-22-4*i)), 0.21) | |
1389 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(22+4*i)), 0.21) | |
1390 | end | |
1391 | attack = false | |
1392 | end | |
1393 | end | |
1394 | ||
1395 | ||
1396 | mouse.KeyDown:connect(function(key) | |
1397 | if key == 'q' and attack == false and evadecooldown == false then | |
1398 | Ldash() | |
1399 | end | |
1400 | end) | |
1401 | ||
1402 | ||
1403 | ||
1404 | mouse.KeyDown:connect(function(key) | |
1405 | if key == 'e' and attack == false and evadecooldown == false then | |
1406 | Rdash() | |
1407 | end | |
1408 | end) | |
1409 | ||
1410 | mouse.KeyDown:connect(function(key) | |
1411 | if key == 'c' and attack == false and evadecooldown == false and hitfloor ~= nil then | |
1412 | sliding = true | |
1413 | Slide() | |
1414 | end | |
1415 | end) | |
1416 | ||
1417 | mouse.KeyDown:connect(function(key) | |
1418 | if key == 'c' and attack == false and hitfloor == nil then | |
1419 | stomp() | |
1420 | end | |
1421 | end) | |
1422 | ||
1423 | ||
1424 | local walljump = false | |
1425 | ||
1426 | ||
1427 | function walljumpp() | |
1428 | local ray = Ray.new( | |
1429 | Torso.CFrame.p, RootPart.CFrame.lookVector *5 | |
1430 | ) | |
1431 | local hit, position, normal = workspace:FindPartOnRay(ray, character) | |
1432 | ||
1433 | if hit then | |
1434 | if hit.Parent.Parent ~= Character and hit.Parent ~= Character then | |
1435 | local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit | |
1436 | GravPoint = 0 | |
1437 | freefall = 0 | |
1438 | walljump = true | |
1439 | Humanoid.AutoRotate = false | |
1440 | local velo = Instance.new("BodyVelocity",Torso) | |
1441 | velo.MaxForce = Vector3.new(400000,400000,400000) | |
1442 | --game.Debris:AddItem(velo,0.1) | |
1443 | attack = true | |
1444 | while hitfloor == nil and walljump == true and ray and hit do | |
1445 | swait() | |
1446 | freefall = 0 | |
1447 | GravPoint = GravPoint - 0.36 | |
1448 | ray = Ray.new( | |
1449 | RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5 | |
1450 | ) | |
1451 | hit, position, normal = workspace:FindPartOnRay(ray, character) | |
1452 | velo.Velocity = vt(0,GravPoint,0) | |
1453 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.9) * CFrame.Angles(math.rad(5), math.rad(90), math.rad(8)), 0.2) | |
1454 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(7),math.rad(0),math.rad(86)),.2) | |
1455 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)),.2) | |
1456 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),.2) | |
1457 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(14), math.rad(-12)), 0.2) | |
1458 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(23)), 0.2) | |
1459 | end | |
1460 | if walljump == false then | |
1461 | k = math.random(1,3) | |
1462 | if k == 1 then | |
1463 | so("http://www.roblox.com/asset/?id=800121776", Head, 2.5, 1) | |
1464 | else if k == 2 then | |
1465 | so("http://www.roblox.com/asset/?id=804889329", Head, 2.5, 1) | |
1466 | else if k == 3 then | |
1467 | so("http://www.roblox.com/asset/?id=804907617", Head, 2.5, 1) | |
1468 | end | |
1469 | end | |
1470 | end | |
1471 | ||
1472 | velo:Destroy() | |
1473 | attack = false | |
1474 | coroutine.resume(coroutine.create(function() | |
1475 | for i = 0,1,0.1 do | |
1476 | swait() | |
1477 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1478 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6) | |
1479 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1) | |
1480 | RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1) | |
1481 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1) | |
1482 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1483 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1484 | end | |
1485 | end)) | |
1486 | ||
1487 | Humanoid.AutoRotate = true | |
1488 | RootPart.Velocity = RootPart.CFrame.lookVector * -137 + Vector3.new(0,136,0) | |
1489 | wait(0.07) | |
1490 | RootPart.CFrame = CFrame.new(RootPart.CFrame.p,-RootPart.CFrame.lookVector) | |
1491 | end | |
1492 | if walljump == true then | |
1493 | attack = false | |
1494 | walljump = false | |
1495 | Humanoid.AutoRotate = true | |
1496 | velo:Destroy() | |
1497 | end | |
1498 | end | |
1499 | end | |
1500 | end | |
1501 | ||
1502 | ||
1503 | local homed = nil | |
1504 | function home() | |
1505 | if walljump ~= true then | |
1506 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 80)) do | |
1507 | if v:FindFirstChild('Head') then | |
1508 | Grabbed = true | |
1509 | homed = v | |
1510 | end | |
1511 | end | |
1512 | ||
1513 | if homed ~= nil and homed:FindFirstChildOfClass("Humanoid").Health > 1 and walljump == false then | |
1514 | so("http://www.roblox.com/asset/?id=162460823", Head, 1, .8) | |
1515 | local SBall = Instance.new("Part",Character) | |
1516 | SBall.Name = "Homing Ball" | |
1517 | SBall.CanCollide = false | |
1518 | SBall.Anchored = false | |
1519 | SBall.Transparency = 0.64 | |
1520 | SBall.CFrame = CFrame.new(RootPart.CFrame.p) | |
1521 | SBall.BrickColor = BrickColor.new("Toothpaste") | |
1522 | SBall.Size = Vector3.new(1,1,1) | |
1523 | SBall.Material = "Neon" | |
1524 | SBallweld = Instance.new("Weld") | |
1525 | SBallweld.Parent = SBall | |
1526 | SBallweld.Part0 = RootPart | |
1527 | SBallweld.Part1 = SBall | |
1528 | SBallweld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
1529 | SBallweld.Part0 = RootPart | |
1530 | local SBallmesh = Instance.new("SpecialMesh",SBall) | |
1531 | SBallmesh.MeshType = "Sphere" | |
1532 | SBallmesh.Scale = Vector3.new(6,6,6) | |
1533 | trail = Instance.new("Trail", Character) | |
1534 | a2 = Instance.new("Attachment", Torso) a2.Position = Vector3.new(0,2,0) | |
1535 | a3 = Instance.new("Attachment", Torso)a3.Position = Vector3.new(0,-2.5,0) | |
1536 | trail.Texture = "rbxassetid://0" | |
1537 | trail.Attachment0 = a2 | |
1538 | trail.Attachment1 = a3 | |
1539 | trail.Lifetime = 0.353 | |
1540 | trail.MinLength = 0.03 | |
1541 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,1)}) | |
1542 | trail.Color = ColorSequence.new(Color3.new(0,1,1), Color3.new(0, 0,0)) | |
1543 | trail.LightEmission = 4.8 | |
1544 | trail.TextureLength = 0.034 | |
1545 | trail.Enabled = true | |
1546 | attack = true | |
1547 | local position = Instance.new("BodyPosition",Torso) | |
1548 | position.P = 68350 | |
1549 | position.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1550 | ||
1551 | while homed ~= nil and (homed.Torso.Position-RootPart.Position).magnitude > 8 do | |
1552 | swait() | |
1553 | SBall.CFrame = CFrame.new(RootPart.CFrame.p) | |
1554 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+420*math.abs(sine/3.2)), math.rad(0), math.rad(0)), 0.6) | |
1555 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1) | |
1556 | RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1) | |
1557 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1) | |
1558 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1559 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1560 | position.Position = homed.Torso.Position + Vector3.new(0,2,0) | |
1561 | end | |
1562 | local bodvol=Instance.new("BodyVelocity") | |
1563 | bodvol.velocity= RootPart.CFrame.lookVector*240 + Vector3.new(0,30,0) | |
1564 | bodvol.P= 35200 | |
1565 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
1566 | bodvol.Parent=homed.Head | |
1567 | game:GetService("Debris"):AddItem(bodvol, 0.2) | |
1568 | homed:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10,30)) | |
1569 | ||
1570 | position:Destroy() | |
1571 | trail.Enabled = false | |
1572 | SBall:Destroy() | |
1573 | RootPart.Velocity = Vector3.new(0,93.5,0) | |
1574 | coroutine.resume(coroutine.create(function() | |
1575 | for i = 0,5,0.26 do | |
1576 | swait() | |
1577 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1578 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.1*i, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.21) | |
1579 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21) | |
1580 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.09*i, 0) * angles(math.rad(20-6*i), math.rad(0), math.rad(90+13*i)), 0.21) | |
1581 | LW.C0 = clerp(LW.C0, CFrame.new(-1.0-0.12*i, 0.5, -0.4+0.05*i) * angles(math.rad(20+13*i), math.rad(0), math.rad(20-13*i)), 0.21) | |
1582 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(-22-4*i)), 0.21) | |
1583 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(22+4*i)), 0.21) | |
1584 | end | |
1585 | homed = nil | |
1586 | attack = false | |
1587 | end)) | |
1588 | ||
1589 | end | |
1590 | ||
1591 | end | |
1592 | ||
1593 | ||
1594 | end | |
1595 | ||
1596 | ||
1597 | ||
1598 | ||
1599 | ||
1600 | ||
1601 | ||
1602 | ||
1603 | ||
1604 | ||
1605 | ||
1606 | ||
1607 | ||
1608 | ||
1609 | ||
1610 | ||
1611 | ||
1612 | ||
1613 | ||
1614 | ||
1615 | ||
1616 | ||
1617 | ||
1618 | mouse.KeyDown:connect(function(key) | |
1619 | wait(0.16) | |
1620 | if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then | |
1621 | walljumpp() | |
1622 | end | |
1623 | if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then | |
1624 | home() | |
1625 | end | |
1626 | ||
1627 | if string.byte(key) == 32 and hitfloor == nil and attack == true and walljump == true then | |
1628 | walljump = false | |
1629 | end | |
1630 | end) | |
1631 | ||
1632 | ||
1633 | ||
1634 | ||
1635 | mouse.KeyDown:connect(function(key) | |
1636 | if key == 'm' and attack == false then | |
1637 | changemusic() | |
1638 | end | |
1639 | end) | |
1640 | ||
1641 | ||
1642 | ||
1643 | ||
1644 | ||
1645 | ||
1646 | mouse.KeyUp:connect(function(key) | |
1647 | wait(0.05) | |
1648 | if key == 'c' and sliding == true then | |
1649 | sliding = false | |
1650 | end | |
1651 | end) | |
1652 | local look = 0 | |
1653 | ||
1654 | ||
1655 | ||
1656 | while true do | |
1657 | swait() | |
1658 | sine = sine + change | |
1659 | --speed = speed + music.PlaybackLoudness/90 | |
1660 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1661 | local velderp=RootPart.Velocity.y | |
1662 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
1663 | ||
1664 | local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity)) | |
1665 | ||
1666 | local rlegray = Ray.new(RightLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0)) | |
1667 | local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, Character) | |
1668 | ||
1669 | local llegray = Ray.new(LeftLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0)) | |
1670 | local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, Character) | |
1671 | ||
1672 | local waterthing = Ray.new(RootPart.CFrame.p,Vector3.new(0,-1,0)) | |
1673 | local start, position = workspace:FindPartOnRay(waterthing, character) | |
1674 | ||
1675 | if start ~= nil and start.Material == "Water" then | |
1676 | ||
1677 | RootPart.Velocity = RootPart.Velocity + Vector3.new(0,6,0) | |
1678 | ||
1679 | end | |
1680 | ||
1681 | Head.Running.Pitch = 0.76 + Humanoid.WalkSpeed/124 | |
1682 | if torvel<1 and Swing == 2 then | |
1683 | boost = false | |
1684 | elseif torvel>1 and Swing == 2 then | |
1685 | boost = true | |
1686 | freefall = 0 | |
1687 | end | |
1688 | if hitfloor ~= nil and freefall < 150 then | |
1689 | freefall = 0 | |
1690 | end | |
1691 | if freefall > 150 and hitfloor ~= nil then | |
1692 | land() | |
1693 | freefall = 0 | |
1694 | end | |
1695 | ||
1696 | ||
1697 | ||
1698 | ||
1699 | ||
1700 | ||
1701 | ||
1702 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
1703 | Anim="Jump" | |
1704 | ||
1705 | ||
1706 | ||
1707 | ||
1708 | ||
1709 | if attack==false then | |
1710 | change = 1 | |
1711 | look = 0 | |
1712 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1713 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(4), math.rad(0), math.rad(0)), 0.07) | |
1714 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),0.07) | |
1715 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.07) | |
1716 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.07) | |
1717 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.6) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1) | |
1718 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1) | |
1719 | end | |
1720 | ||
1721 | elseif RootPart.Velocity.y < -1 and freefall <150 and hitfloor==nil then | |
1722 | Anim="Fall" | |
1723 | change = 1 | |
1724 | freefall = freefall +0.77 | |
1725 | ||
1726 | ||
1727 | if attack==false then | |
1728 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1729 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(7+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07) | |
1730 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07) | |
1731 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07) | |
1732 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07) | |
1733 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(18+7*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1) | |
1734 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.37+0.17*math.cos(sine/1.3), -0.2) * CFrame.Angles(math.rad(32+7*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1) | |
1735 | end | |
1736 | ||
1737 | ||
1738 | ||
1739 | elseif RootPart.Velocity.y < -1 and freefall > 150 and hitfloor==nil then | |
1740 | Anim="FreeFall" | |
1741 | change = 1 | |
1742 | ||
1743 | ||
1744 | if attack==false then | |
1745 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1746 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(-90+3*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07) | |
1747 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(14+12*math.cos(sine/1.3)), math.rad(0), math.rad(110)), 0.07) | |
1748 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(14+12*math.cos(sine/1.3)), math.rad(0), math.rad(-110)), 0.07) | |
1749 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07) | |
1750 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3),0.2) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(3), math.rad(-46)), 0.1) | |
1751 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.17*math.cos(sine/1.3), 0.2) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(0), math.rad(46)), 0.1) | |
1752 | end | |
1753 | ||
1754 | elseif torvel<1 and hitfloor~=nil then | |
1755 | Anim="Idle" | |
1756 | change = 1 | |
1757 | if attack==false and equip == false then | |
1758 | ||
1759 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1760 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.04*math.cos(sine/40), -0) * CFrame.Angles(math.rad(0-0.81*math.cos(sine/40)), math.rad(-40), math.rad(0)), 0.1) | |
1761 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0+2.6*math.sin(sine/40)),math.rad(0),math.rad(40)),0.1) | |
1762 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.55+0.04*math.sin(sine/40), 0-0.04*math.cos(sine/40)) * angles(math.rad(-2+1.3*math.cos(sine/40)), math.rad(0+4*math.sin(sine/40)), math.rad(6.3+2.2*math.cos(sine/40))),0.1) | |
1763 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.55+0.04*math.sin(sine/40), 0-0.04*math.cos(sine/40)) * angles(math.rad(2+1.3*math.cos(sine/40)), math.rad(0-4*math.sin(sine/40)), math.rad(-6.3-2.2*math.cos(sine/40))),0.1) | |
1764 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, llegendPoint.Y-LeftLeg.Position.Y+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0+0.81*math.cos(sine/40)), math.rad(18+0.81*math.cos(sine/40)), math.rad(-2-0.81*math.cos(sine/40))),0.1) | |
1765 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.57, rlegendPoint.Y-RightLeg.Position.Y+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0+0.81*math.cos(sine/40)), math.rad(-2+0.81*math.cos(sine/40)), math.rad(3-0.81*math.cos(sine/40))),0.1) | |
1766 | end | |
1767 | ||
1768 | ||
1769 | ||
1770 | elseif torvel>1.5 and torvel<70 and hitfloor~=nil then | |
1771 | Anim="Walk" | |
1772 | change = 0.84+ Character.Humanoid.WalkSpeed/132 | |
1773 | look = 0 | |
1774 | if attack==false and equip == false then | |
1775 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02) | |
1776 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/2), -.8) * angles(math.rad(-26), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1) | |
1777 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+20*math.sin(sine/2)),math.rad(0),math.rad(0+5*math.sin(sine/4)) + RootPart.RotVelocity.Y / 13),.1) | |
1778 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.1) * angles(math.rad(-60-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(15+2*math.sin(sine/4))- RootPart.RotVelocity.Y / 34),.15) | |
1779 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.1)*angles(math.rad(-60-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-15+2*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34),.15) | |
1780 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.28*math.cos(sine/4), 0-0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0+104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3) | |
1781 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.28*math.cos(sine/4),0+0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0-104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3) | |
1782 | end | |
1783 | ||
1784 | ||
1785 | elseif torvel>=70 and torvel<200 and hitfloor~=nil then | |
1786 | Anim="Run" | |
1787 | change = 0.84+ Character.Humanoid.WalkSpeed/142 | |
1788 | if attack==false and equip == false then | |
1789 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02) | |
1790 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/1.5), -.8) * angles(math.rad(-37), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1) | |
1791 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+25*math.sin(sine/1.5)),math.rad(0),math.rad(0+5*math.sin(sine/3)) + RootPart.RotVelocity.Y / 13),.1) | |
1792 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.3) * angles(math.rad(-72-8*math.sin(sine/1.5))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(1+0*math.cos(sine/3))- RootPart.RotVelocity.Y / 34),.25) | |
1793 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-72-8*math.sin(sine/1.5))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-1+0*math.cos(sine/3))+ RootPart.RotVelocity.Y / -34),.25) | |
1794 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.32*math.cos(sine/3), 0-0.42*math.cos(sine/3)) * CFrame.Angles(math.rad(0+134*math.sin(sine/3)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.44) | |
1795 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.32*math.cos(sine/3),0+0.42*math.cos(sine/3)) * CFrame.Angles(math.rad(0-134*math.sin(sine/3)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.44) | |
1796 | end | |
1797 | ||
1798 | --[[ | |
1799 | if attack==false then | |
1800 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/5.5)/2, 0 *math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/5.5)/1.2, math.rad(0), 0), .8) | |
1801 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/5.5)/2,0 *-math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/5.5)/1.2, math.rad(0), 0), .8) | |
1802 | end | |
1803 | ]] | |
1804 | if attack==true and noleg == false then | |
1805 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0.+0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0-74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3) | |
1806 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5),0.-0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0+74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3) | |
1807 | end | |
1808 | ||
1809 | ||
1810 | ||
1811 | elseif torvel>=200 and hitfloor~=nil then | |
1812 | Anim="MachRun" | |
1813 | change = 0.84+ Character.Humanoid.WalkSpeed/182 | |
1814 | if attack==false and equip == false then | |
1815 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02) | |
1816 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/1), -3.8) * angles(math.rad(-44), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .2) | |
1817 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+25*math.sin(sine/1)),math.rad(0),math.rad(0+5*math.sin(sine/2)) + RootPart.RotVelocity.Y / 13),.2) | |
1818 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(-78-12*math.sin(sine/1))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(-24+0*math.cos(sine/2))- RootPart.RotVelocity.Y / 34),.35) | |
1819 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.5)*angles(math.rad(-78-12*math.sin(sine/1))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(24+0*math.cos(sine/2))+ RootPart.RotVelocity.Y / -34),.35) | |
1820 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.42*math.cos(sine/2), 0-0.62*math.cos(sine/2)) * CFrame.Angles(math.rad(0+134*math.sin(sine/2)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.52) | |
1821 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.42*math.cos(sine/2),0+0.62*math.cos(sine/2)) * CFrame.Angles(math.rad(0-134*math.sin(sine/2)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.52) | |
1822 | end | |
1823 | ||
1824 | ||
1825 | ||
1826 | end | |
1827 | ||
1828 | ||
1829 | ||
1830 | ||
1831 | ||
1832 | ||
1833 | ||
1834 | ||
1835 | ||
1836 | if 0 < #Effects then | |
1837 | for e = 1, #Effects do | |
1838 | if Effects[e] ~= nil then | |
1839 | local Thing = Effects[e] | |
1840 | if Thing ~= nil then | |
1841 | local Part = Thing[1] | |
1842 | local Mode = Thing[2] | |
1843 | local Delay = Thing[3] | |
1844 | local IncX = Thing[4] | |
1845 | local IncY = Thing[5] | |
1846 | local IncZ = Thing[6] | |
1847 | if Thing[1].Transparency <= 1 then | |
1848 | if Thing[2] == "Block1" then | |
1849 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1850 | Mesh = Thing[1]:FindFirstChild("Mesh") | |
1851 | if not Mesh then | |
1852 | Mesh = Instance.new("BlockMesh") | |
1853 | end | |
1854 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1855 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1856 | elseif Thing[2] == "Cylinder" then | |
1857 | Mesh = Thing[1]:FindFirstChild("Mesh") | |
1858 | if not Mesh then | |
1859 | Mesh = Instance.new("BlockMesh") | |
1860 | end | |
1861 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1862 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1863 | elseif Thing[2] == "Blood" then | |
1864 | Mesh = Thing[1]:FindFirstChild("Mesh") | |
1865 | if not Mesh then | |
1866 | Mesh = Instance.new("BlockMesh") | |
1867 | end | |
1868 | Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0) | |
1869 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1870 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1871 | elseif Thing[2] == "Elec" then | |
1872 | Mesh = Thing[1]:FindFirstChild("Mesh") | |
1873 | if not Mesh then | |
1874 | Mesh = Instance.new("BlockMesh") | |
1875 | end | |
1876 | Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9]) | |
1877 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1878 | elseif Thing[2] == "Disappear" then | |
1879 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1880 | end | |
1881 | else | |
1882 | Part.Parent = nil | |
1883 | game:GetService("Debris"):AddItem(Part, 0) | |
1884 | table.remove(Effects, e) | |
1885 | end | |
1886 | end | |
1887 | end | |
1888 | end | |
1889 | end | |
1890 | ||
1891 | end |