SHOW:
|
|
- or go back to the newest paste.
1 | - | --Ok go abuse this. I dare you. Anyways enjoy little brats. |
1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use r/ and not rl/") end |
2 | local Player,game,owner = owner,game | |
3 | - | --[[ |
3 | + | local RealPlayer = Player |
4 | - | User: TheDarkRevenant |
4 | + | do |
5 | - | Script: DSSJ3 |
5 | + | print("FE Compatibility code by Mokiros") |
6 | - | Pass: CENSORED |
6 | + | local rp = RealPlayer |
7 | script.Parent = rp.Character | |
8 | - | ]] |
8 | + | |
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | ||
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | local p = game.Players.LocalPlayer | |
145 | local char = p.Character | |
146 | local mouse = p:GetMouse() | |
147 | local larm = char["Left Arm"] | |
148 | local rarm = char["Right Arm"] | |
149 | local lleg = char["Left Leg"] | |
150 | local rleg = char["Right Leg"] | |
151 | local hed = char.Head | |
152 | local torso = char.Torso | |
153 | local hum = char.Humanoid | |
154 | local cam = game.Workspace.CurrentCamera | |
155 | local root = char.HumanoidRootPart | |
156 | local deb = false | |
157 | local shot = 0 | |
158 | local debris=game:service"Debris" | |
159 | local l = game:GetService("Lighting") | |
160 | local rs = game:GetService("RunService").RenderStepped | |
161 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
162 | math.randomseed(os.time()) | |
163 | for i,v in pairs(char:children()) do | |
164 | if v:IsA("Hat") then | |
165 | v:Destroy() | |
166 | end | |
167 | end | |
168 | for i,v in pairs (hed:GetChildren()) do | |
169 | if v:IsA("Sound") then | |
170 | v:Destroy() | |
171 | end | |
172 | end | |
173 | ---------------------------------------------------- | |
174 | Debounces = { | |
175 | CanAttack = true; | |
176 | NoIdl = false; | |
177 | Slashing = false; | |
178 | Slashed = false; | |
179 | RPunch = false; | |
180 | RPunched = false; | |
181 | LPunch = false; | |
182 | LPunched = false; | |
183 | } | |
184 | local Touche = {char.Name, } | |
185 | ---------------------------------------------------- | |
186 | hed.face.Texture = "rbxassetid://715616935" | |
187 | char["Body Colors"].HeadColor = BrickColor.new("Pastel brown") | |
188 | char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown") | |
189 | char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown") | |
190 | char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown") | |
191 | ---------------------------------------------------- | |
192 | ypcall(function() | |
193 | char.Shirt:Destroy() | |
194 | char.Pants:Destroy() | |
195 | shirt = Instance.new("Shirt", char) | |
196 | shirt.Name = "Shirt" | |
197 | pants = Instance.new("Pants", char) | |
198 | pants.Name = "Pants" | |
199 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=684636164" | |
200 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0" | |
201 | end) | |
202 | ---------------------------------------------------- | |
203 | function lerp(a, b, t) -- Linear interpolation | |
204 | return a + (b - a)*t | |
205 | end | |
206 | ||
207 | function slerp(a, b, t) --Spherical interpolation | |
208 | dot = a:Dot(b) | |
209 | if dot > 0.99999 or dot < -0.99999 then | |
210 | return t <= 0.5 and a or b | |
211 | else | |
212 | r = math.acos(dot) | |
213 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
214 | end | |
215 | end | |
216 | ||
217 | function matrixInterpolate(a, b, t) | |
218 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
219 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
220 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
221 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
222 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
223 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
224 | local t = v1:Dot(v2) | |
225 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
226 | return CFrame.new() | |
227 | end | |
228 | return CFrame.new( | |
229 | v0.x, v0.y, v0.z, | |
230 | v1.x, v1.y, v1.z, | |
231 | v2.x, v2.y, v2.z, | |
232 | v3.x, v3.y, v3.z) | |
233 | end | |
234 | ---------------------------------------------------- | |
235 | function genWeld(a,b) | |
236 | local w = Instance.new("Weld",a) | |
237 | w.Part0 = a | |
238 | w.Part1 = b | |
239 | return w | |
240 | end | |
241 | function weld(a, b) | |
242 | local weld = Instance.new("Weld") | |
243 | weld.Name = "W" | |
244 | weld.Part0 = a | |
245 | weld.Part1 = b | |
246 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
247 | weld.Parent = a | |
248 | return weld; | |
249 | end | |
250 | ---------------------------------------------------- | |
251 | function Lerp(c1,c2,al) | |
252 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
253 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
254 | for i,v in pairs(com1) do | |
255 | com1[i] = v+(com2[i]-v)*al | |
256 | end | |
257 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
258 | end | |
259 | ---------------------------------------------------- | |
260 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
261 | local wld = Instance.new("Weld", wp1) | |
262 | wld.Part0 = wp0 | |
263 | wld.Part1 = wp1 | |
264 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
265 | end | |
266 | ---------------------------------------------------- | |
267 | function weld5(part0, part1, c0, c1) | |
268 | weeld=Instance.new("Weld", part0) | |
269 | weeld.Part0=part0 | |
270 | weeld.Part1=part1 | |
271 | weeld.C0=c0 | |
272 | weeld.C1=c1 | |
273 | return weeld | |
274 | end | |
275 | ---------------------------------------------------- | |
276 | function HasntTouched(plrname) | |
277 | local ret = true | |
278 | for _, v in pairs(Touche) do | |
279 | if v == plrname then | |
280 | ret = false | |
281 | end | |
282 | end | |
283 | return ret | |
284 | end | |
285 | ---------------------------------------------------- | |
286 | newWeld(torso, larm, -1.5, 0.5, 0) | |
287 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
288 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
289 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
290 | newWeld(torso, hed, 0, 1.5, 0) | |
291 | newWeld(torso, lleg, -0.5, -1, 0) | |
292 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
293 | newWeld(torso, rleg, 0.5, -1, 0) | |
294 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
295 | newWeld(root, torso, 0, -1, 0) | |
296 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
297 | ---------------------------------------------------- | |
298 | z = Instance.new("Sound", char) | |
299 | z.SoundId = "rbxassetid://336694379"--336694379 | |
300 | z.Looped = true | |
301 | z.Pitch = 1 | |
302 | z.Volume = 1 | |
303 | wait(.1) | |
304 | z:Play() | |
305 | ---------------------------------------------------- | |
306 | local Transforming = true | |
307 | hum.WalkSpeed = 0 | |
308 | local fx = Instance.new("Part",torso) | |
309 | fx.Anchored = true | |
310 | fx.Material = "Neon" | |
311 | fx.CanCollide = false | |
312 | fx.Locked = true | |
313 | fx.Transparency = 1 | |
314 | fx.Material = "Neon" | |
315 | fx.Size = Vector3.new(1,1,1) | |
316 | fx.TopSurface = "SmoothNoOutlines" | |
317 | fx.BottomSurface = "SmoothNoOutlines" | |
318 | fx.BrickColor = BrickColor.new("New Yeller") | |
319 | fxm = Instance.new("SpecialMesh",fx) | |
320 | fxm.MeshType = "Sphere" | |
321 | fxm.Scale = Vector3.new(1,1,1) | |
322 | for i = 1, 20 do rs:wait() | |
323 | fx.Transparency = fx.Transparency - (1/20) | |
324 | fx.CFrame = torso.CFrame | |
325 | fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) | |
326 | rs:wait() | |
327 | end | |
328 | ---------------------------------------------------- | |
329 | local m = Instance.new("Model") | |
330 | m.Name = "Hair" | |
331 | p1 = Instance.new("Part", m) | |
332 | p1.BrickColor = BrickColor.new("Dirt Brown") | |
333 | p1.FormFactor = Enum.FormFactor.Symmetric | |
334 | p1.Size = Vector3.new(1, 1, 1) | |
335 | p1.CFrame = CFrame.new(-2.49043155, 8.24595642, -3.40113306, -5.48362732e-006, -0.978699088, 0.205299795, 3.27825546e-007, -0.205299854, -0.978699148, 1, -5.28991222e-006, 1.48639083e-006) | |
336 | p1.CanCollide = false | |
337 | p1.Locked = true | |
338 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
339 | p1.TopSurface = Enum.SurfaceType.Smooth | |
340 | b1 = Instance.new("SpecialMesh", p1) | |
341 | b1.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
342 | b1.TextureId = "" | |
343 | b1.MeshType = Enum.MeshType.FileMesh | |
344 | b1.Name = "Mesh" | |
345 | b1.VertexColor = Vector3.new(0, 0, 0) | |
346 | b1.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
347 | p2 = Instance.new("Part", m) | |
348 | p2.BrickColor = BrickColor.new("Pastel brown") | |
349 | p2.Transparency = 1 | |
350 | p2.Name = "Head" | |
351 | p2.FormFactor = Enum.FormFactor.Symmetric | |
352 | p2.Size = Vector3.new(2, 1, 1) | |
353 | p2.CFrame = CFrame.new(-1.70008016, 8.14794922, -3.40013027, 4.24603923e-006, 7.4505806e-008, -1, -1.50268988e-007, 1, 1.49011612e-008, 1.00000012, 6.79109462e-008, 4.23316806e-006) | |
354 | p2.CanCollide = false | |
355 | p2.Locked = true | |
356 | p2.TopSurface = Enum.SurfaceType.Smooth | |
357 | b2 = Instance.new("SpecialMesh", p2) | |
358 | b2.MeshType = Enum.MeshType.Head | |
359 | b2.Name = "Mesh" | |
360 | b2.Scale = Vector3.new(1.25, 1.25, 1.25) | |
361 | p3 = Instance.new("Part", m) | |
362 | p3.BrickColor = BrickColor.new("Dirt Brown") | |
363 | p3.FormFactor = Enum.FormFactor.Symmetric | |
364 | p3.Size = Vector3.new(2, 2, 2) | |
365 | p3.CFrame = CFrame.new(-1.70003617, 8.71796131, -3.4000442, 2.57710985e-006, 6.95607483e-008, -1.00000012, -1.20466638e-007, 1, 9.95640903e-009, 1.00000024, 3.81086345e-008, 2.56423846e-006) | |
366 | p3.CanCollide = false | |
367 | p3.Locked = true | |
368 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
369 | p3.TopSurface = Enum.SurfaceType.Smooth | |
370 | b3 = Instance.new("SpecialMesh", p3) | |
371 | b3.MeshId = "http://www.roblox.com/asset/?id=16627529" | |
372 | b3.TextureId = "" | |
373 | b3.MeshType = Enum.MeshType.FileMesh | |
374 | b3.Name = "Mesh" | |
375 | b3.VertexColor = Vector3.new(0, 0, 0) | |
376 | b3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995) | |
377 | p4 = Instance.new("Part", m) | |
378 | p4.BrickColor = BrickColor.new("New Yeller") | |
379 | p4.FormFactor = Enum.FormFactor.Symmetric | |
380 | p4.Size = Vector3.new(1, 1, 1) | |
381 | p4.CFrame = CFrame.new(-1.77981007, 8.84795475, -3.40016508, 5.79576135e-006, 7.9450956e-008, -1.00000012, -1.80071311e-007, 1, 1.98458743e-008, 1.00000024, 9.77132402e-008, 5.78289018e-006) | |
382 | p4.CanCollide = false | |
383 | p4.Locked = true | |
384 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
385 | p4.TopSurface = Enum.SurfaceType.Smooth | |
386 | b4 = Instance.new("SpecialMesh", p4) | |
387 | b4.MeshId = "http://www.roblox.com/asset/?id=19326912" | |
388 | b4.TextureId = "" | |
389 | b4.MeshType = Enum.MeshType.FileMesh | |
390 | b4.Name = "Mesh" | |
391 | b4.VertexColor = Vector3.new(0, 0, 0) | |
392 | p5 = Instance.new("Part", m) | |
393 | p5.BrickColor = BrickColor.new("Dirt Brown") | |
394 | p5.FormFactor = Enum.FormFactor.Symmetric | |
395 | p5.Size = Vector3.new(1, 1, 1) | |
396 | p5.CFrame = CFrame.new(-1.70003772, 8.46796131, -3.40004301, -3.43517968e-007, 2.98088111e-007, -1, -1.00421907e-007, 1, 2.38484063e-007, 1.00000012, 1.80640072e-008, -3.56389592e-007) | |
397 | p5.CanCollide = false | |
398 | p5.Locked = true | |
399 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
400 | p5.TopSurface = Enum.SurfaceType.Smooth | |
401 | b5 = Instance.new("SpecialMesh", p5) | |
402 | b5.MeshId = "http://www.roblox.com/asset/?id=45916884" | |
403 | b5.TextureId = "" | |
404 | b5.MeshType = Enum.MeshType.FileMesh | |
405 | b5.Name = "Mesh" | |
406 | b5.VertexColor = Vector3.new(0, 0, 0) | |
407 | b5.Scale = Vector3.new(1, 0.899999976, 1) | |
408 | p6 = Instance.new("Part", m) | |
409 | p6.BrickColor = BrickColor.new("Dirt Brown") | |
410 | p6.FormFactor = Enum.FormFactor.Symmetric | |
411 | p6.Size = Vector3.new(1, 1, 1) | |
412 | p6.CFrame = CFrame.new(-1.89967656, 8.58795834, -3.44990659, -5.81936433e-007, 5.36502284e-007, -0.99999994, -1.3998249e-007, 1, 4.76898265e-007, 1, 5.76247672e-008, -5.94808171e-007) | |
413 | p6.CanCollide = false | |
414 | p6.Locked = true | |
415 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
416 | p6.TopSurface = Enum.SurfaceType.Smooth | |
417 | b6 = Instance.new("SpecialMesh", p6) | |
418 | b6.MeshId = "http://www.roblox.com/asset/?id=62246019" | |
419 | b6.TextureId = "" | |
420 | b6.MeshType = Enum.MeshType.FileMesh | |
421 | b6.Name = "Mesh" | |
422 | b6.VertexColor = Vector3.new(0, 0, 0) | |
423 | p7 = Instance.new("Part", m) | |
424 | p7.BrickColor = BrickColor.new("Dirt Brown") | |
425 | p7.FormFactor = Enum.FormFactor.Symmetric | |
426 | p7.Size = Vector3.new(1, 1, 1) | |
427 | p7.CFrame = CFrame.new(-1.89918542, 8.31796837, -3.50097537, -4.62727087e-007, 5.36502228e-007, -0.999999881, -1.39982518e-007, 1, 4.76898208e-007, 0.99999994, 5.76247459e-008, -4.75598938e-007) | |
428 | p7.CanCollide = false | |
429 | p7.Locked = true | |
430 | p7.BottomSurface = Enum.SurfaceType.Smooth | |
431 | p7.TopSurface = Enum.SurfaceType.Smooth | |
432 | b7 = Instance.new("SpecialMesh", p7) | |
433 | b7.MeshId = "http://www.roblox.com/asset/?id=76056263" | |
434 | b7.TextureId = "" | |
435 | b7.MeshType = Enum.MeshType.FileMesh | |
436 | b7.Name = "Mesh" | |
437 | b7.VertexColor = Vector3.new(0, 0, 0) | |
438 | p8 = Instance.new("Part", m) | |
439 | p8.BrickColor = BrickColor.new("Dirt Brown") | |
440 | p8.FormFactor = Enum.FormFactor.Symmetric | |
441 | p8.Size = Vector3.new(1, 1, 1) | |
442 | p8.CFrame = CFrame.new(-2.62433338, 7.66397905, -3.4010179, -1.17798254e-006, -0.805111349, 0.593123376, -2.5008859e-007, -0.593123615, -0.805111527, 0.999999881, -9.58229293e-007, 4.4941558e-007) | |
443 | p8.CanCollide = false | |
444 | p8.Locked = true | |
445 | p8.BottomSurface = Enum.SurfaceType.Smooth | |
446 | p8.TopSurface = Enum.SurfaceType.Smooth | |
447 | b8 = Instance.new("SpecialMesh", p8) | |
448 | b8.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
449 | b8.TextureId = "" | |
450 | b8.MeshType = Enum.MeshType.FileMesh | |
451 | b8.Name = "Mesh" | |
452 | b8.VertexColor = Vector3.new(0, 0, 0) | |
453 | b8.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
454 | p9 = Instance.new("Part", m) | |
455 | p9.BrickColor = BrickColor.new("Dirt Brown") | |
456 | p9.FormFactor = Enum.FormFactor.Symmetric | |
457 | p9.Size = Vector3.new(2, 1, 2) | |
458 | p9.CFrame = CFrame.new(-1.76505995, 8.56096649, -3.40065479, -9.73168881e-007, -0.0995008349, -0.995037436, -1.70322267e-007, 0.995037675, -0.0995009243, 1, 1.13823972e-007, -6.80968242e-007) | |
459 | p9.CanCollide = false | |
460 | p9.Locked = true | |
461 | p9.BottomSurface = Enum.SurfaceType.Smooth | |
462 | p9.TopSurface = Enum.SurfaceType.Smooth | |
463 | b9 = Instance.new("SpecialMesh", p9) | |
464 | b9.MeshId = "http://www.roblox.com/asset/?id=12259089" | |
465 | b9.TextureId = "" | |
466 | b9.MeshType = Enum.MeshType.FileMesh | |
467 | b9.Name = "Mesh" | |
468 | b9.VertexColor = Vector3.new(0, 0, 0) | |
469 | b9.Scale = Vector3.new(1.01999998, 1.04999995, 1.04999995) | |
470 | p10 = Instance.new("Part", m) | |
471 | p10.BrickColor = BrickColor.new("Dirt Brown") | |
472 | p10.FormFactor = Enum.FormFactor.Symmetric | |
473 | p10.Size = Vector3.new(1, 1, 1) | |
474 | p10.CFrame = CFrame.new(-2.0207715, 9.06097031, -3.39961624, -1.10652763e-006, -0.683569431, -0.729885519, -2.85231891e-007, 0.729885638, -0.68356967, 1.00000012, -3.22293062e-007, -8.40051371e-007) | |
475 | p10.CanCollide = false | |
476 | p10.Locked = true | |
477 | p10.BottomSurface = Enum.SurfaceType.Smooth | |
478 | p10.TopSurface = Enum.SurfaceType.Smooth | |
479 | b10 = Instance.new("SpecialMesh", p10) | |
480 | b10.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
481 | b10.TextureId = "" | |
482 | b10.MeshType = Enum.MeshType.FileMesh | |
483 | b10.Name = "Mesh" | |
484 | b10.VertexColor = Vector3.new(0, 0, 0) | |
485 | b10.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
486 | p11 = Instance.new("Part", m) | |
487 | p11.BrickColor = BrickColor.new("Dirt Brown") | |
488 | p11.FormFactor = Enum.FormFactor.Symmetric | |
489 | p11.Size = Vector3.new(1, 1, 1) | |
490 | p11.CFrame = CFrame.new(-2.16468835, 8.78595829, -3.40089417, -1.41617738e-006, -0.989475727, -0.144699216, -4.36450762e-007, 0.144699067, -0.989476085, 1.00000024, -9.47996682e-007, -7.38401468e-007) | |
491 | p11.CanCollide = false | |
492 | p11.Locked = true | |
493 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
494 | p11.TopSurface = Enum.SurfaceType.Smooth | |
495 | b11 = Instance.new("SpecialMesh", p11) | |
496 | b11.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
497 | b11.TextureId = "" | |
498 | b11.MeshType = Enum.MeshType.FileMesh | |
499 | b11.Name = "Mesh" | |
500 | b11.VertexColor = Vector3.new(0, 0, 0) | |
501 | b11.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
502 | p12 = Instance.new("Part", m) | |
503 | p12.BrickColor = BrickColor.new("New Yeller") | |
504 | p12.FormFactor = Enum.FormFactor.Custom | |
505 | p12.Size = Vector3.new(1, 3.5, 1) | |
506 | p12.CFrame = CFrame.new(-3.74216318, 6.74288082, -3.40101933, -1.20476273e-006, -0.553697288, 0.832718134, -3.31002866e-007, -0.832718611, -0.553697169, 1.00000036, -8.7345768e-007, 3.69213154e-007) | |
507 | p12.CanCollide = false | |
508 | p12.Locked = true | |
509 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
510 | p12.TopSurface = Enum.SurfaceType.Smooth | |
511 | b12 = Instance.new("SpecialMesh", p12) | |
512 | b12.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
513 | b12.TextureId = "" | |
514 | b12.MeshType = Enum.MeshType.FileMesh | |
515 | b12.Name = "Mesh" | |
516 | b12.VertexColor = Vector3.new(0, 0, 0) | |
517 | b12.Scale = Vector3.new(1, 3, 1.29999995) | |
518 | p13 = Instance.new("Part", m) | |
519 | p13.BrickColor = BrickColor.new("Dirt Brown") | |
520 | p13.FormFactor = Enum.FormFactor.Custom | |
521 | p13.Size = Vector3.new(1, 2, 1) | |
522 | p13.CFrame = CFrame.new(-3.32689047, 6.86741829, -3.40101862, -9.81709945e-007, -0.319307148, 0.947651446, -5.6545997e-007, -0.947651923, -0.31930691, 1.00000048, -8.39551717e-007, 1.79318391e-007) | |
523 | p13.CanCollide = false | |
524 | p13.Locked = true | |
525 | p13.BottomSurface = Enum.SurfaceType.Smooth | |
526 | p13.TopSurface = Enum.SurfaceType.Smooth | |
527 | b13 = Instance.new("SpecialMesh", p13) | |
528 | b13.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
529 | b13.TextureId = "" | |
530 | b13.MeshType = Enum.MeshType.FileMesh | |
531 | b13.Name = "Mesh" | |
532 | b13.VertexColor = Vector3.new(0, 0, 0) | |
533 | b13.Scale = Vector3.new(1, 3, 1.29999995) | |
534 | p14 = Instance.new("Part", m) | |
535 | p14.BrickColor = BrickColor.new("Dirt Brown") | |
536 | p14.FormFactor = Enum.FormFactor.Custom | |
537 | p14.Size = Vector3.new(1, 2, 1) | |
538 | p14.CFrame = CFrame.new(-3.02689028, 7.96740961, -3.40101862, -1.33478545e-006, -0.750354111, 0.661036491, -5.20037702e-008, -0.661037207, -0.750354171, 1.0000006, -6.31296757e-007, 2.01137496e-007) | |
539 | p14.CanCollide = false | |
540 | p14.Locked = true | |
541 | p14.BottomSurface = Enum.SurfaceType.Smooth | |
542 | p14.TopSurface = Enum.SurfaceType.Smooth | |
543 | b14 = Instance.new("SpecialMesh", p14) | |
544 | b14.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
545 | b14.TextureId = "" | |
546 | b14.MeshType = Enum.MeshType.FileMesh | |
547 | b14.Name = "Mesh" | |
548 | b14.VertexColor = Vector3.new(0, 0, 0) | |
549 | b14.Scale = Vector3.new(1, 3, 1.29999995) | |
550 | p15 = Instance.new("Part", m) | |
551 | p15.BrickColor = BrickColor.new("Dirt Brown") | |
552 | p15.FormFactor = Enum.FormFactor.Custom | |
553 | p15.Size = Vector3.new(1, 2.5, 1) | |
554 | p15.CFrame = CFrame.new(-2.96531463, 7.75924349, -2.90101862, 0.342019022, -0.520305753, 0.782499552, -1.1920929e-007, -0.832718909, -0.553697407, 0.939693451, 0.189374983, -0.284806281) | |
555 | p15.CanCollide = false | |
556 | p15.Locked = true | |
557 | p15.BottomSurface = Enum.SurfaceType.Smooth | |
558 | p15.TopSurface = Enum.SurfaceType.Smooth | |
559 | b15 = Instance.new("SpecialMesh", p15) | |
560 | b15.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
561 | b15.TextureId = "" | |
562 | b15.MeshType = Enum.MeshType.FileMesh | |
563 | b15.Name = "Mesh" | |
564 | b15.VertexColor = Vector3.new(0, 0, 0) | |
565 | b15.Scale = Vector3.new(1, 3, 1.29999995) | |
566 | p16 = Instance.new("Part", m) | |
567 | p16.BrickColor = BrickColor.new("Dirt Brown") | |
568 | p16.FormFactor = Enum.FormFactor.Custom | |
569 | p16.Size = Vector3.new(1, 2.5, 1) | |
570 | p16.CFrame = CFrame.new(-2.96531439, 7.75924349, -3.80101967, -0.258820295, -0.534830391, 0.804343879, -1.78813934e-007, -0.832718968, -0.553697228, 0.96592629, -0.143308073, 0.215523779) | |
571 | p16.CanCollide = false | |
572 | p16.Locked = true | |
573 | p16.BottomSurface = Enum.SurfaceType.Smooth | |
574 | p16.TopSurface = Enum.SurfaceType.Smooth | |
575 | b16 = Instance.new("SpecialMesh", p16) | |
576 | b16.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
577 | b16.TextureId = "" | |
578 | b16.MeshType = Enum.MeshType.FileMesh | |
579 | b16.Name = "Mesh" | |
580 | b16.VertexColor = Vector3.new(0, 0, 0) | |
581 | b16.Scale = Vector3.new(1, 3, 1.29999995) | |
582 | p17 = Instance.new("Part", m) | |
583 | p17.BrickColor = BrickColor.new("Dirt Brown") | |
584 | p17.FormFactor = Enum.FormFactor.Custom | |
585 | p17.Size = Vector3.new(1, 2.4000001, 1) | |
586 | p17.CFrame = CFrame.new(-2.69075108, 7.07788849, -3.40101933, -1.13248825e-006, -0.319307148, 0.947651625, -1.1920929e-006, -0.947652161, -0.319306791, 1.0000006, -1.54972076e-006, 1.04308128e-007) | |
587 | p17.CanCollide = false | |
588 | p17.Locked = true | |
589 | p17.BottomSurface = Enum.SurfaceType.Smooth | |
590 | p17.TopSurface = Enum.SurfaceType.Smooth | |
591 | b17 = Instance.new("SpecialMesh", p17) | |
592 | b17.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
593 | b17.TextureId = "" | |
594 | b17.MeshType = Enum.MeshType.FileMesh | |
595 | b17.Name = "Mesh" | |
596 | b17.VertexColor = Vector3.new(0, 0, 0) | |
597 | b17.Scale = Vector3.new(1, 3, 1.29999995) | |
598 | p18 = Instance.new("Part", m) | |
599 | p18.BrickColor = BrickColor.new("New Yeller") | |
600 | p18.FormFactor = Enum.FormFactor.Custom | |
601 | p18.Size = Vector3.new(2, 2, 2) | |
602 | p18.CFrame = CFrame.new(-1.70003319, 8.71796608, -3.40004444, -2.37434961e-006, 1.78813934e-007, 1.00000036, -2.35242567e-007, 1.00000072, 3.27825546e-007, -1.0000006, 7.95440158e-009, -2.91315405e-006) | |
603 | p18.CanCollide = false | |
604 | p18.Locked = true | |
605 | p18.BottomSurface = Enum.SurfaceType.Smooth | |
606 | p18.TopSurface = Enum.SurfaceType.Smooth | |
607 | b18 = Instance.new("SpecialMesh", p18) | |
608 | b18.MeshId = "http://www.roblox.com/asset/?id=16627529" | |
609 | b18.TextureId = "" | |
610 | b18.MeshType = Enum.MeshType.FileMesh | |
611 | b18.Name = "Mesh" | |
612 | b18.VertexColor = Vector3.new(0, 0, 0) | |
613 | b18.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995) | |
614 | w1 = Instance.new("Weld", p1) | |
615 | w1.Name = "Head_Weld" | |
616 | w1.Part0 = p1 | |
617 | w1.C0 = CFrame.new(3.40111661, -0.744508088, 8.58160019, -5.48362732e-006, 3.27825546e-007, 1, -0.978699088, -0.205299854, -5.30481339e-006, 0.205299824, -0.978699148, 1.49011612e-006) | |
618 | w1.Part1 = p2 | |
619 | w1.C1 = CFrame.new(3.40013766, -8.14794827, -1.70006609, 4.23192978e-006, -1.08796726e-007, 1.00000012, 2.9664772e-008, 1, 1.08796598e-007, -1.00000012, 2.96642924e-008, 4.23192978e-006) | |
620 | w2 = Instance.new("Weld", p2) | |
621 | w2.Name = "Part_Weld" | |
622 | w2.Part0 = p2 | |
623 | w2.C0 = CFrame.new(3.40013766, -8.14794827, -1.70006609, 4.23192978e-006, -1.08796726e-007, 1.00000012, 2.9664772e-008, 1, 1.08796598e-007, -1.00000012, 2.96642924e-008, 4.23192978e-006) | |
624 | w2.Part1 = p3 | |
625 | w2.C1 = CFrame.new(3.40004802, -8.71796036, -1.70002759, 2.56299973e-006, -7.89943471e-008, 1, 2.47196947e-008, 1, 7.89942831e-008, -1, 2.47194887e-008, 2.56299973e-006) | |
626 | w3 = Instance.new("Weld", p3) | |
627 | w3.Name = "Part_Weld" | |
628 | w3.Part0 = p3 | |
629 | w3.C0 = CFrame.new(3.40004802, -8.71796036, -1.70002759, 2.56299973e-006, -7.89943471e-008, 1, 2.47196947e-008, 1, 7.89942831e-008, -1, 2.47194887e-008, 2.56299973e-006) | |
630 | w3.Part1 = p4 | |
631 | w3.C1 = CFrame.new(3.40017533, -8.8479538, -1.77979064, 5.78165054e-006, -1.38599077e-007, 1, 3.46098972e-008, 1, 1.38598878e-007, -1, 3.46090907e-008, 5.78165054e-006) | |
632 | w4 = Instance.new("Weld", p4) | |
633 | w4.Name = "Part_Weld" | |
634 | w4.Part0 = p4 | |
635 | w4.C0 = CFrame.new(3.40017533, -8.8479538, -1.77979064, 5.78165054e-006, -1.38599077e-007, 1, 3.46098972e-008, 1, 1.38598878e-007, -1, 3.46090907e-008, 5.78165054e-006) | |
636 | w4.Part1 = p5 | |
637 | w4.C1 = CFrame.new(3.40004182, -8.46796036, -1.70004117, -3.57627869e-007, -5.89495883e-008, 0.99999994, 2.53247009e-007, 1, 5.89496665e-008, -0.99999994, 2.53247009e-007, -3.57627869e-007) | |
638 | w5 = Instance.new("Weld", p5) | |
639 | w5.Name = "Part_Weld" | |
640 | w5.Part0 = p5 | |
641 | w5.C0 = CFrame.new(3.40004182, -8.46796036, -1.70004117, -3.57627869e-007, -5.89495883e-008, 0.99999994, 2.53247009e-007, 1, 5.89496665e-008, -0.99999994, 2.53247009e-007, -3.57627869e-007) | |
642 | w5.Part1 = p6 | |
643 | w5.C1 = CFrame.new(3.44990563, -8.58795738, -1.89968324, -5.96046448e-007, -9.85101565e-008, 1, 4.91661183e-007, 1, 9.85104407e-008, -1, 4.9166124e-007, -5.96046448e-007) | |
644 | w6 = Instance.new("Weld", p6) | |
645 | w6.Name = "Part_Weld" | |
646 | w6.Part0 = p6 | |
647 | w6.C0 = CFrame.new(3.44990563, -8.58795738, -1.89968324, -5.96046448e-007, -9.85101565e-008, 1, 4.91661183e-007, 1, 9.85104407e-008, -1, 4.9166124e-007, -5.96046448e-007) | |
648 | w6.Part1 = p7 | |
649 | w6.C1 = CFrame.new(3.50097466, -8.31796741, -1.89919162, -4.76837158e-007, -9.85101849e-008, 0.99999994, 4.91661126e-007, 1, 9.85104265e-008, -0.99999994, 4.91661183e-007, -4.76837158e-007) | |
650 | w7 = Instance.new("Weld", p7) | |
651 | w7.Name = "Part_Weld" | |
652 | w7.Part0 = p7 | |
653 | w7.C0 = CFrame.new(3.50097466, -8.31796741, -1.89919162, -4.76837158e-007, -9.85101849e-008, 0.99999994, 4.91661126e-007, 1, 9.85104265e-008, -0.99999994, 4.91661183e-007, -4.76837158e-007) | |
654 | w7.Part1 = p8 | |
655 | w7.C1 = CFrame.new(3.40101647, 2.43280101, 7.72691393, -1.1920929e-006, -2.08616257e-007, 1, -0.805111527, -0.593123555, -9.83476639e-007, 0.593123496, -0.805111527, 4.17232513e-007) | |
656 | w8 = Instance.new("Weld", p8) | |
657 | w8.Name = "Part_Weld" | |
658 | w8.Part0 = p8 | |
659 | w8.C0 = CFrame.new(3.40101647, 2.43280101, 7.72691393, -1.1920929e-006, -2.08616257e-007, 1, -0.805111527, -0.593123555, -9.83476639e-007, 0.593123496, -0.805111527, 4.17232513e-007) | |
660 | w8.Part1 = p9 | |
661 | w8.C1 = CFrame.new(3.40065455, -8.6941061, -0.904481649, -8.34465027e-007, -1.67638063e-007, 1.00000012, -0.0995008498, 0.995037496, 1.00582838e-007, -0.995037615, -0.0995008498, -8.34465027e-007) | |
662 | w9 = Instance.new("Weld", p9) | |
663 | w9.Name = "Part_Weld" | |
664 | w9.Part0 = p9 | |
665 | w9.C0 = CFrame.new(3.40065455, -8.6941061, -0.904481649, -8.34465027e-007, -1.67638063e-007, 1.00000012, -0.0995008498, 0.995037496, 1.00582838e-007, -0.995037615, -0.0995008498, -8.34465027e-007) | |
666 | w9.Part1 = p10 | |
667 | w9.C1 = CFrame.new(3.39961672, -7.99480963, 4.71886492, -9.53674316e-007, -2.98023224e-007, 1, -0.683569372, 0.729885519, -4.47034836e-007, -0.729885459, -0.683569431, -9.53674316e-007) | |
668 | w10 = Instance.new("Weld", p10) | |
669 | w10.Name = "Part_Weld" | |
670 | w10.Part0 = p10 | |
671 | w10.C0 = CFrame.new(3.39961672, -7.99480963, 4.71886492, -9.53674316e-007, -2.98023224e-007, 1, -0.683569372, 0.729885519, -4.47034836e-007, -0.729885459, -0.683569431, -9.53674316e-007) | |
672 | w10.Part1 = p11 | |
673 | w10.C1 = CFrame.new(3.40089583, -3.41323304, 8.38025856, -1.31130219e-006, -4.76837158e-007, 1.00000012, -0.989475787, 0.144699097, -1.07288361e-006, -0.144699246, -0.989475787, -7.15255737e-007) | |
674 | w11 = Instance.new("Weld", p11) | |
675 | w11.Name = "Part_Weld" | |
676 | w11.Part0 = p11 | |
677 | w11.C0 = CFrame.new(3.40089583, -3.41323304, 8.38025856, -1.31130219e-006, -4.76837158e-007, 1.00000012, -0.989475787, 0.144699097, -1.07288361e-006, -0.144699246, -0.989475787, -7.15255737e-007) | |
678 | w11.Part1 = p12 | |
679 | w11.C1 = CFrame.new(3.40101814, 3.54288888, 6.84968376, -9.53674316e-007, -4.47034836e-007, 1, -0.553697109, -0.832718134, -9.23871994e-007, 0.832718134, -0.553697109, 6.55651093e-007) | |
680 | w12 = Instance.new("Weld", p12) | |
681 | w12.Name = "Part_Weld" | |
682 | w12.Part0 = p12 | |
683 | w12.C0 = CFrame.new(3.40101814, 3.54288888, 6.84968376, -9.53674316e-007, -4.47034836e-007, 1, -0.553697109, -0.832718134, -9.23871994e-007, 0.832718134, -0.553697109, 6.55651093e-007) | |
684 | w12.Part1 = p13 | |
685 | w12.C1 = CFrame.new(3.40102005, 5.44561195, 5.34554911, -8.34465027e-007, -6.40749931e-007, 1.00000012, -0.319307029, -0.947651505, -8.19563866e-007, 0.947651386, -0.319307029, 3.57627869e-007) | |
686 | w13 = Instance.new("Weld", p13) | |
687 | w13.Name = "Part_Weld" | |
688 | w13.Part0 = p13 | |
689 | w13.C0 = CFrame.new(3.40102005, 5.44561195, 5.34554911, -8.34465027e-007, -6.40749931e-007, 1.00000012, -0.319307029, -0.947651505, -8.19563866e-007, 0.947651386, -0.319307029, 3.57627869e-007) | |
690 | w13.Part1 = p14 | |
691 | w13.C1 = CFrame.new(3.40101624, 2.99550176, 7.97925997, -9.53674316e-007, -1.49011612e-007, 1, -0.750353813, -0.661036491, -8.64267349e-007, 0.661036491, -0.750353813, 5.36441803e-007) | |
692 | w14 = Instance.new("Weld", p14) | |
693 | w14.Name = "Part_Weld" | |
694 | w14.Part0 = p14 | |
695 | w14.C0 = CFrame.new(3.40101624, 2.99550176, 7.97925997, -9.53674316e-007, -1.49011612e-007, 1, -0.750353813, -0.661036491, -8.64267349e-007, 0.661036491, -0.750353813, 5.36441803e-007) | |
696 | w14.Part1 = p15 | |
697 | w14.C1 = CFrame.new(3.74026394, 5.46776819, 5.79039907, 0.34201923, -3.27825546e-007, 0.939692974, -0.520305395, -0.832718134, 0.189374775, 0.782499313, -0.553697109, -0.284805775) | |
698 | w15 = Instance.new("Weld", p15) | |
699 | w15.Name = "Part_Weld" | |
700 | w15.Part0 = p15 | |
701 | w15.C0 = CFrame.new(3.74026394, 5.46776819, 5.79039907, 0.34201923, -3.27825546e-007, 0.939692974, -0.520305395, -0.832718134, 0.189374775, 0.782499313, -0.553697109, -0.284805775) | |
702 | w15.Part1 = p16 | |
703 | w15.C1 = CFrame.new(2.90401983, 4.33060169, 7.50061178, -0.258819938, -2.68220901e-007, 0.965925574, -0.534830093, -0.832718134, -0.143308043, 0.80434382, -0.55369705, 0.215523928) | |
704 | w16 = Instance.new("Weld", p16) | |
705 | w16.Name = "Part_Weld" | |
706 | w16.Part0 = p16 | |
707 | w16.C0 = CFrame.new(2.90401983, 4.33060169, 7.50061178, -0.258819938, -2.68220901e-007, 0.965925574, -0.534830093, -0.832718134, -0.143308043, 0.80434382, -0.55369705, 0.215523928) | |
708 | w16.Part1 = p17 | |
709 | w16.C1 = CFrame.new(3.4010253, 5.84818506, 4.80991411, -8.56413749e-007, -1.3483392e-006, 1, -0.31930685, -0.947651386, -1.55121427e-006, 0.947651386, -0.31930685, 3.81047698e-007) | |
710 | w17 = Instance.new("Weld", p17) | |
711 | w17.Name = "Part_Weld" | |
712 | w17.Part0 = p17 | |
713 | w17.C0 = CFrame.new(3.4010253, 5.84818506, 4.80991411, -8.56413749e-007, -1.3483392e-006, 1, -0.31930685, -0.947651386, -1.55121427e-006, 0.947651386, -0.31930685, 3.81047698e-007) | |
714 | w17.Part1 = p18 | |
715 | w17.C1 = CFrame.new(-3.40004683, -8.71796036, 1.70002675, -2.6504224e-006, -7.89943471e-008, -1, -2.47197018e-008, 1, -7.89942831e-008, 1, 2.47194887e-008, -2.6504224e-006) | |
716 | m.Parent = char | |
717 | m:MakeJoints() | |
718 | ---------------------------------------------------- | |
719 | local cor = Instance.new("Part", char.Hair) | |
720 | cor.Name = "Link" | |
721 | cor.Locked = true | |
722 | cor.BottomSurface = 0 | |
723 | cor.CanCollide = false | |
724 | cor.Size = Vector3.new(1, 9, 1) | |
725 | cor.Transparency = 1 | |
726 | cor.TopSurface = 0 | |
727 | corw = Instance.new("Weld", cor) | |
728 | corw.Part0 = hed | |
729 | corw.Part1 = cor | |
730 | corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
731 | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
732 | weld1 = Instance.new("Weld", char.Hair) | |
733 | weld1.Part0 = cor | |
734 | weld1.Part1 = char.Hair.Head | |
735 | weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
736 | ---------------------------------------------------- | |
737 | GroundWave1 = function() | |
738 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
739 | local Colors = {"New Yeller", "New Yeller"} | |
740 | local wave = Instance.new("Part", torso) | |
741 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
742 | wave.Anchored = true | |
743 | wave.CanCollide = false | |
744 | wave.Locked = true | |
745 | wave.Size = Vector3.new(1, 1, 1) | |
746 | wave.TopSurface = "Smooth" | |
747 | wave.BottomSurface = "Smooth" | |
748 | wave.Transparency = 0.35 | |
749 | wave.CFrame = HandCF | |
750 | wm = Instance.new("SpecialMesh", wave) | |
751 | wm.MeshId = "rbxassetid://3270017" | |
752 | coroutine.wrap(function() | |
753 | for i = 1, 30, 1 do | |
754 | wm.Scale = Vector3.new(1 + i*1.2, 1 + i*1.2, 1) | |
755 | wave.Size = wm.Scale | |
756 | wave.CFrame = HandCF | |
757 | wave.Transparency = i/30 | |
758 | wait() | |
759 | end | |
760 | wait() | |
761 | wave:Destroy() | |
762 | end)() | |
763 | end | |
764 | ---------------------------------------------------- | |
765 | GroundWave = function() | |
766 | if Transforming == true then | |
767 | local wave = Instance.new("Part", torso) | |
768 | wave.BrickColor = BrickColor.new("New Yeller") | |
769 | wave.Anchored = true | |
770 | wave.CanCollide = false | |
771 | wave.Locked = true | |
772 | wave.Size = Vector3.new(1, 1, 1) | |
773 | wave.TopSurface = "Smooth" | |
774 | wave.BottomSurface = "Smooth" | |
775 | wave.Transparency = 0.35 | |
776 | wave.CFrame = fx.CFrame | |
777 | wm = Instance.new("SpecialMesh", wave) | |
778 | wm.MeshType = "Sphere" | |
779 | wm.Scale = Vector3.new(1,1,1) | |
780 | coroutine.wrap(function() | |
781 | for i = 1, 18, 1 do | |
782 | wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2) | |
783 | --wave.Size = wm.Scale | |
784 | wave.CFrame = fx.CFrame | |
785 | wave.Transparency = i/14 | |
786 | wait() | |
787 | end | |
788 | wait() | |
789 | wave:Destroy() | |
790 | end)() | |
791 | elseif Transforming == false then | |
792 | wait() | |
793 | end | |
794 | end | |
795 | ||
796 | for i = 1, 100 do rs:wait() | |
797 | fx.CFrame = torso.CFrame | |
798 | end | |
799 | ||
800 | Spawn(function() | |
801 | while wait(1) do | |
802 | GroundWave() | |
803 | end | |
804 | end) | |
805 | ||
806 | wait(4) | |
807 | ||
808 | Transforming = false | |
809 | ||
810 | for i = 1, 20 do rs:wait() | |
811 | fx.Transparency = fx.Transparency + (1/20) | |
812 | fx.CFrame = torso.CFrame | |
813 | fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) | |
814 | rs:wait() | |
815 | end | |
816 | ||
817 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
818 | local wave = Instance.new("Part", torso) | |
819 | wave.BrickColor = BrickColor.new("Institutional white") | |
820 | wave.Anchored = true | |
821 | wave.CanCollide = false | |
822 | wave.Locked = true | |
823 | wave.Size = Vector3.new(1, 1, 1) | |
824 | wave.TopSurface = "Smooth" | |
825 | wave.BottomSurface = "Smooth" | |
826 | wave.Transparency = 0.35 | |
827 | wave.CFrame = HandCF | |
828 | wm = Instance.new("SpecialMesh", wave) | |
829 | wm.MeshId = "rbxassetid://3270017" | |
830 | coroutine.wrap(function() | |
831 | for i = 1, 14, 1 do | |
832 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
833 | wave.Size = wm.Scale | |
834 | wave.CFrame = HandCF | |
835 | wave.Transparency = i/14 | |
836 | wait() | |
837 | end | |
838 | wait() | |
839 | wave:Destroy() | |
840 | end)() | |
841 | hum.WalkSpeed = 16 | |
842 | ---------------------------------------------------- | |
843 | Blast = function() | |
844 | local Colors = {"New Yeller", "New Yeller"} | |
845 | local wave = Instance.new("Part", torso) | |
846 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
847 | wave.Anchored = true | |
848 | wave.CanCollide = false | |
849 | wave.Locked = true | |
850 | wave.Size = Vector3.new(1, 1, 1) | |
851 | wave.TopSurface = "Smooth" | |
852 | wave.BottomSurface = "Smooth" | |
853 | wave.Transparency = 0.35 | |
854 | wave.CFrame = rarm.CFrame | |
855 | wm = Instance.new("SpecialMesh", wave) | |
856 | wm.MeshType = "Sphere" | |
857 | wm.Scale = Vector3.new(1,1,1) | |
858 | z = Instance.new("Sound",wave) | |
859 | z.SoundId = "rbxassetid://237035051" | |
860 | z.Volume = 1 | |
861 | z.Pitch = .9 | |
862 | z:Play() | |
863 | coroutine.wrap(function() | |
864 | for i = 1, 30, 1 do | |
865 | wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4) | |
866 | --wave.Size = wm.Scale | |
867 | wave.CFrame = rarm.CFrame | |
868 | wave.Transparency = (1/14) | |
869 | rs:wait() | |
870 | end | |
871 | rs:wait() | |
872 | wave:Destroy() | |
873 | z:Destroy() | |
874 | end)() | |
875 | end | |
876 | ---------------------------------------------------- | |
877 | rarm.Touched:connect(function(ht) | |
878 | hit = ht.Parent | |
879 | if ht and hit:IsA("Model") then | |
880 | if hit:FindFirstChild("Humanoid") then | |
881 | if hit.Name ~= p.Name then | |
882 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
883 | Debounces.RPunched = true | |
884 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
885 | if Debounces.ks==true then | |
886 | z = Instance.new("Sound",hed) | |
887 | z.SoundId = "rbxassetid://169380525" | |
888 | z.Pitch = ptz[math.random(1,#ptz)] | |
889 | z.Volume = 1 | |
890 | z:Play() | |
891 | end | |
892 | wait(.2) | |
893 | Debounces.RPunched = false | |
894 | end | |
895 | end | |
896 | end | |
897 | elseif ht and hit:IsA("Hat") then | |
898 | if hit.Parent.Name ~= p.Name then | |
899 | if hit.Parent:FindFirstChild("Humanoid") then | |
900 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
901 | Debounces.RPunched = true | |
902 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
903 | if Debounces.ks==true then | |
904 | z = Instance.new("Sound",hed) | |
905 | z.SoundId = "rbxassetid://169380525" | |
906 | z.Pitch = ptz[math.random(1,#ptz)] | |
907 | z.Volume = 1 | |
908 | z:Play() | |
909 | end | |
910 | wait(.2) | |
911 | Debounces.RPunched = false | |
912 | end | |
913 | end | |
914 | end | |
915 | end | |
916 | end) | |
917 | larm.Touched:connect(function(ht) | |
918 | hit = ht.Parent | |
919 | if ht and hit:IsA("Model") then | |
920 | if hit:FindFirstChild("Humanoid") then | |
921 | if hit.Name ~= p.Name then | |
922 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
923 | Debounces.LPunched = true | |
924 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
925 | if Debounces.ks2==true then | |
926 | z = Instance.new("Sound",hed) | |
927 | z.SoundId = "rbxassetid://169380525" | |
928 | z.Pitch = ptz[math.random(1,#ptz)] | |
929 | z.Volume = 1 | |
930 | z:Play() | |
931 | end | |
932 | wait(.2) | |
933 | Debounces.LPunched = false | |
934 | end | |
935 | end | |
936 | end | |
937 | elseif ht and hit:IsA("Hat") then | |
938 | if hit.Parent.Name ~= p.Name then | |
939 | if hit.Parent:FindFirstChild("Humanoid") then | |
940 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
941 | Debounces.LPunched = true | |
942 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
943 | if Debounces.ks2==true then | |
944 | z = Instance.new("Sound",hed) | |
945 | z.SoundId = "rbxassetid://169380525" | |
946 | z.Pitch = ptz[math.random(1,#ptz)] | |
947 | z.Volume = 1 | |
948 | z:Play() | |
949 | end | |
950 | wait(.2) | |
951 | Debounces.LPunched = false | |
952 | end | |
953 | end | |
954 | end | |
955 | end | |
956 | end) | |
957 | ---------------------------------------------------- | |
958 | mod4 = Instance.new("Model",char) | |
959 | ||
960 | ptez = {0.7, 0.8, 0.9, 1} | |
961 | ||
962 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
963 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
964 | local List = {} | |
965 | for i,v in pairs(workspace:GetChildren())do | |
966 | if v:IsA("Model")then | |
967 | if v:findFirstChild("Torso")then | |
968 | if v ~= char then | |
969 | if(v.Torso.Position -Position).magnitude <= Distance then | |
970 | table.insert(List,v) | |
971 | end | |
972 | end | |
973 | end | |
974 | end | |
975 | end | |
976 | return List | |
977 | end | |
978 | ||
979 | function Punch() | |
980 | part=Instance.new('Part',mod4) | |
981 | part.Anchored=true | |
982 | part.CanCollide=false | |
983 | part.FormFactor='Custom' | |
984 | part.Size=Vector3.new(.2,.2,.2) | |
985 | part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0) | |
986 | part.Transparency=.7 | |
987 | part.BrickColor=BrickColor.new('New Yeller') | |
988 | mesh=Instance.new('SpecialMesh',part) | |
989 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
990 | mesh.Scale=Vector3.new(3,3,3) | |
991 | part2=Instance.new('Part',mod4) | |
992 | part2.Anchored=true | |
993 | part2.CanCollide=false | |
994 | part2.FormFactor='Custom' | |
995 | part2.Size=Vector3.new(.2,.2,.2) | |
996 | part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
997 | part2.Transparency=.7 | |
998 | part2.BrickColor=BrickColor.new('New Yeller') | |
999 | mesh2=Instance.new('SpecialMesh',part2) | |
1000 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1001 | mesh2.Scale=Vector3.new(3,1.5,3) | |
1002 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
1003 | if v:FindFirstChild('Humanoid') then | |
1004 | v.Humanoid:TakeDamage(math.random(2,6)) | |
1005 | end | |
1006 | end | |
1007 | coroutine.resume(coroutine.create(function() | |
1008 | for i=0,0.62,0.4 do | |
1009 | wait() | |
1010 | part.CFrame=part.CFrame | |
1011 | part.Transparency=i | |
1012 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
1013 | part2.CFrame=part2.CFrame | |
1014 | part2.Transparency=i | |
1015 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
1016 | end | |
1017 | part.Parent=nil | |
1018 | part2.Parent=nil | |
1019 | end)) | |
1020 | end | |
1021 | ---------------------------------------------------- | |
1022 | rarm.Touched:connect(function(ht) | |
1023 | hit = ht.Parent | |
1024 | if ht and hit:IsA("Model") then | |
1025 | if hit:FindFirstChild("Humanoid") then | |
1026 | if hit.Name ~= p.Name then | |
1027 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
1028 | Debounces.RPunched = true | |
1029 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
1030 | if Debounces.ks==true then | |
1031 | z = Instance.new("Sound",hed) | |
1032 | z.SoundId = "rbxassetid://169380525" | |
1033 | z.Pitch = ptz[math.random(1,#ptz)] | |
1034 | z.Volume = 1 | |
1035 | z:Play() | |
1036 | end | |
1037 | wait(.2) | |
1038 | Debounces.RPunched = false | |
1039 | end | |
1040 | end | |
1041 | end | |
1042 | elseif ht and hit:IsA("Hat") then | |
1043 | if hit.Parent.Name ~= p.Name then | |
1044 | if hit.Parent:FindFirstChild("Humanoid") then | |
1045 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
1046 | Debounces.RPunched = true | |
1047 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
1048 | if Debounces.ks==true then | |
1049 | z = Instance.new("Sound",hed) | |
1050 | z.SoundId = "rbxassetid://169380525" | |
1051 | z.Pitch = ptz[math.random(1,#ptz)] | |
1052 | z.Volume = 1 | |
1053 | z:Play() | |
1054 | end | |
1055 | wait(.2) | |
1056 | Debounces.RPunched = false | |
1057 | end | |
1058 | end | |
1059 | end | |
1060 | end | |
1061 | end) | |
1062 | larm.Touched:connect(function(ht) | |
1063 | hit = ht.Parent | |
1064 | if ht and hit:IsA("Model") then | |
1065 | if hit:FindFirstChild("Humanoid") then | |
1066 | if hit.Name ~= p.Name then | |
1067 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
1068 | Debounces.LPunched = true | |
1069 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
1070 | if Debounces.ks2==true then | |
1071 | z = Instance.new("Sound",hed) | |
1072 | z.SoundId = "rbxassetid://169380525" | |
1073 | z.Pitch = ptz[math.random(1,#ptz)] | |
1074 | z.Volume = 1 | |
1075 | z:Play() | |
1076 | end | |
1077 | wait(.2) | |
1078 | Debounces.LPunched = false | |
1079 | end | |
1080 | end | |
1081 | end | |
1082 | elseif ht and hit:IsA("Hat") then | |
1083 | if hit.Parent.Name ~= p.Name then | |
1084 | if hit.Parent:FindFirstChild("Humanoid") then | |
1085 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
1086 | Debounces.LPunched = true | |
1087 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
1088 | if Debounces.ks2==true then | |
1089 | z = Instance.new("Sound",hed) | |
1090 | z.SoundId = "rbxassetid://169380525" | |
1091 | z.Pitch = ptz[math.random(1,#ptz)] | |
1092 | z.Volume = 1 | |
1093 | z:Play() | |
1094 | end | |
1095 | wait(.2) | |
1096 | Debounces.LPunched = false | |
1097 | end | |
1098 | end | |
1099 | end | |
1100 | end | |
1101 | end) | |
1102 | ---------------------------------------------------- | |
1103 | local player = game.Players.LocalPlayer | |
1104 | local pchar = player.Character | |
1105 | local mouse = player:GetMouse() | |
1106 | local cam = workspace.CurrentCamera | |
1107 | ||
1108 | local rad = math.rad | |
1109 | ||
1110 | local keysDown = {} | |
1111 | local flySpeed = 0 | |
1112 | local MAX_FLY_SPEED = 150 | |
1113 | ||
1114 | local canFly = false | |
1115 | local flyToggled = false | |
1116 | ||
1117 | local forward, side = 0, 0 | |
1118 | local lastForward, lastSide = 0, 0 | |
1119 | ||
1120 | local floatBP = Instance.new("BodyPosition") | |
1121 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
1122 | local flyBV = Instance.new("BodyVelocity") | |
1123 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
1124 | local turnBG = Instance.new("BodyGyro") | |
1125 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
1126 | ||
1127 | mouse.KeyDown:connect(function(key) | |
1128 | keysDown[key] = true | |
1129 | ||
1130 | if key == "f" then | |
1131 | flyToggled = not flyToggled | |
1132 | ||
1133 | if not flyToggled then | |
1134 | stanceToggle = "Normal" | |
1135 | floatBP.Parent = nil | |
1136 | flyBV.Parent = nil | |
1137 | turnBG.Parent = nil | |
1138 | root.Velocity = Vector3.new() | |
1139 | pchar.Humanoid.PlatformStand = false | |
1140 | end | |
1141 | end | |
1142 | ||
1143 | end) | |
1144 | mouse.KeyUp:connect(function(key) | |
1145 | keysDown[key] = nil | |
1146 | end) | |
1147 | ||
1148 | local function updateFly() | |
1149 | ||
1150 | if not flyToggled then return end | |
1151 | ||
1152 | lastForward = forward | |
1153 | lastSide = side | |
1154 | ||
1155 | forward = 0 | |
1156 | side = 0 | |
1157 | ||
1158 | if keysDown.w then | |
1159 | forward = forward + 1 | |
1160 | end | |
1161 | if keysDown.s then | |
1162 | forward = forward - 1 | |
1163 | end | |
1164 | if keysDown.a then | |
1165 | side = side - 1 | |
1166 | end | |
1167 | if keysDown.d then | |
1168 | side = side + 1 | |
1169 | end | |
1170 | ||
1171 | canFly = (forward ~= 0 or side ~= 0) | |
1172 | ||
1173 | if canFly then | |
1174 | stanceToggle = "Floating" | |
1175 | turnBG.Parent = root | |
1176 | floatBP.Parent = nil | |
1177 | flyBV.Parent = root | |
1178 | ||
1179 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
1180 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
1181 | else | |
1182 | floatBP.position = root.Position | |
1183 | floatBP.Parent = root | |
1184 | ||
1185 | flySpeed = flySpeed - 1 | |
1186 | if flySpeed < 0 then flySpeed = 0 end | |
1187 | end | |
1188 | ||
1189 | local camCF = cam.CoordinateFrame | |
1190 | local in_forward = canFly and forward or lastForward | |
1191 | local in_side = canFly and side or lastSide | |
1192 | ||
1193 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
1194 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
1195 | ||
1196 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
1197 | 0) | |
1198 | end | |
1199 | ||
1200 | game:service'RunService'.RenderStepped:connect(function() | |
1201 | if flyToggled then | |
1202 | pchar.Humanoid.PlatformStand = true | |
1203 | end | |
1204 | updateFly() | |
1205 | end) | |
1206 | ------------------------------- | |
1207 | mouse.KeyDown:connect(function(key) | |
1208 | if key == "q" then | |
1209 | if Debounces.CanAttack == true then | |
1210 | Debounces.CanAttack = false | |
1211 | Debounces.NoIdl = true | |
1212 | Debounces.on = true | |
1213 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1214 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1215 | local List = {} | |
1216 | for i,v in pairs(workspace:GetChildren())do | |
1217 | if v:IsA("Model")then | |
1218 | if v:findFirstChild("Torso")then | |
1219 | if v ~= char then | |
1220 | if(v.Torso.Position -Position).magnitude <= Distance then | |
1221 | table.insert(List,v) | |
1222 | end | |
1223 | end | |
1224 | end | |
1225 | end | |
1226 | end | |
1227 | return List | |
1228 | end | |
1229 | z = Instance.new("Sound",hed) | |
1230 | z.SoundId = "rbxassetid://232213955" | |
1231 | z.Pitch = 1 | |
1232 | z.Volume = 1 | |
1233 | wait(0.2) | |
1234 | z:Play() | |
1235 | sp = Instance.new("Part",rarm) | |
1236 | sp.Anchored = true | |
1237 | sp.CanCollide = false | |
1238 | sp.Locked = true | |
1239 | sp.Transparency = 0 | |
1240 | sp.Material = "Neon" | |
1241 | sp.Size = Vector3.new(1,1,1) | |
1242 | sp.TopSurface = "SmoothNoOutlines" | |
1243 | sp.BottomSurface = "SmoothNoOutlines" | |
1244 | sp.BrickColor = BrickColor.new("New Yeller") | |
1245 | spm = Instance.new("SpecialMesh",sp) | |
1246 | spm.MeshType = "Sphere" | |
1247 | spm.Scale = Vector3.new(21,21,21) | |
1248 | sp2 = Instance.new("Part", rarm) | |
1249 | sp2.Name = "Energy" | |
1250 | sp2.BrickColor = BrickColor.new("New Yeller") | |
1251 | sp2.Size = Vector3.new(1, 1, 1) | |
1252 | sp2.Shape = "Ball" | |
1253 | sp2.CanCollide = false | |
1254 | sp2.Anchored = true | |
1255 | sp2.Locked = true | |
1256 | sp2.TopSurface = 0 | |
1257 | sp2.BottomSurface = 0 | |
1258 | sp2.Transparency = 1 | |
1259 | spm2 = Instance.new("SpecialMesh",sp2) | |
1260 | spm2.MeshId = "rbxassetid://9982590" | |
1261 | spm2.Scale = Vector3.new(2,2,2) | |
1262 | for i = 1, 20 do | |
1263 | spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
1264 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
1265 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
1266 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
1267 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
1268 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
1269 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
1270 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
1271 | if Debounces.on == false then break end | |
1272 | rs:wait() | |
1273 | end | |
1274 | for i = 1, 100, 20 do rs:wait() | |
1275 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
1276 | end | |
1277 | for i = 1, 20 do | |
1278 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
1279 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
1280 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4) | |
1281 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4) | |
1282 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4) | |
1283 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
1284 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
1285 | if Debounces.on == false then break end | |
1286 | rs:wait() | |
1287 | end | |
1288 | sp.Transparency = 1 | |
1289 | for i = 1, 20 do | |
1290 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
1291 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4) | |
1292 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4) | |
1293 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4) | |
1294 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
1295 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
1296 | if Debounces.on == false then break end | |
1297 | rs:wait() | |
1298 | end | |
1299 | wait(1) | |
1300 | sp.Transparency = 0 | |
1301 | sp2.Transparency = 0.84 | |
1302 | for i = 1, 20 do | |
1303 | --spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
1304 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
1305 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
1306 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
1307 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
1308 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
1309 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
1310 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
1311 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
1312 | if Debounces.on == false then break end | |
1313 | rs:wait() | |
1314 | end | |
1315 | for i = 1, 2880, 50 do | |
1316 | rs:wait() | |
1317 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
1318 | sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
1319 | rs:wait() | |
1320 | end | |
1321 | sp:Destroy() | |
1322 | sp2:Destroy() | |
1323 | local X = Instance.new("Part",char) | |
1324 | local O = Instance.new("ObjectValue",X) | |
1325 | O.Name = "creator" | |
1326 | X.Locked = true | |
1327 | X.Name = "Shell" | |
1328 | X.Anchored = false | |
1329 | X.CanCollide = false | |
1330 | X.Transparency = 0 | |
1331 | X.Reflectance = 0 | |
1332 | X.BottomSurface = 0 | |
1333 | X.TopSurface = 0 | |
1334 | X.Shape = 0 | |
1335 | local V = Instance.new("ObjectValue",X) | |
1336 | V.Value = char | |
1337 | V.Name = "creator" | |
1338 | X.BrickColor = BrickColor.new("New Yeller") | |
1339 | X.Size = Vector3.new(2,2,2) | |
1340 | X.Material = "Neon" | |
1341 | local Z = Instance.new("SpecialMesh",X) | |
1342 | Z.MeshType = "Sphere" | |
1343 | Z.Scale = Vector3.new(0.5,0.5,1) | |
1344 | X.CFrame = rarm.CFrame*CFrame.new(-3,0,0) | |
1345 | local bv = Instance.new("BodyVelocity",X) | |
1346 | bv.maxForce = Vector3.new(99999,99999,99999) | |
1347 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
1348 | bv.velocity = X.CFrame.lookVector*65 | |
1349 | ||
1350 | Explode = X.Touched:connect(function(hit) | |
1351 | if hit ~= char and hit.Name ~= "Shell" then | |
1352 | local cf = X.CFrame | |
1353 | bv:Destroy() | |
1354 | X.Anchored = true | |
1355 | Z:Remove() | |
1356 | Explode:disconnect() | |
1357 | X.Size = Vector3.new(3,3,3) | |
1358 | X.Touched:connect(function(hit) end) | |
1359 | X.CanCollide = false | |
1360 | local part3 = Instance.new("Part", rarm) | |
1361 | part3.Anchored=true | |
1362 | part3.CanCollide=false | |
1363 | part3.Locked = true | |
1364 | part3.TopSurface = "SmoothNoOutlines" | |
1365 | part3.BottomSurface = "SmoothNoOutlines" | |
1366 | part3.FormFactor='Custom' | |
1367 | part3.Size=Vector3.new(1,1, 1) | |
1368 | part3.CFrame=X.CFrame | |
1369 | part3.Transparency=0 | |
1370 | part3.BrickColor=BrickColor.new("New Yeller") | |
1371 | local mesh3 = Instance.new("SpecialMesh",part3) | |
1372 | mesh3.MeshType = "Sphere" | |
1373 | mesh3.Scale = Vector3.new(1,1,1) | |
1374 | --debris:AddItem(X,8) | |
1375 | local part4 = Instance.new("Part", rarm) | |
1376 | part4.Material = "Neon" | |
1377 | part4.Anchored=true | |
1378 | part4.CanCollide=false | |
1379 | part4.Locked = true | |
1380 | part4.TopSurface = "SmoothNoOutlines" | |
1381 | part4.BottomSurface = "SmoothNoOutlines" | |
1382 | part4.FormFactor='Custom' | |
1383 | part4.Size=Vector3.new(1,1, 1) | |
1384 | part4.CFrame=X.CFrame | |
1385 | part4.Transparency=0 | |
1386 | part4.BrickColor=BrickColor.new("Hot pink") | |
1387 | local mesh4 = Instance.new("SpecialMesh",part4) | |
1388 | mesh4.MeshType = "Sphere" | |
1389 | mesh4.Scale = Vector3.new(.5,.5,.5) | |
1390 | local part7 = Instance.new("Part", rarm) | |
1391 | part7.Material = "Neon" | |
1392 | part7.Anchored=true | |
1393 | part7.CanCollide=false | |
1394 | part7.Locked = true | |
1395 | part7.TopSurface = "SmoothNoOutlines" | |
1396 | part7.BottomSurface = "SmoothNoOutlines" | |
1397 | part7.FormFactor='Custom' | |
1398 | part7.Size=Vector3.new(1,1, 1) | |
1399 | part7.CFrame=X.CFrame | |
1400 | part7.Transparency=0 | |
1401 | part7.BrickColor=BrickColor.new("New Yeller") | |
1402 | local mesh7 = Instance.new("SpecialMesh",part7) | |
1403 | mesh7.MeshType = "Sphere" | |
1404 | mesh7.Scale = Vector3.new(0.1, 0.1, 0.1) | |
1405 | --[[X.Touched:connect(function(ht) | |
1406 | hit = ht.Parent | |
1407 | if ht and hit:IsA("Model") then | |
1408 | if hit:FindFirstChild("Humanoid") then | |
1409 | if hit.Name ~= p.Name then | |
1410 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
1411 | wait(.3) | |
1412 | end | |
1413 | end | |
1414 | elseif ht and hit:IsA("Hat") then | |
1415 | if hit.Parent.Name ~= p.Name then | |
1416 | if hit.Parent:FindFirstChild("Humanoid") then | |
1417 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
1418 | wait(.3) | |
1419 | end | |
1420 | end | |
1421 | end | |
1422 | end) | |
1423 | part3.Touched:connect(function(ht) | |
1424 | hit = ht.Parent | |
1425 | if ht and hit:IsA("Model") then | |
1426 | if hit:FindFirstChild("Humanoid") then | |
1427 | if hit.Name ~= p.Name then | |
1428 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
1429 | wait(.3) | |
1430 | end | |
1431 | end | |
1432 | elseif ht and hit:IsA("Hat") then | |
1433 | if hit.Parent.Name ~= p.Name then | |
1434 | if hit.Parent:FindFirstChild("Humanoid") then | |
1435 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
1436 | wait(.3) | |
1437 | end | |
1438 | end | |
1439 | end | |
1440 | end)]]-- | |
1441 | for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do | |
1442 | if v:FindFirstChild('Humanoid') then | |
1443 | v.Humanoid:TakeDamage(math.random(60,90)) | |
1444 | v.Humanoid.PlatformStand = true | |
1445 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1446 | end | |
1447 | end | |
1448 | ||
1449 | local acos = math.acos | |
1450 | local sqrt = math.sqrt | |
1451 | local Vec3 = Vector3.new | |
1452 | local fromAxisAngle = CFrame.fromAxisAngle | |
1453 | ||
1454 | local function toAxisAngle(CFr) | |
1455 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
1456 | local Angle = math.acos((R00+R11+R22-1)/2) | |
1457 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1458 | A = A == 0 and 0.00001 or A | |
1459 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1460 | B = B == 0 and 0.00001 or B | |
1461 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1462 | C = C == 0 and 0.00001 or C | |
1463 | local x = (R21-R12)/sqrt(A) | |
1464 | local y = (R02-R20)/sqrt(B) | |
1465 | local z = (R10-R01)/sqrt(C) | |
1466 | return Vec3(x,y,z),Angle | |
1467 | end | |
1468 | ||
1469 | function ApplyTrig(Num,Func) | |
1470 | local Min,Max = Func(0),Func(1) | |
1471 | local i = Func(Num) | |
1472 | return (i-Min)/(Max-Min) | |
1473 | end | |
1474 | ||
1475 | function LerpCFrame(CFrame1,CFrame2,Num) | |
1476 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
1477 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
1478 | end | |
1479 | ||
1480 | function Crater(Torso,Radius) | |
1481 | Spawn(function() | |
1482 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
1483 | local Ignore = {} | |
1484 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
1485 | if v.Character ~= nil then | |
1486 | Ignore[#Ignore+1] = v.Character | |
1487 | end | |
1488 | end | |
1489 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
1490 | if Hit == nil then return end | |
1491 | local Parts = {} | |
1492 | for i = 1,360,10 do | |
1493 | local P = Instance.new("Part",Torso.Parent) | |
1494 | P.Anchored = true | |
1495 | P.FormFactor = "Custom" | |
1496 | P.BrickColor = Hit.BrickColor | |
1497 | P.Material = Hit.Material | |
1498 | P.TopSurface = "Smooth" | |
1499 | P.BottomSurface = "Smooth" | |
1500 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
1501 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
1502 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
1503 | if math.random(0,5) == 0 then -- rubble | |
1504 | local P = Instance.new("Part",Torso.Parent) | |
1505 | P.Anchored = true | |
1506 | P.FormFactor = "Custom" | |
1507 | P.BrickColor = Hit.BrickColor | |
1508 | P.Material = Hit.Material | |
1509 | P.TopSurface = "Smooth" | |
1510 | P.BottomSurface = "Smooth" | |
1511 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
1512 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
1513 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
1514 | end | |
1515 | end | |
1516 | for i = 0,1,0.05 do | |
1517 | for i2,v in pairs(Parts) do | |
1518 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
1519 | end | |
1520 | wait(0.02) | |
1521 | end | |
1522 | for i,v in pairs(Parts) do | |
1523 | if v[1].Size.X > 2.1 then | |
1524 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
1525 | end | |
1526 | v[1].Anchored = false | |
1527 | end | |
1528 | for i = 0,1,0.05 do | |
1529 | for i2,v in pairs(Parts) do | |
1530 | v[1].Transparency = i | |
1531 | if i == 1 then | |
1532 | v[1]:Destroy() | |
1533 | elseif i >= 0.25 then | |
1534 | v[1].CanCollide = false | |
1535 | end | |
1536 | end | |
1537 | wait(0.02) | |
1538 | end | |
1539 | Parts = nil | |
1540 | end) | |
1541 | end | |
1542 | ||
1543 | ROW = function(out, trans, s, wt, t, ang, plus) | |
1544 | for i = 1, 360, 360/t do | |
1545 | local c = Instance.new("Part", game.Workspace) | |
1546 | c.FormFactor = 3 | |
1547 | c.TopSurface = 0 | |
1548 | c.BottomSurface = 0 | |
1549 | c.Size = s | |
1550 | c.Anchored = true | |
1551 | c.CanCollide = wt | |
1552 | c.Material=workspace.Base.Material | |
1553 | c.Transparency = trans | |
1554 | c.BrickColor = workspace.Base.BrickColor | |
1555 | c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang | |
1556 | c.Locked=true | |
1557 | game.Debris:AddItem(c,15) | |
1558 | end | |
1559 | end | |
1560 | ||
1561 | Part = function(x,y,z,color,tr,cc,an,parent) | |
1562 | local p = Instance.new('Part',parent or Weapon) | |
1563 | p.formFactor = 'Custom' | |
1564 | p.Size = Vector3.new(x,y,z) | |
1565 | p.BrickColor = BrickColor.new(color) | |
1566 | p.CanCollide = cc | |
1567 | p.Transparency = tr | |
1568 | p.Anchored = an | |
1569 | p.TopSurface,p.BottomSurface = 0,0 | |
1570 | p.Locked=true | |
1571 | p:BreakJoints() | |
1572 | return p end | |
1573 | ||
1574 | Mesh = function(par,num,x,y,z) | |
1575 | local msh = _ | |
1576 | if num == 1 then msh = Instance.new("CylinderMesh",par) | |
1577 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3 | |
1578 | elseif num == 3 then msh = Instance.new("BlockMesh",par) | |
1579 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso" | |
1580 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num | |
1581 | end msh.Scale = Vector3.new(x,y,z) | |
1582 | return msh end | |
1583 | ||
1584 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
1585 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
1586 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
1587 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
1588 | v1,v2,v3=sz.x,sz.y,sz.z | |
1589 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
1590 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
1591 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
1592 | a.CFrame=cfr | |
1593 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
1594 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
1595 | ||
1596 | Spawn(function() | |
1597 | while wait() do | |
1598 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
1599 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
1600 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
1601 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
1602 | a.Transparency=a.Transparency+0.05 | |
1603 | a2.Transparency=a2.Transparency+0.05 | |
1604 | a3.Transparency=a3.Transparency+0.05 | |
1605 | end | |
1606 | end) | |
1607 | end | |
1608 | ||
1609 | Crater(X,20) | |
1610 | ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0) | |
1611 | z = Instance.new("Sound",X) | |
1612 | z.SoundId = "rbxassetid://231917744" | |
1613 | z.Pitch = .5 | |
1614 | z.Volume = 10 | |
1615 | z1 = Instance.new("Sound",X) | |
1616 | z1.SoundId = "rbxassetid://231917744" | |
1617 | z1.Pitch = .5 | |
1618 | z1.Volume = 10 | |
1619 | z2 = Instance.new("Sound",X) | |
1620 | z2.SoundId = "rbxassetid://231917744" | |
1621 | z2.Pitch = .5 | |
1622 | z2.Volume = 10 | |
1623 | z3 = Instance.new("Sound",X) | |
1624 | z3.SoundId = "rbxassetid://245537790" | |
1625 | z3.Pitch = .7 | |
1626 | z3.Volume = 1 | |
1627 | z4 = Instance.new("Sound",X) | |
1628 | z4.SoundId = "rbxassetid://245537790" | |
1629 | z4.Pitch = .7 | |
1630 | z4.Volume = 1 | |
1631 | wait(0.1) | |
1632 | z:Play() | |
1633 | z1:Play() | |
1634 | z2:Play() | |
1635 | z3:Play() | |
1636 | z4:Play() | |
1637 | ||
1638 | local part=Instance.new('Part',rarm) | |
1639 | part.Anchored=true | |
1640 | part.CanCollide=false | |
1641 | part.Locked = true | |
1642 | part.FormFactor='Custom' | |
1643 | part.Size=Vector3.new(1,1,1) | |
1644 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
1645 | part.Transparency=0 | |
1646 | part.BrickColor=BrickColor.new('New Yeller') | |
1647 | local mesh=Instance.new('SpecialMesh',part) | |
1648 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1649 | mesh.Scale=Vector3.new(2,2,2) | |
1650 | local part2=part:clone() | |
1651 | part2.Parent = rarm | |
1652 | part2.BrickColor=BrickColor.new("New Yeller") | |
1653 | local part5=part:clone() | |
1654 | part5.Parent = rarm | |
1655 | part5.BrickColor=BrickColor.new("Magenta") | |
1656 | local part6=part:clone() | |
1657 | part6.Parent = rarm | |
1658 | part6.BrickColor=BrickColor.new("Black") | |
1659 | local mesh2=mesh:clone() | |
1660 | mesh2.Parent=part2 | |
1661 | mesh2.Scale=Vector3.new(3, 3, 3) | |
1662 | local mesh5=mesh:clone() | |
1663 | mesh5.Parent=part5 | |
1664 | mesh5.Scale=Vector3.new(3, 3, 3) | |
1665 | local mesh6=mesh:clone() | |
1666 | mesh6.Parent=part6 | |
1667 | mesh6.Scale=Vector3.new(3, 3, 3) | |
1668 | local blast = Instance.new("Part", rarm) | |
1669 | blast.BrickColor = BrickColor.new("New Yeller") | |
1670 | blast.Anchored = true | |
1671 | blast.CanCollide = false | |
1672 | blast.Locked = true | |
1673 | blast.Size = Vector3.new(1, 1, 1) | |
1674 | blast.TopSurface = "Smooth" | |
1675 | blast.BottomSurface = "Smooth" | |
1676 | blast.Transparency = 0 | |
1677 | blast.CFrame = HandCF | |
1678 | local bm = Instance.new("SpecialMesh", blast) | |
1679 | bm.Scale = Vector3.new(5,1,5) | |
1680 | bm.MeshId = "rbxassetid://3270017" | |
1681 | local blast2 = Instance.new("Part", rarm) | |
1682 | blast2.BrickColor = BrickColor.new("New Yeller") | |
1683 | blast2.Anchored = true | |
1684 | blast2.CanCollide = false | |
1685 | blast2.Locked = true | |
1686 | blast2.Size = Vector3.new(1, 1, 1) | |
1687 | blast2.TopSurface = "Smooth" | |
1688 | blast2.BottomSurface = "Smooth" | |
1689 | blast2.Transparency = 0 | |
1690 | blast2.CFrame = HandCF | |
1691 | local bm2 = Instance.new("SpecialMesh", blast2) | |
1692 | bm2.Scale = Vector3.new(3,1,3) | |
1693 | bm2.MeshId = "rbxassetid://3270017" | |
1694 | local blast3 = Instance.new("Part", rarm) | |
1695 | blast3.BrickColor = BrickColor.new("New Yeller") | |
1696 | blast3.Anchored = true | |
1697 | blast3.CanCollide = false | |
1698 | blast3.Locked = true | |
1699 | blast3.Size = Vector3.new(1, 1, 1) | |
1700 | blast3.TopSurface = "Smooth" | |
1701 | blast3.BottomSurface = "Smooth" | |
1702 | blast3.Transparency = 0 | |
1703 | blast3.CFrame = HandCF | |
1704 | local bm3 = Instance.new("SpecialMesh", blast3) | |
1705 | bm3.Scale = Vector3.new(3,1,3) | |
1706 | bm3.MeshId = "rbxassetid://3270017" | |
1707 | for i = 1,120 do rs:wait() | |
1708 | X.Transparency = X.Transparency + (1/120) | |
1709 | part.Transparency = part.Transparency + (1/120) | |
1710 | part2.Transparency = part2.Transparency + (1/120) | |
1711 | part3.Transparency = part3.Transparency + (1/120) | |
1712 | part4.Transparency = part4.Transparency + (1/120) | |
1713 | part5.Transparency = part5.Transparency + (1/120) | |
1714 | part6.Transparency = part6.Transparency + (1/120) | |
1715 | part7.Transparency = part7.Transparency + (1/120) | |
1716 | blast.Transparency = blast.Transparency + (1/120) | |
1717 | blast2.Transparency = blast2.Transparency + (1/120) | |
1718 | blast3.Transparency = blast3.Transparency + (1/120) | |
1719 | X.Size = X.Size + Vector3.new(.8,.8,.8) | |
1720 | --part3.Size = part3.Size + Vector3.new(3,3,3) | |
1721 | mesh.Scale = mesh.Scale + Vector3.new(1,.2,1) | |
1722 | mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1) | |
1723 | mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3) | |
1724 | mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7) | |
1725 | mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6) | |
1726 | mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2) | |
1727 | mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4) | |
1728 | bm.Scale = bm.Scale + Vector3.new(6,6,.2) | |
1729 | bm2.Scale = bm2.Scale + Vector3.new(4,4,.2) | |
1730 | bm3.Scale = bm3.Scale + Vector3.new(4,4,.2) | |
1731 | X.CFrame = cf | |
1732 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
1733 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
1734 | part3.CFrame=X.CFrame | |
1735 | part4.CFrame=X.CFrame | |
1736 | part7.CFrame=X.CFrame | |
1737 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
1738 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
1739 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1740 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
1741 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
1742 | rs:wait() | |
1743 | end | |
1744 | X:Destroy() | |
1745 | part:Destroy() | |
1746 | part2:Destroy() | |
1747 | part3:Destroy() | |
1748 | part4:Destroy() | |
1749 | part5:Destroy() | |
1750 | part6:Destroy() | |
1751 | blast:Destroy() | |
1752 | blast2:Destroy() | |
1753 | blast3:Destroy() | |
1754 | z:Destroy() | |
1755 | z1:Destroy() | |
1756 | z2:Destroy() | |
1757 | z3:Destroy() | |
1758 | z4:Destroy() | |
1759 | end | |
1760 | end) | |
1761 | for i = 1, 20 do | |
1762 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
1763 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
1764 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
1765 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
1766 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
1767 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
1768 | if Debounces.on == false then break end | |
1769 | rs:wait() | |
1770 | end | |
1771 | if Debounces.CanAttack == false then | |
1772 | Debounces.CanAttack = true | |
1773 | Debounces.NoIdl = false | |
1774 | Debounces.on = false | |
1775 | end | |
1776 | end | |
1777 | end | |
1778 | end) | |
1779 | ---------------------------------------------------- | |
1780 | mouse.KeyDown:connect(function(key) | |
1781 | if key == "e" then | |
1782 | if Debounces.CanAttack == true then | |
1783 | Debounces.CanAttack = false | |
1784 | Debounces.on = true | |
1785 | Debounces.NoIdl = true | |
1786 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5} | |
1787 | z = Instance.new("Sound", rarm) | |
1788 | z.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
1789 | z.Volume = .6 | |
1790 | z.Pitch = pt[math.random(1,#pt)] | |
1791 | z.Looped = false | |
1792 | z:Play() | |
1793 | Debounces.RPunch = true | |
1794 | Debounces.LPunch = true | |
1795 | Debounces.ks = true | |
1796 | Debounces.ks2 = true | |
1797 | for i = 1, 3 do | |
1798 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
1799 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
1800 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1801 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1802 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1803 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1804 | if Debounces.on == false then break end | |
1805 | wait() | |
1806 | end | |
1807 | z2 = Instance.new("Sound", larm) | |
1808 | z2.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1809 | z2.Volume = .6 | |
1810 | z2.Pitch = pt[math.random(1,#pt)] | |
1811 | z2.Looped = false | |
1812 | z2:Play() | |
1813 | for i = 1, 3 do | |
1814 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1815 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1816 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1817 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1818 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1819 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1820 | if Debounces.on == false then break end | |
1821 | wait() | |
1822 | end | |
1823 | z3 = Instance.new("Sound", rarm) | |
1824 | z3.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1825 | z3.Volume = 0.6 | |
1826 | z3.Pitch = pt[math.random(1,#pt)] | |
1827 | z3.Looped = false | |
1828 | z3:Play() | |
1829 | for i = 1, 3 do | |
1830 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1831 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1832 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1833 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1834 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1835 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1836 | if Debounces.on == false then break end | |
1837 | wait() | |
1838 | end | |
1839 | z4 = Instance.new("Sound", larm) | |
1840 | z4.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1841 | z4.Volume = .6 | |
1842 | z4.Pitch = pt[math.random(1,#pt)] | |
1843 | z4.Looped = false | |
1844 | z4:Play() | |
1845 | for i = 1, 3 do | |
1846 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1847 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1848 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1849 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1850 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1851 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1852 | if Debounces.on == false then break end | |
1853 | wait() | |
1854 | end | |
1855 | z5 = Instance.new("Sound", rarm) | |
1856 | z5.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1857 | z5.Volume = .6 | |
1858 | z5.Pitch = pt[math.random(1,#pt)] | |
1859 | z5.Looped = false | |
1860 | z5:Play() | |
1861 | for i = 1, 3 do | |
1862 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
1863 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
1864 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
1865 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
1866 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
1867 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
1868 | if Debounces.on == false then break end | |
1869 | wait() | |
1870 | end | |
1871 | z6 = Instance.new("Sound", larm) | |
1872 | z6.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1873 | z6.Volume = .6 | |
1874 | z6.Pitch = pt[math.random(1,#pt)] | |
1875 | z6.Looped = false | |
1876 | z6:Play() | |
1877 | for i = 1, 3 do | |
1878 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1879 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1880 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1881 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1882 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1883 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1884 | if Debounces.on == false then break end | |
1885 | wait() | |
1886 | end | |
1887 | z7 = Instance.new("Sound", rarm) | |
1888 | z7.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
1889 | z7.Volume = .6 | |
1890 | z7.Pitch = pt[math.random(1,#pt)] | |
1891 | z7.Looped = false | |
1892 | z7:Play() | |
1893 | for i = 1, 3 do | |
1894 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
1895 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
1896 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1897 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1898 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1899 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1900 | if Debounces.on == false then break end | |
1901 | wait() | |
1902 | end | |
1903 | z8 = Instance.new("Sound", larm) | |
1904 | z8.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1905 | z8.Volume = .6 | |
1906 | z8.Pitch = pt[math.random(1,#pt)] | |
1907 | z8.Looped = false | |
1908 | z8:Play() | |
1909 | for i = 1, 3 do | |
1910 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1911 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1912 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1913 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1914 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1915 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1916 | if Debounces.on == false then break end | |
1917 | wait() | |
1918 | end | |
1919 | z9 = Instance.new("Sound", rarm) | |
1920 | z9.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1921 | z9.Volume = 0.6 | |
1922 | z9.Pitch = pt[math.random(1,#pt)] | |
1923 | z9.Looped = false | |
1924 | z9:Play() | |
1925 | for i = 1, 3 do | |
1926 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1927 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1928 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1929 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1930 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1931 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1932 | if Debounces.on == false then break end | |
1933 | wait() | |
1934 | end | |
1935 | z10 = Instance.new("Sound", larm) | |
1936 | z10.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1937 | z10.Volume = .6 | |
1938 | z10.Pitch = pt[math.random(1,#pt)] | |
1939 | z10.Looped = false | |
1940 | z10:Play() | |
1941 | for i = 1, 3 do | |
1942 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1943 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
1944 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1945 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1946 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1947 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1948 | if Debounces.on == false then break end | |
1949 | wait() | |
1950 | end | |
1951 | z11 = Instance.new("Sound", rarm) | |
1952 | z11.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1953 | z11.Volume = .6 | |
1954 | z11.Pitch = pt[math.random(1,#pt)] | |
1955 | z11.Looped = false | |
1956 | z11:Play() | |
1957 | for i = 1, 3 do | |
1958 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
1959 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
1960 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
1961 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
1962 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
1963 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
1964 | if Debounces.on == false then break end | |
1965 | wait() | |
1966 | end | |
1967 | z12 = Instance.new("Sound", larm) | |
1968 | z12.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1969 | z12.Volume = .6 | |
1970 | z12.Pitch = pt[math.random(1,#pt)] | |
1971 | z12.Looped = false | |
1972 | z12:Play() | |
1973 | for i = 1, 3 do | |
1974 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
1975 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
1976 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
1977 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
1978 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
1979 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
1980 | if Debounces.on == false then break end | |
1981 | wait() | |
1982 | end | |
1983 | z13 = Instance.new("Sound", rarm) | |
1984 | z13.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
1985 | z13.Volume = 0.6 | |
1986 | z13.Pitch = pt[math.random(1,#pt)] | |
1987 | z13.Looped = false | |
1988 | z13:Play() | |
1989 | for i = 1, 3 do | |
1990 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
1991 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
1992 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
1993 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
1994 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
1995 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
1996 | if Debounces.on == false then break end | |
1997 | wait() | |
1998 | end | |
1999 | z14 = Instance.new("Sound", larm) | |
2000 | z14.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
2001 | z14.Volume = .6 | |
2002 | z14.Pitch = pt[math.random(1,#pt)] | |
2003 | z14.Looped = false | |
2004 | z14:Play() | |
2005 | for i = 1, 3 do | |
2006 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2007 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2008 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2009 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2010 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2011 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2012 | if Debounces.on == false then break end | |
2013 | wait() | |
2014 | end | |
2015 | z15 = Instance.new("Sound", rarm) | |
2016 | z15.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
2017 | z15.Volume = .6 | |
2018 | z15.Pitch = pt[math.random(1,#pt)] | |
2019 | z15.Looped = false | |
2020 | z15:Play() | |
2021 | for i = 1, 3 do | |
2022 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
2023 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
2024 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
2025 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
2026 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
2027 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
2028 | if Debounces.on == false then break end | |
2029 | wait() | |
2030 | end | |
2031 | z16 = Instance.new("Sound", larm) | |
2032 | z16.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
2033 | z16.Volume = .6 | |
2034 | z16.Pitch = pt[math.random(1,#pt)] | |
2035 | z16.Looped = false | |
2036 | z16:Play() | |
2037 | for i = 1, 3 do | |
2038 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2039 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2040 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2041 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2042 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2043 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2044 | if Debounces.on == false then break end | |
2045 | wait() | |
2046 | end | |
2047 | z17 = Instance.new("Sound", rarm) | |
2048 | z17.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
2049 | z17.Volume = .6 | |
2050 | z17.Pitch = pt[math.random(1,#pt)] | |
2051 | z17.Looped = false | |
2052 | z17:Play() | |
2053 | for i = 1, 3 do | |
2054 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
2055 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
2056 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2057 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2058 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2059 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2060 | if Debounces.on == false then break end | |
2061 | wait() | |
2062 | end | |
2063 | z18 = Instance.new("Sound", larm) | |
2064 | z18.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
2065 | z18.Volume = .6 | |
2066 | z18.Pitch = pt[math.random(1,#pt)] | |
2067 | z18.Looped = false | |
2068 | z18:Play() | |
2069 | for i = 1, 3 do | |
2070 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2071 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
2072 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2073 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2074 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2075 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2076 | if Debounces.on == false then break end | |
2077 | wait() | |
2078 | end | |
2079 | z19 = Instance.new("Sound", rarm) | |
2080 | z19.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
2081 | z19.Volume = 0.6 | |
2082 | z19.Pitch = pt[math.random(1,#pt)] | |
2083 | z19.Looped = false | |
2084 | z19:Play() | |
2085 | for i = 1, 3 do | |
2086 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
2087 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
2088 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2089 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2090 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2091 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2092 | if Debounces.on == false then break end | |
2093 | wait() | |
2094 | end | |
2095 | z20 = Instance.new("Sound", larm) | |
2096 | z20.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
2097 | z20.Volume = .6 | |
2098 | z20.Pitch = pt[math.random(1,#pt)] | |
2099 | z20.Looped = false | |
2100 | z20:Play() | |
2101 | for i = 1, 3 do | |
2102 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2103 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2104 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2105 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2106 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2107 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2108 | if Debounces.on == false then break end | |
2109 | wait() | |
2110 | end | |
2111 | z:Destroy() | |
2112 | z2:Destroy() | |
2113 | z3:Destroy() | |
2114 | z4:Destroy() | |
2115 | z5:Destroy() | |
2116 | z6:Destroy() | |
2117 | z7:Destroy() | |
2118 | z8:Destroy() | |
2119 | z9:Destroy() | |
2120 | z10:Destroy() | |
2121 | z11:Destroy() | |
2122 | z12:Destroy() | |
2123 | z13:Destroy() | |
2124 | z14:Destroy() | |
2125 | z15:Destroy() | |
2126 | z16:Destroy() | |
2127 | z17:Destroy() | |
2128 | z18:Destroy() | |
2129 | z19:Destroy() | |
2130 | z20:Destroy() | |
2131 | Debounces.LPunch = false | |
2132 | Debounces.RPunch = false | |
2133 | Debounces.ks = false | |
2134 | Debounces.ks2 = false | |
2135 | if Debounces.CanAttack == false then | |
2136 | Debounces.CanAttack = true | |
2137 | Debounces.on = false | |
2138 | Debounces.NoIdl = false | |
2139 | end | |
2140 | end | |
2141 | end | |
2142 | end) | |
2143 | ------------------------------- | |
2144 | mouse.KeyDown:connect(function(key) | |
2145 | if key == "t" then | |
2146 | if Debounces.CanAttack == true then | |
2147 | Debounces.CanAttack = false | |
2148 | Debounces.NoIdl = true | |
2149 | Debounces.on = true | |
2150 | Debounces.ks = true | |
2151 | kik = rleg.Touched:connect(function(ht) | |
2152 | hit = ht.Parent | |
2153 | if ht and hit:IsA("Model") then | |
2154 | if hit:FindFirstChild("Humanoid") then | |
2155 | if hit.Name ~= p.Name then | |
2156 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2157 | Debounces.Slashed = true]]-- | |
2158 | if Debounces.ks==true then | |
2159 | z = Instance.new("Sound",hed) | |
2160 | z.SoundId = "rbxassetid://169380525" | |
2161 | z.Volume = 1 | |
2162 | z:Play() | |
2163 | Debounces.ks=false | |
2164 | end | |
2165 | hit:FindFirstChild("Humanoid"):TakeDamage(2) | |
2166 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300 | |
2167 | --Debounces.Slashed = false | |
2168 | --end | |
2169 | end | |
2170 | end | |
2171 | elseif ht and hit:IsA("Hat") then | |
2172 | if hit.Parent.Name ~= p.Name then | |
2173 | if hit.Parent:FindFirstChild("Humanoid") then | |
2174 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2175 | Debounces.Slashed = true]]-- | |
2176 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2) | |
2177 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300 | |
2178 | --Debounces.Slashed = false | |
2179 | --end | |
2180 | end | |
2181 | end | |
2182 | end | |
2183 | end) | |
2184 | for i = 1,20 do | |
2185 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
2186 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.4) | |
2187 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2188 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), math.rad(90)), 0.4) | |
2189 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-90)), 0.4) | |
2190 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
2191 | if Debounces.on == false then break end | |
2192 | rs:wait() | |
2193 | end | |
2194 | kik:disconnect() | |
2195 | if Debounces.CanAttack == false then | |
2196 | Debounces.CanAttack = true | |
2197 | Debounces.NoIdl = false | |
2198 | Debounces.on = false | |
2199 | end | |
2200 | end | |
2201 | end | |
2202 | end) | |
2203 | ---------------------------------------------------- | |
2204 | mouse.KeyDown:connect(function(key) | |
2205 | if key == "y" then | |
2206 | if Debounces.CanAttack == true then | |
2207 | Debounces.CanAttack = false | |
2208 | Debounces.on = true | |
2209 | Debounces.NoIdl = true | |
2210 | for i = 1, 15 do | |
2211 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.2) | |
2212 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.6) | |
2213 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) | |
2214 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.4) | |
2215 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
2216 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
2217 | if Debounces.on == false then break end | |
2218 | rs:wait(2.7) | |
2219 | end | |
2220 | x = Instance.new("Sound",char) | |
2221 | x.SoundId = "rbxassetid://228343271" | |
2222 | x.Pitch = 1 | |
2223 | x.Volume = .8 | |
2224 | wait(.1) | |
2225 | x:Play() | |
2226 | Debounces.on = false | |
2227 | Debounces.Here = false | |
2228 | shot = shot + 1 | |
2229 | local rng = Instance.new("Part", larm) | |
2230 | rng.Anchored = true | |
2231 | rng.BrickColor = BrickColor.new("New Yeller") | |
2232 | rng.CanCollide = false | |
2233 | rng.FormFactor = 3 | |
2234 | rng.Name = "Ring" | |
2235 | rng.Size = Vector3.new(1, 1, 1) | |
2236 | rng.Transparency = 0.35 | |
2237 | rng.TopSurface = 0 | |
2238 | rng.BottomSurface = 0 | |
2239 | rng2 = rng:clone() | |
2240 | rng3 = rng2:clone() | |
2241 | rng4 = rng2:clone() | |
2242 | local rngm = Instance.new("SpecialMesh", rng) | |
2243 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2244 | rngm.Scale = Vector3.new(10, 10, 1) | |
2245 | rngm2 = rngm:clone() | |
2246 | rngm2.Scale = Vector3.new(5, 5, 3) | |
2247 | rngm3=rngm2:clone() | |
2248 | rngm3.Parent = rng3 | |
2249 | rngm3.Scale = Vector3.new(8, 8, 1) | |
2250 | rngm4 = rngm2:clone() | |
2251 | rngm4.Parent = rng4 | |
2252 | rngm4.Scale = Vector3.new(6, 6, 1) | |
2253 | local bem = Instance.new("Part", larm) | |
2254 | bem.Anchored = true | |
2255 | bem.BrickColor = BrickColor.new("New Yeller") | |
2256 | bem.CanCollide = false | |
2257 | bem.FormFactor = 3 | |
2258 | bem.Name = "Beam" .. shot | |
2259 | bem.Size = Vector3.new(1, 1, 1) | |
2260 | bem.Transparency = 0.35 | |
2261 | bem.TopSurface = 0 | |
2262 | bem.BottomSurface = 0 | |
2263 | local bemm = Instance.new("SpecialMesh", bem) | |
2264 | bemm.MeshType = 4 | |
2265 | bemm.Scale = Vector3.new(1, 4, 4) | |
2266 | local out = Instance.new("Part", larm) | |
2267 | out.Anchored = true | |
2268 | out.BrickColor = BrickColor.new("New Yeller") | |
2269 | out.CanCollide = false | |
2270 | out.FormFactor = 3 | |
2271 | out.Name = "Out" | |
2272 | out.Size = Vector3.new(4, 4, 4) | |
2273 | out.Transparency = 0.35 | |
2274 | out.TopSurface = 0 | |
2275 | out.BottomSurface = 0 | |
2276 | local outm = Instance.new("SpecialMesh", out) | |
2277 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
2278 | outm.Scale = Vector3.new(6, 4, 6) | |
2279 | local bnd = Instance.new("Part", larm) | |
2280 | bnd.Anchored = true | |
2281 | bnd.BrickColor = BrickColor.new("New Yeller") | |
2282 | bnd.CanCollide = false | |
2283 | bnd.FormFactor = 3 | |
2284 | bnd.Name = "Bend" | |
2285 | bnd.Size = Vector3.new(1, 1, 1) | |
2286 | bnd.Transparency = 1 | |
2287 | bnd.TopSurface = 0 | |
2288 | bnd.BottomSurface = 0 | |
2289 | local bndm = Instance.new("SpecialMesh", bnd) | |
2290 | bndm.MeshType = 3 | |
2291 | bndm.Scale = Vector3.new(8, 8, 8) | |
2292 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
2293 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2294 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
2295 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
2296 | rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) | |
2297 | rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0) | |
2298 | Debounces.Shewt = true | |
2299 | coroutine.wrap(function() | |
2300 | for i = 1, 20, 0.2 do | |
2301 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
2302 | rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1) | |
2303 | rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1) | |
2304 | rng.Transparency = i/20 | |
2305 | rng3.Transparency = 1/24 | |
2306 | rng4.Transparency = i/26 | |
2307 | wait() | |
2308 | end | |
2309 | wait() | |
2310 | rng:Destroy() | |
2311 | end)() | |
2312 | if Debounces.Shewt == true then | |
2313 | larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht) | |
2314 | hit = ht.Parent | |
2315 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
2316 | if HasntTouched(hit.Name) == true and deb == false then | |
2317 | deb = true | |
2318 | coroutine.wrap(function() | |
2319 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2320 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
2321 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73)) | |
2322 | end)() | |
2323 | table.insert(Touche, hit.Name) | |
2324 | deb = false | |
2325 | end | |
2326 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
2327 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
2328 | deb = true | |
2329 | coroutine.wrap(function() | |
2330 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
2331 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
2332 | wait(1) | |
2333 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
2334 | end)() | |
2335 | table.insert(Touche, hit.Parent.Name) | |
2336 | deb = false | |
2337 | for i, v in pairs(Touche) do | |
2338 | print(v) | |
2339 | end | |
2340 | end | |
2341 | end | |
2342 | end) | |
2343 | end | |
2344 | for i = 0, 260, 8 do | |
2345 | bem.Size = Vector3.new(i, 3, 3) | |
2346 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
2347 | bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2348 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
2349 | bnd.Size = Vector3.new(1,1,1) | |
2350 | bndm.Scale = Vector3.new(8,8,8) | |
2351 | if i % 10 == 0 then | |
2352 | local newRng = rng2:Clone() | |
2353 | newRng.Parent = larm | |
2354 | newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
2355 | local newRngm = rngm2:clone() | |
2356 | newRngm.Parent=newRng | |
2357 | coroutine.wrap(function() | |
2358 | for i = 1, 10, 0.2 do | |
2359 | newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 3) | |
2360 | newRng.Transparency = i/10 | |
2361 | wait() | |
2362 | end | |
2363 | wait() | |
2364 | newRng:Destroy() | |
2365 | end)() | |
2366 | end | |
2367 | wait() | |
2368 | end | |
2369 | wait() | |
2370 | Debounces.Shewt = false | |
2371 | bem:Destroy() | |
2372 | out:Destroy() | |
2373 | bnd:Destroy() | |
2374 | Debounces.Ready = false | |
2375 | for i, v in pairs(Touche) do | |
2376 | table.remove(Touche, i) | |
2377 | end | |
2378 | wait() | |
2379 | table.insert(Touche, char.Name) | |
2380 | Debounces.NoIdl = false | |
2381 | if Debounces.CanAttack == false then | |
2382 | Debounces.CanAttack = true | |
2383 | end | |
2384 | end | |
2385 | end | |
2386 | end) | |
2387 | ---------------------------------------------------- | |
2388 | --[[mouse.KeyDown:connect(function(key) | |
2389 | if key == "y" then | |
2390 | if Debounces.CanAttack == true then | |
2391 | Debounces.CanAttack = false | |
2392 | Debounces.NoIdl = true | |
2393 | Debounces.on = true | |
2394 | local shell = Instance.new("Part",torso) | |
2395 | shell.BrickColor = BrickColor.new("New Yeller") | |
2396 | shell.Anchored = false | |
2397 | shell.CanCollide = false | |
2398 | shell.Locked = true | |
2399 | shell.TopSurface = "SmoothNoOutlines" | |
2400 | shell.BottomSurface = "SmoothNoOutlines" | |
2401 | shell.Size = Vector3.new(1.2,1.2,1.2) | |
2402 | shell.FormFactor = 3 | |
2403 | local shellm = Instance.new("SpecialMesh",shell) | |
2404 | shellm.MeshType = "Sphere" | |
2405 | shellm.Scale = Vector3.new(1.2,1.2,1.2) | |
2406 | Omega = function() | |
2407 | local X = Instance.new("Part",char) | |
2408 | local O = Instance.new("ObjectValue",X) | |
2409 | O.Name = "creator" | |
2410 | X.Locked = true | |
2411 | X.Name = "Shell" | |
2412 | X.Anchored = false | |
2413 | X.CanCollide = false | |
2414 | X.Transparency = 0.5 | |
2415 | X.Reflectance = 0 | |
2416 | X.BottomSurface = 0 | |
2417 | X.TopSurface = 0 | |
2418 | X.Shape = 0 | |
2419 | local V = Instance.new("ObjectValue",X) | |
2420 | V.Value = char | |
2421 | V.Name = "creator" | |
2422 | X.BrickColor = BrickColor.new("New Yeller") | |
2423 | X.Size = Vector3.new(40,40,40) | |
2424 | --X.Material = "Neon" | |
2425 | local Z = Instance.new("SpecialMesh",X) | |
2426 | Z.MeshType = "Sphere" | |
2427 | Z.Scale = Vector3.new(0.2,0.2,0.2) | |
2428 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
2429 | local bv = Instance.new("BodyVelocity",X) | |
2430 | bv.maxForce = Vector3.new(99999,99999,99999) | |
2431 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
2432 | bv.velocity = root.CFrame.lookVector*10 | |
2433 | Explode = X.Touched:connect(function(hit) | |
2434 | if hit ~= char and hit.Name ~= "Shell" and hit ~= X and hit:IsA("Part") or hit:IsA("BasePart}") then | |
2435 | local cf = X.CFrame | |
2436 | bv:Destroy() | |
2437 | X.Anchored = true | |
2438 | Z:Remove() | |
2439 | Explode:disconnect() | |
2440 | X.Size = Vector3.new(3,3,3) | |
2441 | X.Touched:connect(function(hit) end) | |
2442 | X.CanCollide = false | |
2443 | for i,v in pairs(FindNearestTorso(X.CFrame.p,200))do | |
2444 | if v:FindFirstChild('Humanoid') then | |
2445 | v.Humanoid:TakeDamage(math.random(80,120)) | |
2446 | end | |
2447 | end | |
2448 | for i = 1, (40) do rs:wait() | |
2449 | X.Transparency = X.Transparency + (1/40) | |
2450 | X.Size = X.Size + Vector3.new(1,1,1) | |
2451 | X.CFrame = root.CFrame * CFrame.new(0,0,-10) | |
2452 | end | |
2453 | X:Destroy() | |
2454 | end | |
2455 | end) | |
2456 | end | |
2457 | for i = 1,200 do | |
2458 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2459 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.03) | |
2460 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
2461 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2462 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2463 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2464 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2465 | if Debounces.on == false then break end | |
2466 | rs:wait() | |
2467 | end | |
2468 | for i = 1,30 do | |
2469 | shell.CFrame = torso.CFrame * CFrame.new(0,8,0) | |
2470 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.4) | |
2471 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-170)), 0.4) | |
2472 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2473 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2474 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2475 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2476 | if Debounces.on == false then break end | |
2477 | rs:wait() | |
2478 | end | |
2479 | for i = 1,40 do | |
2480 | shell.CFrame = torso.CFrame * CFrame.new(0,20,0) | |
2481 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
2482 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(100)), 0.4) | |
2483 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-100)), 0.4) | |
2484 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2485 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2486 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2487 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2488 | if Debounces.on == false then break end | |
2489 | rs:wait() | |
2490 | end | |
2491 | for i = 1,40 do | |
2492 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-30) | |
2493 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(20)), 0.4) | |
2494 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.4) | |
2495 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2496 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2497 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2498 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2499 | if Debounces.on == false then break end | |
2500 | rs:wait() | |
2501 | end | |
2502 | for i = 1,60 do | |
2503 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
2504 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-30)), 0.4) | |
2505 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.4) | |
2506 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2507 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2508 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2509 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2510 | if Debounces.on == false then break end | |
2511 | rs:wait() | |
2512 | end | |
2513 | for i = 1,60 do | |
2514 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
2515 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
2516 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(120)), 0.4) | |
2517 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-120)), 0.4) | |
2518 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2519 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2520 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2521 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
2522 | if Debounces.on == false then break end | |
2523 | rs:wait() | |
2524 | end | |
2525 | if Debounces.CanAttack == false then | |
2526 | Debounces.CanAttack = true | |
2527 | Debounces.NoIdl = false | |
2528 | Debounces.on = false | |
2529 | end | |
2530 | end | |
2531 | end | |
2532 | end)]]-- | |
2533 | ---------------------------------------------------- | |
2534 | Charging = false | |
2535 | mouse.KeyDown:connect(function(key) | |
2536 | if key == "r" then | |
2537 | if Charging == false then | |
2538 | Charging = true | |
2539 | if Debounces.CanAttack == true then | |
2540 | Debounces.CanAttack = false | |
2541 | Debounces.NoIdl = true | |
2542 | Debounces.on = true | |
2543 | for i = 1,20 do | |
2544 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-40)), 0.2) | |
2545 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(40)), 0.2) | |
2546 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
2547 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
2548 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
2549 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
2550 | if Debounces.on == false then break end | |
2551 | rs:wait() | |
2552 | end | |
2553 | --[[for i = 1,20 do | |
2554 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(-20),math.rad(50)), 0.4) | |
2555 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-50)), 0.4) | |
2556 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
2557 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4) | |
2558 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
2559 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
2560 | if Debounces.on == false then break end | |
2561 | rs:wait() | |
2562 | end]]-- | |
2563 | pt=Instance.new('Part',torso) | |
2564 | pt.Anchored=true | |
2565 | pt.CanCollide=false | |
2566 | pt.Locked = true | |
2567 | pt.FormFactor='Custom' | |
2568 | pt.Size=Vector3.new(1,1,1) | |
2569 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
2570 | pt.Transparency=.6 | |
2571 | pt.BrickColor=BrickColor.new('New Yeller') | |
2572 | msh=Instance.new('SpecialMesh',pt) | |
2573 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
2574 | msh.Scale=Vector3.new(8,4,8) | |
2575 | pt2=pt:clone() | |
2576 | pt2.Parent = torso | |
2577 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
2578 | pt2.BrickColor=BrickColor.new("New Yeller") | |
2579 | msh2=msh:clone() | |
2580 | msh2.Parent=pt2 | |
2581 | msh2.Scale=Vector3.new(10,5,10) | |
2582 | ||
2583 | 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} | |
2584 | ||
2585 | bl = Instance.new("Part", char) | |
2586 | bl.Locked = true | |
2587 | bl.Name = "Shell" | |
2588 | bl.BrickColor = BrickColor.new("New Yeller") | |
2589 | bl.Anchored = true | |
2590 | bl.CanCollide = false | |
2591 | bl.Transparency = 0 | |
2592 | bl.Reflectance = 0 | |
2593 | bl.BottomSurface = 0 | |
2594 | bl.TopSurface = 0 | |
2595 | bl.Shape = 0 | |
2596 | blm = Instance.new("SpecialMesh",bl) | |
2597 | blm.MeshType = "Sphere" | |
2598 | blm.Scale = Vector3.new(1,1,1) | |
2599 | blm.MeshId = "rbxassetid://9982590" | |
2600 | ||
2601 | coroutine.resume(coroutine.create(function() | |
2602 | for i=1, math.huge, 4 do | |
2603 | if Charging == true then | |
2604 | rs:wait() | |
2605 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
2606 | blm.Scale = blm.Scale + Vector3.new(0.1, 0.1, 0.1) | |
2607 | bl.Transparency = bl.Transparency + 0.005 | |
2608 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
2609 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
2610 | msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05) | |
2611 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05) | |
2612 | elseif Charging == false then break | |
2613 | end | |
2614 | end | |
2615 | end)) | |
2616 | ||
2617 | repeat | |
2618 | local p = Instance.new('Part',torso) | |
2619 | p.formFactor = 'Custom' | |
2620 | p.Size = Vector3.new(1,1,1) | |
2621 | p.BrickColor = workspace.Base.BrickColor | |
2622 | p.CanCollide = false | |
2623 | p.Transparency = 0 | |
2624 | p.Anchored = true | |
2625 | p.Locked=true | |
2626 | p.Material = workspace.Base.Material | |
2627 | s = math.random(1,40)/10 | |
2628 | local m = Instance.new("BlockMesh",p) | |
2629 | m.Scale = Vector3.new(s,s,s) | |
2630 | p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
2631 | --[[coroutine.wrap(function() | |
2632 | wait(2) | |
2633 | while Charging == true do | |
2634 | wait(2) | |
2635 | GroundWave1() | |
2636 | wait(2) | |
2637 | end | |
2638 | end)()]]-- | |
2639 | Spawn(function() | |
2640 | while rs:wait() do | |
2641 | if Charging == true then | |
2642 | rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50))) | |
2643 | larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30))) | |
2644 | hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0)) | |
2645 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
2646 | lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10))) | |
2647 | rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20))) | |
2648 | elseif Charging == false then break | |
2649 | end | |
2650 | end | |
2651 | end) | |
2652 | Spawn(function() | |
2653 | while rs:wait() do | |
2654 | if p.Transparency >= 1 then p:Destroy() break end | |
2655 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
2656 | p.Transparency = p.Transparency+0.01 | |
2657 | end | |
2658 | end) | |
2659 | wait(.3) | |
2660 | until Charging == false | |
2661 | end | |
2662 | end | |
2663 | end | |
2664 | end) | |
2665 | ---------------------------------------------------- | |
2666 | mouse.KeyUp:connect(function(key) | |
2667 | if key == "r" then | |
2668 | if Charging == true then | |
2669 | Charging = false | |
2670 | pt:Destroy() | |
2671 | pt2:Destroy() | |
2672 | bl:Destroy() | |
2673 | if Debounces.CanAttack == false then | |
2674 | Debounces.CanAttack = true | |
2675 | Debounces.NoIdl = false | |
2676 | Debounces.on = false | |
2677 | end | |
2678 | end | |
2679 | end | |
2680 | end) | |
2681 | ---------------------------------------------------- | |
2682 | mouse.KeyDown:connect(function(key) | |
2683 | if key == "g" then | |
2684 | if Debounces.CanAttack == true then | |
2685 | Debounces.CanAttack = false | |
2686 | Debounces.NoIdl = true | |
2687 | Debounces.on = true | |
2688 | local shell = Instance.new("Part",torso) | |
2689 | shell.BrickColor = BrickColor.new("New Yeller") | |
2690 | shell.Anchored = true | |
2691 | shell.CanCollide = false | |
2692 | shell.Locked = true | |
2693 | shell.TopSurface = "SmoothNoOutlines" | |
2694 | shell.BottomSurface = "SmoothNoOutlines" | |
2695 | shell.Size = Vector3.new(1,1,1) | |
2696 | shellm = Instance.new("SpecialMesh",shell) | |
2697 | shellm.MeshType = "Sphere" | |
2698 | shellm.Scale = Vector3.new(1,1,1) | |
2699 | local shell2 = Instance.new("Part",torso) | |
2700 | shell2.BrickColor = BrickColor.new("New Yeller") | |
2701 | shell2.Anchored = true | |
2702 | shell2.CanCollide = false | |
2703 | shell2.Locked = true | |
2704 | shell2.TopSurface = "SmoothNoOutlines" | |
2705 | shell2.BottomSurface = "SmoothNoOutlines" | |
2706 | shell2.Size = Vector3.new(1,1,1) | |
2707 | shellm2 = Instance.new("SpecialMesh",shell2) | |
2708 | shellm2.MeshType = "Sphere" | |
2709 | shellm2.Scale = Vector3.new(1,1,1) | |
2710 | ||
2711 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
2712 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
2713 | local List = {} | |
2714 | for i,v in pairs(workspace:GetChildren())do | |
2715 | if v:IsA("Model")then | |
2716 | if v:findFirstChild("Torso")then | |
2717 | if v ~= char then | |
2718 | if(v.Torso.Position -Position).magnitude <= Distance then | |
2719 | table.insert(List,v) | |
2720 | end | |
2721 | end | |
2722 | end | |
2723 | end | |
2724 | end | |
2725 | return List | |
2726 | end | |
2727 | ||
2728 | Shell = function() | |
2729 | local X = Instance.new("Part",char) | |
2730 | local O = Instance.new("ObjectValue",X) | |
2731 | O.Name = "creator" | |
2732 | X.Locked = true | |
2733 | X.Name = "Shell" | |
2734 | X.Anchored = false | |
2735 | X.CanCollide = false | |
2736 | X.Transparency = 0 | |
2737 | X.Reflectance = 0 | |
2738 | X.BottomSurface = 0 | |
2739 | X.TopSurface = 0 | |
2740 | X.Shape = 0 | |
2741 | local V = Instance.new("ObjectValue",X) | |
2742 | V.Value = char | |
2743 | V.Name = "creator" | |
2744 | X.BrickColor = BrickColor.new("New Yeller") | |
2745 | X.Size = Vector3.new(1,1,1) | |
2746 | --X.Material = "Neon" | |
2747 | local Z = Instance.new("SpecialMesh",X) | |
2748 | Z.MeshType = "Sphere" | |
2749 | Z.Scale = Vector3.new(1,1,1) | |
2750 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
2751 | local bv = Instance.new("BodyVelocity",X) | |
2752 | bv.maxForce = Vector3.new(99999,99999,99999) | |
2753 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
2754 | bv.velocity = root.CFrame.lookVector*65 | |
2755 | Explode = X.Touched:connect(function(hit) | |
2756 | if hit ~= char and hit.Name ~= "Shell" and hit:IsA("Part") or hit:IsA("BasePart}") then | |
2757 | local cf = X.CFrame | |
2758 | bv:Destroy() | |
2759 | X.Anchored = true | |
2760 | Z:Remove() | |
2761 | Explode:disconnect() | |
2762 | X.Size = Vector3.new(3,3,3) | |
2763 | X.Touched:connect(function(hit) end) | |
2764 | X.CanCollide = false | |
2765 | for i,v in pairs(FindNearestTorso(X.CFrame.p,40))do | |
2766 | if v:FindFirstChild('Humanoid') then | |
2767 | v.Humanoid:TakeDamage(math.random(6,12)) | |
2768 | end | |
2769 | end | |
2770 | for i = 1, (40) do rs:wait() | |
2771 | X.Transparency = X.Transparency + (1/40) | |
2772 | X.Size = X.Size + Vector3.new(1,1,1) | |
2773 | X.CFrame = cf | |
2774 | end | |
2775 | X:Destroy() | |
2776 | end | |
2777 | end) | |
2778 | end | |
2779 | Shell() | |
2780 | for i = 1, 10 do | |
2781 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2782 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2783 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2784 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2785 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.7) | |
2786 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.7) | |
2787 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.7) | |
2788 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.7) | |
2789 | if Debounces.on == false then break end | |
2790 | rs:wait() | |
2791 | end | |
2792 | Shell() | |
2793 | shell.Transparency = 1 | |
2794 | for i = 1, 10 do | |
2795 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2796 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2797 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2798 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2799 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2800 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2801 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2802 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2803 | if Debounces.on == false then break end | |
2804 | rs:wait() | |
2805 | end | |
2806 | Shell() | |
2807 | shell.Transparency = 0 | |
2808 | shell2.Transparency = 1 | |
2809 | for i = 1, 10 do | |
2810 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2811 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2812 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2813 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2814 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
2815 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2816 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2817 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2818 | if Debounces.on == false then break end | |
2819 | rs:wait() | |
2820 | end | |
2821 | Shell() | |
2822 | shell2.Transparency = 0 | |
2823 | shell.Transparency = 1 | |
2824 | for i = 1, 10 do | |
2825 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2826 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2827 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2828 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2829 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2830 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2831 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2832 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2833 | if Debounces.on == false then break end | |
2834 | rs:wait() | |
2835 | end | |
2836 | Shell() | |
2837 | shell.Transparency = 0 | |
2838 | shell2.Transparency = 1 | |
2839 | for i = 1, 10 do | |
2840 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2841 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2842 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2843 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2844 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
2845 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2846 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2847 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2848 | if Debounces.on == false then break end | |
2849 | rs:wait() | |
2850 | end | |
2851 | Shell() | |
2852 | shell2.Transparency = 0 | |
2853 | shell.Transparency = 1 | |
2854 | for i = 1, 10 do | |
2855 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2856 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2857 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2858 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2859 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2860 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2861 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2862 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2863 | if Debounces.on == false then break end | |
2864 | rs:wait() | |
2865 | end | |
2866 | Shell() | |
2867 | shell.Transparency = 0 | |
2868 | shell2.Transparency = 1 | |
2869 | for i = 1, 10 do | |
2870 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2871 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2872 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2873 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.5) | |
2874 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2875 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2876 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2877 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2878 | if Debounces.on == false then break end | |
2879 | rs:wait() | |
2880 | end | |
2881 | Shell() | |
2882 | shell2.Transparency = 0 | |
2883 | shell.Transparency = 1 | |
2884 | for i = 1, 10 do | |
2885 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2886 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2887 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2888 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2889 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2890 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2891 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2892 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2893 | if Debounces.on == false then break end | |
2894 | rs:wait() | |
2895 | end | |
2896 | Shell() | |
2897 | shell.Transparency = 0 | |
2898 | shell2.Transparency = 1 | |
2899 | for i = 1, 10 do | |
2900 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2901 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2902 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2903 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2904 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
2905 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2906 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2907 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2908 | if Debounces.on == false then break end | |
2909 | rs:wait() | |
2910 | end | |
2911 | Shell() | |
2912 | shell2.Transparency = 0 | |
2913 | shell.Transparency = 1 | |
2914 | for i = 1, 10 do | |
2915 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2916 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2917 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2918 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2919 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2920 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2921 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2922 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2923 | if Debounces.on == false then break end | |
2924 | rs:wait() | |
2925 | end | |
2926 | Shell() | |
2927 | shell.Transparency = 0 | |
2928 | shell2.Transparency = 1 | |
2929 | for i = 1, 10 do | |
2930 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2931 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2932 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2933 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2934 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
2935 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2936 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2937 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2938 | if Debounces.on == false then break end | |
2939 | rs:wait() | |
2940 | end | |
2941 | Shell() | |
2942 | shell2.Transparency = 0 | |
2943 | shell.Transparency = 1 | |
2944 | for i = 1, 10 do | |
2945 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2946 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2947 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
2948 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
2949 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
2950 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
2951 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
2952 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
2953 | if Debounces.on == false then break end | |
2954 | rs:wait() | |
2955 | end | |
2956 | Shell() | |
2957 | shell.Transparency = 0 | |
2958 | shell2.Transparency = 1 | |
2959 | for i = 1, 10 do | |
2960 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
2961 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
2962 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
2963 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
2964 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
2965 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
2966 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
2967 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
2968 | if Debounces.on == false then break end | |
2969 | rs:wait() | |
2970 | end | |
2971 | shell.Transparency = 1 | |
2972 | if Debounces.CanAttack == false then | |
2973 | Debounces.CanAttack = true | |
2974 | Debounces.NoIdl = false | |
2975 | Debounces.on = false | |
2976 | end | |
2977 | end | |
2978 | end | |
2979 | end) | |
2980 | ---------------------------------------------------- | |
2981 | Search = false | |
2982 | mouse.KeyDown:connect(function(key) | |
2983 | if key == "n" then | |
2984 | if Search == false then | |
2985 | Search = true | |
2986 | for i,v in pairs(game.Players:getPlayers()) do | |
2987 | if v.Name~=char.Name then | |
2988 | for j,k in pairs(v.Character:GetChildren()) do | |
2989 | if k:IsA("BasePart") and k.Transparency >= 1 then | |
2990 | bawx=Instance.new("SelectionBox",cam) | |
2991 | bawx.Color = BrickColor.new("Bright red") | |
2992 | bawx.Transparency = .5 | |
2993 | bawx.Adornee = k | |
2994 | end | |
2995 | end | |
2996 | end | |
2997 | end | |
2998 | elseif Search == true then | |
2999 | Search = false | |
3000 | for i, v in pairs(cam:GetChildren()) do | |
3001 | if v:IsA("SelectionBox") then | |
3002 | v:Destroy() | |
3003 | end | |
3004 | end | |
3005 | end | |
3006 | end | |
3007 | end) | |
3008 | ---------------------------------------------------- | |
3009 | Grab = false | |
3010 | mouse.KeyDown:connect(function(key) | |
3011 | if key == "z" then | |
3012 | Debounces.on = true | |
3013 | Debounces.NoIdl = true | |
3014 | Debounces.ks = true | |
3015 | if Grab == false then | |
3016 | gp = nil | |
3017 | for i = 1, 20 do | |
3018 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.2) | |
3019 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.2) | |
3020 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
3021 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
3022 | 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) | |
3023 | 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) | |
3024 | if Debounces.on == false then break end | |
3025 | rs:wait() | |
3026 | end | |
3027 | con1=larm.Touched:connect(function(hit) -- this is grab | |
3028 | ht = hit.Parent | |
3029 | hum1=ht:FindFirstChild('Humanoid') | |
3030 | if hum1 ~= nil then | |
3031 | if Debounces.ks==true then | |
3032 | z = Instance.new("Sound",hed) | |
3033 | z.SoundId = "rbxassetid://169380525" | |
3034 | z.Volume = 1 | |
3035 | z:Play() | |
3036 | Debounces.ks=false | |
3037 | end | |
3038 | hum1.PlatformStand=true | |
3039 | gp = ht | |
3040 | Grab = true | |
3041 | asd=weld5(root,ht:FindFirstChild("Torso"),CFrame.new(0,0,-2.4),CFrame.new(0,0,0)) | |
3042 | asd.Parent = larm | |
3043 | asd.Name = "asd" | |
3044 | asd.C0=asd.C0*CFrame.Angles(math.rad(0),math.rad(180),0) | |
3045 | --[[elseif hum1 == nil then | |
3046 | con1:disconnect() | |
3047 | wait() return]]-- | |
3048 | end | |
3049 | end) | |
3050 | for i = 1, 20 do | |
3051 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.2) | |
3052 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.2) | |
3053 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
3054 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
3055 | 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) | |
3056 | 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) | |
3057 | if Debounces.on == false then break end | |
3058 | rs:wait() | |
3059 | end | |
3060 | if hum1 == nil then | |
3061 | Debounces.on = false | |
3062 | Debounces.NoIdl = false | |
3063 | end | |
3064 | con1:disconnect() | |
3065 | elseif Grab == true then | |
3066 | Grab = false | |
3067 | Punch() | |
3068 | z = Instance.new("Sound",hed) | |
3069 | z.SoundId = "rbxassetid://169380525" | |
3070 | z.Pitch = ptz[math.random(1,#ptz)] | |
3071 | z.Volume = 1 | |
3072 | z:Play() | |
3073 | for i = 1, 10 do | |
3074 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
3075 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
3076 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
3077 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
3078 | 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) | |
3079 | 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) | |
3080 | if Debounces.on == false then break end | |
3081 | rs:wait() | |
3082 | end | |
3083 | Punch() | |
3084 | z = Instance.new("Sound",hed) | |
3085 | z.SoundId = "rbxassetid://169380525" | |
3086 | z.Pitch = ptz[math.random(1,#ptz)] | |
3087 | z.Volume = 1 | |
3088 | z:Play() | |
3089 | for i = 1, 10 do | |
3090 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
3091 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
3092 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
3093 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
3094 | 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) | |
3095 | 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) | |
3096 | if Debounces.on == false then break end | |
3097 | rs:wait() | |
3098 | end | |
3099 | Punch() | |
3100 | z = Instance.new("Sound",hed) | |
3101 | z.SoundId = "rbxassetid://169380525" | |
3102 | z.Pitch = ptz[math.random(1,#ptz)] | |
3103 | z.Volume = 1 | |
3104 | z:Play() | |
3105 | for i = 1, 10 do | |
3106 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
3107 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
3108 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
3109 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
3110 | 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) | |
3111 | 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) | |
3112 | if Debounces.on == false then break end | |
3113 | rs:wait() | |
3114 | end | |
3115 | Punch() | |
3116 | z = Instance.new("Sound",hed) | |
3117 | z.SoundId = "rbxassetid://169380525" | |
3118 | z.Pitch = ptz[math.random(1,#ptz)] | |
3119 | z.Volume = 1 | |
3120 | z:Play() | |
3121 | for i = 1, 10 do | |
3122 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
3123 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
3124 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
3125 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
3126 | 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) | |
3127 | 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) | |
3128 | if Debounces.on == false then break end | |
3129 | rs:wait() | |
3130 | end | |
3131 | Punch() | |
3132 | z = Instance.new("Sound",hed) | |
3133 | z.SoundId = "rbxassetid://169380525" | |
3134 | z.Pitch = ptz[math.random(1,#ptz)] | |
3135 | z.Volume = 1 | |
3136 | z:Play() | |
3137 | for i = 1, 10 do | |
3138 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
3139 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
3140 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
3141 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
3142 | 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) | |
3143 | 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) | |
3144 | if Debounces.on == false then break end | |
3145 | rs:wait() | |
3146 | end | |
3147 | Punch() | |
3148 | z = Instance.new("Sound",hed) | |
3149 | z.SoundId = "rbxassetid://169380525" | |
3150 | z.Pitch = ptz[math.random(1,#ptz)] | |
3151 | z.Volume = 1 | |
3152 | z:Play() | |
3153 | for i = 1, 10 do | |
3154 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
3155 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
3156 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
3157 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
3158 | 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) | |
3159 | 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) | |
3160 | if Debounces.on == false then break end | |
3161 | rs:wait() | |
3162 | end | |
3163 | Punch() | |
3164 | z = Instance.new("Sound",hed) | |
3165 | z.SoundId = "rbxassetid://169380525" | |
3166 | z.Pitch = ptz[math.random(1,#ptz)] | |
3167 | z.Volume = 1 | |
3168 | z:Play() | |
3169 | for i = 1, 10 do | |
3170 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
3171 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
3172 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
3173 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
3174 | 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) | |
3175 | 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) | |
3176 | if Debounces.on == false then break end | |
3177 | rs:wait() | |
3178 | end | |
3179 | Punch() | |
3180 | z = Instance.new("Sound",hed) | |
3181 | z.SoundId = "rbxassetid://169380525" | |
3182 | z.Pitch = ptz[math.random(1,#ptz)] | |
3183 | z.Volume = 1 | |
3184 | z:Play() | |
3185 | for i = 1, 10 do | |
3186 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
3187 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
3188 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
3189 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
3190 | 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) | |
3191 | 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) | |
3192 | if Debounces.on == false then break end | |
3193 | rs:wait() | |
3194 | end | |
3195 | Punch() | |
3196 | z = Instance.new("Sound",hed) | |
3197 | z.SoundId = "rbxassetid://169380525" | |
3198 | z.Pitch = ptz[math.random(1,#ptz)] | |
3199 | z.Volume = 1 | |
3200 | z:Play() | |
3201 | for i = 1, 10 do | |
3202 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
3203 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
3204 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
3205 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
3206 | 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) | |
3207 | 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) | |
3208 | if Debounces.on == false then break end | |
3209 | rs:wait() | |
3210 | end | |
3211 | Punch() | |
3212 | z = Instance.new("Sound",hed) | |
3213 | z.SoundId = "rbxassetid://169380525" | |
3214 | z.Pitch = ptz[math.random(1,#ptz)] | |
3215 | z.Volume = 1 | |
3216 | z:Play() | |
3217 | for i = 1, 10 do | |
3218 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
3219 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
3220 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
3221 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
3222 | 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) | |
3223 | 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) | |
3224 | if Debounces.on == false then break end | |
3225 | rs:wait() | |
3226 | end | |
3227 | Punch() | |
3228 | z = Instance.new("Sound",hed) | |
3229 | z.SoundId = "rbxassetid://169380525" | |
3230 | z.Pitch = ptz[math.random(1,#ptz)] | |
3231 | z.Volume = 1 | |
3232 | z:Play() | |
3233 | for i = 1, 10 do | |
3234 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
3235 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
3236 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
3237 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
3238 | 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) | |
3239 | 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) | |
3240 | if Debounces.on == false then break end | |
3241 | rs:wait() | |
3242 | end | |
3243 | Punch() | |
3244 | z = Instance.new("Sound",hed) | |
3245 | z.SoundId = "rbxassetid://169380525" | |
3246 | z.Pitch = ptz[math.random(1,#ptz)] | |
3247 | z.Volume = 1 | |
3248 | z:Play() | |
3249 | for i = 1, 10 do | |
3250 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
3251 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
3252 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
3253 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
3254 | 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) | |
3255 | 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) | |
3256 | if Debounces.on == false then break end | |
3257 | rs:wait() | |
3258 | end | |
3259 | con1:disconnect() | |
3260 | Debounces.on = false | |
3261 | Debounces.NoIdl = false | |
3262 | if gp ~= nil then | |
3263 | gp:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 140 | |
3264 | for i,v in pairs(larm:GetChildren()) do | |
3265 | if v.Name == "asd" and v:IsA("Weld") then | |
3266 | v:Remove() | |
3267 | end | |
3268 | end | |
3269 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
3270 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
3271 | bv.P = 125000 | |
3272 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
3273 | hum1=nil | |
3274 | ht=nil | |
3275 | Debounces.on = false | |
3276 | Debounces.NoIdl = false | |
3277 | elseif ht == nil then wait() | |
3278 | Grab = false | |
3279 | Debounces.on = false | |
3280 | Debounces.NoIdl = false | |
3281 | end | |
3282 | end | |
3283 | end | |
3284 | end) | |
3285 | ---------------------------------------------------- | |
3286 | mouse.KeyDown:connect(function(key) | |
3287 | if string.byte(key) == 52 then | |
3288 | char.Humanoid.WalkSpeed = 60 | |
3289 | end | |
3290 | end) | |
3291 | mouse.KeyUp:connect(function(key) | |
3292 | if string.byte(key) == 52 then | |
3293 | char.Humanoid.WalkSpeed = 8 | |
3294 | end | |
3295 | end) | |
3296 | ------------------------------- | |
3297 | local animpose = "Idle" | |
3298 | local lastanimpose = "Idle" | |
3299 | local sine = 0 | |
3300 | local change = 1 | |
3301 | local val = 0 | |
3302 | local ffing = false | |
3303 | ------------------------------- | |
3304 | game:GetService("RunService").RenderStepped:connect(function() | |
3305 | --[[if char.Humanoid.Jump == true then | |
3306 | jump = true | |
3307 | else | |
3308 | jump = false | |
3309 | end]] | |
3310 | char.Humanoid.FreeFalling:connect(function(f) | |
3311 | if f then | |
3312 | ffing = true | |
3313 | else | |
3314 | ffing = false | |
3315 | end | |
3316 | end) | |
3317 | sine = sine + change | |
3318 | if jumpn == true then | |
3319 | animpose = "Jumping" | |
3320 | elseif ffing == true then | |
3321 | animpose = "Freefalling" | |
3322 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
3323 | animpose = "Idle" | |
3324 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
3325 | animpose = "Walking" | |
3326 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
3327 | animpose = "Running" | |
3328 | end | |
3329 | if animpose ~= lastanimpose then | |
3330 | sine = 0 | |
3331 | if Debounces.NoIdl == false then | |
3332 | if animpose == "Idle" then | |
3333 | for i = 1, 2 do | |
3334 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
3335 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
3336 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
3337 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
3338 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
3339 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
3340 | end | |
3341 | elseif animpose == "Walking" then | |
3342 | for i = 1, 2 do | |
3343 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3344 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3345 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
3346 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3347 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
3348 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
3349 | end | |
3350 | elseif animpose == "Running" then | |
3351 | for i = 1, 2 do | |
3352 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-14),math.rad(8+2*math.cos(sine/14))), 0.2) | |
3353 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(14),math.rad(-8-2*math.cos(sine/14))), 0.2) | |
3354 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10),0,0), 0.4) | |
3355 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20),0, math.rad(0)), 0.4) | |
3356 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-7)), 0.4) | |
3357 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(7)), 0.4) | |
3358 | wait() | |
3359 | end | |
3360 | end | |
3361 | else | |
3362 | end | |
3363 | end | |
3364 | lastanimpose = animpose | |
3365 | if Debounces.NoIdl == false then | |
3366 | if animpose == "Idle" then | |
3367 | change = 0.5 | |
3368 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8+2*math.cos(sine/14))), 0.4) | |
3369 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8-2*math.cos(sine/14))), 0.4) | |
3370 | 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) | |
3371 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
3372 | 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) | |
3373 | 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) | |
3374 | elseif animpose == "Walking" then | |
3375 | change = 1 | |
3376 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3377 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3378 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
3379 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3380 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
3381 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
3382 | elseif animpose == "Running" then | |
3383 | change = 1 | |
3384 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.35,.4)*CFrame.Angles(math.rad(-30),math.rad(14),math.rad(-30+2*math.cos(sine/14))), 0.2) | |
3385 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.55,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2) | |
3386 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) | |
3387 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.2) | |
3388 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4) | |
3389 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4) | |
3390 | end | |
3391 | end | |
3392 | end) | |
3393 | ||
3394 | hum.MaxHealth = 9001 | |
3395 | wait(3) | |
3396 | hum.Health = 9001 | |
3397 | ||
3398 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module | |
3399 | --[[Part0 = Vector3 (Start pos) | |
3400 | Part1 = Vector3 (End pos) | |
3401 | Times = number (Amount of lightning parts) | |
3402 | Offset = number (Offset) | |
3403 | Color = color (brickcolor value) | |
3404 | Thickness = number (thickness) | |
3405 | Trans = number (transparency) | |
3406 | ]]-- | |
3407 | local magz = (Part0 - Part1).magnitude | |
3408 | local curpos = Part0 | |
3409 | local trz = {-Offset,Offset} | |
3410 | for i=1,Times do | |
3411 | local li = Instance.new("Part", torso) | |
3412 | li.Name = "Lightning" | |
3413 | li.TopSurface =0 | |
3414 | li.Material = "Neon" | |
3415 | li.BottomSurface = 0 | |
3416 | li.Anchored = true | |
3417 | li.Locked = true | |
3418 | li.Transparency = Trans or 0.4 | |
3419 | li.BrickColor = BrickColor.new(Color) | |
3420 | li.formFactor = "Custom" | |
3421 | li.CanCollide = false | |
3422 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
3423 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
3424 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
3425 | if Times == i then | |
3426 | local magz2 = (curpos - Part1).magnitude | |
3427 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
3428 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
3429 | else | |
3430 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
3431 | end | |
3432 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
3433 | game.Debris:AddItem(li,.1) | |
3434 | end | |
3435 | end | |
3436 | ||
3437 | BodyParts = {} -- Parts to emit lightning effects from | |
3438 | for _, v in pairs(char:GetChildren()) do | |
3439 | if v:IsA("Part") then | |
3440 | table.insert(BodyParts, v) | |
3441 | end | |
3442 | end | |
3443 | ||
3444 | Bounding = {} -- Calculate the bounding boxes | |
3445 | for _, v in pairs(BodyParts) do | |
3446 | local temp = {X=nil, Y=nil, Z=nil} | |
3447 | temp.X = v.Size.X/2 * 10 | |
3448 | temp.Y = v.Size.Y/2 * 10 | |
3449 | temp.Z = v.Size.Z/2 * 10 | |
3450 | Bounding[v.Name] = temp | |
3451 | --table.insert(Bounding, v.Name, temp) | |
3452 | end | |
3453 | ||
3454 | while wait(math.random(1,10)/10) do -- Emit the Lightning effects randomly | |
3455 | local Body1 = BodyParts[math.random(#BodyParts)] | |
3456 | local Body2 = BodyParts[math.random(#BodyParts)] | |
3457 | local Pos1 = Vector3.new( | |
3458 | math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10, | |
3459 | math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10, | |
3460 | math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10 | |
3461 | ) | |
3462 | local Pos2 = Vector3.new( | |
3463 | math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10, | |
3464 | math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10, | |
3465 | math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10 | |
3466 | ) | |
3467 | local SPos1 = Body1.Position + Pos1 | |
3468 | local SPos2 = Body2.Position + Pos2 | |
3469 | Lightning(SPos1, SPos2, 4, 3, "Bright blue", .3, .56) | |
3470 | end |