SHOW:
|
|
- or go back to the newest paste.
1 | --thanks fang | |
2 | --Added a new beam move to genkadda | |
3 | ||
4 | --[[User: TheDarkRevenant | |
5 | Script: Genkadda.txt | |
6 | Pass: E1IZVizJ]] | |
7 | ||
8 | local p = game.Players.LocalPlayer | |
9 | local char = p.Character | |
10 | local mouse = p:GetMouse() | |
11 | local larm = char["Left Arm"] | |
12 | local rarm = char["Right Arm"] | |
13 | local lleg = char["Left Leg"] | |
14 | local rleg = char["Right Leg"] | |
15 | local hed = char.Head | |
16 | local torso = char.Torso | |
17 | local hum = char.Humanoid | |
18 | local cam = game.Workspace.CurrentCamera | |
19 | local root = char.HumanoidRootPart | |
20 | local deb = false | |
21 | local CanAttack = true | |
22 | local shot = 0 | |
23 | local animpose = "Idle" | |
24 | local lastanimpose = "Idle" | |
25 | local stanceToggle = "Normal" | |
26 | local l = game:GetService("Lighting") | |
27 | local rs = game:GetService("RunService").RenderStepped | |
28 | math.randomseed(os.time()) | |
29 | hum.MaxHealth = 9001 | |
30 | wait(1) | |
31 | hum.Health = 9001 | |
32 | ||
33 | for i,v in pairs (hed:GetChildren()) do | |
34 | if v:IsA("Sound") then | |
35 | v:Destroy() | |
36 | end | |
37 | end | |
38 | --game:service'InsertService':LoadAsset(16469427):children()[1].Parent = char | |
39 | --char.Reaper.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=176349813" | |
40 | ---------------------------------------------------- | |
41 | Debounces = { | |
42 | CanAttack = true; | |
43 | CanJoke = true; | |
44 | NoIdl = false; | |
45 | Slashing = false; | |
46 | Slashed = false; | |
47 | Slapping = false; | |
48 | Slapped = false; | |
49 | ks = false; | |
50 | } | |
51 | ||
52 | local Touche = {char.Name, } | |
53 | ---------------------------------------------------- | |
54 | function HasntTouched(plrname) | |
55 | local ret = true | |
56 | for _, v in pairs(Touche) do | |
57 | if v == plrname then | |
58 | ret = false | |
59 | end | |
60 | end | |
61 | return ret | |
62 | end | |
63 | ---------------------------------------------------- | |
64 | function weld5(part0, part1, c0, c1) | |
65 | weeld=Instance.new("Weld", part0) | |
66 | weeld.Part0=part0 | |
67 | weeld.Part1=part1 | |
68 | weeld.C0=c0 | |
69 | weeld.C1=c1 | |
70 | return weeld | |
71 | end | |
72 | ---------------------------------------------------- | |
73 | mod=Instance.new('Model',char) | |
74 | ||
75 | function Burst() | |
76 | part=Instance.new('Part',mod) | |
77 | part.Anchored=true | |
78 | part.CanCollide=false | |
79 | part.FormFactor='Custom' | |
80 | part.Size=Vector3.new(.2,.2,.2) | |
81 | part.CFrame=root.CFrame*CFrame.new(0,1,0)*CFrame.Angles(math.rad(90),0,0) | |
82 | part.Transparency=.7 | |
83 | part.BrickColor=BrickColor.new('Really black') | |
84 | mesh=Instance.new('SpecialMesh',part) | |
85 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
86 | mesh.Scale=Vector3.new(10,5,10) | |
87 | part2=part:clone() | |
88 | part2.Parent=mod | |
89 | part2.BrickColor=BrickColor.new('Dark indigo') | |
90 | mesh2=mesh:clone() | |
91 | mesh2.Parent=part2 | |
92 | mesh2.Scale=Vector3.new(5,2.5,5) | |
93 | coroutine.resume(coroutine.create(function() | |
94 | for i=0,1,0.1 do | |
95 | wait() | |
96 | part.CFrame=part.CFrame | |
97 | part.Transparency=i | |
98 | mesh.Scale=mesh.Scale+Vector3.new(1,1,1) | |
99 | part2.CFrame=part2.CFrame | |
100 | part2.Transparency=i | |
101 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
102 | end | |
103 | part.Parent=nil | |
104 | part2.Parent=nil | |
105 | end)) | |
106 | end | |
107 | ---------------------------------------------------- | |
108 | mod4 = Instance.new("Model",char) | |
109 | ||
110 | ptez = {0.7, 0.8, 0.9, 1} | |
111 | ||
112 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
113 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
114 | local List = {} | |
115 | for i,v in pairs(workspace:GetChildren())do | |
116 | if v:IsA("Model")then | |
117 | if v:findFirstChild("Torso")then | |
118 | if v ~= char then | |
119 | if(v.Torso.Position -Position).magnitude <= Distance then | |
120 | table.insert(List,v) | |
121 | end | |
122 | end | |
123 | end | |
124 | end | |
125 | end | |
126 | return List | |
127 | end | |
128 | ||
129 | function Slam() | |
130 | part=Instance.new('Part',mod4) | |
131 | part.Anchored=true | |
132 | part.CanCollide=false | |
133 | part.FormFactor='Custom' | |
134 | part.Size=Vector3.new(.2,.2,.2) | |
135 | part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0) | |
136 | part.Transparency=.7 | |
137 | part.BrickColor=BrickColor.new('Really black') | |
138 | mesh=Instance.new('SpecialMesh',part) | |
139 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
140 | mesh.Scale=Vector3.new(3,3,3) | |
141 | part2=Instance.new('Part',mod4) | |
142 | part2.Anchored=true | |
143 | part2.CanCollide=false | |
144 | part2.FormFactor='Custom' | |
145 | part2.Size=Vector3.new(.2,.2,.2) | |
146 | part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6) | |
147 | part2.Transparency=.7 | |
148 | part2.BrickColor=BrickColor.new('Dark indigo') | |
149 | mesh2=Instance.new('SpecialMesh',part2) | |
150 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
151 | mesh2.Scale=Vector3.new(3,1.5,3) | |
152 | x = Instance.new("Sound",char) | |
153 | - | x.SoundId = "http://www.roblox.com/asset/?id=142070127" |
153 | + | x.SoundId = "http://www.roblox.com/asset/?id=500841625" |
154 | x.Pitch = ptez[math.random(1,#ptez)] | |
155 | x.Volume = 1 | |
156 | wait(.1) | |
157 | x1 = Instance.new("Sound",char) | |
158 | - | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" |
158 | + | x1.SoundId = "http://www.roblox.com/asset/?id=500841625" |
159 | x1.Pitch = ptez[math.random(1,#ptez)] | |
160 | x1.Volume = 1 | |
161 | wait(.1) | |
162 | x:Play() | |
163 | x1:Play() | |
164 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
165 | if v:FindFirstChild('Humanoid') then | |
166 | v.Humanoid:TakeDamage(math.random(45,50)) | |
167 | end | |
168 | end | |
169 | coroutine.resume(coroutine.create(function() | |
170 | for i=0,0.62,0.13 do | |
171 | wait() | |
172 | part.CFrame=part.CFrame | |
173 | part.Transparency=i | |
174 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
175 | part2.CFrame=part2.CFrame | |
176 | part2.Transparency=i | |
177 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
178 | end | |
179 | part.Parent=nil | |
180 | part2.Parent=nil | |
181 | x:Destroy() | |
182 | end)) | |
183 | end | |
184 | ---------------------------------------------------- | |
185 | GroundWave = function() | |
186 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
187 | local Colors = {"Dark indigo", "Really black"} | |
188 | local wave = Instance.new("Part", torso) | |
189 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
190 | wave.Anchored = true | |
191 | wave.CanCollide = false | |
192 | wave.Locked = true | |
193 | wave.Size = Vector3.new(1, 1, 1) | |
194 | wave.TopSurface = "Smooth" | |
195 | wave.BottomSurface = "Smooth" | |
196 | wave.Transparency = 0.35 | |
197 | wave.CFrame = HandCF | |
198 | wm = Instance.new("SpecialMesh", wave) | |
199 | wm.MeshId = "rbxassetid://3270017" | |
200 | coroutine.wrap(function() | |
201 | for i = 1, 14, 1 do | |
202 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
203 | wave.Size = wm.Scale | |
204 | wave.CFrame = HandCF | |
205 | wave.Transparency = i/14 | |
206 | wait() | |
207 | end | |
208 | wait() | |
209 | wave:Destroy() | |
210 | end)() | |
211 | end | |
212 | ---------------------------------------------------- | |
213 | Magik = function() | |
214 | Spawn(function() | |
215 | local function lerp(a,b,c) | |
216 | return a+(b-a)*c | |
217 | end | |
218 | local function rndRange(rng) | |
219 | return math.random(-rng*1000,rng*1000)/1000 | |
220 | end | |
221 | local magik = Instance.new("Part", larm) | |
222 | local Colors = {"Dark indigo", "Really black"} | |
223 | magik.Anchored = true | |
224 | magik.Locked = true | |
225 | magik.FormFactor = "Custom" | |
226 | magik.Size = Vector3.new(1.2, 1.2, 1.2) | |
227 | magik.TopSurface = "Smooth" | |
228 | magik.BottomSurface = "Smooth" | |
229 | magik.Transparency = 0 | |
230 | magik.CanCollide = false | |
231 | magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
232 | local mr = math.rad | |
233 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
234 | local cf = larm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
235 | magik.CFrame = cf | |
236 | for i = 0, 1, .05 do | |
237 | local newTrans = lerp(0.5, 1, i) | |
238 | local ns = lerp(1,1.2,i) | |
239 | magik.Transparency = newTrans | |
240 | magik.Size = Vector3.new(ns,ns,ns) | |
241 | magik.CFrame = cf | |
242 | rs:wait() | |
243 | end | |
244 | magik:Destroy() | |
245 | wait() | |
246 | end) | |
247 | end | |
248 | ---------------------------------------------------- | |
249 | Magik2 = function() | |
250 | Spawn(function() | |
251 | if stanceToggle == "Melee" then | |
252 | local function lerp(a,b,c) | |
253 | return a+(b-a)*c | |
254 | end | |
255 | local function rndRange(rng) | |
256 | return math.random(-rng*1000,rng*1000)/1000 | |
257 | end | |
258 | local magik2 = Instance.new("Part", rarm) | |
259 | local Colors = {"Dark indigo", "Really black"} | |
260 | magik2.Anchored = true | |
261 | magik2.Locked = true | |
262 | magik2.FormFactor = "Custom" | |
263 | magik2.Size = Vector3.new(1.2, 1.2, 1.2) | |
264 | magik2.TopSurface = "Smooth" | |
265 | magik2.BottomSurface = "Smooth" | |
266 | magik2.Transparency = 0 | |
267 | magik2.CanCollide = false | |
268 | magik2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
269 | local mr = math.rad | |
270 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
271 | local cf = rarm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
272 | magik2.CFrame = cf | |
273 | for i = 0, 1, .05 do | |
274 | local newTrans = lerp(0.5, 1, i) | |
275 | local ns = lerp(1,1.2,i) | |
276 | magik2.Transparency = newTrans | |
277 | magik2.Size = Vector3.new(ns,ns,ns) | |
278 | magik2.CFrame = cf | |
279 | rs:wait() | |
280 | end | |
281 | magik2:Destroy() | |
282 | elseif stanceToggle ~= "Melee" then | |
283 | wait() | |
284 | end | |
285 | end) | |
286 | end | |
287 | ---------------------------------------------------- | |
288 | function lerp(a, b, t) -- Linear interpolation | |
289 | return a + (b - a)*t | |
290 | end | |
291 | ||
292 | function slerp(a, b, t) --Spherical interpolation | |
293 | dot = a:Dot(b) | |
294 | if dot > 0.99999 or dot < -0.99999 then | |
295 | return t <= 0.5 and a or b | |
296 | else | |
297 | r = math.acos(dot) | |
298 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
299 | end | |
300 | end | |
301 | ||
302 | function matrixInterpolate(a, b, t) | |
303 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
304 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
305 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
306 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
307 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
308 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
309 | local t = v1:Dot(v2) | |
310 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
311 | return CFrame.new() | |
312 | end | |
313 | return CFrame.new( | |
314 | v0.x, v0.y, v0.z, | |
315 | v1.x, v1.y, v1.z, | |
316 | v2.x, v2.y, v2.z, | |
317 | v3.x, v3.y, v3.z) | |
318 | end | |
319 | ---------------------------------------------------- | |
320 | function genWeld(a,b) | |
321 | local w = Instance.new("Weld",a) | |
322 | w.Part0 = a | |
323 | w.Part1 = b | |
324 | return w | |
325 | end | |
326 | function weld(a, b) | |
327 | local weld = Instance.new("Weld") | |
328 | weld.Name = "W" | |
329 | weld.Part0 = a | |
330 | weld.Part1 = b | |
331 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
332 | weld.Parent = a | |
333 | return weld; | |
334 | end | |
335 | ---------------------------------------------------- | |
336 | function Lerp(c1,c2,al) | |
337 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
338 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
339 | for i,v in pairs(com1) do | |
340 | com1[i] = v+(com2[i]-v)*al | |
341 | end | |
342 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
343 | end | |
344 | ---------------------------------------------------- | |
345 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
346 | local wld = Instance.new("Weld", wp1) | |
347 | wld.Part0 = wp0 | |
348 | wld.Part1 = wp1 | |
349 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
350 | end | |
351 | ---------------------------------------------------- | |
352 | newWeld(torso, larm, -1.5, 0.5, 0) | |
353 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
354 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
355 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
356 | newWeld(torso, hed, 0, 1.5, 0) | |
357 | newWeld(torso, lleg, -0.5, -1, 0) | |
358 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
359 | newWeld(torso, rleg, 0.5, -1, 0) | |
360 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
361 | newWeld(root, torso, 0, -1, 0) | |
362 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
363 | ---------------------------------------------------- | |
364 | --local SIDz = {"167985102, 163752916"}--181449739, 167161785, 148274436, 167985102, 163752916 | |
365 | z = Instance.new("Sound",char) --music | |
366 | z.SoundId = "rbxassetid://0"--..SIDz[math.random(1,#SIDz)] | |
367 | z.Looped = true | |
368 | z.Volume = 1 | |
369 | z.Pitch = .72 | |
370 | wait(1) | |
371 | z:Play() | |
372 | hum.WalkSpeed = 9 | |
373 | lite = Instance.new("PointLight",torso) | |
374 | lite.Brightness = 16 | |
375 | lite.Range = 12 | |
376 | lite.Color = Color3.new(255/255,0,0) | |
377 | ---------------------------------------------------- | |
378 | ||
379 | ---------------------------------------------------- | |
380 | local m = Instance.new("Model") | |
381 | m.Name = "Genkadda" | |
382 | p1 = Instance.new("Part", m) | |
383 | p1.Material = "Metal" | |
384 | p1.BrickColor = BrickColor.new("Really black") | |
385 | p1.Name = "BladePart" | |
386 | p1.FormFactor = Enum.FormFactor.Symmetric | |
387 | p1.Size = Vector3.new(1, 1, 1) | |
388 | p1.CFrame = CFrame.new(103.003883, 10.755723, -7.61905956, 5.61699271e-005, -7.1823597e-006, 0.999998987, -0.984785616, -0.173714966, 3.55839729e-005, 0.173720747, -0.984761655, 5.9530139e-006) | |
389 | p1.CanCollide = false | |
390 | p1.Locked = true | |
391 | p1.Elasticity = 0 | |
392 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
393 | p1.TopSurface = Enum.SurfaceType.Smooth | |
394 | b1 = Instance.new("BlockMesh", p1) | |
395 | b1.Name = "Mesh" | |
396 | b1.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
397 | p2 = Instance.new("Part", m) | |
398 | p2.Material = "Metal" | |
399 | p2.BrickColor = BrickColor.new("Really black") | |
400 | p2.FormFactor = Enum.FormFactor.Symmetric | |
401 | p2.Size = Vector3.new(1, 1, 1) | |
402 | p2.CFrame = CFrame.new(103.00399, 10.7255898, -6.52608919, 0.00135809346, 0.00169118668, -0.999996662, 0.965820193, 0.259168088, 0.0017684648, 0.259154975, -0.965800881, -0.00130418094) | |
403 | p2.CanCollide = false | |
404 | p2.Locked = true | |
405 | p2.Elasticity = 0 | |
406 | p2.BottomSurface = Enum.SurfaceType.Smooth | |
407 | p2.TopSurface = Enum.SurfaceType.Smooth | |
408 | b2 = Instance.new("BlockMesh", p2) | |
409 | b2.Name = "Mesh" | |
410 | b2.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927) | |
411 | p3 = Instance.new("Part", m) | |
412 | p3.Material = "Metal" | |
413 | p3.BrickColor = BrickColor.new("Really black") | |
414 | p3.FormFactor = Enum.FormFactor.Symmetric | |
415 | p3.Size = Vector3.new(1, 2, 1) | |
416 | p3.CFrame = CFrame.new(103.004028, 11.1456547, -6.819067, 1.43263023e-005, -2.88564479e-006, 0.999998987, -0.882936299, -0.469471544, -7.18829688e-006, 0.469469696, -0.882911503, 1.35099981e-005) | |
417 | p3.CanCollide = false | |
418 | p3.Locked = true | |
419 | p3.Elasticity = 0 | |
420 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
421 | p3.TopSurface = Enum.SurfaceType.Smooth | |
422 | b3 = Instance.new("BlockMesh", p3) | |
423 | b3.Name = "Mesh" | |
424 | b3.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927) | |
425 | p4 = Instance.new("Part", m) | |
426 | p4.Material = "Metal" | |
427 | p4.BrickColor = BrickColor.new("Really black") | |
428 | p4.Name = "BladePart" | |
429 | p4.FormFactor = Enum.FormFactor.Symmetric | |
430 | p4.Size = Vector3.new(1, 1, 1) | |
431 | p4.CFrame = CFrame.new(103.003372, 10.965373, -6.66876507, 1.57370523e-005, -6.04354591e-006, 0.999996603, -0.965898931, -0.25886938, -7.14969246e-006, 0.258875549, -0.965874314, 1.58735529e-005) | |
432 | p4.CanCollide = false | |
433 | p4.Locked = true | |
434 | p4.Elasticity = 0 | |
435 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
436 | p4.TopSurface = Enum.SurfaceType.Smooth | |
437 | b4 = Instance.new("BlockMesh", p4) | |
438 | b4.Name = "Mesh" | |
439 | b4.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
440 | p5 = Instance.new("Part", m) | |
441 | p5.Material = "Metal" | |
442 | p5.BrickColor = BrickColor.new("Really black") | |
443 | p5.Name = "Hilt" | |
444 | p5.FormFactor = Enum.FormFactor.Custom | |
445 | p5.Size = Vector3.new(1, 0.400000006, 1.60000014) | |
446 | p5.CFrame = CFrame.new(103.003395, 11.0653381, -6.1687479, -0.99999404, 5.54991711e-005, -0.000617815298, -0.000594727404, -0.000124425016, 0.999983907, 2.66434654e-005, 0.999962509, 0.000109782166) | |
447 | p5.CanCollide = false | |
448 | p5.Locked = true | |
449 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
450 | p5.TopSurface = Enum.SurfaceType.Smooth | |
451 | b5 = Instance.new("BlockMesh", p5) | |
452 | b5.Name = "Mesh" | |
453 | b5.Scale = Vector3.new(0.299999923, 0.399999917, 0.799999952) | |
454 | p6 = Instance.new("Part", m) | |
455 | p6.Material = "Metal" | |
456 | p6.BrickColor = BrickColor.new("Really black") | |
457 | p6.Name = "Handle" | |
458 | p6.FormFactor = Enum.FormFactor.Custom | |
459 | p6.Size = Vector3.new(1.29999995, 1, 1) | |
460 | p6.CFrame = CFrame.new(103.000061, 11.0688219, -5.5480547, -1.23393656e-005, -1.36360759e-005, 0.999994218, 5.37017331e-006, 0.999984086, -9.45257489e-006, -0.999962509, -9.28580994e-006, 1.64470257e-005) | |
461 | p6.CanCollide = false | |
462 | p6.Locked = true | |
463 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
464 | p6.TopSurface = Enum.SurfaceType.Smooth | |
465 | b6 = Instance.new("SpecialMesh", p6) | |
466 | b6.MeshType = Enum.MeshType.Cylinder | |
467 | b6.Name = "Mesh" | |
468 | b6.Scale = Vector3.new(1, 0.200000003, 0.200000003) | |
469 | p7 = Instance.new("Part", m) | |
470 | p7.Material = "Metal" | |
471 | p7.BrickColor = BrickColor.new("Really black") | |
472 | p7.FormFactor = Enum.FormFactor.Symmetric | |
473 | p7.Size = Vector3.new(1, 1, 1) | |
474 | p7.CFrame = CFrame.new(103.000099, 11.0688391, -4.79808855, -0.000332629686, 0.00429873355, -0.99998492, -4.5920292e-006, 0.999974728, 0.00432178052, 0.999962449, -8.49941443e-006, -0.000361445156) | |
475 | p7.CanCollide = false | |
476 | p7.Locked = true | |
477 | b7 = Instance.new("SpecialMesh", p7) | |
478 | b7.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
479 | b7.TextureId = "" | |
480 | b7.MeshType = Enum.MeshType.FileMesh | |
481 | b7.Name = "Mesh" | |
482 | b7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006) | |
483 | p8 = Instance.new("Part", m) | |
484 | p8.Material = "Metal" | |
485 | p8.BrickColor = BrickColor.new("Really black") | |
486 | p8.Name = "BladePart" | |
487 | p8.FormFactor = Enum.FormFactor.Symmetric | |
488 | p8.Size = Vector3.new(1, 1, 1) | |
489 | p8.CFrame = CFrame.new(103.003326, 10.6254845, -8.59870911, -2.92104669e-005, -1.10579058e-005, 0.999994218, -0.996175766, -0.0871899351, -5.3152442e-005, 0.0872026458, -0.996152997, 2.03179661e-005) | |
490 | p8.CanCollide = false | |
491 | p8.Locked = true | |
492 | p8.Elasticity = 0 | |
493 | p8.BottomSurface = Enum.SurfaceType.Smooth | |
494 | p8.TopSurface = Enum.SurfaceType.Smooth | |
495 | b8 = Instance.new("BlockMesh", p8) | |
496 | b8.Name = "Mesh" | |
497 | b8.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
498 | p9 = Instance.new("Part", m) | |
499 | p9.Material = "Metal" | |
500 | p9.BrickColor = BrickColor.new("Really black") | |
501 | p9.Name = "BladePart" | |
502 | p9.FormFactor = Enum.FormFactor.Symmetric | |
503 | p9.Size = Vector3.new(1, 1, 1) | |
504 | p9.CFrame = CFrame.new(103.003311, 10.625597, -9.51878738, -2.59891603e-005, -1.34348729e-005, 0.999994218, -0.996185422, 0.087079078, -4.78096408e-005, -0.0870626047, -0.996165276, 1.31400229e-005) | |
505 | p9.CanCollide = false | |
506 | p9.Locked = true | |
507 | p9.Elasticity = 0 | |
508 | p9.BottomSurface = Enum.SurfaceType.Smooth | |
509 | p9.TopSurface = Enum.SurfaceType.Smooth | |
510 | b9 = Instance.new("BlockMesh", p9) | |
511 | b9.Name = "Mesh" | |
512 | b9.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
513 | p10 = Instance.new("Part", m) | |
514 | p10.Material = "Metal" | |
515 | p10.BrickColor = BrickColor.new("Really black") | |
516 | p10.Name = "BladeTip" | |
517 | p10.FormFactor = Enum.FormFactor.Symmetric | |
518 | p10.Size = Vector3.new(1, 1, 2) | |
519 | p10.CFrame = CFrame.new(103.00309, 11.1081867, -11.6109829, -0.999994099, -0.000455793255, 4.643387e-005, 0.00045133481, -0.965918779, -0.25878337, 0.000134008093, -0.258763671, 0.965901971) | |
520 | p10.CanCollide = false | |
521 | p10.Locked = true | |
522 | p10.Elasticity = 0 | |
523 | p10.BottomSurface = Enum.SurfaceType.Smooth | |
524 | p10.TopSurface = Enum.SurfaceType.Smooth | |
525 | b10 = Instance.new("SpecialMesh", p10) | |
526 | b10.MeshType = Enum.MeshType.Wedge | |
527 | b10.Name = "Mesh" | |
528 | b10.Scale = Vector3.new(0.119999997, 0.299999923, 0.699999928) | |
529 | p11 = Instance.new("Part", m) | |
530 | p11.Material = "Metal" | |
531 | p11.BrickColor = BrickColor.new("Really black") | |
532 | p11.Name = "BladePart" | |
533 | p11.FormFactor = Enum.FormFactor.Symmetric | |
534 | p11.Size = Vector3.new(1, 1, 1) | |
535 | p11.CFrame = CFrame.new(103.003296, 10.7956495, -10.4587727, 2.83485351e-005, -1.54050977e-005, 0.999994218, -0.96592474, 0.258761972, 8.27970416e-006, -0.258742362, -0.965907693, 2.1241216e-005) | |
536 | p11.CanCollide = false | |
537 | p11.Locked = true | |
538 | p11.Elasticity = 0 | |
539 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
540 | p11.TopSurface = Enum.SurfaceType.Smooth | |
541 | b11 = Instance.new("BlockMesh", p11) | |
542 | b11.Name = "Mesh" | |
543 | b11.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
544 | p12 = Instance.new("Part", m) | |
545 | p12.Material = "Metal" | |
546 | p12.BrickColor = BrickColor.new("Really black") | |
547 | p12.Name = "BladeTip2" | |
548 | p12.FormFactor = Enum.FormFactor.Custom | |
549 | p12.Size = Vector3.new(1, 1, 2.4000001) | |
550 | p12.CFrame = CFrame.new(102.999977, 10.6319504, -10.4398403, -0.999994218, -5.5769262e-005, 6.55075928e-005, 4.61044419e-006, 0.882887006, 0.469551951, -0.000112806956, 0.469529003, -0.882874727) | |
551 | p12.CanCollide = false | |
552 | p12.Locked = true | |
553 | p12.Elasticity = 0 | |
554 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
555 | p12.TopSurface = Enum.SurfaceType.Smooth | |
556 | b12 = Instance.new("SpecialMesh", p12) | |
557 | b12.MeshType = Enum.MeshType.Wedge | |
558 | b12.Name = "Mesh" | |
559 | b12.Scale = Vector3.new(0.119999997, 0.239999995, 0.699999928) | |
560 | p13 = Instance.new("Part", m) | |
561 | p13.Material = "Metal" | |
562 | p13.BrickColor = BrickColor.new("Medium stone grey") | |
563 | p13.Transparency = 1 | |
564 | p13.Name = "HitBox" | |
565 | p13.FormFactor = Enum.FormFactor.Custom | |
566 | p13.Size = Vector3.new(6.0999999, 0.400000006, 1.5999999) | |
567 | p13.CFrame = CFrame.new(103.009995, 10.9988394, -9.2679081, 1.22519814e-005, -0.999994218, 1.36361559e-005, -5.27501106e-006, 9.45320426e-006, -0.999984264, 0.999962687, -1.65344682e-005, 9.20891762e-006) | |
568 | p13.CanCollide = false | |
569 | p13.Locked = true | |
570 | p13.BottomSurface = Enum.SurfaceType.Smooth | |
571 | p13.TopSurface = Enum.SurfaceType.Smooth | |
572 | w1 = Instance.new("Weld", p1) | |
573 | w1.Name = "Part_Weld" | |
574 | w1.Part0 = p1 | |
575 | w1.C0 = CFrame.new(11.9124546, -5.63626003, -103.00383, 4.33940659e-005, -0.984795153, 0.173719674, 1.85460614e-009, -0.173719659, -0.984795094, 1, 4.27345876e-005, -7.53657105e-006) | |
576 | w1.Part1 = p2 | |
577 | w1.C1 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159) | |
578 | w2 = Instance.new("Weld", p2) | |
579 | w2.Name = "Part_Weld" | |
580 | w2.Part0 = p2 | |
581 | w2.C0 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159) | |
582 | w2.Part1 = p3 | |
583 | w2.C1 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008) | |
584 | w3 = Instance.new("Weld", p3) | |
585 | w3.Name = "BladePart_Weld" | |
586 | w3.Part0 = p3 | |
587 | w3.C0 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008) | |
588 | w3.Part1 = p4 | |
589 | w3.C1 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006) | |
590 | w4 = Instance.new("Weld", p4) | |
591 | w4.Name = "Hilt_Weld" | |
592 | w4.Part0 = p4 | |
593 | w4.C0 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006) | |
594 | w4.Part1 = p5 | |
595 | w4.C1 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243) | |
596 | w5 = Instance.new("Weld", p5) | |
597 | w5.Name = "Handle_Weld" | |
598 | w5.Part0 = p5 | |
599 | w5.C0 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243) | |
600 | w5.Part1 = p6 | |
601 | w5.C1 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008) | |
602 | w6 = Instance.new("Weld", p6) | |
603 | w6.Name = "Part_Weld" | |
604 | w6.Part0 = p6 | |
605 | w6.C0 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008) | |
606 | w6.Part1 = p7 | |
607 | w6.C1 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335) | |
608 | w7 = Instance.new("Weld", p7) | |
609 | w7.Name = "BladePart_Weld" | |
610 | w7.Part0 = p7 | |
611 | w7.C0 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335) | |
612 | w7.Part1 = p8 | |
613 | w7.C1 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006) | |
614 | w8 = Instance.new("Weld", p8) | |
615 | w8.Name = "BladePart_Weld" | |
616 | w8.Part0 = p8 | |
617 | w8.C0 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006) | |
618 | w8.Part1 = p9 | |
619 | w8.C1 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006) | |
620 | w9 = Instance.new("Weld", p9) | |
621 | w9.Name = "BladeTip_Weld" | |
622 | w9.Part0 = p9 | |
623 | w9.C0 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006) | |
624 | w9.Part1 = p10 | |
625 | w9.C1 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647) | |
626 | w10 = Instance.new("Weld", p10) | |
627 | w10.Name = "BladePart_Weld" | |
628 | w10.Part0 = p10 | |
629 | w10.C0 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647) | |
630 | w10.Part1 = p11 | |
631 | w10.C1 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006) | |
632 | w11 = Instance.new("Weld", p11) | |
633 | w11.Name = "BladeTip2_Weld" | |
634 | w11.Part0 = p11 | |
635 | w11.C0 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006) | |
636 | w11.Part1 = p12 | |
637 | w11.C1 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397) | |
638 | w12 = Instance.new("Weld", p12) | |
639 | w12.Name = "HitBox_Weld" | |
640 | w12.Part0 = p12 | |
641 | w12.C0 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397) | |
642 | w12.Part1 = p13 | |
643 | w12.C1 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008) | |
644 | w13 = Instance.new("Weld", p13) | |
645 | w13.Name = "Weld" | |
646 | w13.Part0 = p13 | |
647 | w13.C0 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008) | |
648 | m.Parent = char | |
649 | m:MakeJoints() | |
650 | ---------------------------------------------------- | |
651 | local cor = Instance.new("Part", char.Genkadda) | |
652 | cor.Name = "Thingy" | |
653 | cor.Locked = true | |
654 | cor.BottomSurface = 0 | |
655 | cor.CanCollide = false | |
656 | cor.Size = Vector3.new(1, 9, 1) | |
657 | cor.Transparency = 1 | |
658 | cor.TopSurface = 0 | |
659 | corw = Instance.new("Weld", cor) | |
660 | corw.Part0 = rarm | |
661 | corw.Part1 = cor | |
662 | corw.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) | |
663 | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
664 | weld1 = Instance.new("Weld", char.Genkadda) | |
665 | weld1.Part0 = cor | |
666 | weld1.Part1 = p6 | |
667 | weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
668 | ---------------------------------------------------- | |
669 | function Vanish() | |
670 | for i = 1, 10 do wait() | |
671 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
672 | if v:IsA("Part") or v:IsA("WedgePart") then | |
673 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
674 | v.Transparency = v.Transparency + 0.1 | |
675 | end | |
676 | end | |
677 | end | |
678 | end | |
679 | end | |
680 | ---------------------------------------------------- | |
681 | function Appear() | |
682 | for i = 1, 10 do wait() | |
683 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
684 | if v:IsA("Part") or v:IsA("WedgePart") then | |
685 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
686 | v.Transparency = v.Transparency - 0.1 | |
687 | end | |
688 | end | |
689 | end | |
690 | end | |
691 | end | |
692 | ---------------------------------------------------- | |
693 | local player = game.Players.LocalPlayer | |
694 | local pchar = player.Character | |
695 | local mouse = player:GetMouse() | |
696 | local cam = workspace.CurrentCamera | |
697 | ||
698 | local rad = math.rad | |
699 | ||
700 | local keysDown = {} | |
701 | local flySpeed = 0 | |
702 | local MAX_FLY_SPEED = 50 | |
703 | ||
704 | local canFly = false | |
705 | local flyToggled = false | |
706 | ||
707 | local forward, side = 0, 0 | |
708 | local lastForward, lastSide = 0, 0 | |
709 | ||
710 | local floatBP = Instance.new("BodyPosition") | |
711 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
712 | local flyBV = Instance.new("BodyVelocity") | |
713 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
714 | local turnBG = Instance.new("BodyGyro") | |
715 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
716 | ||
717 | mouse.KeyDown:connect(function(key) | |
718 | keysDown[key] = true | |
719 | ||
720 | if key == "f" then | |
721 | flyToggled = not flyToggled | |
722 | ||
723 | if not flyToggled then | |
724 | stanceToggle = "Normal" | |
725 | floatBP.Parent = nil | |
726 | flyBV.Parent = nil | |
727 | turnBG.Parent = nil | |
728 | root.Velocity = Vector3.new() | |
729 | pchar.Humanoid.PlatformStand = false | |
730 | end | |
731 | end | |
732 | ||
733 | end) | |
734 | mouse.KeyUp:connect(function(key) | |
735 | keysDown[key] = nil | |
736 | end) | |
737 | ||
738 | local function updateFly() | |
739 | ||
740 | if not flyToggled then return end | |
741 | ||
742 | lastForward = forward | |
743 | lastSide = side | |
744 | ||
745 | forward = 0 | |
746 | side = 0 | |
747 | ||
748 | if keysDown.w then | |
749 | forward = forward + 1 | |
750 | end | |
751 | if keysDown.s then | |
752 | forward = forward - 1 | |
753 | end | |
754 | if keysDown.a then | |
755 | side = side - 1 | |
756 | end | |
757 | if keysDown.d then | |
758 | side = side + 1 | |
759 | end | |
760 | ||
761 | canFly = (forward ~= 0 or side ~= 0) | |
762 | ||
763 | if canFly then | |
764 | stanceToggle = "Floating" | |
765 | turnBG.Parent = root | |
766 | floatBP.Parent = nil | |
767 | flyBV.Parent = root | |
768 | ||
769 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
770 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
771 | else | |
772 | floatBP.position = root.Position | |
773 | floatBP.Parent = root | |
774 | ||
775 | flySpeed = flySpeed - 1 | |
776 | if flySpeed < 0 then flySpeed = 0 end | |
777 | end | |
778 | ||
779 | local camCF = cam.CoordinateFrame | |
780 | local in_forward = canFly and forward or lastForward | |
781 | local in_side = canFly and side or lastSide | |
782 | ||
783 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
784 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
785 | ||
786 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
787 | 0) | |
788 | end | |
789 | ||
790 | game:service'RunService'.RenderStepped:connect(function() | |
791 | if flyToggled then | |
792 | pchar.Humanoid.PlatformStand = true | |
793 | end | |
794 | updateFly() | |
795 | end) | |
796 | ---------------------------------------------------- | |
797 | p13.Touched:connect(function(ht) | |
798 | hit = ht.Parent | |
799 | if ht and hit:IsA("Model") then | |
800 | if hit:FindFirstChild("Humanoid") then | |
801 | if hit.Name ~= p.Name then | |
802 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
803 | Debounces.Slashed = true | |
804 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(20,25)) | |
805 | wait(.3) | |
806 | Debounces.Slashed = false | |
807 | end | |
808 | end | |
809 | end | |
810 | elseif ht and hit:IsA("Hat") then | |
811 | if hit.Parent.Name ~= p.Name then | |
812 | if hit.Parent:FindFirstChild("Humanoid") then | |
813 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
814 | Debounces.Slashed = true | |
815 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(20,25)) | |
816 | wait(.3) | |
817 | Debounces.Slashed = false | |
818 | end | |
819 | end | |
820 | end | |
821 | end | |
822 | end) | |
823 | ---------------------------------------------------- | |
824 | ptz = {0.7, 0.8, 0.9, 1} | |
825 | idz = {"161006212", "161006195"} | |
826 | mouse.KeyDown:connect(function(key) | |
827 | if key == "q" then | |
828 | if Debounces.CanAttack == true then | |
829 | Debounces.CanAttack = false | |
830 | Debounces.NoIdl = true | |
831 | Debounces.on = true | |
832 | for i = 1, 20 do | |
833 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (60),math.rad(70),math.rad(70)), 0.2) | |
834 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad (-40)), 0.2) | |
835 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)), 0.2) | |
836 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(-.4, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2) | |
837 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2) | |
838 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2) | |
839 | if Debounces.on == false then break end | |
840 | rs:wait(2) | |
841 | end | |
842 | z = Instance.new("Sound", hed) | |
843 | z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
844 | z.Pitch = ptz[math.random(1,#ptz)] | |
845 | z.Volume = 1 | |
846 | wait(.01) | |
847 | z:Play() | |
848 | Debounces.Slashing = true | |
849 | for i = 1, 20 do | |
850 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3) | |
851 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3) | |
852 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3) | |
853 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)), 0.3) | |
854 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3) | |
855 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3) | |
856 | if Debounces.on == false then break end | |
857 | rs:wait(2) | |
858 | end | |
859 | z1 = Instance.new("Sound", hed) | |
860 | z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
861 | z1.Pitch = ptz[math.random(1,#ptz)] | |
862 | z1.Volume = 1 | |
863 | wait(.01) | |
864 | z1:Play() | |
865 | Debounces.Slashing = true | |
866 | for i = 1, 26 do | |
867 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (90),math.rad(-40),math.rad(80)), 0.35) | |
868 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (- 70)), 0.35) | |
869 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.35) | |
870 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.35) | |
871 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.35) | |
872 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.35) | |
873 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles (math.rad(0), math.rad(-30), math.rad(0)), 0.35) | |
874 | if Debounces.on == false then break end | |
875 | rs:wait(2) | |
876 | end | |
877 | Debounces.Slashing = false | |
878 | z:Destroy() | |
879 | z1:Destroy() | |
880 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
881 | if Debounces.CanAttack == false then | |
882 | Debounces.CanAttack = true | |
883 | Debounces.NoIdl = false | |
884 | Debounces.on = false | |
885 | end | |
886 | end | |
887 | end | |
888 | end) | |
889 | ------------------------------- | |
890 | pts = {4, 4.2, 4.4, 4.6, 4.8, 5, 5.2, 5.4} | |
891 | mouse.KeyDown:connect(function(key) | |
892 | if key == "e" then | |
893 | if Debounces.CanAttack == true then | |
894 | Debounces.CanAttack = false | |
895 | Debounces.NoIdl = true | |
896 | Debounces.on = true | |
897 | Debounces.ks = true | |
898 | larm.Touched:connect(function(ht) | |
899 | hit = ht.Parent | |
900 | if ht and hit:IsA("Model") then | |
901 | if hit:FindFirstChild("Humanoid") then | |
902 | if hit.Name ~= p.Name then | |
903 | if Debounces.Slapping == true and Debounces.Slapped == false then | |
904 | Debounces.Slapped = true | |
905 | if Debounces.ks==true then | |
906 | z = Instance.new("Sound",hed) | |
907 | z.SoundId = "rbxassetid://169380525" | |
908 | z.Volume = 1 | |
909 | z:Play() | |
910 | z1 = Instance.new("Sound",char) | |
911 | z1.SoundId = "rbxassetid://261010715" | |
912 | z1.Pitch = pts[math.random(1,#pts)] | |
913 | z1.Volume = 1 | |
914 | z2 = Instance.new("Sound",char) | |
915 | z2.SoundId = "rbxassetid://261010715" | |
916 | z2.Pitch = z1.Pitch | |
917 | z2.Volume = 1 | |
918 | z3 = Instance.new("Sound",char) | |
919 | z3.SoundId = "rbxassetid://261010715" | |
920 | z3.Pitch = z1.Pitch | |
921 | z3.Volume = 1 | |
922 | z1:Play() | |
923 | z2:Play() | |
924 | z3:Play() | |
925 | Debounces.ks=false | |
926 | end | |
927 | hit:FindFirstChild("Humanoid"):TakeDamage(10) | |
928 | hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 90 | |
929 | wait(.5) | |
930 | Debounces.Slapped = false | |
931 | z:Destroy() | |
932 | z1:Destroy() | |
933 | z2:Destroy() | |
934 | z3:Destroy() | |
935 | end | |
936 | end | |
937 | end | |
938 | elseif ht and hit:IsA("Hat") then | |
939 | if hit.Parent.Name ~= p.Name then | |
940 | if hit.Parent:FindFirstChild("Humanoid") then | |
941 | if Debounces.Slapping == true and Debounces.Slapped == false then | |
942 | Debounces.Slapped = true | |
943 | if Debounces.ks==true then | |
944 | z = Instance.new("Sound",hed) | |
945 | z.SoundId = "rbxassetid://169380525" | |
946 | z.Volume = 1 | |
947 | z:Play() | |
948 | z1 = Instance.new("Sound",char) | |
949 | z1.SoundId = "rbxassetid://261010715" | |
950 | z1.Pitch = pts[math.random(1,#pts)] | |
951 | z1.Volume = 1 | |
952 | z2 = Instance.new("Sound",char) | |
953 | z2.SoundId = "rbxassetid://261010715" | |
954 | z2.Pitch = z1.Pitch | |
955 | z2.Volume = 1 | |
956 | z3 = Instance.new("Sound",char) | |
957 | z3.SoundId = "rbxassetid://261010715" | |
958 | z3.Pitch = z1.Pitch | |
959 | z3.Volume = 1 | |
960 | z1:Play() | |
961 | z2:Play() | |
962 | z3:Play() | |
963 | Debounces.ks=false | |
964 | end | |
965 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10) | |
966 | wait(.5) | |
967 | Debounces.Slapped = false | |
968 | z:Destroy() | |
969 | z1:Destroy() | |
970 | z2:Destroy() | |
971 | z3:Destroy() | |
972 | end | |
973 | end | |
974 | end | |
975 | end | |
976 | end) | |
977 | for i = 1, 14 do | |
978 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.5, -.3) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.5) | |
979 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.5) | |
980 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5) | |
981 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5) | |
982 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5) | |
983 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5) | |
984 | if Debounces.on==false then break end | |
985 | rs:wait(2) | |
986 | end | |
987 | Debounces.Slapping = true | |
988 | for i = 1, 20 do | |
989 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.7, .3) * CFrame.Angles(math.rad(50), 0, math.rad(-110)), 0.6) | |
990 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.6) | |
991 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.6) | |
992 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.6) | |
993 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6) | |
994 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6) | |
995 | if Debounces.on==false then break end | |
996 | rs:wait(2) | |
997 | end | |
998 | Debounces.Slapping = false | |
999 | if Debounces.CanAttack == false then | |
1000 | Debounces.CanAttack = true | |
1001 | Debounces.NoIdl = false | |
1002 | Debounces.on = false | |
1003 | end | |
1004 | end | |
1005 | end | |
1006 | end) | |
1007 | ------------------------------- | |
1008 | mouse.KeyDown:connect(function(key) | |
1009 | if key == "r" then | |
1010 | if Debounces.CanAttack == true then | |
1011 | Debounces.CanAttack = false | |
1012 | Debounces.NoIdl = true | |
1013 | Debounces.on = true | |
1014 | for i = 1, 20 do | |
1015 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(40)), 0.3) | |
1016 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(-40)), 0.3) | |
1017 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3) | |
1018 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3) | |
1019 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1020 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
1021 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(0), math.rad(0)), 0.35) | |
1022 | if Debounces.on==false then break end | |
1023 | rs:wait(2) | |
1024 | end | |
1025 | Debounces.Slashing = true | |
1026 | z = Instance.new("Sound",hed) | |
1027 | z.SoundId = "rbxassetid://206083107" | |
1028 | z.Pitch = .75 | |
1029 | z.Volume = .65 | |
1030 | wait(0.1) | |
1031 | z:Play() | |
1032 | z1 = Instance.new("Sound", hed) | |
1033 | z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
1034 | z1.Pitch = ptz[math.random(1,#ptz)] | |
1035 | z1.Volume = 1 | |
1036 | wait(.01) | |
1037 | z1:Play() | |
1038 | for i = 1, 20 do | |
1039 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.3) | |
1040 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(-40)), 0.3) | |
1041 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1042 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3) | |
1043 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
1044 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3) | |
1045 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(-20), math.rad(20)), 0.35) | |
1046 | if Debounces.on==false then break end | |
1047 | rs:wait(2) | |
1048 | end | |
1049 | Debounces.Slashing = false | |
1050 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
1051 | if Debounces.CanAttack == false then | |
1052 | Debounces.CanAttack = true | |
1053 | Debounces.NoIdl = false | |
1054 | Debounces.on = false | |
1055 | end | |
1056 | end | |
1057 | end | |
1058 | end) | |
1059 | ------------------------------- | |
1060 | mouse.KeyDown:connect(function(key) | |
1061 | if key == "t" then | |
1062 | if Debounces.CanAttack == true then | |
1063 | Debounces.CanAttack = false | |
1064 | Debounces.on = true | |
1065 | Debounces.NoIdl = true | |
1066 | for i = 1,20 do | |
1067 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2) | |
1068 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2) | |
1069 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(0),0), 0.2) | |
1070 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, .4) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.2) | |
1071 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.2) | |
1072 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.2) | |
1073 | if Debounces.on==false then break end | |
1074 | rs:wait(2) | |
1075 | end | |
1076 | for i = 1,20 do | |
1077 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2) | |
1078 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2) | |
1079 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20),math.rad(0),0), 0.2) | |
1080 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -.4) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2) | |
1081 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.2) | |
1082 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(10)), 0.2) | |
1083 | if Debounces.on==false then break end | |
1084 | rs:wait(2) | |
1085 | end | |
1086 | if Debounces.CanAttack == false then | |
1087 | Debounces.CanAttack = true | |
1088 | Debounces.on = false | |
1089 | Debounces.NoIdl = false | |
1090 | end | |
1091 | end | |
1092 | end | |
1093 | end) | |
1094 | ------------------------------- | |
1095 | mouse.KeyDown:connect(function(key) | |
1096 | if key == "g" then | |
1097 | if Debounces.CanAttack == true then | |
1098 | Debounces.CanAttack = false | |
1099 | Debounces.NoIdl = true | |
1100 | Debounces.on = true | |
1101 | Debounces.Slashing = true | |
1102 | for i = 1, 8 do | |
1103 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-90)), 0.8) | |
1104 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(90)), 0.8) | |
1105 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0), 0.8) | |
1106 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), 0.8) | |
1107 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8) | |
1108 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8) | |
1109 | if Debounces.on==false then break end | |
1110 | rs:wait(2) | |
1111 | end | |
1112 | for i = 1, 1440, 48 do | |
1113 | torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0)) | |
1114 | rs:wait(4) | |
1115 | end | |
1116 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
1117 | Debounces.Slashing = false | |
1118 | if Debounces.CanAttack == false then | |
1119 | Debounces.CanAttack = true | |
1120 | Debounces.NoIdl = false | |
1121 | Debounces.on = false | |
1122 | end | |
1123 | end | |
1124 | end | |
1125 | end) | |
1126 | ---------------------------------------------------- | |
1127 | pt = {6.6, 6.8, 7, 7.2, 7.4} | |
1128 | mouse.KeyDown:connect(function(key) | |
1129 | if key == "h" then | |
1130 | if Debounces.CanJoke == true then | |
1131 | Debounces.CanJoke = false | |
1132 | u = Instance.new("Sound",char) | |
1133 | u.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1134 | u.Pitch = pt[math.random(1,#pt)] | |
1135 | u.Volume = 1 | |
1136 | u2 = Instance.new("Sound",char) | |
1137 | u2.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1138 | u2.Pitch = u.Pitch | |
1139 | u2.Volume = 1 | |
1140 | u3 = Instance.new("Sound",char) | |
1141 | u3.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1142 | u3.Pitch = u.Pitch | |
1143 | u3.Volume = 1 | |
1144 | wait(.01) | |
1145 | u:Play() | |
1146 | u2:Play() | |
1147 | u3:Play() | |
1148 | wait(1.5) | |
1149 | u:Destroy() | |
1150 | u2:Destroy() | |
1151 | u3:Destroy() | |
1152 | if Debounces.CanJoke == false then | |
1153 | Debounces.CanJoke = true | |
1154 | end | |
1155 | end | |
1156 | end | |
1157 | end) | |
1158 | ||
1159 | ------------------------------- | |
1160 | mouse.KeyDown:connect(function(key) | |
1161 | if key == "k" then | |
1162 | if Debounces.CanAttack == true then | |
1163 | Debounces.CanAttack = false | |
1164 | Debounces.NoIdl = true | |
1165 | Debounces.on = true | |
1166 | char.Humanoid.WalkSpeed = .01 | |
1167 | Debounces.on = true | |
1168 | Vanish() | |
1169 | for i = 1, 20 do | |
1170 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-18), 0, math.rad(-20)), 0.3) | |
1171 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(65), 0, math.rad(-40)), 0.3) | |
1172 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.3) | |
1173 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(8), 0, math.rad(10)), 0.3) | |
1174 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(-70), 0), 0.6) | |
1175 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(84), 0), 0.4) | |
1176 | if Debounces.on==false then break end | |
1177 | ||
1178 | wait() | |
1179 | end | |
1180 | wait(1) | |
1181 | x = Instance.new("Sound") | |
1182 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
1183 | x.Parent = char.Head | |
1184 | x.Looped = false | |
1185 | x.Pitch = .88 | |
1186 | x.Volume = 1 | |
1187 | wait(.1) | |
1188 | x:Play() | |
1189 | Debounces.on = false | |
1190 | Debounces.Here = false | |
1191 | shot = shot + 2 | |
1192 | for i = 1, 6 do | |
1193 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-12)), 0.4) | |
1194 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(101)), 0.4) | |
1195 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.4) | |
1196 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(6)), 0.4) | |
1197 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8), math.rad(-84), 0), 0.4) | |
1198 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.4) | |
1199 | wait() | |
1200 | end | |
1201 | local rng = Instance.new("Part", char) | |
1202 | rng.Anchored = true | |
1203 | rng.BrickColor = BrickColor.new("Really black") | |
1204 | rng.CanCollide = false | |
1205 | rng.FormFactor = 3 | |
1206 | rng.Name = "Ring" | |
1207 | rng.Size = Vector3.new(1, 1, 1) | |
1208 | rng.Transparency = 0.35 | |
1209 | rng.TopSurface = 0 | |
1210 | rng.BottomSurface = 0 | |
1211 | local rngm = Instance.new("SpecialMesh", rng) | |
1212 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1213 | rngm.Scale = Vector3.new(10, 10, 1) | |
1214 | local bem = Instance.new("Part", char) | |
1215 | bem.Anchored = true | |
1216 | bem.BrickColor = BrickColor.new("Really black") | |
1217 | bem.CanCollide = false | |
1218 | bem.FormFactor = 3 | |
1219 | bem.Name = "Beam" .. shot | |
1220 | bem.Size = Vector3.new(1, 1, 1) | |
1221 | bem.Transparency = 0.35 | |
1222 | bem.TopSurface = 0 | |
1223 | bem.BottomSurface = 0 | |
1224 | local bemm = Instance.new("SpecialMesh", bem) | |
1225 | bemm.MeshType = 4 | |
1226 | bemm.Scale = Vector3.new(1, 4, 4) | |
1227 | local out = Instance.new("Part", char) | |
1228 | out.Anchored = true | |
1229 | out.BrickColor = BrickColor.new("Really black") | |
1230 | out.CanCollide = false | |
1231 | out.FormFactor = 3 | |
1232 | out.Name = "Out" | |
1233 | out.Size = Vector3.new(1, 1, 1) | |
1234 | out.Transparency = 0.35 | |
1235 | out.TopSurface = 0 | |
1236 | out.BottomSurface = 0 | |
1237 | local outm = Instance.new("SpecialMesh", out) | |
1238 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
1239 | outm.Scale = Vector3.new(2, 2, 2) | |
1240 | local bnd = Instance.new("Part", char) | |
1241 | bnd.Anchored = true | |
1242 | bnd.BrickColor = BrickColor.new("Really black") | |
1243 | bnd.CanCollide = false | |
1244 | bnd.FormFactor = 3 | |
1245 | bnd.Name = "BEnd" | |
1246 | bnd.Size = Vector3.new(1, 1, 1) | |
1247 | bnd.Transparency = 0.35 | |
1248 | bnd.TopSurface = 0 | |
1249 | bnd.BottomSurface = 0 | |
1250 | local bndm = Instance.new("SpecialMesh", bnd) | |
1251 | bndm.MeshType = 3 | |
1252 | bndm.Scale = Vector3.new(4, 4, 4) | |
1253 | out.CFrame = rarm.CFrame * CFrame.new(0, -1.75, 0) | |
1254 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
1255 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
1256 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
1257 | Debounces.Shewt = true | |
1258 | coroutine.wrap(function() | |
1259 | for i = 1, 20, 0.2 do | |
1260 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
1261 | rng.Transparency = i/20 | |
1262 | wait() | |
1263 | end | |
1264 | wait() | |
1265 | rng:Destroy() | |
1266 | end)() | |
1267 | if Debounces.Shewt == true then | |
1268 | char:WaitForChild("Beam" .. shot).Touched:connect(function(ht) --Here | |
1269 | print("Hit") | |
1270 | hit = ht.Parent | |
1271 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
1272 | print("Yes") | |
1273 | if HasntTouched(hit.Name) == true and deb == false then | |
1274 | deb = true | |
1275 | coroutine.wrap(function() | |
1276 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1277 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 140 | |
1278 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(18,63)) | |
1279 | wait(1) | |
1280 | hit:FindFirstChild("Humanoid").PlatformStand = false | |
1281 | end)() | |
1282 | table.insert(Touche, hit.Name) | |
1283 | deb = false | |
1284 | end | |
1285 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
1286 | print("Yes") | |
1287 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
1288 | deb = true | |
1289 | coroutine.wrap(function() | |
1290 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
1291 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 140 | |
1292 | wait(1) | |
1293 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
1294 | end)() | |
1295 | table.insert(Touche, hit.Parent.Name) | |
1296 | deb = false | |
1297 | for i, v in pairs(Touche) do | |
1298 | print(v) | |
1299 | end | |
1300 | end | |
1301 | end | |
1302 | end) | |
1303 | end | |
1304 | for i = 0, 200, 7 do | |
1305 | bem.Size = Vector3.new(i, 1, 1) | |
1306 | bem.CFrame = rarm.CFrame * CFrame.new(0, -2.5 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
1307 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 0) | |
1308 | wait() | |
1309 | end | |
1310 | wait() | |
1311 | Debounces.Shewt = false | |
1312 | bem:Destroy() | |
1313 | out:Destroy() | |
1314 | bnd:Destroy() | |
1315 | char.Humanoid.WalkSpeed = 10 | |
1316 | Debounces.Ready = false | |
1317 | for i, v in pairs(Touche) do | |
1318 | table.remove(Touche, i) | |
1319 | end | |
1320 | wait() | |
1321 | table.insert(Touche, char.Name) | |
1322 | Debounces.NoIdl = false | |
1323 | if Debounces.CanAttack == false then | |
1324 | Debounces.CanAttack = true | |
1325 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
1326 | ||
1327 | ||
1328 | Debounces.on = false | |
1329 | Appear() | |
1330 | end | |
1331 | end | |
1332 | end | |
1333 | end) | |
1334 | ------------------------------- | |
1335 | ||
1336 | ----------------------------------------------------EDIT END | |
1337 | Grab = false | |
1338 | mouse.KeyDown:connect(function(key) | |
1339 | if key == "z" then | |
1340 | Debounces.on = true | |
1341 | Debounces.NoIdl = true | |
1342 | Debounces.ks = true | |
1343 | if Grab == false then | |
1344 | gp = nil | |
1345 | for i = 1, 20 do | |
1346 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
1347 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2) | |
1348 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2) | |
1349 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2) | |
1350 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
1351 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
1352 | if Debounces.on == false then break end | |
1353 | rs:wait(2) | |
1354 | end | |
1355 | con1=larm.Touched:connect(function(hit) -- this is grab | |
1356 | ht = hit.Parent | |
1357 | hum1=ht:FindFirstChild('Humanoid') | |
1358 | if hum1 ~= nil then | |
1359 | if Debounces.ks==true then | |
1360 | z = Instance.new("Sound",hed) | |
1361 | z.SoundId = "rbxassetid://169380525" | |
1362 | z.Volume = 1 | |
1363 | z:Play() | |
1364 | Debounces.ks=false | |
1365 | end | |
1366 | hum1.PlatformStand=true | |
1367 | gp = ht | |
1368 | Grab = true | |
1369 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,1.5),CFrame.new(0,0,0)) | |
1370 | asd.Parent = larm | |
1371 | asd.Name = "asd" | |
1372 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0) | |
1373 | stanceToggle = "Grabbed" | |
1374 | --[[elseif hum1 == nil then | |
1375 | con1:disconnect() | |
1376 | wait() return]]-- | |
1377 | end | |
1378 | end) | |
1379 | for i = 1, 20 do | |
1380 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
1381 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
1382 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),0), 0.2) | |
1383 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-30), 0), 0.2) | |
1384 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
1385 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
1386 | if Debounces.on == false then break end | |
1387 | rs:wait(2) | |
1388 | end | |
1389 | con1:disconnect() | |
1390 | Debounces.on = false | |
1391 | Debounces.NoIdl = false | |
1392 | elseif Grab == true then | |
1393 | Grab = false | |
1394 | --[[for i = 1, 16 do | |
1395 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3) | |
1396 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3) | |
1397 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3) | |
1398 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
1399 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
1400 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
1401 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3) | |
1402 | if Debounces.on == false then end | |
1403 | rs:wait() | |
1404 | end]]-- | |
1405 | for i = 1, 16 do | |
1406 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3) | |
1407 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-50)), 0.3) | |
1408 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3) | |
1409 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3) | |
1410 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3) | |
1411 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
1412 | if Debounces.on == false then end | |
1413 | rs:wait() | |
1414 | end | |
1415 | Slam() | |
1416 | if gp ~= nil then | |
1417 | for i,v in pairs(larm:GetChildren()) do | |
1418 | if v.Name == "asd" and v:IsA("Weld") then | |
1419 | v:Remove() | |
1420 | end | |
1421 | end | |
1422 | for i = 1, 16 do | |
1423 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3) | |
1424 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.4)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.3) | |
1425 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.3) | |
1426 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-60), math.rad(-30), 0), 0.3) | |
1427 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(80), math.rad(30), math.rad(-20)), 0.3) | |
1428 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(70), math.rad(-15), math.rad(20)), 0.3) | |
1429 | if Debounces.on == false then end | |
1430 | rs:wait() | |
1431 | end | |
1432 | stanceToggle = "Normal" | |
1433 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
1434 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
1435 | bv.P = 125000 | |
1436 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
1437 | ht=nil | |
1438 | Debounces.on = false | |
1439 | Debounces.NoIdl = false | |
1440 | elseif ht == nil then wait() | |
1441 | Grab = false | |
1442 | Debounces.on = false | |
1443 | Debounces.NoIdl = false | |
1444 | end | |
1445 | end | |
1446 | end | |
1447 | end) | |
1448 | ------------------------------- | |
1449 | Sit = false | |
1450 | mouse.KeyDown:connect(function(key) | |
1451 | if key == "v" then | |
1452 | if Sit == false then | |
1453 | Sit = true | |
1454 | hum.WalkSpeed = 0.1 | |
1455 | stanceToggle = "Sitting" | |
1456 | elseif Sit == true then | |
1457 | Sit = false | |
1458 | hum.WalkSpeed = 7 | |
1459 | stanceToggle = "Normal" | |
1460 | end | |
1461 | end | |
1462 | end) | |
1463 | ------------------------------- | |
1464 | Melee = false | |
1465 | mouse.KeyDown:connect(function(key) | |
1466 | if key == "m" then | |
1467 | if Melee == false then | |
1468 | Melee = true | |
1469 | Vanish() | |
1470 | stanceToggle = "Melee" | |
1471 | elseif Melee == true then | |
1472 | Melee = false | |
1473 | Appear() | |
1474 | stanceToggle = "Normal" | |
1475 | end | |
1476 | end | |
1477 | end) | |
1478 | ------------------------------- | |
1479 | mouse.KeyDown:connect(function(key) | |
1480 | if string.byte(key) == 52 then | |
1481 | if Debounces.CanAttack == true then | |
1482 | if stanceToggle ~= "Floating" then | |
1483 | char.Humanoid.WalkSpeed = 60 | |
1484 | Burst() | |
1485 | elseif Debounces.CanAttack == false then | |
1486 | elseif stanceToggle == "Floating" then | |
1487 | wait() | |
1488 | end | |
1489 | end | |
1490 | end | |
1491 | end) | |
1492 | mouse.KeyUp:connect(function(key) | |
1493 | if string.byte(key) == 52 then | |
1494 | char.Humanoid.WalkSpeed = 9 | |
1495 | end | |
1496 | end) | |
1497 | ------------------------------- | |
1498 | mouse.KeyDown:connect(function(key) | |
1499 | if key == "t" then | |
1500 | if CanAttack == true then | |
1501 | CanAttack = false | |
1502 | Debounces.NoIdl = true | |
1503 | Debounces.on = true | |
1504 | for i = 1, 20 do | |
1505 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(40), math.rad(0)), 0.6) | |
1506 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, 1, -.5) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(40)), 0.3) | |
1507 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1, 1, -.5) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(-40)), 0.3) | |
1508 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-10)), 0.6) | |
1509 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(10)), 0.6) | |
1510 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.6) | |
1511 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2) | |
1512 | if Debounces.on == false then | |
1513 | break | |
1514 | end | |
1515 | wait() | |
1516 | end | |
1517 | wait() | |
1518 | z = Instance.new("Sound") | |
1519 | z.SoundId = "http://www.roblox.com/asset/?id=159218913" | |
1520 | z.Parent = char.Head | |
1521 | z.Looped = false | |
1522 | z.Pitch = 1 | |
1523 | z.Volume = 1 | |
1524 | wait(.01) | |
1525 | z:Play() | |
1526 | Debounces.Slashing = true | |
1527 | for i = 1, 20 do | |
1528 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(40), math.rad(0)), 0.6) | |
1529 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, .5, -.5) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(40)), 0.6) | |
1530 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1, .5, -.5) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-40)), 0.6) | |
1531 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.5, -.5) * CFrame.Angles(math.rad(-90), 0, math.rad(0)), 0.6) | |
1532 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6) | |
1533 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.6) | |
1534 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.6) | |
1535 | wait() | |
1536 | if Debounces.on == false then | |
1537 | break | |
1538 | end | |
1539 | wait() | |
1540 | end | |
1541 | Debounces.Slashing = false | |
1542 | Debounces.NoIdl = false | |
1543 | wait() | |
1544 | if CanAttack == false then | |
1545 | CanAttack = true | |
1546 | end | |
1547 | end | |
1548 | end | |
1549 | end) | |
1550 | -------------------------------- | |
1551 | mouse.KeyDown:connect(function(key) | |
1552 | if key == "y" then | |
1553 | if CanAttack == true then | |
1554 | CanAttack = false | |
1555 | Debounces.NoIdl = true | |
1556 | Debounces.on = true | |
1557 | for i = 1, 20 do | |
1558 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.2) | |
1559 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.2) | |
1560 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2) | |
1561 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2) | |
1562 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-26), math.rad(0), 0), 0.2) | |
1563 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
1564 | if Debounces.on == false then | |
1565 | break | |
1566 | end | |
1567 | wait() | |
1568 | end | |
1569 | wait() | |
1570 | if Daytime == true then | |
1571 | Daytime = false | |
1572 | l.TimeOfDay = 24 | |
1573 | else | |
1574 | Daytime = true | |
1575 | l.TimeOfDay = 12 | |
1576 | l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039) | |
1577 | end | |
1578 | char.Humanoid.MaxHealth = math.huge | |
1579 | c = Instance.new("Sound") | |
1580 | c.SoundId = "http://www.roblox.com/asset/?id=152758283" | |
1581 | c.Parent = m | |
1582 | c.Looped = false | |
1583 | if Daytime == true then | |
1584 | c.Pitch = -1 | |
1585 | elseif Daytime == false then | |
1586 | c.Pitch = 1.12 | |
1587 | end | |
1588 | c.Volume = 1 | |
1589 | wait(.01) | |
1590 | c:Play() | |
1591 | local Shockwave = function() | |
1592 | local Wave = Instance.new("Part", game.Workspace--[[?]]) | |
1593 | Wave.Name = "Shockwave" | |
1594 | Wave.BrickColor = BrickColor.new("Really black") | |
1595 | Wave.Size = Vector3.new(1, 1, 1) | |
1596 | Wave.Shape = "Ball" | |
1597 | Wave.CanCollide = false | |
1598 | Wave.Anchored = true | |
1599 | Wave.TopSurface = 0 | |
1600 | Wave.BottomSurface = 0 | |
1601 | Wave.Touched:connect(function(hit) | |
1602 | print(hit.Name) | |
1603 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then | |
1604 | if hit.Parent.Name ~= char.Name then | |
1605 | print("Damaged " .. hit.Parent.Name) | |
1606 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1 | |
1607 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 | |
1608 | end | |
1609 | end | |
1610 | end) | |
1611 | ||
1612 | Instance.new("SpecialMesh", Wave).MeshType = "Sphere" | |
1613 | ||
1614 | Delay(0, function() | |
1615 | -- | |
1616 | -- Okay. | |
1617 | if Daytime == false then | |
1618 | for i = 1, 38, 1 do | |
1619 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
1620 | Wave.CFrame = char.Torso.CFrame | |
1621 | local t = i / 38 | |
1622 | Wave.Transparency = t | |
1623 | wait() | |
1624 | end | |
1625 | else | |
1626 | for i = 38, 1, -1 do | |
1627 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
1628 | Wave.CFrame = char.Torso.CFrame | |
1629 | local t = i / 38 | |
1630 | Wave.Transparency = t | |
1631 | wait() | |
1632 | end | |
1633 | end | |
1634 | Wave:Destroy() | |
1635 | end) | |
1636 | Delay(0, function() | |
1637 | while wait() do | |
1638 | if Wave ~= nil then | |
1639 | Wave.CFrame = char.Torso.CFrame | |
1640 | else | |
1641 | break | |
1642 | end | |
1643 | end | |
1644 | end) | |
1645 | end | |
1646 | ||
1647 | Shockwave() | |
1648 | ||
1649 | for i = 1, 20 do | |
1650 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .5, 0) * CFrame.Angles(math.rad(120), 0, math.rad(-100)), 0.6) | |
1651 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, .5, 0) * CFrame.Angles(math.rad(120), 0, math.rad(100)), 0.6) | |
1652 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-20)), 0.6) | |
1653 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(20)), 0.6) | |
1654 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(35), math.rad(0), 0), 0.6) | |
1655 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.6) | |
1656 | wait() | |
1657 | if Debounces.on == false then | |
1658 | break | |
1659 | end | |
1660 | wait() | |
1661 | end | |
1662 | wait(2) | |
1663 | Debounces.NoIdl = false | |
1664 | if CanAttack == false then | |
1665 | CanAttack = true | |
1666 | wait() | |
1667 | end | |
1668 | end -- for the canattack thing | |
1669 | end | |
1670 | end) | |
1671 | ------------------------------- | |
1672 | local animpose = "Idle" | |
1673 | local lastanimpose = "Idle" | |
1674 | local grab = false | |
1675 | local sine = 0 | |
1676 | local change = 1 | |
1677 | local val = 0 | |
1678 | local ffing = false | |
1679 | ------------------------------- | |
1680 | --[[if stanceToggle == "Sitting" then | |
1681 | if wait(math.random(1,2)) == 1 then | |
1682 | stanceToggle = "Sitting2" | |
1683 | wait(8) | |
1684 | stanceToggle = "Sitting" | |
1685 | end | |
1686 | end]]-- | |
1687 | ------------------------------- | |
1688 | game:GetService("RunService").RenderStepped:connect(function() | |
1689 | --[[if char.Humanoid.Jump == true then | |
1690 | jump = true | |
1691 | else | |
1692 | jump = false | |
1693 | end]] | |
1694 | char.Humanoid.FreeFalling:connect(function(f) | |
1695 | if f then | |
1696 | ffing = true | |
1697 | else | |
1698 | ffing = false | |
1699 | end | |
1700 | end) | |
1701 | sine = sine + change | |
1702 | if jumpn == true then | |
1703 | animpose = "Jumping" | |
1704 | elseif ffing == true then | |
1705 | animpose = "Freefalling" | |
1706 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
1707 | animpose = "Idle" | |
1708 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
1709 | animpose = "Walking" | |
1710 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
1711 | animpose = "Running" | |
1712 | end | |
1713 | if animpose ~= lastanimpose then | |
1714 | sine = 0 | |
1715 | if Debounces.NoIdl == false then | |
1716 | if stanceToggle == "Normal" then | |
1717 | for i = 1, 2 do | |
1718 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40)), 0.2) | |
1719 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20)), 0.2) | |
1720 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.2) | |
1721 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) | |
1722 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
1723 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2) | |
1724 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1725 | end | |
1726 | elseif stanceToggle == "Sitting" then | |
1727 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/30),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20+2*math.cos(sine/30))), 0.2) | |
1728 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6) | |
1729 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
1730 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-20), math.sin(sine/60)/3, 0), 0.3) | |
1731 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3) | |
1732 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3) | |
1733 | elseif stanceToggle == "Floating" then | |
1734 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
1735 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
1736 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
1737 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
1738 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
1739 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
1740 | wait() | |
1741 | end | |
1742 | else | |
1743 | end | |
1744 | end | |
1745 | lastanimpose = animpose | |
1746 | if Debounces.NoIdl == false then | |
1747 | if animpose == "Idle" then | |
1748 | if stanceToggle == "Normal" then | |
1749 | change = 0.5 | |
1750 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
1751 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2) | |
1752 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(50),0), 0.2) | |
1753 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) | |
1754 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
1755 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2) | |
1756 | elseif stanceToggle == "Melee" then | |
1757 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20+2*math.cos(sine/14))), 0.2) | |
1758 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2) | |
1759 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
1760 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1761 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1762 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1763 | elseif stanceToggle == "Sitting" then | |
1764 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20)), 0.2) | |
1765 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6) | |
1766 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
1767 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5-0.06*math.cos(sine/25), -.2) * CFrame.Angles(math.rad(0-20*math.cos(sine/25)/2), math.sin(sine/50)/2.4, 0), 0.3) | |
1768 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3) | |
1769 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3) | |
1770 | elseif stanceToggle == "Floating" then | |
1771 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
1772 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
1773 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
1774 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
1775 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
1776 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
1777 | elseif stanceToggle == "Grabbed" then | |
1778 | grab = true | |
1779 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
1780 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(130+4*math.cos(sine/14)),math.rad(0),math.rad(-60+4*math.cos(sine/14))), 0.3) | |
1781 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) | |
1782 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
1783 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
1784 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
1785 | end | |
1786 | elseif animpose == "Walking" then | |
1787 | if stanceToggle == "Normal" then | |
1788 | change = 1 | |
1789 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
1790 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6, -math.sin(sine/8)/2.8)*CFrame.Angles(math.sin(sine/8)/4, -math.sin(sine/8)/2, math.rad(-10)), 0.2) | |
1791 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
1792 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
1793 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
1794 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
1795 | elseif stanceToggle == "Melee" then | |
1796 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/4), math.sin(sine/8)/4) * CFrame.Angles(-math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(10+2*math.cos(sine/4))), 0.2) | |
1797 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/4), -math.sin(sine/8)/4)*CFrame.Angles(math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(-10-2*math.cos(sine/4))), 0.2) | |
1798 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
1799 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.07*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+1*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
1800 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
1801 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
1802 | elseif stanceToggle == "Floating" then | |
1803 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
1804 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
1805 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4) | |
1806 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4) | |
1807 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4) | |
1808 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.2*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
1809 | elseif stanceToggle == "Grabbed" then | |
1810 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
1811 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-30)), 0.3) | |
1812 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
1813 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
1814 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
1815 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
1816 | end | |
1817 | elseif animpose == "Running" then | |
1818 | if stanceToggle == "Normal" then | |
1819 | change = 1 | |
1820 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles (math.rad(44), math.rad (0), math.rad(0)), 0.15) | |
1821 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.1*math.cos(sine/14), -1) * CFrame.Angles(math.rad(- 80), math.rad(0), 0), 0.15) | |
1822 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad (0), math.rad(50), math.rad(-40)), 0.15) | |
1823 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(40)), 0.15) | |
1824 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(- 10)), .15) | |
1825 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(10)), .15) | |
1826 | elseif stanceToggle == "Floating" then | |
1827 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
1828 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
1829 | hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0) | |
1830 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(-8)), 0.4) | |
1831 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(8)), 0.4) | |
1832 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), -.2) * CFrame.Angles(math.rad(-15),0, math.rad(0)), 0.05) | |
1833 | end | |
1834 | end | |
1835 | end | |
1836 | end) | |
1837 | ||
1838 | Spawn(function() | |
1839 | while wait() do | |
1840 | updateFly() | |
1841 | end | |
1842 | end) | |
1843 | ||
1844 | Spawn(function() | |
1845 | while wait(.1) do | |
1846 | Magik() | |
1847 | end | |
1848 | end) | |
1849 | ||
1850 | Spawn(function() | |
1851 | while wait(.1) do | |
1852 | Magik2() | |
1853 | end | |
1854 | end) | |
1855 | ||
1856 | Spawn(function() | |
1857 | while wait(4) do | |
1858 | GroundWave() | |
1859 | end | |
1860 | end)--/e l/game.Players.vampire100:Destroy() |