SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has convert to FE by who i don't know? | |
2 | ||
3 | ----------------------------------------------------- | |
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,game,owner = owner,game | |
6 | local RealPlayer = Player | |
7 | do | |
8 | print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!") | |
9 | local rp = RealPlayer | |
10 | script.Parent = rp.Character | |
11 | ||
12 | --RemoteEvent for communicating | |
13 | local Event = Instance.new("RemoteEvent") | |
14 | Event.Name = "UserInput_Event" | |
15 | ||
16 | --Fake event to make stuff like Mouse.KeyDown work | |
17 | local function fakeEvent() | |
18 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
19 | t.connect = t.Connect | |
20 | return t | |
21 | end | |
22 | ||
23 | --Creating fake input objects with fake variables | |
24 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
25 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
26 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
27 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
28 | end} | |
29 | --Merged 2 functions into one by checking amount of arguments | |
30 | CAS.UnbindAction = CAS.BindAction | |
31 | ||
32 | --This function will trigger the events that have been :Connect()'ed | |
33 | local function te(self,ev,...) | |
34 | local t = m[ev] | |
35 | if t and t._fakeEvent then | |
36 | for _,f in pairs(t.Functions) do | |
37 | f(...) | |
38 | end | |
39 | end | |
40 | end | |
41 | m.TrigEvent = te | |
42 | UIS.TrigEvent = te | |
43 | ||
44 | Event.OnServerEvent:Connect(function(plr,io) | |
45 | if plr~=rp then return end | |
46 | m.Target = io.Target | |
47 | m.Hit = io.Hit | |
48 | if not io.isMouse then | |
49 | local b = io.UserInputState == Enum.UserInputState.Begin | |
50 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
51 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
52 | end | |
53 | for _,t in pairs(CAS.Actions) do | |
54 | for _,k in pairs(t.Keys) do | |
55 | if k==io.KeyCode then | |
56 | t.Function(t.Name,io.UserInputState,io) | |
57 | end | |
58 | end | |
59 | end | |
60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
62 | end | |
63 | end) | |
64 | Event.Parent = NLS([==[ | |
65 | local Player = game:GetService("Players").LocalPlayer | |
66 | local Event = script:WaitForChild("UserInput_Event") | |
67 | ||
68 | local Mouse = Player:GetMouse() | |
69 | local UIS = game:GetService("UserInputService") | |
70 | local input = function(io,a) | |
71 | if a then return end | |
72 | --Since InputObject is a client-side instance, we create and pass table instead | |
73 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
74 | end | |
75 | UIS.InputBegan:Connect(input) | |
76 | UIS.InputEnded:Connect(input) | |
77 | ||
78 | local h,t | |
79 | --Give the server mouse data 30 times every second, but only if the values changed | |
80 | --If player is not moving their mouse, client won't fire events | |
81 | while wait(1/30) do | |
82 | if h~=Mouse.Hit or t~=Mouse.Target then | |
83 | h,t=Mouse.Hit,Mouse.Target | |
84 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
85 | end | |
86 | end]==],Player.Character) | |
87 | ||
88 | ----Sandboxed game object that allows the usage of client-side methods and services | |
89 | --Real game object | |
90 | local _rg = game | |
91 | ||
92 | --Metatable for fake service | |
93 | local fsmt = { | |
94 | __index = function(self,k) | |
95 | local s = rawget(self,"_RealService") | |
96 | if s then return s[k] end | |
97 | end, | |
98 | __newindex = function(self,k,v) | |
99 | local s = rawget(self,"_RealService") | |
100 | if s then s[k]=v end | |
101 | end, | |
102 | __call = function(self,...) | |
103 | local s = rawget(self,"_RealService") | |
104 | if s then return s(...) end | |
105 | end | |
106 | } | |
107 | local function FakeService(t,RealService) | |
108 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
109 | return setmetatable(t,fsmt) | |
110 | end | |
111 | ||
112 | --Fake game object | |
113 | local g = { | |
114 | GetService = function(self,s) | |
115 | return self[s] | |
116 | end, | |
117 | Players = FakeService({ | |
118 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
119 | },"Players"), | |
120 | UserInputService = FakeService(UIS,"UserInputService"), | |
121 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
122 | } | |
123 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
124 | g.service = g.GetService | |
125 | ||
126 | g.RunService = FakeService({ | |
127 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
128 | BindToRenderStep = function(self,name,_,fun) | |
129 | ||
130 | end, | |
131 | UnbindFromRenderStep = function(self,name) | |
132 | self._btrs[name]:Disconnect() | |
133 | end, | |
134 | },"RunService") | |
135 | ||
136 | setmetatable(g,{ | |
137 | __index=function(self,s) | |
138 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
139 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
140 | end, | |
141 | __newindex = fsmt.__newindex, | |
142 | __call = fsmt.__call | |
143 | }) | |
144 | --Changing owner to fake player object to support owner:GetMouse() | |
145 | game,owner = g,g.Players.LocalPlayer | |
146 | end | |
147 | ------------- | |
148 | --Big Daddy-- | |
149 | ---------------------------------------------------------------- | |
150 | --By CKbackup (Sugarie Saffron) -- | |
151 | --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw-- | |
152 | --Discord: Sugarie Saffron#4705 -- | |
153 | ---------------------------------------------------------------- | |
154 | ||
155 | wait(.1) | |
156 | local Player = game:service'Players'.LocalPlayer | |
157 | local chara = Player.Character | |
158 | local Mouse = Player:GetMouse() | |
159 | local Humanoid = chara:FindFirstChildOfClass("Humanoid") | |
160 | local LeftArm = chara["Left Arm"] | |
161 | local RightArm = chara["Right Arm"] | |
162 | local LeftLeg = chara["Left Leg"] | |
163 | local RightLeg = chara["Right Leg"] | |
164 | local Head = chara.Head | |
165 | local Torso = chara.Torso | |
166 | local RootPart = chara.HumanoidRootPart | |
167 | local RootJoint = RootPart.RootJoint | |
168 | local attack = false | |
169 | local Anim = 'Idle' | |
170 | local attacktype = 1 | |
171 | local delays = false | |
172 | local play = true | |
173 | local targetted = nil | |
174 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
175 | local velocity = RootPart.Velocity.y | |
176 | local sine = 0 | |
177 | local change = 1 | |
178 | local doe = 0 | |
179 | local Create = LoadLibrary("RbxUtility").Create | |
180 | Humanoid.WalkSpeed = 16 | |
181 | debby = game:GetService("Debris") | |
182 | ||
183 | Humanoid.MaxHealth = 800 | |
184 | Humanoid.Health = 800 | |
185 | ||
186 | Humanoid.Animator.Parent = nil | |
187 | chara.Animate.Parent = nil | |
188 | ||
189 | ||
190 | local newMotor = function(part0, part1, c0, c1) | |
191 | local w = Create('Motor'){ | |
192 | Parent = part0, | |
193 | Part0 = part0, | |
194 | Part1 = part1, | |
195 | C0 = c0, | |
196 | C1 = c1, | |
197 | } | |
198 | return w | |
199 | end | |
200 | ||
201 | function clerp(a, b, t) | |
202 | return a:lerp(b, t) | |
203 | end | |
204 | ||
205 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
206 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
207 | ||
208 | LeftArm.Size = LeftArm.Size * 1.3 | |
209 | RightArm.Size = RightArm.Size * 1.3 | |
210 | LeftLeg.Size = LeftLeg.Size * 1.3 | |
211 | RightLeg.Size = RightLeg.Size * 1.3 | |
212 | Torso.Size = Torso.Size * 1.3 | |
213 | Head.Size = Head.Size * 1.3 | |
214 | RootPart.Size = RootPart.Size * 1.3 | |
215 | ||
216 | local RW = newMotor(Torso, RightArm, CFrame.new(1.95, 0, 0), CFrame.new(0, 0, 0)) | |
217 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.95, 0, 0), CFrame.new(0, 0, 0)) | |
218 | local Neck = newMotor(Torso, Head, CFrame.new(0,1.95,0), CFrame.new()) | |
219 | local RH = newMotor(Torso, RightLeg, CFrame.new(.65, -2.6, 0), CFrame.new(0, 0, 0)) | |
220 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.65, -2.6, 0), CFrame.new(0, 0, 0)) | |
221 | local RootJoint = newMotor(RootPart, Torso, CFrame.new(0,-1.3,0), CFrame.new(0,0,0)) | |
222 | ||
223 | local rarmc1 = RW.C1 | |
224 | local larmc1 = LW.C1 | |
225 | local rlegc1 = RH.C1 | |
226 | local llegc1 = LH.C1 | |
227 | ||
228 | local resetc1 = false | |
229 | ||
230 | function PlayAnimationFromTable(table, speed, bool) | |
231 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
232 | Neck.C0 = clerp(Neck.C0, table[2], speed) | |
233 | RW.C0 = clerp(RW.C0, table[3], speed) | |
234 | LW.C0 = clerp(LW.C0, table[4], speed) | |
235 | RH.C0 = clerp(RH.C0, table[5], speed) | |
236 | LH.C0 = clerp(LH.C0, table[6], speed) | |
237 | if bool == true then | |
238 | if resetc1 == false then | |
239 | resetc1 = true | |
240 | RootJoint.C1 = RootJoint.C1 | |
241 | Neck.C1 = Neck.C1 | |
242 | RW.C1 = rarmc1 | |
243 | LW.C1 = larmc1 | |
244 | RH.C1 = rlegc1 | |
245 | LH.C1 = llegc1 | |
246 | end | |
247 | end | |
248 | end | |
249 | ||
250 | function so(id,par,pit,vol) | |
251 | local sou = Instance.new("Sound", par or workspace) | |
252 | if par == chara then | |
253 | sou.Parent = chara.Torso | |
254 | end | |
255 | sou.Volume = vol | |
256 | sou.Pitch = pit or 1 | |
257 | sou.SoundId = "rbxassetid://" .. id | |
258 | sou.PlayOnRemove = true | |
259 | sou:Destroy() | |
260 | end | |
261 | ||
262 | --This is just for builds-- | |
263 | New = function(Object, Parent, Name, Data) | |
264 | local Object = Instance.new(Object) | |
265 | for Index, Value in pairs(Data or {}) do | |
266 | Object[Index] = Value | |
267 | end | |
268 | Object.Parent = Parent | |
269 | Object.Name = Name | |
270 | return Object | |
271 | end | |
272 | ||
273 | local mus = Instance.new("Sound",Head) | |
274 | mus.Name = "mus" | |
275 | mus.SoundId = "rbxassetid://318340174" | |
276 | mus.Looped = true | |
277 | mus.Volume = 1 | |
278 | mus:Play() | |
279 | ||
280 | for i,v in pairs(chara:children'') do | |
281 | if v:IsA("CharacterMesh") or v:IsA("Clothing") or v:IsA("Accoutrement") or v:IsA("BodyColors") then v:Destroy() end | |
282 | end | |
283 | ||
284 | local sh = Instance.new("Shirt",chara) | |
285 | local pn = Instance.new("Pants",chara) | |
286 | sh.ShirtTemplate = "rbxassetid://17799754" | |
287 | pn.PantsTemplate = "rbxassetid://21172424" | |
288 | if chara:FindFirstChild("FaysG") then chara:FindFirstChild("FaysG"):Destroy() end | |
289 | ||
290 | skincol = {"Bright yellow","Cool yellow","Pastel yellow","Pastel brown","Br. yellowish orange","White","Bright violet","Medium green","Medium stone grey","Dark stone grey"} | |
291 | ||
292 | FHead = New("Part",chara,"FHead",{BrickColor = BrickColor.new(skincol[math.random(1,#skincol)]),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.5999999, 1.29999995, 1.29999995),CFrame = CFrame.new(18.8000259, 5.85002184, -11.199934, -1, 0, 0, 0, 0.999997139, -9.36714151e-10, 0, -9.36711486e-10, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
293 | Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),}) | |
294 | Decal = New("Decal",FHead,"Decal",{Texture = "http://www.roblox.com/asset/?id=46078492",}) | |
295 | Weld = New("ManualWeld",FHead,"Weld",{Part0 = FHead,Part1 = Head,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.999999046, -9.36713263e-10, 0, -9.36714151e-10, -1),C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.999999046, -9.36713263e-10, 0, -9.36714151e-10, -1),}) | |
296 | ||
297 | Head:ClearAllChildren() | |
298 | Instance.new("BlockMesh",Head).Scale = Vector3.new(0,0,0) | |
299 | ||
300 | local hedcol = FHead.BrickColor | |
301 | local bcols = Instance.new("BodyColors",chara) | |
302 | bcols.Name = "NeoCols" | |
303 | bcols.HeadColor = hedcol | |
304 | bcols.LeftArmColor = hedcol | |
305 | bcols.RightArmColor = hedcol | |
306 | bcols.TorsoColor = hedcol | |
307 | bcols.LeftLegColor = hedcol | |
308 | bcols.RightLegColor = hedcol | |
309 | ||
310 | function CreateTrailObj(parent,color1,color2,ofsx,ofsz) | |
311 | local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)}) | |
312 | local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)}) | |
313 | local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001}) | |
314 | return TEff | |
315 | end | |
316 | ||
317 | LLTr = CreateTrailObj(LeftLeg,"White","White",0,0) | |
318 | RLTr = CreateTrailObj(RightLeg,"White","White",0,0) | |
319 | LATr = CreateTrailObj(LeftArm,"White","White",0,0) | |
320 | RATr = CreateTrailObj(RightArm,"White","White",0,0) | |
321 | ||
322 | ||
323 | function rayCast(Position, Direction, Range, Ignore) | |
324 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
325 | end | |
326 | ||
327 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
328 | if SinglePlayer then | |
329 | return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance | |
330 | end | |
331 | local List = {} | |
332 | for i, v in pairs(workspace:GetDescendants()) do | |
333 | if v:IsA("Model") then | |
334 | if v:findFirstChild("Head") then | |
335 | if v ~= chara then | |
336 | if (v.Head.Position - Position).magnitude <= Distance then | |
337 | table.insert(List, v) | |
338 | end | |
339 | end | |
340 | end | |
341 | end | |
342 | end | |
343 | return List | |
344 | end | |
345 | ||
346 | ArtificialHB = Instance.new("BindableEvent", script) | |
347 | ArtificialHB.Name = "Heartbeat" | |
348 | script:waitForChild("Heartbeat") | |
349 | frame = 0.03333333333333 | |
350 | tf = 0 | |
351 | allowframeloss = false | |
352 | tossremainder = false | |
353 | lastframe = tick() | |
354 | script.Heartbeat:Fire() | |
355 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
356 | tf = tf + s | |
357 | if tf >= frame then | |
358 | if allowframeloss then | |
359 | script.Heartbeat:Fire() | |
360 | lastframe = tick() | |
361 | else | |
362 | for i = 1, math.floor(tf / frame) do | |
363 | script.Heartbeat:Fire() | |
364 | end | |
365 | lastframe = tick() | |
366 | end | |
367 | if tossremainder then | |
368 | tf = 0 | |
369 | else | |
370 | tf = tf - frame * math.floor(tf / frame) | |
371 | end | |
372 | end | |
373 | end) | |
374 | function swait(num) | |
375 | if num == 0 or num == nil then | |
376 | ArtificialHB.Event:wait() | |
377 | else | |
378 | for i = 0, num*30 do | |
379 | ArtificialHB.Event:wait() | |
380 | end | |
381 | end | |
382 | end | |
383 | ||
384 | EffectModel = Create("Model"){ | |
385 | Parent = chara, | |
386 | Name = "Effects", | |
387 | } | |
388 | ||
389 | --Effect Functions-- | |
390 | Effects = { | |
391 | ||
392 | Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor) | |
393 | local p = Instance.new("Part",EffectModel) | |
394 | p.BrickColor = BrickColor.new(colour) | |
395 | p.Size = partsize | |
396 | p.Anchored = true | |
397 | p.CanCollide = false | |
398 | p.Material = matr | |
399 | p.CFrame = cf | |
400 | if inverse == true then | |
401 | p.Transparency = 1 | |
402 | else | |
403 | p.Transparency = 0 | |
404 | end | |
405 | local m = Instance.new("BlockMesh",p) | |
406 | m.Scale = meshstart | |
407 | coroutine.wrap(function() | |
408 | for i=0,1,factor do | |
409 | swait() | |
410 | if inverse == true then | |
411 | p.Transparency = 1-i | |
412 | else | |
413 | p.Transparency = i | |
414 | end | |
415 | m.Scale = m.Scale + meshadd | |
416 | if spin == true then | |
417 | p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
418 | end | |
419 | end | |
420 | p:Destroy() | |
421 | end)() | |
422 | return p | |
423 | end, | |
424 | ||
425 | Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) | |
426 | local p = Instance.new("Part",EffectModel) | |
427 | p.BrickColor = BrickColor.new(colour) | |
428 | p.Size = partsize | |
429 | p.Anchored = true | |
430 | p.CanCollide = false | |
431 | p.Material = matr | |
432 | p.CFrame = cf | |
433 | if inverse == true then | |
434 | p.Transparency = 1 | |
435 | else | |
436 | p.Transparency = 0 | |
437 | end | |
438 | local m = Instance.new("SpecialMesh",p) | |
439 | m.MeshType = "Sphere" | |
440 | m.Scale = meshstart | |
441 | coroutine.wrap(function() | |
442 | for i=0,1,factor do | |
443 | swait() | |
444 | if inverse == true then | |
445 | p.Transparency = 1-i | |
446 | else | |
447 | p.Transparency = i | |
448 | end | |
449 | m.Scale = m.Scale + meshadd | |
450 | end | |
451 | p:Destroy() | |
452 | end)() | |
453 | return p | |
454 | end, | |
455 | ||
456 | Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) | |
457 | local p = Instance.new("Part",EffectModel) | |
458 | p.BrickColor = BrickColor.new(colour) | |
459 | p.Size = partsize | |
460 | p.Anchored = true | |
461 | p.CanCollide = false | |
462 | p.Material = matr | |
463 | p.CFrame = cf | |
464 | if inverse == true then | |
465 | p.Transparency = 1 | |
466 | else | |
467 | p.Transparency = 0 | |
468 | end | |
469 | local m = Instance.new("CylinderMesh",p) | |
470 | m.Scale = meshstart | |
471 | coroutine.wrap(function() | |
472 | for i=0,1,factor do | |
473 | swait() | |
474 | if inverse == true then | |
475 | p.Transparency = 1-i | |
476 | else | |
477 | p.Transparency = i | |
478 | end | |
479 | m.Scale = m.Scale + meshadd | |
480 | end | |
481 | p:Destroy() | |
482 | end)() | |
483 | return p | |
484 | end, | |
485 | ||
486 | Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor) | |
487 | local p = Instance.new("Part",EffectModel) | |
488 | p.BrickColor = BrickColor.new(colour) | |
489 | p.Size = Vector3.new() | |
490 | p.Anchored = true | |
491 | p.CanCollide = false | |
492 | p.CFrame = cf | |
493 | if inverse == true then | |
494 | p.Transparency = 1 | |
495 | else | |
496 | p.Transparency = 0 | |
497 | end | |
498 | local m = Instance.new("SpecialMesh",p) | |
499 | m.MeshId = "rbxassetid://20329976" | |
500 | m.Scale = meshstart | |
501 | coroutine.wrap(function() | |
502 | for i=0,1,factor do | |
503 | swait() | |
504 | if inverse == true then | |
505 | p.Transparency = 1-i | |
506 | else | |
507 | p.Transparency = i | |
508 | end | |
509 | m.Scale = m.Scale + meshadd | |
510 | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) | |
511 | end | |
512 | p:Destroy() | |
513 | end)() | |
514 | return p | |
515 | end, | |
516 | ||
517 | Ring = function(cf,meshstart,meshadd,colour,inverse,factor) | |
518 | local p = Instance.new("Part",EffectModel) | |
519 | p.BrickColor = BrickColor.new(colour) | |
520 | p.Size = Vector3.new() | |
521 | p.Anchored = true | |
522 | p.CanCollide = false | |
523 | p.CFrame = cf | |
524 | if inverse == true then | |
525 | p.Transparency = 1 | |
526 | else | |
527 | p.Transparency = 0 | |
528 | end | |
529 | local m = Instance.new("SpecialMesh",p) | |
530 | m.MeshId = "rbxassetid://3270017" | |
531 | m.Scale = meshstart | |
532 | coroutine.wrap(function() | |
533 | for i=0,1,factor do | |
534 | swait() | |
535 | if inverse == true then | |
536 | p.Transparency = 1-i | |
537 | else | |
538 | p.Transparency = i | |
539 | end | |
540 | m.Scale = m.Scale + meshadd | |
541 | end | |
542 | p:Destroy() | |
543 | end)() | |
544 | return p | |
545 | end, | |
546 | ||
547 | Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor) | |
548 | local p = Instance.new("Part",EffectModel) | |
549 | p.BrickColor = BrickColor.new(colour) | |
550 | p.Size = Vector3.new() | |
551 | p.Anchored = true | |
552 | p.CanCollide = false | |
553 | p.CFrame = cf | |
554 | if inverse == true then | |
555 | p.Transparency = 1 | |
556 | else | |
557 | p.Transparency = 0 | |
558 | end | |
559 | local m = Instance.new("SpecialMesh",p) | |
560 | m.MeshId = meshid | |
561 | m.TextureId = textid | |
562 | m.Scale = meshstart | |
563 | coroutine.wrap(function() | |
564 | for i=0,1,factor do | |
565 | swait() | |
566 | if inverse == true then | |
567 | p.Transparency = 1-i | |
568 | else | |
569 | p.Transparency = i | |
570 | end | |
571 | m.Scale = m.Scale + meshadd | |
572 | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) | |
573 | end | |
574 | p:Destroy() | |
575 | end)() | |
576 | return p | |
577 | end, | |
578 | ||
579 | Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor) | |
580 | local p = Instance.new("Part",EffectModel) | |
581 | p.BrickColor = BrickColor.new(colour) | |
582 | p.Size = partsize | |
583 | p.Anchored = true | |
584 | p.CanCollide = false | |
585 | p.Material = matr | |
586 | p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
587 | if inverse == true then | |
588 | p.Transparency = 1 | |
589 | else | |
590 | p.Transparency = 0 | |
591 | end | |
592 | local m = Instance.new("SpecialMesh",p) | |
593 | m.MeshType = "Sphere" | |
594 | m.Scale = meshstart | |
595 | coroutine.wrap(function() | |
596 | for i=0,1,factor do | |
597 | swait() | |
598 | if inverse == true then | |
599 | p.Transparency = 1-i | |
600 | else | |
601 | p.Transparency = i | |
602 | end | |
603 | m.Scale = m.Scale + meshadd | |
604 | p.CFrame = p.CFrame * CFrame.new(0,move,0) | |
605 | end | |
606 | p:Destroy() | |
607 | end)() | |
608 | return p | |
609 | end, | |
610 | ||
611 | } | |
612 | ||
613 | function GetDudesTorso(c) | |
614 | local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso")) | |
615 | if torsy ~= nil then | |
616 | return torsy | |
617 | end | |
618 | end | |
619 | ||
620 | function BodyVel(part,faws) | |
621 | local bodyvel = Instance.new("BodyVelocity",part) | |
622 | local pep = 10000000 | |
623 | bodyvel.P = pep | |
624 | bodyvel.MaxForce = Vector3.new(pep,pep,pep) | |
625 | bodyvel.Velocity = faws | |
626 | debby:AddItem(bodyvel,.2) | |
627 | end | |
628 | ||
629 | function Dmg(dude,dmg,env,faws,trip,efftyp,toim) | |
630 | if dude and dude ~= chara then | |
631 | if dude:FindFirstChild("HITO") then return end | |
632 | local debounce = Instance.new("BoolValue",dude) | |
633 | debounce.Name = "HITO" | |
634 | debby:AddItem(debounce,toim) | |
635 | local hum = dude:FindFirstChildOfClass("Humanoid") | |
636 | local dam = dmg+math.random(-env,env) | |
637 | local teksu = "-"..dam | |
638 | if hum then | |
639 | local finhel = hum.Health - dam | |
640 | if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then | |
641 | Instance.new("BoolValue",dude).Name = "DEATHED" | |
642 | end | |
643 | hum.Health = hum.Health - dam | |
644 | end | |
645 | coroutine.wrap(function() | |
646 | local naeeym2 = Instance.new("BillboardGui",dude) | |
647 | naeeym2.Size = UDim2.new(0,100,0,40) | |
648 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
649 | naeeym2.Adornee = dude:FindFirstChild("Head") | |
650 | naeeym2.Name = "TalkingBillBoard" | |
651 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
652 | tecks2.BackgroundTransparency = 1 | |
653 | tecks2.BorderSizePixel = 0 | |
654 | tecks2.Text = teksu | |
655 | tecks2.Font = "Fantasy" | |
656 | tecks2.TextSize = 24 | |
657 | tecks2.TextStrokeTransparency = 0 | |
658 | tecks2.TextColor3 = Color3.new(1,1,1) | |
659 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
660 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
661 | swait(.2) | |
662 | for i = 0,1,.05 do | |
663 | swait() | |
664 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0) | |
665 | tecks2.TextStrokeTransparency = i | |
666 | tecks2.TextTransparency = i | |
667 | end | |
668 | naeeym2:Destroy() | |
669 | end)() | |
670 | local torsy = GetDudesTorso(dude) | |
671 | if torsy then | |
672 | for i=1,dam/5 do | |
673 | local blp = Instance.new("Part",EffectModel) | |
674 | blp.Size = Vector3.new(.3,.3,.3) | |
675 | blp.BrickColor = BrickColor.new("Crimson") | |
676 | blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
677 | blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0) | |
678 | blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)) | |
679 | --local blm = Instance.new("SpecialMesh",blp) | |
680 | --blm.MeshType = "Sphere" | |
681 | coroutine.wrap(function() | |
682 | swait(.2) | |
683 | blp.Orientation = Vector3.new(0,blp.Orientation.y,0) | |
684 | for i=0,1,.1 do | |
685 | swait() | |
686 | blp.Transparency = i | |
687 | blp.Size = blp.Size + Vector3.new(.05,-.05,.05) | |
688 | end | |
689 | blp:Destroy() | |
690 | end)() | |
691 | end | |
692 | if efftyp == "Blunt" then | |
693 | puncheff(torsy) | |
694 | elseif efftyp == "Sharp" then | |
695 | slasheff(torsy) | |
696 | elseif efftyp == "Shot" then | |
697 | so(144884872,torsy,.9,1) | |
698 | end | |
699 | if faws ~= 0 then | |
700 | BodyVel(torsy,faws) | |
701 | end | |
702 | if trip == true then | |
703 | torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0) | |
704 | torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
705 | end | |
706 | end | |
707 | end | |
708 | end | |
709 | ||
710 | function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim) | |
711 | for _, c in pairs(workspace:GetDescendants()) do | |
712 | local hum = c:FindFirstChildOfClass("Humanoid") | |
713 | if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then | |
714 | local head = GetDudesTorso(c) | |
715 | if head ~= nil then | |
716 | local targ = head.Position - par.Position | |
717 | local mag = targ.magnitude | |
718 | if magni >= mag and c ~= chara then | |
719 | Dmg(c,dmg,env,faws,trip,efftyp,toim) | |
720 | end | |
721 | end | |
722 | end | |
723 | end | |
724 | end | |
725 | ||
726 | function CamShake(par,magni,env,dur) | |
727 | coroutine.wrap(function() | |
728 | for i=0,dur*60 do | |
729 | swait() | |
730 | Humanoid.CameraOffset = Vector3.new(math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10) | |
731 | end | |
732 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
733 | end)() | |
734 | end | |
735 | ||
736 | function puncheff(par) | |
737 | if par.Parent:FindFirstChild("DebounceHit")==nil then | |
738 | so(386946017,par,math.random(6,8)/10,1) | |
739 | local bla = Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(1,1,1),"Neon","White",false,.1) | |
740 | CamShake(bla,30,.5,.5) | |
741 | end | |
742 | end | |
743 | ||
744 | function slasheff(par) | |
745 | if par.Parent:FindFirstChild("DebounceHit")==nil then | |
746 | local cho = math.random(1,3) | |
747 | if cho == 1 then | |
748 | so(444667824,par,1,1) | |
749 | elseif cho == 2 then | |
750 | so(444667844,par,1,1) | |
751 | elseif cho == 3 then | |
752 | so(444667859,par,1,1) | |
753 | end | |
754 | --function(cf,partsize,meshstart,meshadd,matr,colour,factor) | |
755 | Effects.Sphere(par.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)),Vector3.new(.5,.5,.5),Vector3.new(1,0,1),Vector3.new(0,5,0),"Neon","Really red",false,.1) | |
756 | end | |
757 | end | |
758 | ||
759 | function smasheff(pos,projsiz,projnum,grousiz,grono,grospr,projfor) | |
760 | local hit,hitpos = rayCast(pos,Vector3.new(0,-1,0),4,chara) | |
761 | if hit ~= nil then | |
762 | for i = 1, projnum do | |
763 | local p = Instance.new("Part",EffectModel) | |
764 | p.BrickColor = hit.BrickColor | |
765 | p.Material = hit.Material | |
766 | p.Size = Vector3.new(projsiz,projsiz,projsiz) | |
767 | p.CFrame = CFrame.new(hitpos+Vector3.new(math.random(-grospr,grospr),0,math.random(-grospr,grospr))) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) | |
768 | p.CanCollide = false | |
769 | p.Velocity = projfor | |
770 | CreateTrailObj(p,Color3.new(1,1,1),Color3.new(1,1,1),0,0).Enabled = true | |
771 | coroutine.resume(coroutine.create(function() | |
772 | swait(.2) | |
773 | p.CanCollide = true | |
774 | swait(3) | |
775 | for i = 0,1,.01 do | |
776 | swait() | |
777 | p.Transparency = i | |
778 | end | |
779 | p:Destroy() | |
780 | end)) | |
781 | end | |
782 | for i = 1, grono do | |
783 | local size = math.random(4,6) | |
784 | local gtrace = Instance.new("Part",EffectModel) | |
785 | gtrace.BrickColor = hit.BrickColor | |
786 | gtrace.Material = hit.Material | |
787 | gtrace.Size = Vector3.new(grousiz,grousiz,grousiz) | |
788 | gtrace.Anchored = true | |
789 | gtrace.CanCollide = false | |
790 | gtrace.CFrame = CFrame.new(hitpos+Vector3.new(math.random(-grospr,grospr),0,math.random(-grospr,grospr))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
791 | coroutine.wrap(function() | |
792 | swait(3) | |
793 | for i = 0,1,.01 do | |
794 | swait() | |
795 | gtrace.Transparency = i | |
796 | end | |
797 | gtrace:Destroy() | |
798 | end)() | |
799 | end | |
800 | end | |
801 | end | |
802 | ||
803 | function attackone() | |
804 | attack = true | |
805 | Humanoid.WalkSpeed = 10 | |
806 | for i=0,2,.1 do | |
807 | swait() | |
808 | PlayAnimationFromTable({ | |
809 | CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987), | |
810 | CFrame.new(-0.0638873279, 2.01559806, -0.402032375, 0.492402941, -0.214610398, 0.84349376, -0.173647985, 0.925416708, 0.336823881, -0.852869213, -0.312324047, 0.418411195), | |
811 | CFrame.new(1.10928118, 0.356215954, -1.26063514, 0.766042948, 0.642789483, 0, 0, 0, -1, -0.642789423, 0.766042948, 0), | |
812 | CFrame.new(-1.95000088, -9.79751348e-07, 8.32974911e-06, 0.766044021, 0.633022547, -0.111619651, -0.642788172, 0.754405975, -0.133022651, 1.49011612e-07, 0.173648953, 0.984807789), | |
813 | CFrame.new(0.650009155, -2.5999999, -1.52587891e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
814 | CFrame.new(-0.650007129, -2.5999999, 1.07288361e-05, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987), | |
815 | }, .3, false) | |
816 | end | |
817 | RATr.Enabled = true | |
818 | so(487907203,Head,1,3) | |
819 | so(200632136,RightArm,.6,1) | |
820 | Humanoid.WalkSpeed = 0 | |
821 | BodyVel(RootPart,RootPart.CFrame.lookVector*70) | |
822 | for i=0,1,.1 do | |
823 | swait() | |
824 | PlayAnimationFromTable({ | |
825 | CFrame.new(-0.222327977, -0.0760439336, -0.208909988, 0.604021907, -0.342020392, 0.719846964, -0.0554149859, 0.883022249, 0.46604827, -0.795038819, -0.321393698, 0.514411688), | |
826 | CFrame.new(7.34417608e-06, 2.0353117, -0.350306809, 1, -4.47034836e-07, 1.69873238e-06, -2.08616257e-07, 0.939692974, 0.342019647, -1.7285347e-06, -0.342019677, 0.939692795), | |
827 | CFrame.new(1.09530568, 0.103452325, -1.42083132, 0.766043782, 0.64278847, -1.9967556e-06, -0.321392238, 0.383016765, -0.866028547, -0.556672335, 0.663416266, 0.499994785), | |
828 | CFrame.new(-1.9499985, -4.95091081e-06, 1.11758709e-06, 0.766044378, 0.633022308, -0.111619204, -0.642787814, 0.754405975, -0.13302502, -1.57952309e-06, 0.173650473, 0.984807491), | |
829 | CFrame.new(0.75631088, -2.3547678, -0.864154458, 0.997292876, -0.0554149859, -0.0483326912, 0.0263557732, 0.883022249, -0.468590677, 0.0686457753, 0.46604827, 0.882092297), | |
830 | CFrame.new(-0.650001526, -2.59999871, 7.66813719e-06, 1, 0, 0, 0, 1.00000012, -1.49011612e-08, 0, -1.49011612e-08, 1), | |
831 | }, .3, false) | |
832 | MagnitudeDmg(RightArm,2.5,40,3,RootPart.CFrame.lookVector*60,true,"Blunt",.5) | |
833 | end | |
834 | swait(.5) | |
835 | Humanoid.WalkSpeed = 16 | |
836 | RATr.Enabled = false | |
837 | attack = false | |
838 | end | |
839 | ||
840 | function dashattack() | |
841 | attack = true | |
842 | Humanoid.WalkSpeed = 2 | |
843 | so(487911937,Head,1,3) | |
844 | for i=0,2,.1 do | |
845 | swait() | |
846 | PlayAnimationFromTable({ | |
847 | CFrame.new(0, -0.260801345, 0.37769106, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736), | |
848 | CFrame.new(0, 1.88156867, 0.187936544, 1, 0, 0, 0, 0.939692438, -0.342020929, 0, 0.342020959, 0.939692438), | |
849 | CFrame.new(2.54999161, 0.600001335, 9.71555778e-07, 0, -1, 0, 1, 0, 2.98023224e-08, 2.98023224e-08, 0, 1), | |
850 | CFrame.new(-2.54999542, 0.599999964, 3.99351336e-07, 0, 1, 0, -1.00000012, 0, 9.83476639e-07, 9.23871994e-07, 0, 1.00000012), | |
851 | CFrame.new(0.649994314, -2.32730556, 0.445138514, 0.939692736, 0, -0.342019886, 0.116977625, 0.939692736, 0.321393639, 0.321393639, -0.342019886, 0.883022428), | |
852 | CFrame.new(-0.649998546, -2.32730579, 0.445138097, 0.939692736, 0, 0.342019886, -0.116977625, 0.939692736, 0.321393639, -0.321393639, -0.342019886, 0.883022428), | |
853 | }, .4, false) | |
854 | end | |
855 | RATr.Enabled = true | |
856 | Humanoid.WalkSpeed = 0 | |
857 | local bodyvel = Instance.new("BodyVelocity",RootPart) | |
858 | local pep = 10000000 | |
859 | bodyvel.P = pep | |
860 | bodyvel.MaxForce = Vector3.new(pep,0,pep) | |
861 | bodyvel.Velocity = RootPart.CFrame.lookVector*50 | |
862 | local dasu = 0 | |
863 | local par = rayCast(RootPart.Position,RootPart.CFrame.lookVector*1,5,chara) | |
864 | repeat | |
865 | dasu = dasu + 1 | |
866 | bodyvel.Velocity = RootPart.CFrame.lookVector*50 | |
867 | par = rayCast(RootPart.Position,RootPart.CFrame.lookVector*1,5,chara) | |
868 | so(10730819,Torso,1,2) | |
869 | CamShake(Torso,60,.4,.1) | |
870 | smasheff(Torso.Position,math.random(10,20)/10,math.random(2,3),math.random(10,20)/10,math.random(2,3),2,(RootPart.CFrame.lookVector*-math.random(30,50))+Vector3.new(math.random(-5,5),math.random(50,70),math.random(-5,5))) | |
871 | swait() | |
872 | Effects.Wave(RootPart.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(),Vector3.new(1,.2,1),"",10,false,.05) | |
873 | PlayAnimationFromTable({ | |
874 | CFrame.new(-0.11852926, -0.0870857984, -0.16250591, 0.499998987, 0.433013916, -0.75, 0, 0.866024852, 0.500001073, 0.866025984, -0.25000003, 0.433011562), | |
875 | CFrame.new(1.67643725e-06, 1.94997621, -1.7765941e-06, 0.866025209, -8.34465027e-07, 0.500000358, 7.30156898e-07, 1.00000012, 3.57627869e-07, -0.500000417, 6.70552254e-08, 0.866025209), | |
876 | CFrame.new(2.30981135, 0.0232107639, -1.46663569e-05, 0.499999255, -0.866025925, 3.06963921e-06, 0.866025925, 0.499999285, -2.25007534e-06, 4.17232513e-07, 3.78489494e-06, 1), | |
877 | CFrame.new(-0.942220747, 0.533102334, -1.07246113, 0.173649132, -0.63302058, 0.754407704, 0.98480767, 0.11162056, -0.1330221, -1.62422657e-06, 0.76604557, 0.642786443), | |
878 | CFrame.new(0.650001526, -2.59999871, -7.62939544e-06, 1, 0, 2.98023224e-08, 0, 1.00000012, 7.4505806e-09, 2.98023224e-08, 7.4505806e-09, 1.00000012), | |
879 | CFrame.new(-0.957818449, -2.31074858, -0.794715047, 0.939692378, 1.1920929e-07, 0.342020839, 0.116977721, 0.939692855, -0.321393222, -0.321394473, 0.342019558, 0.883022189), | |
880 | }, .4, false) | |
881 | MagnitudeDmg(Torso,6,30,3,RootPart.CFrame.lookVector*60,true,"Blunt",.5) | |
882 | until par ~= nil or dasu >= 100 | |
883 | bodyvel:Destroy() | |
884 | Humanoid.WalkSpeed = 16 | |
885 | RATr.Enabled = false | |
886 | attack = false | |
887 | end | |
888 | ||
889 | function thesurou() | |
890 | attack = true | |
891 | Humanoid.WalkSpeed = 0 | |
892 | local grab = nil | |
893 | local torsy = nil | |
894 | local hum = nil | |
895 | for i, v in pairs(FindNearestTorso(Torso.Position, 6)) do | |
896 | if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then | |
897 | hum = v:FindFirstChildOfClass("Humanoid") | |
898 | torsy = GetDudesTorso(v) | |
899 | grab = v | |
900 | end | |
901 | end | |
902 | so(200632136,RootPart,.8,1) | |
903 | for i = 0,1,.1 do | |
904 | swait() | |
905 | PlayAnimationFromTable({ | |
906 | CFrame.new(0, -0.160800725, -0.377691686, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
907 | CFrame.new(0, 2.01372528, -0.214328468, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789), | |
908 | CFrame.new(1.30359828, 0.346287906, -1.12627494, 0.866025269, 0.500000358, -4.18942193e-07, -0.0868241489, 0.150382817, -0.984807909, -0.492404312, 0.852868497, 0.173647434), | |
909 | CFrame.new(-1.30359876, 0.346286833, -1.12628198, 0.866025269, -0.500000358, 4.18942193e-07, 0.0868241489, 0.150382817, -0.984807909, 0.492404312, 0.852868497, 0.173647434), | |
910 | CFrame.new(0.65000087, -2.4212749, -0.479339659, 0.984807849, 0, -0.173647985, -0.0593910702, 0.939692736, -0.33682391, 0.163175747, 0.342019886, 0.925416768), | |
911 | CFrame.new(-0.649993539, -2.42127419, -0.479341805, 0.984807849, 0, 0.173647985, 0.0593910702, 0.939692736, -0.33682391, -0.163175747, 0.342019886, 0.925416768), | |
912 | }, .3, false) | |
913 | end | |
914 | if grab ~= nil and torsy ~= nil then | |
915 | so(487911937,Head,1,3) | |
916 | so(240429615,torsy,1,1) | |
917 | for i = 0,1,.1 do | |
918 | swait() | |
919 | PlayAnimationFromTable({ | |
920 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
921 | CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648), | |
922 | CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968), | |
923 | CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
924 | CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), | |
925 | CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849), | |
926 | }, .3, false) | |
927 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
928 | hum.PlatformStand = true | |
929 | torsy.Velocity = Vector3.new() | |
930 | end | |
931 | for a=1,3 do | |
932 | for i = 0,1,.1 do | |
933 | swait() | |
934 | PlayAnimationFromTable({ | |
935 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
936 | CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648), | |
937 | CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968), | |
938 | CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
939 | CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), | |
940 | CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849), | |
941 | }, .3, false) | |
942 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
943 | hum.PlatformStand = true | |
944 | torsy.Velocity = Vector3.new() | |
945 | end | |
946 | so(200632136,RootPart,.9,1) | |
947 | for i = 0,1,.2 do | |
948 | swait() | |
949 | PlayAnimationFromTable({ | |
950 | CFrame.new(-0.102054864, -0.932198167, 9.983778e-07, 0, 0.766044974, -0.64278698, 0, 0.64278698, 0.766044974, 1, 0, 0), | |
951 | CFrame.new(0, 1.94997787, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
952 | CFrame.new(1.70003557, 0.647316098, -1.51024413, 0.866025388, 0, 0.500000238, 0.383022666, 0.64278698, -0.663414419, -0.321393639, 0.766044974, 0.556669831), | |
953 | CFrame.new(-1.95000505, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
954 | CFrame.new(0.650000989, -0.993868172, -1.34321105, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698), | |
955 | CFrame.new(-0.650000989, -2.59999466, 7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
956 | }, .4, false) | |
957 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
958 | hum.PlatformStand = true | |
959 | torsy.Velocity = Vector3.new() | |
960 | end | |
961 | puncheff(torsy) | |
962 | smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30))) | |
963 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05) | |
964 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05) | |
965 | for i = 0,1,.1 do | |
966 | swait() | |
967 | PlayAnimationFromTable({ | |
968 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
969 | CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648), | |
970 | CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968), | |
971 | CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
972 | CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), | |
973 | CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849), | |
974 | }, .3, false) | |
975 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
976 | hum.PlatformStand = true | |
977 | torsy.Velocity = Vector3.new() | |
978 | end | |
979 | so(200632136,RootPart,.9,1) | |
980 | for i = 0,1,.2 do | |
981 | swait() | |
982 | PlayAnimationFromTable({ | |
983 | CFrame.new(0.102049023, -0.932193279, 0, 0, -0.766044974, 0.64278698, 0, 0.64278698, 0.766044974, -1, 0, 0), | |
984 | CFrame.new(0, 1.94997406, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
985 | CFrame.new(1.70003128, 0.647328019, -1.51025343, 0.866025388, 0, 0.500000238, 0.383022666, 0.64278698, -0.663414419, -0.321393639, 0.766044974, 0.556669831), | |
986 | CFrame.new(-1.95000458, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
987 | CFrame.new(0.650002003, -0.993867934, -1.34321058, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698), | |
988 | CFrame.new(-0.650001049, -2.60001373, 1.14440918e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
989 | }, .4, false) | |
990 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
991 | hum.PlatformStand = true | |
992 | torsy.Velocity = Vector3.new() | |
993 | end | |
994 | puncheff(torsy) | |
995 | smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30))) | |
996 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05) | |
997 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05) | |
998 | end | |
999 | so(200632136,RootPart,.9,1) | |
1000 | for i = 0,1,.1 do | |
1001 | swait() | |
1002 | PlayAnimationFromTable({ | |
1003 | CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987), | |
1004 | CFrame.new(0.0492400974, 1.93260896, -0.0852866173, 0.492402941, 0.0868238136, 0.866025984, -0.173647985, 0.984807849, 0, -0.852869213, -0.150383666, 0.499998987), | |
1005 | CFrame.new(2.25130796, 1.15621161, -0.521879852, 0.866025984, -0.43301183, 0.249999613, 0, -0.500000238, -0.866025388, 0.499998987, 0.750000477, -0.433013201), | |
1006 | CFrame.new(-1.95000482, 3.33413482e-07, 2.38418579e-07, 0.76604408, 0.633022606, -0.111619651, -0.642788172, 0.754405975, -0.133022651, 1.78813934e-07, 0.173648968, 0.98480773), | |
1007 | CFrame.new(0.650005341, -2.5999999, -7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1008 | CFrame.new(-0.650006175, -2.5999999, 2.44379044e-06, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987), | |
1009 | }, .4, false) | |
1010 | torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
1011 | hum.PlatformStand = true | |
1012 | torsy.Velocity = Vector3.new() | |
1013 | end | |
1014 | local pato = Instance.new("Part",torsy) | |
1015 | pato.CFrame = torsy.CFrame | |
1016 | pato.Size = Vector3.new(4.1,6.1,1.1) | |
1017 | pato.Transparency = 1 | |
1018 | pato.CanCollide = false | |
1019 | pato.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
1020 | local werudo = Instance.new("Weld",pato) | |
1021 | werudo.Part0 = pato | |
1022 | werudo.Part1 = torsy | |
1023 | torsy.Velocity = RootPart.CFrame.lookVector*150+Vector3.new(0,30,0) | |
1024 | torsy.RotVelocity = Vector3.new(10,10,10) | |
1025 | pato.Touched:connect(function(hit) | |
1026 | if hit:IsDescendantOf(chara)==false then | |
1027 | pato:Destroy() | |
1028 | Dmg(grab,70,3,Vector3.new(0,20,0)+RootPart.CFrame.lookVector*50,true,"Blunt",.3) | |
1029 | so(260430079,torsy,1,5) | |
1030 | MagnitudeDmg(torsy,6,40,3,Vector3.new(0,5,0)+RootPart.CFrame.lookVector*20,true,"Blunt",.2) | |
1031 | smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30))) | |
1032 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05) | |
1033 | Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05) | |
1034 | end | |
1035 | end) | |
1036 | so(200632136,RootPart,.8,1) | |
1037 | for i = 0,2,.1 do | |
1038 | swait() | |
1039 | PlayAnimationFromTable({ | |
1040 | CFrame.new(-0.222327977, -0.0760439336, -0.208909988, 0.604021907, -0.342020392, 0.719846964, -0.0554149859, 0.883022249, 0.46604827, -0.795038819, -0.321393698, 0.514411688), | |
1041 | CFrame.new(7.34417608e-06, 2.0353117, -0.350306809, 1, -4.47034836e-07, 1.69873238e-06, -2.08616257e-07, 0.939692974, 0.342019647, -1.7285347e-06, -0.342019677, 0.939692795), | |
1042 | CFrame.new(1.09530568, 0.103452325, -1.42083132, 0.766043782, 0.64278847, -1.9967556e-06, -0.321392238, 0.383016765, -0.866028547, -0.556672335, 0.663416266, 0.499994785), | |
1043 | CFrame.new(-1.9499985, -4.95091081e-06, 1.11758709e-06, 0.766044378, 0.633022308, -0.111619204, -0.642787814, 0.754405975, -0.13302502, -1.57952309e-06, 0.173650473, 0.984807491), | |
1044 | CFrame.new(0.75631088, -2.3547678, -0.864154458, 0.997292876, -0.0554149859, -0.0483326912, 0.0263557732, 0.883022249, -0.468590677, 0.0686457753, 0.46604827, 0.882092297), | |
1045 | CFrame.new(-0.650001526, -2.59999871, 7.66813719e-06, 1, 0, 0, 0, 1.00000012, -1.49011612e-08, 0, -1.49011612e-08, 1), | |
1046 | }, .3, false) | |
1047 | end | |
1048 | end | |
1049 | attack = false | |
1050 | Humanoid.WalkSpeed = 8 | |
1051 | end | |
1052 | ||
1053 | function taunt() | |
1054 | attack = true | |
1055 | Humanoid.WalkSpeed = 0 | |
1056 | mus.Pitch = 0 | |
1057 | local snd = Instance.new("Sound",Head) | |
1058 | snd.Volume = 3 | |
1059 | snd.SoundId = "rbxassetid://146333460" | |
1060 | snd:Play() | |
1061 | so(487907203,Head,1,3) | |
1062 | for i = 0,1,.01 do | |
1063 | swait() | |
1064 | PlayAnimationFromTable({ | |
1065 | CFrame.new(-7.70094994e-06, 0.0393988565, 0.149780393, 0.999998927, -8.29677447e-08, -4.7053436e-07, 0, 0.984807849, -0.173647985, -6.85358827e-06, 0.173648238, 0.984809279), | |
1066 | CFrame.new(6.96081361e-06, 1.94950724, -0.513472855, 1, -6.94597475e-07, 3.9392653e-06, -6.94597475e-07, 0.939692855, 0.342019767, -3.93926348e-06, -0.342019796, 0.939692736), | |
1067 | CFrame.new(1.69018638, 1.65000451, 0.300107032, 0.866022527, 0.500005007, 5.95726306e-06, 0.500005066, -0.866022527, -1.13099813e-05, -4.91738319e-07, 1.27702951e-05, -1.00000012), | |
1068 | CFrame.new(-1.69020617, 1.6499958, 0.299897015, 0.866027176, -0.49999702, 6.79078403e-06, -0.499997079, -0.866027117, 1.20401382e-05, -1.34110451e-07, -1.38133764e-05, -1.00000012), | |
1069 | CFrame.new(0.650000513, -2.62530255, 0.310812205, 0.939692974, 0, -0.342019439, 0.0593909882, 0.984807849, 0.163175792, 0.336823434, -0.173647985, 0.925417006), | |
1070 | CFrame.new(-0.649998724, -2.62530136, 0.310818315, 0.939692497, 0, 0.34202072, -0.0593912043, 0.984807849, 0.163175717, -0.336824685, -0.173647985, 0.925416589), | |
1071 | }, .1, false) | |
1072 | end | |
1073 | so(487907316,Head,1,3) | |
1074 | for i = 0,1,.01 do | |
1075 | swait() | |
1076 | PlayAnimationFromTable({ | |
1077 | CFrame.new(1.55392627e-05, -0.118780732, -0.583496988, 0.999998569, 2.40357622e-07, -4.16312105e-07, 0, 0.866025388, 0.500000238, -9.29446469e-06, -0.500001192, 0.866027057), | |
1078 | CFrame.new(1.61478602e-05, 1.9034369, 0.0406528115, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057), | |
1079 | CFrame.new(1.35360622, -0.201802224, -0.616510034, 0.866021276, 0.500007153, -5.6077406e-06, -0.433019817, 0.74999243, -0.500005424, -0.250002086, 0.433017761, 0.866022408), | |
1080 | CFrame.new(-1.35358262, -0.201804206, -0.616507173, 0.866028905, -0.49999395, -4.74162516e-06, 0.433007032, 0.750007033, -0.499994606, 0.249997824, 0.433007747, 0.866028666), | |
1081 | CFrame.new(0.649987519, -2.44053602, -0.735289276, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057), | |
1082 | CFrame.new(-0.650013626, -2.44054365, -0.735276401, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057), | |
1083 | }, .1, false) | |
1084 | end | |
1085 | so(487907203,Head,.9,3) | |
1086 | for i = 0,1,.01 do | |
1087 | swait() | |
1088 | PlayAnimationFromTable({ | |
1089 | CFrame.new(0, -0.599999666, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1090 | CFrame.new(3.60608101e-06, 1.94996309, -3.51667404e-06, 0.469848812, 0.342020154, 0.813796282, -0.171001956, 0.939692676, -0.296202868, -0.866025746, 9.79501692e-06, 0.499999583), | |
1091 | CFrame.new(1.61960268, 1.77223492, -2.74498088e-05, 0.866025388, 0.500000238, 1.34671045e-05, 0.500000238, -0.866025388, -9.50000867e-06, 6.91284913e-06, 1.49608022e-05, -1), | |
1092 | CFrame.new(-2.50045633, 0.909400702, 7.89161845e-07, -1.0784097e-06, 0.984807849, -0.173647985, 0, -0.173647985, -0.984807849, -1, -1.06202424e-06, 1.8726405e-07), | |
1093 | CFrame.new(1.36961031, -2.04641271, 4.32031811e-06, 0.866025388, -0.500000238, -7.40492396e-06, 0.500000238, 0.866025388, 1.30000126e-05, -8.71550583e-08, -1.49608022e-05, 1), | |
1094 | CFrame.new(-0.649993896, -1.99999642, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1095 | }, .1, false) | |
1096 | end | |
1097 | so(487907316,Head,.9,3) | |
1098 | for i = 0,1,.01 do | |
1099 | swait() | |
1100 | PlayAnimationFromTable({ | |
1101 | CFrame.new(0, -0.699999571, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1102 | CFrame.new(4.35113907e-06, 1.9499656, -2.47359276e-06, 0.499997169, -0.296198249, -0.813799441, 0, 0.939692855, -0.342019647, 0.866027057, 0.171008855, 0.469843775), | |
1103 | CFrame.new(2.56986904, 0.91509676, 1.86699071e-05, -3.99215896e-05, -0.984806359, 0.173656061, 0, -0.173656061, -0.984806359, 1, -3.93150331e-05, 6.93262609e-06), | |
1104 | CFrame.new(-1.76206148, 1.33159709, 1.23434656e-05, 0.939692736, -0.342019886, 5.52932834e-05, -0.342019916, -0.939692736, -9.23453536e-06, 5.51170961e-05, -1.02337781e-05, -1), | |
1105 | CFrame.new(0.650001526, -1.89999652, -0.599994659, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1106 | CFrame.new(-1.4295907, -1.91907001, -1.105927e-05, 0.866025388, 0.500000238, -1.4333129e-05, -0.500000238, 0.866025388, -9.00000668e-06, 7.91284765e-06, 1.49608022e-05, 1), | |
1107 | }, .1, false) | |
1108 | end | |
1109 | snd:Destroy() | |
1110 | mus.Pitch = 1 | |
1111 | Humanoid.WalkSpeed = 16 | |
1112 | attack = false | |
1113 | end | |
1114 | ||
1115 | Mouse.Button1Down:connect(function() | |
1116 | if attack == false then | |
1117 | attackone() | |
1118 | end | |
1119 | end) | |
1120 | ||
1121 | local sprintt = 0 | |
1122 | ||
1123 | Mouse.KeyDown:connect(function(k) | |
1124 | k = k:lower() | |
1125 | if k=='m' then | |
1126 | if mus.IsPlaying == true then | |
1127 | mus:Stop() | |
1128 | elseif mus.IsPaused == true then | |
1129 | mus:Play() | |
1130 | end | |
1131 | end | |
1132 | if attack == false then | |
1133 | if k == 'z' then | |
1134 | thesurou() | |
1135 | elseif k == 'x' then | |
1136 | dashattack() | |
1137 | elseif k == 'g' then | |
1138 | taunt() | |
1139 | end | |
1140 | end | |
1141 | end) | |
1142 | ||
1143 | prevhp = 800 | |
1144 | Humanoid.HealthChanged:connect(function(hp) | |
1145 | if hp < prevhp then | |
1146 | local cho = math.random(1,5) | |
1147 | local s = Instance.new("Sound",Head) | |
1148 | if cho == 1 then | |
1149 | so(480392869,Head,1,3) | |
1150 | elseif cho == 2 then | |
1151 | so(480392949,Head,1,3) | |
1152 | elseif cho == 3 then | |
1153 | so(480394663,Head,1,3) | |
1154 | elseif cho == 4 then | |
1155 | so(480394802,Head,1,3) | |
1156 | elseif cho == 5 then | |
1157 | so(480394542,Head,1,3) | |
1158 | end | |
1159 | end | |
1160 | prevhp = hp | |
1161 | end) | |
1162 | ||
1163 | local soundIds = {142539074, 487912030, 487911937} | |
1164 | coroutine.wrap(function() | |
1165 | while wait(math.random(25,30)/10) do | |
1166 | if Humanoid.Health > 1 and attack == false then | |
1167 | so(soundIds[math.random(1,3)],Head,1,3) | |
1168 | end | |
1169 | end | |
1170 | end)() | |
1171 | ||
1172 | Humanoid.Died:connect(function() | |
1173 | mus:Stop() | |
1174 | so(487907155,Head,1,3) | |
1175 | swait(5) | |
1176 | for i = 1,10 do | |
1177 | swait() | |
1178 | for i,v in pairs(chara:GetDescendants()) do | |
1179 | if v:IsA("BasePart") then | |
1180 | v.Transparency = v.Transparency + .1 | |
1181 | end | |
1182 | end | |
1183 | end | |
1184 | chara:Destroy() | |
1185 | end) | |
1186 | ||
1187 | coroutine.wrap(function() | |
1188 | while 1 do | |
1189 | swait() | |
1190 | if doe <= 360 then | |
1191 | doe = doe + 2 | |
1192 | else | |
1193 | doe = 0 | |
1194 | end | |
1195 | end | |
1196 | end)() | |
1197 | ||
1198 | while true do | |
1199 | swait() | |
1200 | while true do | |
1201 | swait() | |
1202 | if Head:FindFirstChild("mus")==nil then | |
1203 | mus = Instance.new("Sound",Head) | |
1204 | mus.Name = "mus" | |
1205 | mus.SoundId = "rbxassetid://318340174" | |
1206 | mus.Looped = true | |
1207 | mus.Volume = 1 | |
1208 | mus:Play() | |
1209 | end | |
1210 | local ss = Humanoid:GetState() | |
1211 | if ss == (Enum.HumanoidStateType.FallingDown or ss == Enum.HumanoidStateType.PlatformStanding) then | |
1212 | Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp) | |
1213 | end | |
1214 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1215 | velocity = RootPart.Velocity.y | |
1216 | sine = sine + change | |
1217 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 5.3, chara) | |
1218 | if RootPart.Velocity.y > 1 and hit == nil then | |
1219 | Anim = "Jump" | |
1220 | if attack == false then | |
1221 | PlayAnimationFromTable({ | |
1222 | CFrame.new(0, 0.0740167201, -0.180228189, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
1223 | CFrame.new(0, 2.03109002, -0.115844816, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789), | |
1224 | CFrame.new(1.47152913, -0.278083742, 0.397592455, 0.939692855, 0.342019439, -3.31528156e-08, -0.321393043, 0.883022368, 0.34202078, 0.116977774, -0.321394503, 0.939692497), | |
1225 | CFrame.new(-1.47150564, -0.27808097, 0.397592992, 0.939692855, -0.342019439, 3.31528156e-08, 0.321393043, 0.883022368, 0.34202078, -0.116977774, -0.321394503, 0.939692497), | |
1226 | CFrame.new(0.650001526, -1.19999599, -0.600000799, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
1227 | CFrame.new(-0.649993896, -2.59999466, 5.54323037e-07, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
1228 | }, .3, false) | |
1229 | end | |
1230 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1231 | Anim = "Fall" | |
1232 | if attack == false then | |
1233 | PlayAnimationFromTable({ | |
1234 | CFrame.new(0, -0.133714333, 0.15832366, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736), | |
1235 | CFrame.new(0, 2.05995607, -0.632082939, 1, 0, 0, 0, 0.766044796, 0.642787218, 0, -0.642787218, 0.766044855), | |
1236 | CFrame.new(2.25642705, 0.257112086, -3.82667531e-06, 0.766044319, -0.642787933, -2.9919768e-08, 0.642787993, 0.766044319, 3.87430191e-07, -1.93715096e-07, -2.83122063e-07, 1), | |
1237 | CFrame.new(-2.25643301, 0.257116973, 9.41694736e-07, 0.766044319, 0.642787933, 2.9919768e-08, -0.642787993, 0.766044319, 3.87430191e-07, 1.93715096e-07, -2.83122063e-07, 1), | |
1238 | CFrame.new(0.649993896, -1.3999939, -0.600004256, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1), | |
1239 | CFrame.new(-0.650001526, -2.59999371, -3.89218303e-06, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1), | |
1240 | }, .3, false) | |
1241 | end | |
1242 | elseif Torsovelocity < 1 and hit ~= nil then | |
1243 | Anim = "Idle" | |
1244 | if attack == false then | |
1245 | change = 1 | |
1246 | PlayAnimationFromTable({ | |
1247 | CFrame.new(0, 0, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0,.05 * math.cos((sine)/5), 0), | |
1248 | CFrame.new(0.0984803587, 1.91524398, -0.170572892, 0.866025388, 0.0868240371, -0.492404163, 0, 0.984807849, 0.173647985, 0.500000238, -0.150383562, 0.852868617), | |
1249 | CFrame.new(1.98214447, 0.0342020541, -0.0883011818, 0.939692676, -0.116977856, -0.321394205, 0, 0.939692736, -0.342019945, 0.342020601, 0.321393609, 0.883022249), | |
1250 | CFrame.new(-1.51237798, -0.128823012, -0.775815547, 0.766044199, -0.642788053, -3.87430191e-07, 0.413175076, 0.492402881, -0.76604563, 0.492405087, 0.586824656, 0.642786384), | |
1251 | CFrame.new(0.649999857, -2.5999999, -8.64267349e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388) * CFrame.new(0,-.05 * math.cos((sine)/5), 0), | |
1252 | CFrame.new(-0.64999789, -2.5999999, -9.53674544e-07, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0,-.05 * math.cos((sine)/5), 0), | |
1253 | }, .3, false) | |
1254 | end | |
1255 | elseif Torsovelocity > 2 and hit ~= nil then | |
1256 | Anim = "Walk" | |
1257 | if attack == false then | |
1258 | Humanoid.WalkSpeed = 16 | |
1259 | Humanoid.JumpPower = 80 | |
1260 | PlayAnimationFromTable({ | |
1261 | CFrame.new(0, 0.0098747462, -0.187130988, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.Angles(0, math.rad(0 + 10 * math.cos((sine) / 5)), 0), | |
1262 | CFrame.new(0, 2.01372552, -0.214327857, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849), | |
1263 | CFrame.new(1.94397354, -0.115067676, -0.230779886, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), | |
1264 | CFrame.new(-1.95000458, -0.0637510419, -0.214326635, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), | |
1265 | CFrame.new(0.649997711, -2.60271978, -0.268911421, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0, 0+ .65 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0), | |
1266 | CFrame.new(-0.650001526, -2.60271978, -0.268911421, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0, 0- .65 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0), | |
1267 | }, .3, false) | |
1268 | end | |
1269 | end | |
1270 | end | |
1271 | end |