SHOW:
|
|
- or go back to the newest paste.
1 | --]] | |
2 | --https://github.com/Mokiros/roblox-FE-compatibility | |
3 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
4 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
5 | local RealPlayer = Player | |
6 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
7 | ||
8 | --required first c/require(652676518) | |
9 | ||
10 | local Player = game:service("Players").LocalPlayer | |
11 | repeat wait() until Player.Character ~= nil | |
12 | ||
13 | -- todo: | |
14 | ||
15 | local plrs = game:GetService('Players') | |
16 | local plr = plrs.LocalPlayer | |
17 | local char = plr.Character | |
18 | local bp = plr.Backpack | |
19 | local hum = char.Humanoid | |
20 | local T = char.Torso | |
21 | local Character = char | |
22 | local Humanoid = hum | |
23 | local torso = char.Torso | |
24 | local Char = Player.Character | |
25 | local char = Char | |
26 | local mouse = Player:GetMouse() | |
27 | local Backpack = Player.Backpack | |
28 | local PlayerGui = Player.PlayerGui | |
29 | local Camera = workspace.CurrentCamera | |
30 | local Humanoid = Char:WaitForChild("Humanoid") | |
31 | local Torso = Char:WaitForChild("Torso") | |
32 | local Head = Char:WaitForChild("Head") | |
33 | local ra = Char:WaitForChild("Right Arm") | |
34 | local la = Char:WaitForChild("Left Arm") | |
35 | local rl = Char:WaitForChild("Right Leg") | |
36 | local ll = Char:WaitForChild("Left Leg") | |
37 | local rs = Torso:WaitForChild("Right Shoulder") | |
38 | local ls = Torso:WaitForChild("Left Shoulder") | |
39 | local rh = Torso:WaitForChild("Right Hip") | |
40 | local lh = Torso:WaitForChild("Left Hip") | |
41 | local neck = Torso:WaitForChild("Neck") | |
42 | local rootpart = Char:WaitForChild("HumanoidRootPart") | |
43 | local rj = rootpart:WaitForChild("RootJoint") | |
44 | local anim = Char:WaitForChild("Animate") | |
45 | local RunService = game:GetService("RunService") | |
46 | local UIA = game:GetService("UserInputService") | |
47 | local CF = CFrame.new | |
48 | local CA = CFrame.Angles | |
49 | local FEA = CFrame.fromEulerAnglesXYZ | |
50 | local FAA = CFrame.fromAxisAngle | |
51 | local V3 = Vector3.new | |
52 | local CN = Color3.new | |
53 | local Ice = Instance.new | |
54 | local BC = BrickColor.new | |
55 | local UD2 = UDim2.new | |
56 | local C3 = Color3.new | |
57 | local MR = math.rad | |
58 | local MP = math.pi | |
59 | local MD = math.deg | |
60 | local MH = math.huge | |
61 | local MS = math.sin | |
62 | local MC = math.cos | |
63 | local MT = math.tan | |
64 | local MAS = math.asin | |
65 | local MAC = math.acos | |
66 | local MAT = math.atan | |
67 | local components = CF().components | |
68 | local State = "Calm" | |
69 | local Slash = false | |
70 | local Sheathed = false | |
71 | local combocounter = 0 | |
72 | ||
73 | humanoid = char:findFirstChild("Humanoid") | |
74 | hum = humanoid | |
75 | torso = char:findFirstChild("Torso") | |
76 | head = char.Head | |
77 | ra = char:findFirstChild("Right Arm") | |
78 | ra.CanCollide = true | |
79 | la = char:findFirstChild("Left Arm") | |
80 | la.CanCollide = true | |
81 | rl = char:findFirstChild("Right Leg") | |
82 | rl.CanCollide = true | |
83 | ll = char:findFirstChild("Left Leg") | |
84 | ll.CanCollide = true | |
85 | rs = torso:findFirstChild("Right Shoulder") | |
86 | ls = torso:findFirstChild("Left Shoulder") | |
87 | rh = torso:findFirstChild("Right Hip") | |
88 | lh = torso:findFirstChild("Left Hip") | |
89 | neck = torso:findFirstChild("Neck") | |
90 | rootpart = char:findFirstChild("HumanoidRootPart") | |
91 | rj = rootpart:findFirstChild("RootJoint") | |
92 | anim = char:findFirstChild("Animate") | |
93 | camera = workspace.CurrentCamera | |
94 | plr.CameraMaxZoomDistance = math.huge | |
95 | pcall(function()anim:Destroy()end) | |
96 | pcall(function()char["Health"].Disabled = true end) | |
97 | pcall(function()humanoid.Animator:Destroy()end) | |
98 | local rjo = rootpart.RootJoint:Clone() | |
99 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
100 | local wld = Instance.new("Weld", wp1) | |
101 | wld.Part0 = wp0 | |
102 | wld.Part1 = wp1 | |
103 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
104 | return wld | |
105 | end | |
106 | for k,v in pairs(char:children'') do | |
107 | if v:isA('BasePart') then | |
108 | v.BrickColor = BrickColor.new('Really black') | |
109 | end | |
110 | end | |
111 | pcall(function() | |
112 | char["Body Colors"].HeadColor = BrickColor.new("Really black") | |
113 | char["Body Colors"].TorsoColor = BrickColor.new("Really black") | |
114 | char["Body Colors"].LeftArmColor = BrickColor.new("Really black") | |
115 | char["Body Colors"].RightArmColor = BrickColor.new("Really black") | |
116 | char["Body Colors"].LeftLegColor = BrickColor.new("Really black") | |
117 | char["Body Colors"].RightLegColor = BrickColor.new("Really black") | |
118 | end) | |
119 | local mult = 1 | |
120 | ||
121 | la.Size = la.Size * mult | |
122 | ra.Size = ra.Size * mult | |
123 | ll.Size = ll.Size * mult | |
124 | rl.Size = rl.Size * mult | |
125 | torso.Size = torso.Size * mult | |
126 | head.Size = head.Size * mult | |
127 | rootpart.Size = rootpart.Size * mult | |
128 | ||
129 | local lm = newWeld(torso, la, -1.7*mult, 0.5*mult, 0) | |
130 | lm.C1 = CFrame.new(0, 0.5*mult, 0) | |
131 | local rm = newWeld(torso, ra, 1.7*mult, 0.5*mult, 0) | |
132 | rm.C1 = CFrame.new(0, 0.5*mult, 0) | |
133 | local neck = newWeld(torso, head, 0, mult, 0) | |
134 | local llegm = newWeld(torso, ll, -0.5*mult, -1*mult, 0) | |
135 | llegm.C1 = CFrame.new(0, mult, 0) | |
136 | local rlegm = newWeld(torso, rl, 0.5*mult, -1*mult, 0) | |
137 | rlegm.C1 = CFrame.new(0, mult, 0) | |
138 | local rj = rjo:Clone() | |
139 | rj.Part0 = rootpart | |
140 | rj.Part1 = torso | |
141 | rj.Parent = rootpart | |
142 | neck.C1 = CFrame.new(0, -(mult/2), 0) | |
143 | neckc0 = neck.C0 | |
144 | rsc0 = rm.C0 | |
145 | lsc0 = lm.C0 | |
146 | llc0 = llegm.C0 | |
147 | rlc0 = rlegm.C0 | |
148 | rootc0 = rj.C0 | |
149 | rootc1 = rj.C1 | |
150 | wait() | |
151 | ||
152 | ||
153 | function Create(Instanc,prop) | |
154 | local p=Instance.new(Instanc) | |
155 | for i,v in pairs(prop) do | |
156 | p[i]=v | |
157 | end | |
158 | return p | |
159 | end | |
160 | ||
161 | function rwait(num) | |
162 | if num==0 or num==nil then | |
163 | game:service'RunService'.Stepped:wait(0) | |
164 | else | |
165 | for i=0,num do | |
166 | game:service'RunService'.Stepped:wait(0) | |
167 | end | |
168 | end | |
169 | return true | |
170 | end | |
171 | ||
172 | ||
173 | local pony = Instance.new('PointLight', Torso) | |
174 | pony.Name = 'LePontyPontz' | |
175 | pony.Brightness = 1 | |
176 | pony.Color = Color3.new(0,255/255, 0) | |
177 | ||
178 | coroutine.wrap(function() | |
179 | game:service'RunService'.Stepped:connect(function() | |
180 | pony.Range = 5+math.abs(math.sin(tick()/2))*6 | |
181 | end) | |
182 | end)() | |
183 | ||
184 | local function setupPart(part) | |
185 | part.Anchored = true | |
186 | part.FormFactor = 'Custom' | |
187 | part.CanCollide = false | |
188 | part.BrickColor = BrickColor.new("Sea green") | |
189 | part.Material = "Neon" | |
190 | part.TopSurface = 'SmoothNoOutlines' | |
191 | part.BottomSurface = 'SmoothNoOutlines' | |
192 | part.FrontSurface = 'SmoothNoOutlines' | |
193 | part.BackSurface = 'SmoothNoOutlines' | |
194 | part.LeftSurface = 'SmoothNoOutlines' | |
195 | part.RightSurface = 'SmoothNoOutlines' | |
196 | end | |
197 | ||
198 | function CFrameFromTopBack(at, top, back) | |
199 | local right = top:Cross(back) | |
200 | return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
201 | end | |
202 | ||
203 | function CreateTriangle(parent, a, b, c) | |
204 | local this = {} | |
205 | local mPart1 = Instance.new('WedgePart') | |
206 | setupPart(mPart1) | |
207 | local mPart2 = Instance.new('WedgePart') | |
208 | setupPart(mPart2) | |
209 | function this:Set(a, b, c) --[[ edg1 A ------|------>B --. '\ | / \ \part1|part2/ | \ cut / / Direction edges point in: edg3 \ / edg2 / (clockwise) \ / |/ \<- / ` \ / C --]] | |
210 | local ab, bc, ca = b-a, c-b, a-c local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude | |
211 | local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm)) | |
212 | local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm)) | |
213 | local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam)) | |
214 | if edg1 < edg2 then | |
215 | if edg1 < edg3 then | |
216 | -- nothing to change | |
217 | else | |
218 | a, b, c = c, a, b | |
219 | ab, bc, ca = ca, ab, bc | |
220 | abm = cam | |
221 | end | |
222 | else | |
223 | if edg2 < edg3 then | |
224 | a, b, c = b, c, a | |
225 | ab, bc, ca = bc, ca, ab | |
226 | abm = bcm | |
227 | else | |
228 | a, b, c = c, a, b | |
229 | ab, bc, ca = ca, ab, bc | |
230 | abm = cam | |
231 | end | |
232 | end | |
233 | ||
234 | local len1 = -ca:Dot(ab)/abm local len2 = abm - len1 local width = (ca + ab.unit*len1).magnitude | |
235 | local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit) | |
236 | ||
237 | mPart1.Parent = parent | |
238 | mPart1.Size = Vector3.new(1,1,1) | |
239 | mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
240 | local Mesh = Instance.new("SpecialMesh",mPart1) | |
241 | Mesh.MeshType = "Wedge" | |
242 | Mesh.Scale = Vector3.new(0.005, width, len1) | |
243 | ||
244 | mPart2.Parent = parent | |
245 | mPart2.Size = Vector3.new(1,1,1) | |
246 | mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
247 | local Mesh = Instance.new("SpecialMesh",mPart2) | |
248 | Mesh.MeshType = "Wedge" | |
249 | Mesh.Scale = Vector3.new(0.005, width, len2) | |
250 | end | |
251 | ||
252 | function this:SetProperty(prop, value) | |
253 | mPart1[prop] = value | |
254 | mPart2[prop] = value | |
255 | end | |
256 | ||
257 | function this:GetProperty(prop) | |
258 | return mPart1[prop] | |
259 | end | |
260 | ||
261 | this:Set(a, b, c) | |
262 | function this:Destroy() | |
263 | mPart1:Destroy() | |
264 | mPart2:Destroy() | |
265 | end | |
266 | return this | |
267 | end | |
268 | ||
269 | local ttt | |
270 | local lastdps = tick() | |
271 | local ohp = hum.Health | |
272 | local berserk = false | |
273 | hum.Changed:connect(function(val) | |
274 | if val == 'Health_XML' then | |
275 | if hum.Health < ohp then | |
276 | lastdps = tick() | |
277 | end | |
278 | ohp = hum.Health | |
279 | if not berserk and hum.Health<(hum.MaxHealth*.15) then | |
280 | ttt = true | |
281 | hum.WalkSpeed = 0 | |
282 | hum.MaxHealth = 1/0 | |
283 | otheranims = true | |
284 | ||
285 | local rs = game:service'RunService'.Stepped | |
286 | ||
287 | GW = function() | |
288 | local wave = Instance.new("Part", Torso) | |
289 | wave.BrickColor = BrickColor.new("Really black") | |
290 | wave.Anchored = true | |
291 | wave.CanCollide = false | |
292 | wave.Locked = true | |
293 | wave.Size = Vector3.new(1, 1, 1) | |
294 | wave.TopSurface = "Smooth" | |
295 | wave.BottomSurface = "Smooth" | |
296 | wave.Material="Neon" | |
297 | wave.Transparency = 0.35 | |
298 | wave.CFrame = Torso.CFrame | |
299 | wm = Instance.new("SpecialMesh", wave) | |
300 | wm.MeshType = "Sphere" | |
301 | wm.Scale = Vector3.new(1,1,1) | |
302 | coroutine.wrap(function() | |
303 | for i = 0, 15, 1 do | |
304 | wave.Size = wave.Size + Vector3.new(1, 1, 1) | |
305 | wave.CFrame = Torso.CFrame | |
306 | wave.Transparency = i/14 | |
307 | wait() | |
308 | end | |
309 | wait() | |
310 | wave:Destroy() | |
311 | end)() | |
312 | end | |
313 | ||
314 | Spawn(function() | |
315 | while ttt do | |
316 | GW() | |
317 | wait(math.random(1,4)) | |
318 | end | |
319 | end) | |
320 | ||
321 | local prtz = {la,Head,Torso} | |
322 | local pes = {} | |
323 | ||
324 | for i,v in pairs(prtz) do | |
325 | coroutine.wrap(function() | |
326 | local dsa = Instance.new('ParticleEmitter', v) | |
327 | local color1 = Color3.new(0.5,1,0.5) | |
328 | local color2 = Color3.new(0,85/255,0) | |
329 | local sequence = ColorSequence.new(color1,color2) | |
330 | dsa.Color = sequence | |
331 | dsa.LightEmission = .8 | |
332 | dsa.Texture = "http://www.roblox.com/asset/?id=242102147" | |
333 | dsa.LockedToPart = true | |
334 | dsa.EmissionDirection = 'Top' | |
335 | dsa.Lifetime = NumberRange.new(1) | |
336 | dsa.VelocitySpread = 10 | |
337 | dsa.Size = NumberSequence.new(1) | |
338 | table.insert(pes, dsa) | |
339 | end)() | |
340 | end | |
341 | ||
342 | ||
343 | Mode = 'Kneeling' | |
344 | berserk = true | |
345 | wait(2) | |
346 | hum.MaxHealth = 10000 | |
347 | for i = 500, (10000*.75),15 do | |
348 | hum.Health = i | |
349 | game:service'RunService'.Stepped:wait() | |
350 | end | |
351 | ttt = false | |
352 | for q,e in pairs(pes) do game.Destroy(e) end | |
353 | hum.WalkSpeed = 8 | |
354 | otheranims = false | |
355 | end | |
356 | elseif val =='PlatformStand' then | |
357 | hum.PlatformStand = false | |
358 | elseif val == "Sit" then | |
359 | hum.Sit = false | |
360 | elseif val == "WalkSpeed" then | |
361 | end | |
362 | end) | |
363 | regening = false | |
364 | lastdps = tick() | |
365 | function regenHealth() | |
366 | if regening then return end | |
367 | if (tick()-lastdps < 25) then return end | |
368 | regening = true | |
369 | local s = wait(1) | |
370 | local health = hum.Health | |
371 | if health > 0 and health < hum.MaxHealth then | |
372 | local newHealthDelta = hum.MaxHealth * .03 | |
373 | health = health + newHealthDelta | |
374 | hum.Health = math.min(health,hum.MaxHealth) | |
375 | end | |
376 | ||
377 | regening = false | |
378 | end | |
379 | ||
380 | local LastTrail = nil | |
381 | local Trails = {} | |
382 | ||
383 | ||
384 | ||
385 | --SlashDamage = Damage(TrailPart) | |
386 | ||
387 | asd = function(parent,string) | |
388 | repeat wait() until parent:FindFirstChild(string) | |
389 | wait() | |
390 | return parent:FindFirstChild(string) | |
391 | end | |
392 | ||
393 | local beamy = asd(game.ReplicatedStorage, 'Beamy'):Clone() | |
394 | ||
395 | local Model = asd(game.ReplicatedStorage,'mdl'):Clone() | |
396 | Model.Parent = Char | |
397 | ||
398 | local shm,swm,shem = Model:WaitForChild'Sheath',Model:WaitForChild'Sword',Model:WaitForChild'Shield' | |
399 | ||
400 | local LAH,RAH,TH = shem:WaitForChild'LeftArmHandle',swm:WaitForChild'RightArmHandle',shm:WaitForChild'TorsoHandle' | |
401 | ||
402 | LAH.Transparency,RAH.Transparency,TH.Transparency = 1,1,1 | |
403 | ||
404 | local law = Create("Weld",{Parent=la,Part0=la,Part1=LAH,C0=CFrame.new(0,0,0)}) | |
405 | local raw = Create("Weld",{Parent=ra,Part0=ra,Part1=RAH,C0=CFrame.new(0,0,0)}) | |
406 | local rawc0 = raw.C0 | |
407 | local lawc0 = law.C0 | |
408 | LAH.Anchored,RAH.Anchored,TH.Anchored = false,false,false | |
409 | local torw = Create("Weld",{Parent=Torso,Part0=Torso,Part1=TH,C0=CFrame.new(0,0,0)}) | |
410 | ||
411 | TrailPart = Create("Part",{Parent=Char,Anchored=false,CanCollide=false,Size=V3(0,5,0),Transparency=1}) | |
412 | TrailPartMesh = Create("Snap",{Parent=TrailPart,Part0=RAH,Part1=TrailPart,C0=CFrame.new(0,-1,-4.2)*CFrame.Angles(MR(90),0,0)}) | |
413 | ||
414 | local get=game.ReplicatedStorage:FindFirstChild'GoldSuit':Clone() | |
415 | get.Parent = Char | |
416 | local torso=get:WaitForChild("Torso") local head=get:WaitForChild("Head") local rightarm=get:WaitForChild("RightArm") | |
417 | local leftarm=get:WaitForChild("LeftArm") local rightleg=get:WaitForChild("RightLeg") local leftleg=get:WaitForChild("LeftLeg") | |
418 | Create("Weld",{Parent=torso.Handle,Part0=Torso,Part1=torso.Handle,C0=CFrame.new(0,0,0)}) | |
419 | Create("Weld",{Parent=head.Handle,Part0=Head,Part1=head.Handle,C0=CFrame.new(0,0,0)}) | |
420 | Create("Weld",{Parent=rightarm.Handle,Part0=ra,Part1=rightarm.Handle,C0=CFrame.new(0,0,0)}) | |
421 | Create("Weld",{Parent=leftarm.Handle,Part0=la,Part1=leftarm.Handle,C0=CFrame.new(0,0,0)}) | |
422 | Create("Weld",{Parent=leftleg.Handle,Part0=ll,Part1=leftleg.Handle,C0=CFrame.new(0,0,0)}) | |
423 | Create("Weld",{Parent=rightleg.Handle,Part0=rl,Part1=rightleg.Handle,C0=CFrame.new(0,0,0)}) | |
424 | function recurse(c) | |
425 | for i,v in pairs(c:children()) do | |
426 | if v:IsA'BasePart' then | |
427 | v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001) | |
428 | end | |
429 | recurse(v) | |
430 | end | |
431 | end | |
432 | recurse(get) | |
433 | recurse(Model) | |
434 | ra.Transparency=1 | |
435 | la.Transparency=1 | |
436 | ll.Transparency=1 | |
437 | rl.Transparency=1 | |
438 | ||
439 | HitDB = {} | |
440 | ||
441 | function Damage(part) | |
442 | smthn = part.Touched:connect(function(hit) | |
443 | Human = hit.Parent:findFirstChild("Humanoid") | |
444 | if Human ~= nil and hit.Parent.Name ~= Player.Name and Slash == true and HitDB[hit.Parent.Humanoid] == nil then | |
445 | coroutine.wrap(function() --threads so we don't have to wait after each hit for every person hit! | |
446 | HitDB[hit.Parent.Humanoid] = true | |
447 | Human.Health = Human.Health-25 | |
448 | local vu = Instance.new("BodyVelocity",hit.Parent.Torso) | |
449 | vu.P = 500 | |
450 | vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000) | |
451 | vu.velocity = Head.CFrame.lookVector*10 | |
452 | game:GetService("Debris"):AddItem(vu,0.267) | |
453 | wait(0.25) | |
454 | HitDB[hit.Parent.Humanoid] = nil | |
455 | end)() | |
456 | end | |
457 | end) | |
458 | return smthn | |
459 | end | |
460 | ||
461 | hum.WalkSpeed = 8 | |
462 | hum.MaxHealth = 10000 | |
463 | hum.Health = 10000 | |
464 | ||
465 | function lerp(weld,beglerp,endlerp,speed) | |
466 | if weld.ClassName =='Weld' or weld.ClassName == 'Motor6D' then | |
467 | weld.C0 = beglerp:lerp(endlerp,speed) | |
468 | else | |
469 | weld.CFrame = beglerp:lerp(endlerp,speed) | |
470 | end | |
471 | return (weld.ClassName =='Weld' or weld.ClassName == 'Motor6D' and weld.C0 or weld.CFrame) | |
472 | end | |
473 | ||
474 | Ragdoll = function(Format, Character, Force) | |
475 | if Force ~= true then | |
476 | if Character:FindFirstChild("Ragdoll") ~= nil and Format == true then return false end | |
477 | if Character:FindFirstChild("Ragdoll") == nil and Format == false then return false end | |
478 | end | |
479 | local Head = nil | |
480 | local Torso = nil | |
481 | local Humanoid = nil | |
482 | local Dead = false | |
483 | for _, Children in pairs(Character:GetChildren()) do | |
484 | if Children.ClassName == "ForceField" then Children:Remove() end | |
485 | if Children.Name == "" then Children:Remove() end | |
486 | if Children.Name == "Head" then Head = Children end | |
487 | if Children.Name == "Torso" then Torso = Children end | |
488 | if Children.ClassName == "Humanoid" then Humanoid = Children end | |
489 | if Children:IsA("Accoutrement") then | |
490 | if Children:FindFirstChild("Handle") ~= nil then | |
491 | if math.random(1, 3) == 1 then | |
492 | coroutine.wrap(function() | |
493 | Children.Parent = Workspace | |
494 | wait() | |
495 | Children.Parent = Character | |
496 | Children.Handle.CanCollide = true | |
497 | end)() | |
498 | else | |
499 | Children.Parent = Workspace | |
500 | Children.Handle.CanCollide = true | |
501 | end | |
502 | else | |
503 | Children:Remove() | |
504 | end | |
505 | end | |
506 | end | |
507 | if Humanoid ~= nil then | |
508 | if Humanoid.Health <= 0 then | |
509 | Dead = true | |
510 | end | |
511 | end | |
512 | if Torso ~= nil then | |
513 | for _, Children2 in pairs(Torso:GetChildren()) do | |
514 | if Children2:IsA("JointInstance") then | |
515 | Children2:Remove() | |
516 | end | |
517 | end | |
518 | end | |
519 | if Head ~= nil and (function() | |
520 | if Dead == true and math.random(1, 2) == 1 then | |
521 | return true | |
522 | else | |
523 | return false | |
524 | end | |
525 | end)() == false then | |
526 | local Neck = Instance.new("Motor6D") | |
527 | Neck.Name = "Neck" | |
528 | Neck.Part0 = Torso | |
529 | Neck.Part1 = Head | |
530 | Neck.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180)) | |
531 | Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180)) | |
532 | Neck.MaxVelocity = 0.1 | |
533 | Neck.Parent = Torso | |
534 | end | |
535 | if Format == true then | |
536 | local Ragdoll = Instance.new("IntValue") | |
537 | Ragdoll.Name = "Ragdoll" | |
538 | Ragdoll.Parent = Character | |
539 | if Torso ~= nil then | |
540 | Torso.Velocity = Torso.Velocity / 1.25 | |
541 | Torso.RotVelocity = (Torso.RotVelocity / 1.25) + Head.CFrame.lookVector*80 | |
542 | if Dead == true then | |
543 | if Humanoid ~= nil then | |
544 | local Humanoid2 = Humanoid:Clone() | |
545 | wait() | |
546 | Humanoid:Remove() | |
547 | Humanoid2.Parent = Character | |
548 | Humanoid = Humanoid2 | |
549 | end | |
550 | end | |
551 | local Limb = Character:FindFirstChild("Right Arm") | |
552 | if Limb ~= nil then | |
553 | Limb.Velocity = Torso.Velocity | |
554 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
555 | local Joint = Instance.new("Glue") | |
556 | Joint.Name = "RightShoulder" | |
557 | Joint.Part0 = Torso | |
558 | Joint.Part1 = Limb | |
559 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
560 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
561 | Joint.Parent = Torso | |
562 | local Weight = Instance.new("Part") | |
563 | Weight.Name = "" | |
564 | Weight.TopSurface = 0 | |
565 | Weight.BottomSurface = 0 | |
566 | Weight.Shape = "Block" | |
567 | Weight.FormFactor = "Custom" | |
568 | Weight.Size = Vector3.new(1, 1, 1) | |
569 | Weight.Transparency = 1 | |
570 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
571 | Weight.Parent = Character | |
572 | local Weld = Instance.new("Weld") | |
573 | Weld.Part0 = Limb | |
574 | Weld.Part1 = Weight | |
575 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
576 | Weld.Parent = Limb | |
577 | end | |
578 | local Limb = Character:FindFirstChild("Left Arm") | |
579 | if Limb then | |
580 | Limb.Velocity = Torso.Velocity | |
581 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
582 | local Joint = Instance.new("Glue") | |
583 | Joint.Name = "LeftShoulder" | |
584 | Joint.Part0 = Torso | |
585 | Joint.Part1 = Limb | |
586 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
587 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
588 | Joint.Parent = Torso | |
589 | local Weight = Instance.new("Part") | |
590 | Weight.Name = "" | |
591 | Weight.TopSurface = 0 | |
592 | Weight.BottomSurface = 0 | |
593 | Weight.Shape = "Block" | |
594 | Weight.FormFactor = "Custom" | |
595 | Weight.Size = Vector3.new(1, 1, 1) | |
596 | Weight.Transparency = 1 | |
597 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
598 | Weight.Parent = Character | |
599 | local Weld = Instance.new("Weld") | |
600 | Weld.Part0 = Limb | |
601 | Weld.Part1 = Weight | |
602 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
603 | Weld.Parent = Limb | |
604 | end | |
605 | local Limb = Character:FindFirstChild("Right Leg") | |
606 | if Limb then | |
607 | Limb.Velocity = Torso.Velocity | |
608 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
609 | local Joint = Instance.new("Glue") | |
610 | Joint.Name = "RightHip" | |
611 | Joint.Part0 = Torso | |
612 | Joint.Part1 = Limb | |
613 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
614 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
615 | Joint.Parent = Torso | |
616 | local Weight = Instance.new("Part") | |
617 | Weight.Name = "" | |
618 | Weight.TopSurface = 0 | |
619 | Weight.BottomSurface = 0 | |
620 | Weight.Shape = "Block" | |
621 | Weight.FormFactor = "Custom" | |
622 | Weight.Size = Vector3.new(1, 1, 1) | |
623 | Weight.Transparency = 1 | |
624 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
625 | Weight.Parent = Character | |
626 | local Weld = Instance.new("Weld") | |
627 | Weld.Part0 = Limb | |
628 | Weld.Part1 = Weight | |
629 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
630 | Weld.Parent = Limb | |
631 | end | |
632 | local Limb = Character:FindFirstChild("Left Leg") | |
633 | if Limb then | |
634 | Limb.Velocity = Torso.Velocity | |
635 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
636 | local Joint = Instance.new("Glue") | |
637 | Joint.Name = "LeftHip" | |
638 | Joint.Part0 = Torso | |
639 | Joint.Part1 = Limb | |
640 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
641 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
642 | Joint.Parent = Torso | |
643 | local Weight = Instance.new("Part") | |
644 | Weight.Name = "" | |
645 | Weight.TopSurface = 0 | |
646 | Weight.BottomSurface = 0 | |
647 | Weight.Shape = "Block" | |
648 | Weight.FormFactor = "Custom" | |
649 | Weight.Size = Vector3.new(1, 1, 1) | |
650 | Weight.Transparency = 1 | |
651 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
652 | Weight.Parent = Character | |
653 | local Weld = Instance.new("Weld") | |
654 | Weld.Part0 = Limb | |
655 | Weld.Part1 = Weight | |
656 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
657 | Weld.Parent = Limb | |
658 | end | |
659 | local Weight = Instance.new("Part") | |
660 | Weight.Name = "" | |
661 | Weight.TopSurface = 0 | |
662 | Weight.BottomSurface = 0 | |
663 | Weight.Shape = "Block" | |
664 | Weight.FormFactor = "Custom" | |
665 | Weight.Size = Vector3.new(1.75, 1.5, 1.1) | |
666 | Weight.Transparency = 1 | |
667 | Weight.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
668 | Weight.Parent = Character | |
669 | local Weld = Instance.new("Weld") | |
670 | Weld.Part0 = Torso | |
671 | Weld.Part1 = Weight | |
672 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
673 | Weld.Parent = Torso | |
674 | end | |
675 | elseif Format == false then | |
676 | if Character:FindFirstChild("Ragdoll") ~= nil then Character.Ragdoll:Remove() end | |
677 | if Torso ~= nil then | |
678 | local Limb = Character:FindFirstChild("Right Arm") | |
679 | if Limb ~= nil then | |
680 | local Joint = Instance.new("Motor6D") | |
681 | Joint.Name = "Right Shoulder" | |
682 | Joint.Part0 = Torso | |
683 | Joint.Part1 = Limb | |
684 | Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
685 | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
686 | Joint.MaxVelocity = 0.15 | |
687 | Joint.Parent = Torso | |
688 | end | |
689 | local Limb = Character:FindFirstChild("Left Arm") | |
690 | if Limb ~= nil then | |
691 | local Joint = Instance.new("Motor6D") | |
692 | Joint.Name = "Left Shoulder" | |
693 | Joint.Part0 = Torso | |
694 | Joint.Part1 = Limb | |
695 | Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
696 | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
697 | Joint.MaxVelocity = 0.15 | |
698 | Joint.Parent = Torso | |
699 | end | |
700 | local Limb = Character:FindFirstChild("Right Leg") | |
701 | if Limb ~= nil then | |
702 | local Joint = Instance.new("Motor6D") | |
703 | Joint.Name = "Right Hip" | |
704 | Joint.Part0 = Torso | |
705 | Joint.Part1 = Limb | |
706 | Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
707 | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
708 | Joint.MaxVelocity = 0.1 | |
709 | Joint.Parent = Torso | |
710 | end | |
711 | local Limb = Character:FindFirstChild("Left Leg") | |
712 | if Limb ~= nil then | |
713 | local Joint = Instance.new("Motor6D") | |
714 | Joint.Name = "Left Hip" | |
715 | Joint.Part0 = Torso | |
716 | Joint.Part1 = Limb | |
717 | Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
718 | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
719 | Joint.MaxVelocity = 0.1 | |
720 | Joint.Parent = Torso | |
721 | end | |
722 | local Animate = Character:FindFirstChild("Animate") | |
723 | if Animate ~= nil then | |
724 | local Animate2 = Animate:Clone() | |
725 | Animate:Remove() | |
726 | Animate2.Parent = Character | |
727 | end | |
728 | end | |
729 | else | |
730 | return false | |
731 | end | |
732 | return true, Format | |
733 | end | |
734 | local Grabbed = false | |
735 | Ctrl = false | |
736 | local lastclick = tick() | |
737 | mouse.Button1Down:connect(function() | |
738 | if tick()-lastclick > .4 then combocounter = 0 end | |
739 | if otheranims then return end | |
740 | if Grabbed then return end | |
741 | if Sheathed then | |
742 | otheranims = true | |
743 | Mode = 'Sheath' | |
744 | wait(.7) | |
745 | ||
746 | raw.Part0 = ra | |
747 | law.Part0 = la | |
748 | raw.C0 = rawc0 | |
749 | law.C0 = lawc0 | |
750 | Sheathed = false | |
751 | ||
752 | otheranims = false | |
753 | ||
754 | return | |
755 | ||
756 | end | |
757 | ||
758 | ||
759 | ||
760 | Slash = true | |
761 | local p0 = rootpart.CFrame*CF(0,0,-7) | |
762 | local p1 = rootpart.CFrame*CF(0,0,-15) | |
763 | if combocounter == 0 and not otheranims then | |
764 | otheranims = true | |
765 | Mode = 'Knee' | |
766 | local asdf = Damage(ll) | |
767 | rootpart.CFrame = rootpart.CFrame:lerp(p0,.1) | |
768 | wait(.3) | |
769 | asdf:disconnect() | |
770 | otheranims = false | |
771 | combocounter = 1 | |
772 | elseif combocounter == 1 and not otheranims then | |
773 | otheranims = true | |
774 | Mode = 'Slash11' | |
775 | wait(.3) | |
776 | Mode = 'Slash12' | |
777 | rootpart.CFrame = rootpart.CFrame:lerp(p0,.1) | |
778 | wait(.3) | |
779 | Mode = 'Slash21' | |
780 | rootpart.CFrame = rootpart.CFrame:lerp(p0,.1) | |
781 | wait(.5) | |
782 | otheranims = false | |
783 | combocounter = 2 | |
784 | elseif combocounter == 2 and not otheranims then | |
785 | otheranims = true | |
786 | Mode = 'Slash31' | |
787 | wait(.3) | |
788 | Mode = 'Slash32' | |
789 | rootpart.CFrame = rootpart.CFrame:lerp(p0,.1) | |
790 | wait(.5) | |
791 | otheranims = false | |
792 | combocounter =3 | |
793 | elseif combocounter == 3 and not otheranims then | |
794 | otheranims = true | |
795 | sDps = Damage(LAH) | |
796 | Mode = 'Bash11' | |
797 | wait(.3) | |
798 | rootpart.CFrame = rootpart.CFrame:lerp(p1,.6) | |
799 | wait(1) | |
800 | sDps:disconnect() | |
801 | otheranims = false | |
802 | combocounter = 0 | |
803 | end | |
804 | ||
805 | Slash = false | |
806 | lastclick = tick() | |
807 | end) | |
808 | ||
809 | ||
810 | function MediumParticleEmit(Object,Color) | |
811 | coroutine.wrap(function() | |
812 | while Wait(3.1)do | |
813 | if not Object then break end | |
814 | local p = Instance.new("Part",Object.Parent) | |
815 | p.Name = "Trail" | |
816 | p.TopSurface = 0 | |
817 | p.BottomSurface = 0 | |
818 | p.Anchored = true | |
819 | p.Material = 'Neon' | |
820 | p.CanCollide = false | |
821 | p.FormFactor = "Custom" | |
822 | p.Size = Vector3.new(0.01,0.01,0.01) | |
823 | p.BrickColor = type(Color)== 'userdata' and Color or BrickColor.new(Color) | |
824 | p.CFrame = Object.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1)-3,math.random(-1,1)) | |
825 | local m = Instance.new("BlockMesh",p) | |
826 | m.Scale = Vector3.new(2,2,2) | |
827 | coroutine.wrap(function() | |
828 | for i = 1,15 do | |
829 | p.Transparency = i/15 | |
830 | m.Scale = m.Scale + Vector3.new(0.1,0.1,0.1) | |
831 | p.CFrame = CFrame.new(p.Position + Vector3.new(math.random(-5,5)/20,0.4,math.random(-5,5)/20))* CFrame.fromEulerAnglesXYZ(math.random(-10,10)/i,math.random(-10,10)/i,0.5) | |
832 | Wait() | |
833 | end | |
834 | p:Destroy() | |
835 | end)() | |
836 | end | |
837 | end)() | |
838 | end | |
839 | ||
840 | function IsNear(Position,Distance,SinglePlayer,db) | |
841 | if SinglePlayer then | |
842 | return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance | |
843 | end | |
844 | local List = {} | |
845 | for i,v in pairs(workspace:GetChildren())do | |
846 | if v:IsA("Model")then | |
847 | if v:findFirstChild("Torso")then | |
848 | --if (v ~= char and not db) then | |
849 | if(v.Torso.CFrame.p -Position).magnitude < Distance then | |
850 | table.insert(List,v) | |
851 | end | |
852 | --end | |
853 | end | |
854 | end | |
855 | end | |
856 | return List | |
857 | end | |
858 | ||
859 | local beaming = false | |
860 | local Shielding = false | |
861 | mouse.KeyDown:connect(function(k) | |
862 | ||
863 | if otheranims then return end | |
864 | if beaming then return end | |
865 | if Shielding then return end | |
866 | ||
867 | if k == 'q' then | |
868 | ||
869 | if Grabbed then return end | |
870 | ||
871 | otheranims = true | |
872 | ||
873 | if not Sheathed then | |
874 | ||
875 | Mode = 'Sheath' | |
876 | wait(.7) | |
877 | ||
878 | raw.Part0 = Torso | |
879 | law.Part0 = Torso | |
880 | raw.C0 = rawc0 * CFrame.new(1.8,3.3,.65) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
881 | law.C0 = lawc0 * CFrame.new(-.3,.5,.25) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
882 | Sheathed = true | |
883 | ||
884 | else | |
885 | ||
886 | Mode = 'Sheath' | |
887 | wait(.7) | |
888 | ||
889 | raw.Part0 = char:findFirstChild('Right Arm') | |
890 | law.Part0 = char:findFirstChild'Left Arm' | |
891 | raw.C0 = rawc0 | |
892 | law.C0 = lawc0 | |
893 | Sheathed = false | |
894 | ||
895 | end | |
896 | ||
897 | otheranims = false | |
898 | ||
899 | elseif k == 'g' then | |
900 | ||
901 | if Sheathed then | |
902 | otheranims = true | |
903 | Mode = 'Sheath' | |
904 | wait(.7) | |
905 | ||
906 | raw.Part0 = ra | |
907 | law.Part0 = la | |
908 | raw.C0 = rawc0 | |
909 | law.C0 = lawc0 | |
910 | Sheathed = false | |
911 | ||
912 | otheranims = false | |
913 | ||
914 | return | |
915 | ||
916 | end | |
917 | ||
918 | otheranims = true | |
919 | ||
920 | Mode = 'Shielding' | |
921 | ||
922 | Shielding = true | |
923 | ||
924 | ||
925 | local storedHp = hum.Health | |
926 | ||
927 | coroutine.wrap(function() | |
928 | local shieldTime = tick() | |
929 | while Shielding do | |
930 | if tick()-shieldTime > 60 then otheranims = false Shielding = false break end | |
931 | hum.Health = storedHp | |
932 | ||
933 | game:service'RunService'.Stepped:wait() | |
934 | end | |
935 | end)() | |
936 | ||
937 | elseif k:byte() == 50 then | |
938 | ||
939 | Ctrl = true | |
940 | ||
941 | elseif k:byte() == 48 then | |
942 | ||
943 | coroutine.wrap(function() | |
944 | for i = 70,60,-1 do | |
945 | camera.FieldOfView = i | |
946 | wait() | |
947 | end | |
948 | end)() | |
949 | ||
950 | hum.WalkSpeed = 18 | |
951 | ||
952 | elseif k=='r' then | |
953 | ||
954 | otheranims = true | |
955 | ||
956 | Mode = 'Stomp1' | |
957 | ||
958 | wait(.5) | |
959 | ||
960 | Mode = 'Stomp2' | |
961 | ||
962 | local Charging = true | |
963 | ||
964 | pt=Instance.new('Part',Torso) | |
965 | pt.Anchored=true | |
966 | pt.CanCollide=false | |
967 | pt.Locked = true | |
968 | pt.Material = "Neon" | |
969 | pt.FormFactor='Custom' | |
970 | pt.Size=Vector3.new(1,1,1) | |
971 | pt.CFrame=rootpart.CFrame*CFrame.new(0,-1,0) | |
972 | pt.Transparency=.6 | |
973 | pt.BrickColor = BrickColor.new("Bright green") | |
974 | msh=Instance.new('SpecialMesh',pt) | |
975 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
976 | msh.Scale=Vector3.new(10,2,10) | |
977 | pt2=pt:clone() | |
978 | pt2.Parent = Torso | |
979 | pt2.CFrame=rootpart.CFrame*CFrame.new(0,-1,0) | |
980 | pt2.BrickColor = BrickColor.new("Really black") | |
981 | msh2=msh:clone() | |
982 | msh2.Parent=pt2 | |
983 | msh2.Scale=Vector3.new(10,2,10) | |
984 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
985 | bl = Instance.new("Part", char) | |
986 | bl.Locked = true | |
987 | bl.Name = "Shell" | |
988 | bl.BrickColor = BrickColor.new("Really black") | |
989 | bl.Anchored = true | |
990 | bl.Material = "Neon" | |
991 | bl.CanCollide = false | |
992 | bl.Transparency = 0 | |
993 | bl.Reflectance = 0 | |
994 | bl.BottomSurface = 0 | |
995 | bl.TopSurface = 0 | |
996 | bl.Shape = 0 | |
997 | blm = Instance.new("SpecialMesh",bl) | |
998 | blm.MeshType = "Sphere" | |
999 | blm.Scale = Vector3.new(1,1,1) | |
1000 | ||
1001 | coroutine.resume(coroutine.create(function() | |
1002 | for i=1, math.huge, 4 do | |
1003 | if Charging == true then | |
1004 | game:service'RunService'.Stepped:wait() | |
1005 | bl.CFrame = rootpart.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
1006 | blm.Scale = blm.Scale + Vector3.new(0.5, 0.5, 0.5) | |
1007 | bl.Transparency = bl.Transparency + 0.05 | |
1008 | pt.CFrame = rootpart.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
1009 | pt2.CFrame = rootpart.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
1010 | msh.Scale = msh.Scale + Vector3.new(0.7,0,0.7) | |
1011 | msh2.Scale = msh2.Scale + Vector3.new(0.7,0,0.7) | |
1012 | pt.Transparency = pt.Transparency + 0.015 | |
1013 | pt2.Transparency = pt2.Transparency + 0.015 | |
1014 | elseif Charging == false then break | |
1015 | end | |
1016 | end | |
1017 | end)) | |
1018 | local Damaged = {} | |
1019 | coroutine.wrap(function() | |
1020 | for i,v in pairs(IsNear(Torso.Position, 25, nil, true)) do | |
1021 | if v~=Char then | |
1022 | if Damaged[v:FindFirstChild('Humanoid')] and tick()-Damaged[v:FindFirstChild('Humanoid')] < .25 then return end | |
1023 | v:FindFirstChild('Humanoid').Health = v:findFirstChild('Humanoid').Health - 25 | |
1024 | v:findFirstChild'Humanoid'.PlatformStand = true | |
1025 | local vu = Instance.new("BodyVelocity",v:findFirstChild'Torso') | |
1026 | vu.P = 500 | |
1027 | vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000) | |
1028 | vu.velocity = Head.CFrame.lookVector*80 | |
1029 | game:GetService("Debris"):AddItem(vu,0.267) | |
1030 | Damaged[v:FindFirstChild('Humanoid')] = tick() | |
1031 | end | |
1032 | end | |
1033 | end)() | |
1034 | ||
1035 | Spawn(function() | |
1036 | while game:service'RunService'.Stepped:wait() do | |
1037 | if p and p.Transparency >= 1 then pcall(function() p:Destroy() end) break end | |
1038 | if not p then break end | |
1039 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
1040 | p.Transparency = p.Transparency+0.01 | |
1041 | end | |
1042 | end) | |
1043 | ||
1044 | wait(1) | |
1045 | ||
1046 | pt:Destroy() | |
1047 | pt2:Destroy() | |
1048 | bl:Destroy() | |
1049 | ||
1050 | Charging = false | |
1051 | otheranims = false | |
1052 | ||
1053 | elseif k=='e' then | |
1054 | ||
1055 | local function weld5(part0, part1, c0, c1) | |
1056 | weeld=Instance.new("Weld", part0) | |
1057 | weeld.Part0=part0 | |
1058 | weeld.Part1=part1 | |
1059 | weeld.C0=c0 | |
1060 | weeld.C1=c1 | |
1061 | return weeld | |
1062 | end | |
1063 | ||
1064 | if not Sheathed then | |
1065 | ||
1066 | otheranims = true | |
1067 | ||
1068 | Mode = 'Sheath' | |
1069 | wait(.7) | |
1070 | ||
1071 | raw.Part0 = Torso | |
1072 | law.Part0 = Torso | |
1073 | raw.C0 = rawc0 * CFrame.new(1.8,3.3,.65) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
1074 | law.C0 = lawc0 * CFrame.new(-.3,.5,.25) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
1075 | Sheathed = true | |
1076 | ||
1077 | otheranims = false | |
1078 | ||
1079 | return | |
1080 | ||
1081 | end | |
1082 | ||
1083 | if not Grabbed then | |
1084 | ||
1085 | otheranims = true | |
1086 | ||
1087 | Mode = 'Grabbing' | |
1088 | ||
1089 | con1=ra.Touched:connect(function(hit) | |
1090 | if hit:IsDescendantOf(Char) then return end | |
1091 | ht = hit.Parent | |
1092 | hum1=ht:FindFirstChild('Humanoid') | |
1093 | if hum1 ~= nil then | |
1094 | hum1.Changed:connect(function(a) | |
1095 | if not hum1 then return end | |
1096 | if a=='PlatformStand' then | |
1097 | hum1.PlatformStand = true | |
1098 | elseif a=='Jump' then | |
1099 | hum1.Jump = false | |
1100 | elseif a == 'WalkSpeed' then | |
1101 | hum1.WalkSpeed = 0 | |
1102 | elseif a == 'JumpPower' then | |
1103 | hum1.JumpPower = 0 | |
1104 | end | |
1105 | end) | |
1106 | hum1.PlatformStand = true | |
1107 | hum1.Jump = false | |
1108 | hum1.WalkSpeed = 0 | |
1109 | hum1.JumpPower = 0 | |
1110 | gp = ht | |
1111 | local asde=weld5(ra,ht:FindFirstChild("Torso"),CFrame.new(0,-1.3,0),CFrame.new(0,0,0)) | |
1112 | asde.Parent = ra | |
1113 | asde.Name = "asde" | |
1114 | asde.C0=asde.C0*CFrame.Angles(math.rad(-90),math.rad(0),0) | |
1115 | Grabbed = true | |
1116 | end | |
1117 | end) | |
1118 | ||
1119 | wait(.5) | |
1120 | ||
1121 | con1:disconnect() | |
1122 | ||
1123 | otheranims = false | |
1124 | ||
1125 | else | |
1126 | ||
1127 | otheranims = true | |
1128 | pcall(function() | |
1129 | repeat ht:findFirstChild'Humanoid'.Health = ht:findFirstChild'Humanoid'.Health-(ht:findFirstChild'Humanoid'.MaxHealth*0.01) | |
1130 | game:service'RunService'.Stepped:wait() | |
1131 | hum:TakeDamage(-5) | |
1132 | until ht:findFirstChild'Humanoid'.Health <= (ht:findFirstChild'Humanoid'.MaxHealth*.015) | |
1133 | end) | |
1134 | ||
1135 | Mode = 'Slash11' | |
1136 | ||
1137 | wait(.4) | |
1138 | ||
1139 | Mode = 'Throw1' | |
1140 | ||
1141 | pcall(function() ra:findFirstChild'asde':Destroy() end) | |
1142 | ||
1143 | ||
1144 | local vu = Instance.new("BodyVelocity",ht.Torso) | |
1145 | vu.P = 500 | |
1146 | vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000) | |
1147 | vu.velocity = Head.CFrame.lookVector*100 | |
1148 | game:GetService("Debris"):AddItem(vu,0.267) | |
1149 | ||
1150 | wait(.5) | |
1151 | ||
1152 | Ragdoll(true, ht) | |
1153 | ht:findFirstChild'Humanoid'.PlatformStand =true | |
1154 | ||
1155 | coroutine.wrap(function() | |
1156 | wait(5) | |
1157 | ht:breakJoints'' | |
1158 | end)() | |
1159 | ||
1160 | Grabbed = false | |
1161 | ||
1162 | otheranims = false | |
1163 | ||
1164 | end | |
1165 | ||
1166 | elseif k=='f' then | |
1167 | ||
1168 | otheranims = true | |
1169 | ||
1170 | if Grabbed then return end | |
1171 | ||
1172 | if not Sheathed then | |
1173 | ||
1174 | ||
1175 | Mode = 'Sheath' | |
1176 | wait(.7) | |
1177 | ||
1178 | raw.Part0 = Torso | |
1179 | law.Part0 = Torso | |
1180 | raw.C0 = rawc0 * CFrame.new(1.8,3.3,.65) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
1181 | law.C0 = lawc0 * CFrame.new(-.3,.5,.25) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0) | |
1182 | Sheathed = true | |
1183 | ||
1184 | otheranims = false | |
1185 | ||
1186 | return | |
1187 | ||
1188 | end | |
1189 | ||
1190 | Mode = 'Beam' | |
1191 | ||
1192 | hum.WalkSpeed = 0 | |
1193 | local m0del = Instance.new('Model',char) | |
1194 | local wave = Instance.new('Part',m0del) | |
1195 | wave.CFrame = char.Head.CFrame * CFrame.new(0, 0, -10) | |
1196 | wave.TopSurface = 'Smooth' | |
1197 | wave.BottomSurface = 'Smooth' | |
1198 | wave.BrickColor = BrickColor.new('Bright green') | |
1199 | wave.Anchored = true | |
1200 | wave.FormFactor = 'Custom' | |
1201 | wave.Shape = 'Ball' | |
1202 | wave.CanCollide = false | |
1203 | wave.Transparency = 1 | |
1204 | wave.Material = 'Neon' | |
1205 | wave.Size = Vector3.new(.4, .4, .4) | |
1206 | local needaloop = true | |
1207 | beaming = true | |
1208 | local coro = coroutine.resume(coroutine.create(function() | |
1209 | while needaloop do | |
1210 | game:service'RunService'.Stepped:wait() | |
1211 | local c = char | |
1212 | local radius = 25 | |
1213 | local pos = wave.CFrame * CFrame.new(0,0,20) | |
1214 | local clrz = {'Really black','Bright green'}; | |
1215 | for i = 1,1 do | |
1216 | local clr = clrz[math.random(1,#clrz)] | |
1217 | pos = wave.CFrame * CFrame.new(0,0,2) | |
1218 | local p = Instance.new('Part',c) | |
1219 | local mafa = math.random(-360,360) | |
1220 | p.CanCollide = false | |
1221 | p.Size = Vector3.new(1.3,1.3,1.3) | |
1222 | local m = Instance.new('SpecialMesh',p) | |
1223 | m.MeshType = 'Sphere' | |
1224 | spawn(function() | |
1225 | for i = 0,50 do | |
1226 | local int,int2 = .05,.05 | |
1227 | m.Scale = m.Scale - Vector3.new(int,int,int) | |
1228 | p.Transparency = p.Transparency + int2 | |
1229 | game:service'RunService'.Stepped:wait() | |
1230 | end | |
1231 | pcall(function() | |
1232 | p:Destroy() | |
1233 | end) | |
1234 | end) | |
1235 | p.BrickColor = BrickColor.new(clr) | |
1236 | p.Material = 'Neon' | |
1237 | p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa) | |
1238 | local bp = Instance.new('BodyPosition',p) | |
1239 | bp.MaxForce = Vector3.new(1/0,1/0,1/0) | |
1240 | bp.D = 100 | |
1241 | bp.P = 300 | |
1242 | bp.Position = pos.p | |
1243 | game.Debris:AddItem(p,10) | |
1244 | end | |
1245 | end | |
1246 | end)) | |
1247 | local nbeamy = beamy:Clone() | |
1248 | nbeamy.Parent = char | |
1249 | --beamy.FireFrom.Anchored = true | |
1250 | coroutine.wrap(function() | |
1251 | local Ringz = {} | |
1252 | ||
1253 | for i,v in pairs(nbeamy:children'') do | |
1254 | if v.Name:lower():find'ring' then | |
1255 | table.insert(Ringz, v) | |
1256 | end | |
1257 | end | |
1258 | ||
1259 | local Rot = 0 | |
1260 | ||
1261 | while nbeamy do | |
1262 | ||
1263 | Rot = Rot + .035 | |
1264 | ||
1265 | if Rot >= 360 then Rot = 0 end | |
1266 | ||
1267 | for q,e in pairs(Ringz) do | |
1268 | pcall(function() | |
1269 | if e.Name~='Ring7' then | |
1270 | e["qCFrameWeldThingy"].C0 = e["qCFrameWeldThingy"].C0 * CFrame.Angles(0,0,math.rad((e.Name ~= 'Ring4' and Rot or -Rot))) | |
1271 | end | |
1272 | end) | |
1273 | end | |
1274 | ||
1275 | game:service'RunService'.Stepped:wait() | |
1276 | ||
1277 | end | |
1278 | ||
1279 | end)() | |
1280 | local bp = Instance.new('BodyPosition',nbeamy.FireFrom) | |
1281 | bp.MaxForce = Vector3.new(1/0,1/0,1/0) | |
1282 | bp.D = 100 | |
1283 | bp.P = 1000 | |
1284 | bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p | |
1285 | for awe = 1, 250 do | |
1286 | wave.CFrame = char.Head.CFrame * CFrame.new(10, 20, -5) | |
1287 | nbeamy.FireFrom.CFrame = nbeamy.FireFrom.CFrame:lerp(CFrame.new(wave.CFrame.p, mouse.Hit.p) * CFrame.Angles(math.rad(180), 0, 0),1) | |
1288 | bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p | |
1289 | wave.Size = Vector3.new(wave.Size.X+.1, wave.Size.Y+.1, wave.Size.Z+.1) | |
1290 | game:service'RunService'.Stepped:wait() | |
1291 | end | |
1292 | needaloop = false | |
1293 | local beam = Instance.new('Part',m0del) | |
1294 | beam.TopSurface = 'Smooth' | |
1295 | beam.BottomSurface = 'Smooth' | |
1296 | beam.Material = 'Neon' | |
1297 | beam.Transparency = .6 | |
1298 | beam.Anchored = true | |
1299 | beam.BrickColor = BrickColor.new('Bright green') | |
1300 | beam.CanCollide = false | |
1301 | local mesh = Instance.new('CylinderMesh',beam) | |
1302 | local realbeam = beam:Clone() | |
1303 | realbeam.Parent = m0del | |
1304 | realbeam.Color = Color3.new(0,200/255,0) | |
1305 | realbeam.Transparency = .1 | |
1306 | realbeam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
1307 | beam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
1308 | beam.Size = Vector3.new(23, 10/2, 23) | |
1309 | realbeam.Size = Vector3.new(24, 10/2, 24) | |
1310 | local p = wave:Clone() | |
1311 | p.Parent = m0del | |
1312 | p.Anchored = true | |
1313 | p.Transparency = 1 | |
1314 | p.Size = Vector3.new(10, 10, 10) | |
1315 | local Damaged = {} | |
1316 | for HAAA = 1, 500 do | |
1317 | local starthere = (char.Head.CFrame * CFrame.new(10, 20, -5)) | |
1318 | local idek = Ray.new(starthere.p,(mouse.Hit.p-starthere.p).unit*1000) | |
1319 | local thx = {char, m0del} | |
1320 | table.insert(thx, p) | |
1321 | local Bonk, ovhere = workspace:FindPartOnRayWithIgnoreList(idek, thx) | |
1322 | local meg | |
1323 | p.Transparency = 1 | |
1324 | if Bonk and Bonk.Parent:findFirstChild'Humanoid' then | |
1325 | local dionamuh = Bonk.Parent:findFirstChild'Humanoid' | |
1326 | if Damaged[dionamuh] and tick()-Damaged[dionamuh]>.05 then | |
1327 | Damaged[dionamuh] = tick() | |
1328 | pcall(function() dionamuh.Health = dionamuh.Health-2 end) | |
1329 | elseif not Damaged[dionamuh] then | |
1330 | Damaged[dionamuh] = tick() | |
1331 | end | |
1332 | end | |
1333 | meg = (starthere.p - ovhere).magnitude | |
1334 | coroutine.wrap(function() | |
1335 | local asd = Instance.new('Part', char) | |
1336 | asd.CFrame = CFrame.new(ovhere)*CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
1337 | asd.Size = Vector3.new(5,5,5) | |
1338 | asd.Reflectance = .40 | |
1339 | asd.Transparency = .05 | |
1340 | asd.TopSurface,asd.BottomSurface = 0,0 | |
1341 | asd.CanCollide = false | |
1342 | asd.Color = Color3.new(0,150/255,0) | |
1343 | asd.Anchored = true | |
1344 | asd.Locked = true--[[ | |
1345 | asd.Touched:connect(function(a) | |
1346 | if a and a.Parent:findFirstChild'Humanoid' then | |
1347 | local dionamuh = a.Parent:findFirstChild'Humanoid' | |
1348 | if Damaged[dionamuh] and tick()-Damaged[dionamuh]>.05 then | |
1349 | Damaged[dionamuh] = tick() | |
1350 | pcall(function() dionamuh.Health = dionamuh.Health-2 end) | |
1351 | elseif not Damaged[dionamuh] then | |
1352 | Damaged[dionamuh] = tick() | |
1353 | end | |
1354 | end | |
1355 | end)]] | |
1356 | wait() | |
1357 | for i = .05,1,.05 do | |
1358 | asd.Transparency = i | |
1359 | asd.Size = asd.Size + Vector3.new(.2, .2, .2) | |
1360 | game:service'RunService'.Stepped:wait() | |
1361 | end | |
1362 | asd:Destroy() | |
1363 | end)() | |
1364 | game:service'RunService'.Stepped:wait() | |
1365 | realbeam.Size = Vector3.new(7/2, meg, 7/2) | |
1366 | beam.Size = Vector3.new(5/2, meg, 5/2) | |
1367 | realbeam.CFrame = CFrame.new(starthere.p, ovhere) * CFrame.new(0,0,-meg/2) * CFrame.Angles(math.rad(90), 0, 0) | |
1368 | beam.CFrame = CFrame.new(starthere.p, ovhere) * CFrame.new(0,0,-meg/2) * CFrame.Angles(math.rad(90), 0, 0) | |
1369 | pcall(function()nbeamy.FireFrom.CFrame = nbeamy.FireFrom.CFrame:lerp(CFrame.new(starthere.p, ovhere) * CFrame.new(0,0,2) * CFrame.Angles(math.rad(180), 0, 0),1) end) | |
1370 | bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p | |
1371 | wave.CFrame = starthere | |
1372 | end | |
1373 | nbeamy.FireFrom.Anchored = true | |
1374 | p:Destroy() | |
1375 | for i = 0,1,.05 do | |
1376 | realbeam.Transparency = i | |
1377 | wave.Transparency = i | |
1378 | beam.Transparency = i | |
1379 | game:service'RunService'.Stepped:wait() | |
1380 | end | |
1381 | nbeamy:Destroy() | |
1382 | beaming = false | |
1383 | m0del:Destroy() | |
1384 | hum.WalkSpeed = 8 | |
1385 | ||
1386 | otheranims = false | |
1387 | ||
1388 | elseif k=='c' then | |
1389 | ||
1390 | if Sheathed then | |
1391 | otheranims = true | |
1392 | Mode = 'Sheath' | |
1393 | wait(.7) | |
1394 | ||
1395 | raw.Part0 = ra | |
1396 | law.Part0 = la | |
1397 | raw.C0 = rawc0 | |
1398 | law.C0 = lawc0 | |
1399 | Sheathed = false | |
1400 | ||
1401 | otheranims = false | |
1402 | ||
1403 | return | |
1404 | ||
1405 | end | |
1406 | ||
1407 | ||
1408 | otheranims = true | |
1409 | ||
1410 | hum.WalkSpeed = 0 | |
1411 | ||
1412 | Mode = 'Stabbing1' | |
1413 | ||
1414 | wait(.7) | |
1415 | ||
1416 | Mode = 'Stabbing2' | |
1417 | ||
1418 | local Parts = {} | |
1419 | ||
1420 | local Damaged = {} | |
1421 | ||
1422 | for i = 1, 360, 20 do | |
1423 | ||
1424 | local s = Instance.new('Part', char) | |
1425 | table.insert(Parts, s) | |
1426 | s.Name = 'Spikey' | |
1427 | s.CFrame = Torso.CFrame * CFrame.new(0, -10, 0) | |
1428 | s.Size = Vector3.new(1,1,1) | |
1429 | s.CanCollide = false | |
1430 | s.Anchored = true | |
1431 | s.BrickColor = BrickColor.new("Bright green") | |
1432 | s.Locked = true | |
1433 | s.Name = 's' | |
1434 | s.Material = 'Neon' | |
1435 | s.Size = Vector3.new(1, 1, 1) | |
1436 | s.BottomSurface = Enum.SurfaceType.Smooth | |
1437 | s.TopSurface = Enum.SurfaceType.Smooth | |
1438 | local PurpleMesh = Instance.new("SpecialMesh", s) | |
1439 | PurpleMesh.MeshType = Enum.MeshType.FileMesh | |
1440 | PurpleMesh.Name = "Mesh" | |
1441 | PurpleMesh.Scale = Vector3.new(.5,.5,.5) | |
1442 | PurpleMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
1443 | PurpleMesh.VertexColor = Vector3.new(1, 0, 1) | |
1444 | ||
1445 | local qwe = -10 | |
1446 | ||
1447 | coroutine.wrap(function() | |
1448 | while s do | |
1449 | if qwe>=-1 then qwe=0 else qwe=qwe+.4 end | |
1450 | s.CFrame = s.CFrame:lerp(CFrame.new(Torso.CFrame.p)*CFrame.new(0, qwe, 0) | |
1451 | * (CFrame.Angles(0,0,0)) | |
1452 | *CFrame.Angles(0,math.rad(i),0) | |
1453 | *CFrame.new(0,0,-20), .3) | |
1454 | game:service'RunService'.Stepped:wait() | |
1455 | end | |
1456 | end)() | |
1457 | ||
1458 | coroutine.wrap(function() | |
1459 | repeat wait() until qwe>=-1 | |
1460 | for i = .5, 2, .025 do | |
1461 | PurpleMesh.Scale = Vector3.new(i, i*2 ,i) | |
1462 | game:service'RunService'.Stepped:wait() | |
1463 | end | |
1464 | local it=Instance.new | |
1465 | local vt=Vector3.new | |
1466 | local cf=CFrame.new | |
1467 | local euler=CFrame.fromEulerAnglesXYZ | |
1468 | local angles=CFrame.Angles | |
1469 | local function NoOutline(Part) | |
1470 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1471 | end | |
1472 | local function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
1473 | local fp=Instance.new("Part") | |
1474 | fp.formFactor=formfactor | |
1475 | fp.Parent=parent | |
1476 | fp.Reflectance=reflectance | |
1477 | fp.Transparency=transparency | |
1478 | fp.CanCollide=false | |
1479 | fp.Locked=true | |
1480 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
1481 | fp.Name=name | |
1482 | fp.Size=size | |
1483 | fp.Position=Torso.Position | |
1484 | --NoOutline(fp) | |
1485 | fp.Material=material | |
1486 | fp:BreakJoints() | |
1487 | return fp | |
1488 | end | |
1489 | local function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1490 | local mesh=it(Mesh) | |
1491 | mesh.Parent=part | |
1492 | if Mesh=="SpecialMesh" then | |
1493 | mesh.MeshType=meshtype | |
1494 | mesh.MeshId=meshid | |
1495 | end | |
1496 | mesh.Offset=offset | |
1497 | mesh.Scale=scale | |
1498 | return mesh | |
1499 | end | |
1500 | ||
1501 | local function weld(parent,part0,part1,c0,c1) | |
1502 | local weld=it("Weld") | |
1503 | weld.Parent=parent | |
1504 | weld.Part0=part0 | |
1505 | weld.Part1=part1 | |
1506 | weld.C0=c0 | |
1507 | weld.C1=c1 | |
1508 | return weld | |
1509 | end | |
1510 | local function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
1511 | local prt=part("Custom",char,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1512 | prt.Anchored=true | |
1513 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1514 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1515 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
1516 | CF=Part.CFrame | |
1517 | Numbb=0 | |
1518 | randnumb=math.random()-math.random() | |
1519 | for i=0,1,0.05 do | |
1520 | wait() | |
1521 | CF=CF*cf(0,1,0) | |
1522 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
1523 | Part.CFrame=CF*euler(Numbb,0,0) | |
1524 | Part.Transparency=i | |
1525 | Numbb=Numbb+randnumb | |
1526 | end | |
1527 | Part.Parent = nil | |
1528 | end),prt) | |
1529 | end | |
1530 | for i = 1,3 do | |
1531 | BreakEffect(BrickColor.new("Bright green"),s.CFrame,0.5,math.random(5,10),0.5) | |
1532 | end | |
1533 | coroutine.wrap(function() | |
1534 | for i,v in pairs(IsNear(Torso.Position, 35, nil, true)) do | |
1535 | if v~=Char then | |
1536 | if Damaged[v:FindFirstChild('Humanoid')] and tick()-Damaged[v:FindFirstChild('Humanoid')] < .5 then return end | |
1537 | v:FindFirstChild('Humanoid').Health = v:findFirstChild('Humanoid').Health - 25 | |
1538 | v:findFirstChild'Humanoid'.PlatformStand = true | |
1539 | local vu = Instance.new("BodyVelocity",v:findFirstChild'Torso') | |
1540 | vu.P = 500 | |
1541 | vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000) | |
1542 | vu.velocity = Head.CFrame.lookVector*60 | |
1543 | game:GetService("Debris"):AddItem(vu,0.267) | |
1544 | Damaged[v:FindFirstChild('Humanoid')] = tick() | |
1545 | end | |
1546 | end | |
1547 | end)() | |
1548 | s:Destroy() | |
1549 | end)() | |
1550 | ||
1551 | game:service'RunService'.Stepped:wait() | |
1552 | end | |
1553 | ||
1554 | wait(3) | |
1555 | ||
1556 | hum.WalkSpeed = 8 | |
1557 | ||
1558 | otheranims = false | |
1559 | ||
1560 | end | |
1561 | end) | |
1562 | ||
1563 | mouse.KeyUp:connect(function(k) | |
1564 | if k:byte() == 48 then | |
1565 | coroutine.wrap(function() | |
1566 | for i = 60,70,1 do | |
1567 | camera.FieldOfView = i | |
1568 | wait() | |
1569 | end | |
1570 | end)() | |
1571 | hum.WalkSpeed = 8 | |
1572 | elseif k:byte() == 50 then | |
1573 | Ctrl = false | |
1574 | elseif k == 'g' then | |
1575 | Shielding = false | |
1576 | otheranims = false | |
1577 | end | |
1578 | end) | |
1579 | ||
1580 | game.Lighting.TimeOfDay = "06:10:00" | |
1581 | pcall(game.Destroy, game:service'Lighting':findFirstChild'SunRayz') | |
1582 | ||
1583 | local sr = Instance.new('SunRaysEffect',game.Lighting) | |
1584 | sr.Intensity = .1 | |
1585 | sr.Name = 'SunRayz' | |
1586 | ||
1587 | hum.JumpPower = 10 --10 | |
1588 | Jumping = false | |
1589 | lastCtrl = tick() | |
1590 | Character.Humanoid.Jumping:connect(function() | |
1591 | if Jumping then return end | |
1592 | local eCtrl = Ctrl | |
1593 | if eCtrl then if tick()-lastCtrl < 0.2 then eCtrl = false end lastCtrl = tick() end | |
1594 | Mode = 'Jumping' | |
1595 | Jumping = true | |
1596 | local vu = Instance.new("BodyVelocity",Torso) | |
1597 | vu.P = 500 | |
1598 | vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000) | |
1599 | vu.velocity = Vector3.new((Head.CFrame.lookVector.X*(eCtrl and 60 or 10)),(eCtrl and 10 or 20),(Head.CFrame.lookVector.Z*(eCtrl and 60 or 10))) | |
1600 | game:GetService("Debris"):AddItem(vu,0.267) | |
1601 | wait(0.7) --0.6 | |
1602 | Jumping = false | |
1603 | end) | |
1604 | ||
1605 | spawn(function() | |
1606 | while true do | |
1607 | local Size = Vector3.new(TrailPart.Size.X,TrailPart.Size.Y,TrailPart.Size.Z) | |
1608 | if Slash == true then | |
1609 | local P1 = (TrailPart.CFrame*CFrame.new(Size/2)).p | |
1610 | local P2 = (TrailPart.CFrame*CFrame.new(Size/-2)).p | |
1611 | if LastTrail then | |
1612 | local p1 = CreateTriangle(Char,LastTrail[2],LastTrail[1],P2) | |
1613 | local p2 = CreateTriangle(Char,LastTrail[1],P1,P2) | |
1614 | Trails[#Trails+1] = p1 | |
1615 | Trails[#Trails+1] = p2 | |
1616 | end | |
1617 | LastTrail = {P1,P2} | |
1618 | else | |
1619 | LastTrail = nil | |
1620 | end | |
1621 | for i,v in pairs(Trails) do | |
1622 | v:SetProperty("Transparency",v:GetProperty("Transparency")+0.1) | |
1623 | if v:GetProperty("Transparency") >= 1 then | |
1624 | v:Destroy() | |
1625 | Trails[i] = nil | |
1626 | end | |
1627 | end | |
1628 | rwait(.5) | |
1629 | end | |
1630 | end) | |
1631 | ||
1632 | ||
1633 | ||
1634 | SlashDamage = Damage(TrailPart) | |
1635 | ||
1636 | local count = 0 | |
1637 | ||
1638 | local t = tick() | |
1639 | local Smooth = 1 | |
1640 | --------------------------- | |
1641 | local sine = 0 | |
1642 | local change = 1 | |
1643 | coroutine.wrap(function() | |
1644 | game:service('RunService').Heartbeat:connect(function() | |
1645 | local torso = char:FindFirstChild('Torso') | |
1646 | local mg = Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude | |
1647 | if not otheranims then | |
1648 | if (mg < 3) and not Jumping then | |
1649 | Mode = "Idling" | |
1650 | elseif (mg > 3 and mg < 10) and not Jumping then | |
1651 | Mode = "Walking" | |
1652 | elseif (mg > 10) and not Jumping then | |
1653 | Mode = "Running" | |
1654 | elseif Jumping and (Vector3.new(0, torso.Velocity.y, 0).magnitude > 2) and (mg > 1) then | |
1655 | Mode = "Jumping" | |
1656 | end | |
1657 | end | |
1658 | count = (count % 100) + (0.2)*(hum.WalkSpeed)/(5*1.3)--countspeed --1 | |
1659 | angle = math.pi * math.sin(math.pi*2/100*count) | |
1660 | t = t+0.2*Smooth | |
1661 | sine = sine + change | |
1662 | --if (Mode=='Idling') and (tick()-lastdps < 30 and tick()-lastclick < 30) and not otheranims then Mode='CombatIdling' end | |
1663 | ||
1664 | if Mode == 'Jumping' then | |
1665 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,.6,-.6) * CFrame.Angles(0,-math.rad(10),0), .4) | |
1666 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0,.4,-.3), .4) | |
1667 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), 0, 0), .4) | |
1668 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(-math.rad(20), 0, -math.rad(30)), .4) | |
1669 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(-math.rad(20), 0, math.rad(30)), .4) | |
1670 | lerp(rj, rj.C0, rootc0 * CFrame.Angles(math.rad(20), 0, 0), .4) | |
1671 | elseif Mode == 'Idling' then --stand | |
1672 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,math.sin(t/20)/7,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3) | |
1673 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0,math.sin(t/20)/7,0) * CFrame.Angles(0, 0, -math.rad(8)),.3) | |
1674 | if not Sheathed then | |
1675 | lerp(neck, neck.C0, neckc0 * CFrame.new(0,-math.cos(t/20)/7,0) * CFrame.Angles(-1*math.cos(t/20)/7, -math.rad(15), 0),.2) | |
1676 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.sin(t/20)/7, -math.rad(5), -math.rad(20)),.2) | |
1677 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/20)/7, math.rad(5), math.rad(20)),.2) | |
1678 | lerp(rj, rj.C0, rootc0 * CFrame.new(0,0,-math.sin(t/20)/7) * CFrame.Angles(0,0,math.rad(15)),.3) | |
1679 | lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1) | |
1680 | else | |
1681 | lerp(neck, neck.C0, neckc0 * CFrame.new(0,-math.sin(t/20)/15,0) * CFrame.Angles(-2*math.cos(t/15)/20, -math.rad(5), 0),.2) | |
1682 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(math.sin(t/20)/20, -math.rad(5), -math.rad(10)),.2) | |
1683 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(Grabbed and 120 or 0) + math.sin(t/20)/15, math.rad(5), math.rad(Grabbed and 20 or 0) + math.rad(10)),.2) | |
1684 | lerp(rj, rj.C0, rootc0 * CFrame.new(0,0,-math.sin(t/20)/15) * CFrame.Angles(0,0,math.rad(5)),.3) | |
1685 | end | |
1686 | elseif Mode == 'Walking' then-- walk | |
1687 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4) | |
1688 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4) | |
1689 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),0.2) | |
1690 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, .03*math.cos(sine/9), -math.sin(sine/20)/6) * CFrame.Angles(-math.rad(20*math.cos(sine/17)), math.rad(0), -math.rad(12)), 0.2) | |
1691 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, .03*math.cos(sine/9), math.sin(sine/20)/6) * CFrame.Angles(math.rad(Grabbed and 120 or 0) + math.rad(20*math.cos(sine/17)), math.rad(0), math.rad(Grabbed and 20 or 0) + math.rad(12)), 0.2) | |
1692 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), 0.2) | |
1693 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1) end | |
1694 | elseif Mode == 'Running' then-- walk | |
1695 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/10)/2, -.05 + -math.sin(sine/10)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/10)/2, 0, 0), .4) | |
1696 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/10)/2, -.05 + math.sin(sine/10)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/10)/2, 0, 0), .4) | |
1697 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(6+6*math.cos(sine/10)/2), math.rad(0), math.rad(0)),0.2) | |
1698 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.rad(-10-20*math.cos(sine/10)/5), -math.rad(-40+10*math.cos(sine/10)/5), -math.rad(50-10*math.cos(sine/10)/5)), 0.2) | |
1699 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(-10-20*math.cos(sine/10)/5), math.rad(-40+10*math.cos(sine/10)/5), math.rad(50-10*math.cos(sine/10)/5)), 0.2) | |
1700 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1+0.2*math.cos(sine/10)/2, 0) * CFrame.Angles(math.rad(14+10*math.cos(sine/10)/2), -math.cos(t/6)/30+math.sin(rootpart.RotVelocity.y/2)/6, math.rad(0)), 0.2) | |
1701 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1) end | |
1702 | elseif Mode == 'Sheath' then | |
1703 | if (mg > 3 and mg < 18) then | |
1704 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4) | |
1705 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4) | |
1706 | else | |
1707 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,math.sin(t/15)/15,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3) | |
1708 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0,math.sin(t/15)/15,0) * CFrame.Angles(0, 0, -math.rad(8)),.3) | |
1709 | end | |
1710 | lerp(neck, neck.C0, neckc0 * CFrame.new(0,math.sin(t/15)/15,0) * CFrame.Angles(-1*math.cos(t/25)/10, -math.rad(15), 0),.2) | |
1711 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.rad(10), math.rad(120), -math.rad(60)),.2) | |
1712 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, .6, -.2) * CFrame.Angles(math.rad(175), math.rad(0), math.rad(20)),.2) | |
1713 | lerp(rj, rj.C0, rootc0 * CFrame.new(0,0,-math.sin(t/15)/15) * CFrame.Angles(0,0,math.rad(15)),.3) | |
1714 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-.5, -1.6, -.85) * CFrame.Angles(math.rad(92),math.rad(26),math.rad(90)), 1 ) end | |
1715 | elseif Mode == 'Slash11' then | |
1716 | ||
1717 | if (mg > 3) then | |
1718 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),.6) | |
1719 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), .6) | |
1720 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .6) | |
1721 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .6) | |
1722 | else | |
1723 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), .6) | |
1724 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .2, -.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .6) | |
1725 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30),-math.rad(0)), .6) | |
1726 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), .6) | |
1727 | end | |
1728 | ||
1729 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), .6) | |
1730 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(60), -math.rad(60), math.rad(110)), .6) | |
1731 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1.2, 0) * CFrame.Angles(-math.rad(20), 0, math.rad(90)), 1) end | |
1732 | elseif Mode == 'Slash12' then | |
1733 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(60), math.rad(10)), .6) | |
1734 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(-math.rad(10), math.rad(0), -math.rad(10)), .6) | |
1735 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(30), -math.rad(70), math.rad(30)),.6) | |
1736 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), .6) | |
1737 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(50), math.rad(40)), .6) | |
1738 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(90)), .6) | |
1739 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, -.5) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(60)), 1) end | |
1740 | elseif Mode == 'Slash31' then | |
1741 | ||
1742 | if (mg > 3) then | |
1743 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),.6) | |
1744 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), .6) | |
1745 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .6) | |
1746 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .6) | |
1747 | else | |
1748 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .5, -.3) * CFrame.Angles(math.rad(10), 0, 0), .4) | |
1749 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(0), math.rad(5), -math.rad(5)), .4) | |
1750 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(15), math.rad(15), math.rad(0)),.6) | |
1751 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), 0, -math.rad(15)), .6) | |
1752 | end | |
1753 | ||
1754 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(10), -math.rad(20)), .6) | |
1755 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(60), -math.rad(60), math.rad(110)), .6) | |
1756 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1.2, 0) * CFrame.Angles(-math.rad(20), 0, math.rad(90)), 1) end | |
1757 | elseif Mode == 'Slash32' then | |
1758 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), .6) | |
1759 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(-math.rad(20), math.rad(0), -math.rad(20)), .6) | |
1760 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), -math.rad(50), math.rad(20)),.6) | |
1761 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), .6) | |
1762 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(50), math.rad(50), math.rad(50)), .6) | |
1763 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(60)), .6) | |
1764 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, 0) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(90)), 1) end | |
1765 | elseif Mode == 'Slash21' then | |
1766 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), .6) | |
1767 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(10), math.rad(0), -math.rad(10)), .6) | |
1768 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(10), -math.rad(20), math.rad(10)),.6) | |
1769 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(20), -math.rad(20)), .6) | |
1770 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(10), math.rad(60)), .6) | |
1771 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(40)), .6) | |
1772 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, -.5) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(60)), 1) end | |
1773 | elseif Mode == 'Bash11' then | |
1774 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), .6) | |
1775 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .2, -.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .6) | |
1776 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30),-math.rad(0)), .6) | |
1777 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), .6) | |
1778 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/15)/15, math.rad(5), math.rad(20)),.2) | |
1779 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), .6) | |
1780 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1781 | elseif Mode == 'Kneeling' then | |
1782 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, -.5, -.3) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(0)), .6) | |
1783 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 1, -.6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1784 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(30), math.rad(0),-math.rad(0)), .6) | |
1785 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0,0) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(20)), .6) | |
1786 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(90), math.rad(5), math.rad(20)),.2) | |
1787 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -1) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(0)), .6) | |
1788 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(0,-2.5,0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1) end | |
1789 | elseif Mode == 'Stomp1' then | |
1790 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .85, -.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .6) | |
1791 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6) | |
1792 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1793 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(30)), .6) | |
1794 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(140), math.rad(0), -math.rad(30)), .6) | |
1795 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6) | |
1796 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1797 | elseif Mode == 'Stomp2' then | |
1798 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .1, -.4) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .6) | |
1799 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1800 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6) | |
1801 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(30), -math.rad(30)), .6) | |
1802 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), -math.rad(30), math.rad(30)), .6) | |
1803 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6) | |
1804 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1805 | elseif Mode == 'Knee' then | |
1806 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(25), math.rad(0), math.rad(0)), .6) | |
1807 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .75, -1.2) * CFrame. Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1808 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6) | |
1809 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(30), -math.rad(30)), .6) | |
1810 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), -math.rad(30), math.rad(30)), .6) | |
1811 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, -.3, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6) | |
1812 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1813 | elseif Mode == 'Grabbing' then | |
1814 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3) | |
1815 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0,0,0) * CFrame.Angles(0, 0, -math.rad(8)),.3) | |
1816 | lerp(neck, neck.C0, neckc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), 0),.2) | |
1817 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(0, -math.rad(5), -math.rad(20)),.2) | |
1818 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(90), math.rad(5), math.rad(20)),.2) | |
1819 | elseif Mode == 'Throw1' then | |
1820 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), .6) | |
1821 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(-math.rad(20), math.rad(0), -math.rad(20)), .6) | |
1822 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), -math.rad(50), math.rad(20)),.6) | |
1823 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), .6) | |
1824 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(80), math.rad(50), math.rad(50)), .6) | |
1825 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(60)), .6) | |
1826 | elseif Mode == 'Beam' then | |
1827 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3) | |
1828 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0,0,0) * CFrame.Angles(0, 0, -math.rad(8)),.3) | |
1829 | lerp(neck, neck.C0, neckc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), 0),.2) | |
1830 | lerp(lm, lm.C0, lsc0 * CFrame.Angles(0, -math.rad(5), -math.rad(20)),.2) | |
1831 | lerp(rm, rm.C0, rsc0 * CFrame.new(0,1,0) * CFrame.Angles(math.rad(170), math.rad(5), math.rad(20)),.2) | |
1832 | elseif Mode == 'Shielding' then | |
1833 | if (mg > 3) then | |
1834 | lerp(lm, lm.C0, lsc0 * CFrame.new(.7, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(85)), .6) | |
1835 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/15)/15, math.rad(5), math.rad(20)),.2) | |
1836 | lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),.6) | |
1837 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), .6) | |
1838 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .6) | |
1839 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .6) | |
1840 | else | |
1841 | lerp(lm, lm.C0, lsc0 * CFrame.new(.1, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), .6) | |
1842 | lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/15)/15, math.rad(5), math.rad(20)),.2) | |
1843 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), .6) | |
1844 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .2, -.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .6) | |
1845 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30),-math.rad(0)), .6) | |
1846 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), .6) | |
1847 | end | |
1848 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1849 | elseif Mode == 'Stabbing1' then | |
1850 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .85, -.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .6) | |
1851 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6) | |
1852 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1853 | lerp(lm, lm.C0, lsc0 * CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(40)), .6) | |
1854 | lerp(rm, rm.C0, rsc0 * CFrame.new(-.5, .5, 0) * CFrame.Angles(math.rad(130), math.rad(0), -math.rad(40)), .6) | |
1855 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6) | |
1856 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1) end | |
1857 | elseif Mode == 'Stabbing2' then | |
1858 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .4, -.6) * CFrame.Angles(-math.rad(10), math.rad(0), math.rad(0)), .6) | |
1859 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.5, -.3) * CFrame.Angles(-math.rad(60), math.rad(0), math.rad(0)), .6) | |
1860 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(0), math.rad(0),-math.rad(0)), .6) | |
1861 | lerp(lm, lm.C0, lsc0 * CFrame.new(.5, .5, -.8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(40)), .6) | |
1862 | lerp(rm, rm.C0, rsc0 * CFrame.new(-.5, .5, -.8) * CFrame.Angles(math.rad(90), math.rad(0), -math.rad(40)), .6) | |
1863 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1, -.7) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(0)), .6) | |
1864 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1) end | |
1865 | end | |
1866 | end) | |
1867 | end)() | |
1868 | ||
1869 | coroutine.wrap(function() | |
1870 | for i = 1,3 do | |
1871 | MediumParticleEmit(Head, 'Bright green') | |
1872 | wait(.05) | |
1873 | MediumParticleEmit(Head,'Really black') | |
1874 | wait(.03) | |
1875 | end | |
1876 | end)() | |
1877 | ||
1878 | --[[ | |
1879 | lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1880 | lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1881 | lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1882 | lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1883 | lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1884 | lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6) | |
1885 | if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end | |
1886 | ]] |