SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by TameDoNotClick :) | |
2 | ||
3 | - | --000000[[ DEIVIS97 EDIT |
3 | + | |
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("Translated to FE by me, TameDoNotClick. Enjoy ;)") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | - | local Player = game.Players.localPlayer |
14 | + | --Fake event to make stuff like Mouse.KeyDown work |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | - | local Mouse = Player:GetMouse() |
19 | + | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
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 UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
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 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | -- [[[ | |
88 | --000000[[====================================================================================\\ | |
89 | --000000[[ TAMEDONOTCLICK EDIT | |
90 | --000000[[====================================================================================// | |
91 | -- [[[ | |
92 | local colorone = "Really black" -- Crimson | |
93 | local colortwo = "Crimson" -- Bright red | |
94 | local colorthree = "Really red" -- Really red | |
95 | ||
96 | local mode = "BerserkMode" | |
97 | ||
98 | wait(1 / 60) | |
99 | Effects = { } | |
100 | local Player = owner | |
101 | script.Parent = Player.PlayerGui | |
102 | script.Name = math.random(100, 100000)..[[ ]]..math.random(100000, 1000000000) | |
103 | local Character = Player.Character | |
104 | local Humanoid = Character.Humanoid | |
105 | local LeftArm = Character["Left Arm"] | |
106 | local RightArm = Character["Right Arm"] | |
107 | local LeftLeg = Character["Left Leg"] | |
108 | local RightLeg = Character["Right Leg"] | |
109 | local Head = Character.Head | |
110 | local Torso = Character.Torso | |
111 | local Camera = game.Workspace.CurrentCamera | |
112 | local RootPart = Character.HumanoidRootPart | |
113 | local RootJoint = RootPart.RootJoint | |
114 | local attack = false | |
115 | local Anim = 'Idle' | |
116 | local attacktype = 1 | |
117 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
118 | local velocity = RootPart.Velocity.y | |
119 | local sine = 0 | |
120 | local change = 1 | |
121 | local hobb = 0 | |
122 | local rest = 0 | |
123 | local looprevive = false | |
124 | local revive = false | |
125 | local Create = LoadLibrary("RbxUtility").Create | |
126 | ||
127 | ||
128 | ||
129 | ||
130 | ||
131 | ||
132 | ||
133 | function RemoveOutlines(part) | |
134 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
135 | end | |
136 | ||
137 | CFuncs = { | |
138 | ["Part"] = { | |
139 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
140 | local Part = Create("Part"){ | |
141 | Parent = Parent, | |
142 | Reflectance = Reflectance, | |
143 | Transparency = Transparency, | |
144 | CanCollide = false, | |
145 | Locked = true, | |
146 | BrickColor = BrickColor.new(tostring(BColor)), | |
147 | Name = Name, | |
148 | Size = Size, | |
149 | Material = Material, | |
150 | } | |
151 | --remove these lines if u want it purple-------- | |
152 | if Part.BrickColor == BrickColor.new("Cyan") then | |
153 | Part.BrickColor = BrickColor.new(colorone) | |
154 | end | |
155 | if Part.BrickColor == BrickColor.new("Blue") then | |
156 | Part.BrickColor = BrickColor.new(colortwo) | |
157 | end | |
158 | if Part.BrickColor == BrickColor.new("Cyan") or Part.BrickColor == BrickColor.new("Dark Blue") then | |
159 | Part.BrickColor = BrickColor.new(colorthree) | |
160 | end | |
161 | ------------------------------------------------ | |
162 | RemoveOutlines(Part) | |
163 | return Part | |
164 | end; | |
165 | }; | |
166 | ||
167 | ["Mesh"] = { | |
168 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
169 | local Msh = Create(Mesh){ | |
170 | Parent = Part, | |
171 | Offset = OffSet, | |
172 | Scale = Scale, | |
173 | } | |
174 | if Mesh == "SpecialMesh" then | |
175 | - | local p = game.Players.LocalPlayer |
175 | + | |
176 | Msh.MeshId = MeshId | |
177 | end | |
178 | - | local mouse = p:GetMouse() |
178 | + | |
179 | end; | |
180 | }; | |
181 | ||
182 | ["Mesh"] = { | |
183 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
184 | local Msh = Create(Mesh){ | |
185 | Parent = Part, | |
186 | Offset = OffSet, | |
187 | Scale = Scale, | |
188 | } | |
189 | if Mesh == "SpecialMesh" then | |
190 | Msh.MeshType = MeshType | |
191 | Msh.MeshId = MeshId | |
192 | end | |
193 | return Msh | |
194 | end; | |
195 | }; | |
196 | ||
197 | ["Weld"] = { | |
198 | Create = function(Parent, Part0, Part1, C0, C1) | |
199 | local Weld = Create("Weld"){ | |
200 | Parent = Parent, | |
201 | Part0 = Part0, | |
202 | Part1 = Part1, | |
203 | C0 = C0, | |
204 | C1 = C1, | |
205 | } | |
206 | return Weld | |
207 | end; | |
208 | }; | |
209 | ||
210 | ["Sound"] = { | |
211 | Create = function(id, par, vol, pit) | |
212 | coroutine.resume(coroutine.create(function() | |
213 | local S = Create("Sound"){ | |
214 | Volume = vol, | |
215 | Pitch = pit or 1, | |
216 | SoundId = id, | |
217 | Parent = par or workspace, | |
218 | } | |
219 | wait() | |
220 | S:play() | |
221 | game:GetService("Debris"):AddItem(S, 6) | |
222 | end)) | |
223 | end; | |
224 | }; | |
225 | ||
226 | ["ParticleEmitter"] = { | |
227 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
228 | local fp = Create("ParticleEmitter"){ | |
229 | Parent = Parent, | |
230 | Color = ColorSequence.new(Color1, Color2), | |
231 | LightEmission = LightEmission, | |
232 | Size = Size, | |
233 | Texture = Texture, | |
234 | Transparency = Transparency, | |
235 | ZOffset = ZOffset, | |
236 | Acceleration = Accel, | |
237 | Drag = Drag, | |
238 | LockedToPart = LockedToPart, | |
239 | VelocityInheritance = VelocityInheritance, | |
240 | EmissionDirection = EmissionDirection, | |
241 | Enabled = Enabled, | |
242 | Lifetime = LifeTime, | |
243 | Rate = Rate, | |
244 | Rotation = Rotation, | |
245 | RotSpeed = RotSpeed, | |
246 | Speed = Speed, | |
247 | VelocitySpread = VelocitySpread, | |
248 | } | |
249 | return fp | |
250 | end; | |
251 | }; | |
252 | ||
253 | CreateTemplate = { | |
254 | ||
255 | }; | |
256 | } | |
257 | ||
258 | ||
259 | ||
260 | local p = owner | |
261 | --if p.Name~='UniversalDespair' and p.Name~='hasang1' then p.Character:Destroy() script:Destroy() return end | |
262 | local char = p.Character | |
263 | local larm = char["Left Arm"] | |
264 | local rarm = char["Right Arm"] | |
265 | local lleg = char["Left Leg"] | |
266 | local rleg = char["Right Leg"] | |
267 | local hed = char.Head | |
268 | local torso = char.Torso | |
269 | local hum = char.Humanoid | |
270 | local cam = game.Workspace.CurrentCamera | |
271 | local root = char.HumanoidRootPart | |
272 | local deb = false | |
273 | local shot = 0 | |
274 | local debris=game:service"Debris" | |
275 | local l = game:GetService("Lighting") | |
276 | local rs = game:GetService("RunService").RenderStepped | |
277 | ||
278 | ||
279 | ||
280 | ||
281 | Debounces = { | |
282 | CanAttack = true; | |
283 | NoIdl = false; | |
284 | Slashing = false; | |
285 | Slashed = false; | |
286 | RPunch = false; | |
287 | RPunched = false; | |
288 | LPunch = false; | |
289 | LPunched = false; | |
290 | } | |
291 | local Touche = {Character.Name, } | |
292 | ||
293 | ||
294 | ---------------------------------------------------- | |
295 | function genWeld(a,b) | |
296 | local w = Instance.new("Weld",a) | |
297 | w.Part0 = a | |
298 | w.Part1 = b | |
299 | return w | |
300 | end | |
301 | function weld(a, b) | |
302 | local weld = Instance.new("Weld") | |
303 | weld.Name = "W" | |
304 | weld.Part0 = a | |
305 | weld.Part1 = b | |
306 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
307 | weld.Parent = a | |
308 | return weld; | |
309 | end | |
310 | ---------------------------------------------------- | |
311 | function Lerp(c1,c2,al) | |
312 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
313 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
314 | for i,v in pairs(com1) do | |
315 | com1[i] = v+(com2[i]-v)*al | |
316 | end | |
317 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
318 | end | |
319 | ---------------------------------------------------- | |
320 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
321 | local wld = Instance.new("Weld", wp1) | |
322 | wld.Part0 = wp0 | |
323 | wld.Part1 = wp1 | |
324 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
325 | end | |
326 | ---------------------------------------------------- | |
327 | function weld5(part0, part1, c0, c1) | |
328 | weeld=Instance.new("Weld", part0) | |
329 | weeld.Part0=part0 | |
330 | weeld.Part1=part1 | |
331 | weeld.C0=c0 | |
332 | weeld.C1=c1 | |
333 | return weeld | |
334 | end | |
335 | ---------------------------------------------------- | |
336 | function HasntTouched(plrname) | |
337 | local ret = true | |
338 | for _, v in pairs(Touche) do | |
339 | if v == plrname then | |
340 | ret = false | |
341 | end | |
342 | end | |
343 | return ret | |
344 | end | |
345 | ---------------------------------------------------- | |
346 | ||
347 | function chatfunc(text) | |
348 | local chat = coroutine.wrap(function() | |
349 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
350 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
351 | end | |
352 | local naeeym2 = Instance.new("BillboardGui",Character) | |
353 | naeeym2.Size = UDim2.new(0,100,0,40) | |
354 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
355 | naeeym2.Adornee = Head | |
356 | naeeym2.Name = "TalkingBillBoard" | |
357 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
358 | tecks2.BackgroundTransparency = 1 | |
359 | tecks2.BorderSizePixel = 0 | |
360 | tecks2.Text = "" | |
361 | tecks2.Font = "Fantasy" | |
362 | tecks2.FontSize = "Size24" | |
363 | tecks2.TextStrokeTransparency = 0 | |
364 | tecks2.TextColor3 = BrickColor.new(colortwo).Color | |
365 | tecks2.TextStrokeColor3 = BrickColor.new(colorone).Color | |
366 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
367 | local shk = coroutine.wrap(function() | |
368 | while tecks2 ~= nil do | |
369 | wait(.05) | |
370 | tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3)) | |
371 | end | |
372 | end) | |
373 | shk() | |
374 | for i = 1,string.len(text),1 do | |
375 | CFuncs.Sound.Create("rbxassetid://358280695", Torso, 2, 0.5) | |
376 | tecks2.Text = string.sub(text,1,i) | |
377 | wait(0.01) | |
378 | end | |
379 | wait(1) | |
380 | for i = 1, 5 do | |
381 | wait(.01) | |
382 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
383 | tecks2.Rotation = tecks2.Rotation + 2 | |
384 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
385 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
386 | end | |
387 | naeeym2:Destroy() | |
388 | end) | |
389 | chat() | |
390 | end | |
391 | function onChatted(msg) | |
392 | chatfunc(msg) | |
393 | end | |
394 | ---Player.Chatted:connect(onChatted) | |
395 | ||
396 | ||
397 | ||
398 | ||
399 | ||
400 | ||
401 | ||
402 | ||
403 | ||
404 | ||
405 | ||
406 | ||
407 | ||
408 | ||
409 | ||
410 | function chatfunc2(text) | |
411 | local chat = coroutine.wrap(function() | |
412 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
413 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
414 | end | |
415 | local naeeym2 = Instance.new("BillboardGui",Character) | |
416 | naeeym2.Size = UDim2.new(0,100,0,40) | |
417 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
418 | naeeym2.Adornee = Head | |
419 | naeeym2.Name = "TalkingBillBoard" | |
420 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
421 | tecks2.BackgroundTransparency = 1 | |
422 | tecks2.BorderSizePixel = 0 | |
423 | tecks2.Text = "" | |
424 | tecks2.Font = "Fantasy" | |
425 | tecks2.FontSize = "Size24" | |
426 | tecks2.TextStrokeTransparency = 0 | |
427 | tecks2.TextColor3 = BrickColor.new(colortwo).Color | |
428 | tecks2.TextStrokeColor3 = BrickColor.new(colorthree).Color | |
429 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
430 | local shk = coroutine.wrap(function() | |
431 | while tecks2 ~= nil do | |
432 | wait(.05) | |
433 | tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3)) | |
434 | end | |
435 | end) | |
436 | shk() | |
437 | for i = 1,string.len(text),1 do | |
438 | CFuncs.Sound.Create("rbxassetid://358280695", Torso, 2, 0.5) | |
439 | tecks2.Text = string.sub(text,1,i) | |
440 | wait(0.01) | |
441 | end | |
442 | wait(1) | |
443 | for i = 1, 5 do | |
444 | wait(.01) | |
445 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
446 | tecks2.Rotation = tecks2.Rotation + 2 | |
447 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
448 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
449 | end | |
450 | naeeym2:Destroy() | |
451 | end) | |
452 | chat() | |
453 | end | |
454 | function onChatted(msg) | |
455 | chatfunc(msg) | |
456 | end | |
457 | ||
458 | ||
459 | ||
460 | ||
461 | ||
462 | ||
463 | local Transforming = false | |
464 | Transforming = true | |
465 | ||
466 | chatfunc("Sigh...You really want to do this...") | |
467 | ||
468 | wait(4) | |
469 | ||
470 | chatfunc("Well, here we go again...") | |
471 | ||
472 | ||
473 | ||
474 | ||
475 | ||
476 | local music = Instance.new("Sound",Character) | |
477 | music.Volume = 7 | |
478 | music.Looped = true | |
479 | music.SoundId = "rbxassetid://" | |
480 | music:Play() | |
481 | ||
482 | local PGui = Player:WaitForChild("PlayerGui") | |
483 | local Character = Player.Character | |
484 | local Humanoid = Character:WaitForChild("Humanoid") | |
485 | local Head = Character:WaitForChild("Head") | |
486 | local Torso = Character:WaitForChild("Torso") | |
487 | local HRP = Character:WaitForChild("HumanoidRootPart") | |
488 | local RArm = Character:WaitForChild("Right Arm") | |
489 | local LArm = Character:WaitForChild("Left Arm") | |
490 | local RLeg = Character:WaitForChild("Right Leg") | |
491 | local LLeg = Character:WaitForChild("Left Leg") | |
492 | ||
493 | local Joints = {Head = Torso.Neck, Torso = HRP.RootJoint, RArm = Torso["Right Shoulder"], LArm = Torso["Left Shoulder"], RLeg = Torso["Right Hip"], LLeg = Torso["Left Hip"]} | |
494 | local Refresh = function() | |
495 | Joints.Head.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
496 | Joints.Torso.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
497 | Joints.RArm.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
498 | Joints.LArm.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
499 | Joints.RLeg.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
500 | Joints.LLeg.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
501 | Joints.Head.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
502 | Joints.Torso.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
503 | Joints.RArm.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
504 | Joints.LArm.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
505 | Joints.RLeg.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
506 | Joints.LLeg.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
507 | end | |
508 | ||
509 | Anims = {Pose = function(active) | |
510 | if active then | |
511 | for i = 0, 10, 0.5 do | |
512 | wait(0.016666666666667) | |
513 | Joints.Head.C0 = Joints.Head.C0 * CFrame.Angles(0.015, 0, 0) | |
514 | Joints.Torso.C0 = Joints.Torso.C0 * CFrame.Angles(0.01, 0, 0) | |
515 | Joints.RArm.C0 = Joints.RArm.C0 * CFrame.Angles(-0.025, 0.03, math.rad(70) / 10) | |
516 | Joints.LArm.C0 = Joints.LArm.C0 * CFrame.Angles(-0.025, -0.03, -math.rad(70) / 10) | |
517 | Joints.RLeg.C0 = Joints.RLeg.C0 * CFrame.Angles(-0.01, -0.02, 0.015) | |
518 | Joints.LLeg.C0 = Joints.LLeg.C0 * CFrame.Angles(-0.015, 0.01, 0) | |
519 | end | |
520 | else | |
521 | do | |
522 | for i = 0, 10, 0.5 do | |
523 | wait(0.016666666666667) | |
524 | Joints.Head.C0 = Joints.Head.C0 * CFrame.Angles(0.015, 0, 0):inverse() | |
525 | Joints.Torso.C0 = Joints.Torso.C0 * CFrame.Angles(0.01, 0, 0):inverse() | |
526 | Joints.RArm.C0 = Joints.RArm.C0 * CFrame.Angles(-0.025, 0.03, math.rad(70) / 10):inverse() | |
527 | Joints.LArm.C0 = Joints.LArm.C0 * CFrame.Angles(-0.025, -0.03, -math.rad(70) / 10):inverse() | |
528 | Joints.RLeg.C0 = Joints.RLeg.C0 * CFrame.Angles(-0.01, -0.02, 0.015):inverse() | |
529 | Joints.LLeg.C0 = Joints.LLeg.C0 * CFrame.Angles(-0.015, 0.01, 0):inverse() | |
530 | end | |
531 | end | |
532 | end | |
533 | end | |
534 | , Implode = function(active) | |
535 | if active then | |
536 | for i = 0, 7, 0.5 do | |
537 | wait(0.016666666666667) | |
538 | Joints.Head.C0 = Joints.Head.C0 * CFrame.Angles(-0.025, 0, 0) | |
539 | Joints.Torso.C0 = Joints.Torso.C0 * CFrame.Angles(-0.02, 0, 0) | |
540 | Joints.RArm.C0 = Joints.RArm.C0 * CFrame.Angles(-0.05, -0.015, math.rad(100) / 10) | |
541 | Joints.LArm.C0 = Joints.LArm.C0 * CFrame.Angles(-0.05, 0.015, -math.rad(100) / 10) | |
542 | Joints.RLeg.C0 = Joints.RLeg.C0 * CFrame.Angles(-0.025, -0.02, -0.025) | |
543 | Joints.LLeg.C0 = Joints.LLeg.C0 * CFrame.Angles(-0.015, 0.01, 0.03) | |
544 | end | |
545 | else | |
546 | do | |
547 | for i = 0, 7, 0.5 do | |
548 | wait(0.016666666666667) | |
549 | Joints.Head.C0 = Joints.Head.C0 * CFrame.Angles(-0.025, 0, 0):inverse() | |
550 | Joints.Torso.C0 = Joints.Torso.C0 * CFrame.Angles(-0.02, 0, 0):inverse() | |
551 | Joints.RArm.C0 = Joints.RArm.C0 * CFrame.Angles(-0.05, -0.015, math.rad(100) / 10):inverse() | |
552 | Joints.LArm.C0 = Joints.LArm.C0 * CFrame.Angles(-0.05, 0.015, -math.rad(100) / 10):inverse() | |
553 | Joints.RLeg.C0 = Joints.RLeg.C0 * CFrame.Angles(-0.025, -0.02, -0.025):inverse() | |
554 | Joints.LLeg.C0 = Joints.LLeg.C0 * CFrame.Angles(-0.015, 0.01, 0.03):inverse() | |
555 | end | |
556 | end | |
557 | end | |
558 | end | |
559 | } | |
560 | ||
561 | local Transformed, Occupied = false, false | |
562 | local Create = assert(LoadLibrary("RbxUtility")).Create | |
563 | local Part = Create("Part")({TopSurface = 0, BottomSurface = 0, formFactor = "Custom", Size = Vector3.new(1, 1, 1), Anchored = true, CanCollide = false}) | |
564 | local Flash = function(Par, Col, Duration, Delay, Async) | |
565 | pcall(function() | |
566 | Par = Par or PGui | |
567 | if not Col then | |
568 | Col = BrickColor:Black().Color | |
569 | Duration = Duration or 10 | |
570 | if not Delay then | |
571 | Delay = 1 / Duration | |
572 | local G = Create("ScreenGui")({Parent = Par}) | |
573 | if not Col then | |
574 | local F = Create("Frame")({Parent = G, BorderSizePixel = 0, Size = UDim2.new(1.2, 0, 1.2, 0), Position = UDim2.new(), ZIndex = 10, BackgroundColor3 = Color3.new(1, 1, 1), Transparency = 0}) | |
575 | local f = function() | |
576 | for i = 0, Duration, Delay do | |
577 | wait(0.016666666666667) | |
578 | F.Transparency = i / Duration | |
579 | end | |
580 | pcall(game.Destroy, G) | |
581 | end | |
582 | ||
583 | if Async then | |
584 | f = coroutine.wrap(f) | |
585 | end | |
586 | return f() | |
587 | end | |
588 | end | |
589 | end | |
590 | end | |
591 | ) | |
592 | end | |
593 | ||
594 | local Shake = function(Duration, Delay, Distance, Async) | |
595 | pcall(function() | |
596 | local Cam = workspace.CurrentCamera | |
597 | Duration = Duration or 10 | |
598 | if not Delay then | |
599 | Delay = 1 / Duration | |
600 | Distance = Distance or 15 | |
601 | local f = function() | |
602 | for i = 0, Duration, Delay do | |
603 | wait(0.016666666666667) | |
604 | local R = Cam.CoordinateFrame - Cam.CoordinateFrame.p | |
605 | local Scroll = (Cam.CoordinateFrame.p - Cam.Focus.p).magnitude | |
606 | local NewF = CFrame.new(Cam.Focus.p) * R * CFrame.new(math.random(-Distance, Distance) / (Distance / 0.25), math.random(-Distance, Distance) / (Distance / 0.25), math.random(-Distance, Distance) / (Distance / 0.25)) | |
607 | Cam.CoordinateFrame = NewF * CFrame.new(0, 0, Scroll) | |
608 | end | |
609 | end | |
610 | ||
611 | if Async then | |
612 | f = coroutine.wrap(f) | |
613 | end | |
614 | return f() | |
615 | end | |
616 | end | |
617 | ) | |
618 | end | |
619 | ||
620 | local Sound = function(Prnt, Id, Pit, Vol) | |
621 | pcall(function() | |
622 | local cp = game:service("ContentProvider") | |
623 | if type(Id) == "number" then | |
624 | cp:Preload("rbxassetid://" .. Id) | |
625 | Id = "rbxassetid://" .. Id | |
626 | else | |
627 | if type(Id) == "string" then | |
628 | cp:Preload(Id) | |
629 | Id = Id | |
630 | end | |
631 | end | |
632 | local S = Create("Sound")({Parent = Prnt or workspace, SoundId = Id, Volume = Vol or 1, Pitch = Pit or 1}) | |
633 | S:Play() | |
634 | S:Stop() | |
635 | S:Play() | |
636 | game:service("Debris"):AddItem(S, 0.9) | |
637 | end | |
638 | ) | |
639 | end | |
640 | ||
641 | local Chat = function(Par, Msg, Col) | |
642 | if Msg then | |
643 | if not Par then | |
644 | Par = Head | |
645 | end | |
646 | if not Col then | |
647 | Col = math.random(0, 2) | |
648 | end | |
649 | game:service("Chat"):Chat(Par, Msg, Col) | |
650 | end | |
651 | end | |
652 | ||
653 | local Transform = function(active) | |
654 | if active and not Transformed and not Occupied then | |
655 | Occupied = true | |
656 | Humanoid.WalkSpeed = 0 | |
657 | local cp = game:service("ContentProvider") | |
658 | ||
659 | Anims.Pose(true) | |
660 | Flash(nil, BrickColor.new("Cyan").Color, 3, 0.05, true) | |
661 | Shake(16, 0.05, 55, true) | |
662 | coroutine.resume(coroutine.create(function() | |
663 | for i = 1, 2 do | |
664 | Sound(Head, 2248511, 0.4, 0.6) | |
665 | Sound(Head, 2691586, 0.4, 0.4) | |
666 | Shake(8, 0.05, 55, true) | |
667 | wait(1) | |
668 | end | |
669 | end | |
670 | )) | |
671 | local spi = Part:Clone() | |
672 | spi.Parent = Torso | |
673 | spi.Anchored = false | |
674 | spi.Transparency = 0.01 | |
675 | spi.BrickColor = BrickColor.new(colorone) | |
676 | spi.Material = "Neon" | |
677 | local w = Instance.new("Weld", spi) | |
678 | w.Part0 = spi | |
679 | w.Part1 = Torso | |
680 | local m = Instance.new("SpecialMesh", spi) | |
681 | m.Scale = Vector3.new(10, 10, 10) * 2.5 | |
682 | m.MeshType = "Sphere" | |
683 | do | |
684 | do | |
685 | local growing = true | |
686 | coroutine.resume(coroutine.create(function() | |
687 | local angle = 0 | |
688 | while wait(0.05) and growing do | |
689 | angle = angle % 100 + 0.3 | |
690 | m.Scale = Vector3.new(25 + math.sin(angle) * 2.5, 25 + math.sin(angle) * 2.5, 25 + math.sin(angle) * 2.5) | |
691 | end | |
692 | end | |
693 | )) | |
694 | do | |
695 | for i = 1, 9 do | |
696 | wait(0.9) | |
697 | Shake(8, 0.05, 55, true) | |
698 | Sound(Head, 2248511, 0.4, 0.6) | |
699 | Sound(Head, 2691586, 0.4, 0.4) | |
700 | Sound(Head, 2101137, 0.32, 0.8) | |
701 | Sound(Head, 2101137, 0.55, 0.8) | |
702 | Sound(Head, 2101137, 0.45, 0.6) | |
703 | Flash(nil, BrickColor.new(colortwo).Color, 2, 0.05, true) | |
704 | for i = 1, math.random(4, 5) do | |
705 | local p = Part:Clone() | |
706 | p.Parent = Torso | |
707 | p.Anchored = false | |
708 | p.CFrame = Torso.CFrame | |
709 | p.BrickColor = BrickColor.new(colortwo) | |
710 | local w = Instance.new("Weld", p) | |
711 | w.Part0 = p | |
712 | w.Part1 = Torso | |
713 | w.C0 = w.C0 * CFrame.Angles(math.random() * 6.28, math.random() * 6.28, math.random() * 6.28) | |
714 | local m = Instance.new("CylinderMesh", p) | |
715 | m.Scale = Vector3.new(math.random() * 6, 320, math.random() * 6) | |
716 | coroutine.resume(coroutine.create(function() | |
717 | for i = 1, 12 do | |
718 | wait(0.14285714285714) | |
719 | w.C0 = w.C0 * CFrame.Angles(0.05, 0.05, 0.05) | |
720 | p.Transparency = i / 12 | |
721 | end | |
722 | p:Destroy() | |
723 | end | |
724 | )) | |
725 | end | |
726 | end | |
727 | end | |
728 | Anims.Pose(false) | |
729 | Anims.Implode(true) | |
730 | Sound(Head, 3264793, 0.55, 0.9) | |
731 | Sound(Head, 2974249, 0.65, 0.9) | |
732 | Sound(Head, 2974000, 0.65, 0.9) | |
733 | Flash(nil, BrickColor.new("Cyan").Color, 10, 0.1, true) | |
734 | growing = false | |
735 | wait(2.1) | |
736 | ||
737 | wait(0.1) | |
738 | pcall(function() | |
739 | end | |
740 | ) | |
741 | ||
742 | Sound(Head, 98333808, 1, 1) | |
743 | ||
744 | ||
745 | Sound(Head, 98333808, 1, 1) | |
746 | Sound(Head, 3264793, 0.55, 0.9) | |
747 | Sound(Head, 2974249, 0.65, 0.9) | |
748 | Sound(Head, 2974000, 0.65, 0.9) | |
749 | Shake(15, 0.25, 40, true) | |
750 | Flash(nil, BrickColor.new("Cyan").Color, 10, 0.1, true) | |
751 | coroutine.resume(coroutine.create(function() | |
752 | for i = 1, 2 do | |
753 | Sound(Head, 2248511, 0.3, 0.6) | |
754 | Sound(Head, 2691586, 0.3, 0.4) | |
755 | Sound(Head, 3264793, 0.55, 0.9) | |
756 | Sound(Head, 2974249, 0.65, 0.9) | |
757 | Sound(Head, 2974000, 0.65, 0.9) | |
758 | wait(3) | |
759 | end | |
760 | end | |
761 | )) | |
762 | for i = 1, 50 do | |
763 | wait(0.045) | |
764 | m.Scale = m.Scale - Vector3.new(1, 1, 1) / 1.95 | |
765 | end | |
766 | wait(1) | |
767 | ||
768 | ||
769 | ||
770 | ||
771 | ||
772 | ||
773 | ||
774 | ||
775 | ||
776 | ||
777 | ||
778 | ||
779 | p1 = Instance.new("Part", Model) | |
780 | p1.BrickColor = BrickColor.new(colortwo) | |
781 | p1.Transparency = 1 | |
782 | p1.FormFactor = Enum.FormFactor.Symmetric | |
783 | p1.Size = Vector3.new(1, 1, 1) | |
784 | 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) | |
785 | p1.CanCollide = false | |
786 | p1.Locked = true | |
787 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
788 | p1.TopSurface = Enum.SurfaceType.Smooth | |
789 | b1 = Instance.new("SpecialMesh", p1) | |
790 | b1.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
791 | b1.TextureId = "" | |
792 | b1.MeshType = Enum.MeshType.FileMesh | |
793 | b1.Name = "Mesh" | |
794 | b1.VertexColor = Vector3.new(0, 0, 0) | |
795 | b1.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
796 | p2 = Instance.new("Part", Model) | |
797 | p2.BrickColor = BrickColor.new("Black") | |
798 | p2.Transparency = 1 | |
799 | p2.Name = "Head" | |
800 | p2.FormFactor = Enum.FormFactor.Symmetric | |
801 | p2.Size = Vector3.new(2, 1, 1) | |
802 | 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) | |
803 | p2.CanCollide = false | |
804 | p2.Locked = true | |
805 | p2.TopSurface = Enum.SurfaceType.Smooth | |
806 | b2 = Instance.new("SpecialMesh", p2) | |
807 | b2.MeshType = Enum.MeshType.Head | |
808 | b2.Name = "Mesh" | |
809 | b2.Scale = Vector3.new(1.25, 1.25, 1.25) | |
810 | p3 = Instance.new("Part", Model) | |
811 | p3.BrickColor = BrickColor.new(colortwo) | |
812 | p3.Transparency = 1 | |
813 | p3.FormFactor = Enum.FormFactor.Symmetric | |
814 | p3.Size = Vector3.new(2, 2, 2) | |
815 | 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) | |
816 | p3.CanCollide = false | |
817 | p3.Locked = true | |
818 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
819 | p3.TopSurface = Enum.SurfaceType.Smooth | |
820 | b3 = Instance.new("SpecialMesh", p3) | |
821 | b3.MeshId = "http://www.roblox.com/asset/?id=16627529" | |
822 | b3.TextureId = "" | |
823 | b3.MeshType = Enum.MeshType.FileMesh | |
824 | b3.Name = "Mesh" | |
825 | b3.VertexColor = Vector3.new(0, 0, 0) | |
826 | b3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995) | |
827 | p4 = Instance.new("Part", Model) | |
828 | p4.BrickColor = BrickColor.new(colortwo) | |
829 | p4.FormFactor = Enum.FormFactor.Symmetric | |
830 | p4.Size = Vector3.new(1, 1, 1) | |
831 | p4.Transparency = 1 | |
832 | 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) | |
833 | p4.CanCollide = false | |
834 | p4.Locked = true | |
835 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
836 | p4.TopSurface = Enum.SurfaceType.Smooth | |
837 | b4 = Instance.new("SpecialMesh", p4) | |
838 | b4.MeshId = "http://www.roblox.com/asset/?id=19326912" | |
839 | b4.TextureId = "" | |
840 | b4.MeshType = Enum.MeshType.FileMesh | |
841 | b4.Name = "Mesh" | |
842 | b4.VertexColor = Vector3.new(0, 0, 0) | |
843 | p5 = Instance.new("Part", Model) | |
844 | p5.BrickColor = BrickColor.new(colortwo) | |
845 | p5.FormFactor = Enum.FormFactor.Symmetric | |
846 | p5.Size = Vector3.new(1, 1, 1) | |
847 | 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) | |
848 | p5.CanCollide = false | |
849 | p5.Transparency = 1 | |
850 | p5.Locked = true | |
851 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
852 | p5.TopSurface = Enum.SurfaceType.Smooth | |
853 | b5 = Instance.new("SpecialMesh", p5) | |
854 | b5.MeshId = "http://www.roblox.com/asset/?id=45916884" | |
855 | b5.TextureId = "" | |
856 | b5.MeshType = Enum.MeshType.FileMesh | |
857 | b5.Name = "Mesh" | |
858 | b5.VertexColor = Vector3.new(0, 0, 0) | |
859 | b5.Scale = Vector3.new(1, 0.899999976, 1) | |
860 | p6 = Instance.new("Part", Model) | |
861 | p6.BrickColor = BrickColor.new(colortwo) | |
862 | p6.FormFactor = Enum.FormFactor.Symmetric | |
863 | p6.Transparency = 1 | |
864 | p6.Size = Vector3.new(1, 1, 1) | |
865 | 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) | |
866 | p6.CanCollide = false | |
867 | p6.Locked = true | |
868 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
869 | p6.TopSurface = Enum.SurfaceType.Smooth | |
870 | b6 = Instance.new("SpecialMesh", p6) | |
871 | b6.MeshId = "http://www.roblox.com/asset/?id=62246019" | |
872 | b6.TextureId = "" | |
873 | b6.MeshType = Enum.MeshType.FileMesh | |
874 | b6.Name = "Mesh" | |
875 | b6.VertexColor = Vector3.new(0, 0, 0) | |
876 | p7 = Instance.new("Part", Model) | |
877 | p7.BrickColor = BrickColor.new(colortwo) | |
878 | p7.FormFactor = Enum.FormFactor.Symmetric | |
879 | p7.Transparency = 1 | |
880 | p7.Size = Vector3.new(1, 1, 1) | |
881 | 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) | |
882 | p7.CanCollide = false | |
883 | p7.Locked = true | |
884 | p7.BottomSurface = Enum.SurfaceType.Smooth | |
885 | p7.TopSurface = Enum.SurfaceType.Smooth | |
886 | b7 = Instance.new("SpecialMesh", p7) | |
887 | b7.MeshId = "http://www.roblox.com/asset/?id=76056263" | |
888 | b7.TextureId = "" | |
889 | b7.MeshType = Enum.MeshType.FileMesh | |
890 | b7.Name = "Mesh" | |
891 | b7.VertexColor = Vector3.new(0, 0, 0) | |
892 | p8 = Instance.new("Part", Model) | |
893 | p8.BrickColor = BrickColor.new(colortwo) | |
894 | p8.FormFactor = Enum.FormFactor.Symmetric | |
895 | p8.Size = Vector3.new(1, 1, 1) | |
896 | 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) | |
897 | p8.CanCollide = false | |
898 | p8.Transparency = 1 | |
899 | p8.Locked = true | |
900 | p8.BottomSurface = Enum.SurfaceType.Smooth | |
901 | p8.TopSurface = Enum.SurfaceType.Smooth | |
902 | b8 = Instance.new("SpecialMesh", p8) | |
903 | b8.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
904 | b8.TextureId = "" | |
905 | b8.MeshType = Enum.MeshType.FileMesh | |
906 | b8.Name = "Mesh" | |
907 | b8.VertexColor = Vector3.new(0, 0, 0) | |
908 | b8.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
909 | p9 = Instance.new("Part", Model) | |
910 | p9.BrickColor = BrickColor.new(colortwo) | |
911 | p9.FormFactor = Enum.FormFactor.Symmetric | |
912 | p9.Size = Vector3.new(2, 1, 2) | |
913 | p9.Transparency = 1 | |
914 | 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) | |
915 | p9.CanCollide = false | |
916 | p9.Locked = true | |
917 | p9.BottomSurface = Enum.SurfaceType.Smooth | |
918 | p9.TopSurface = Enum.SurfaceType.Smooth | |
919 | b9 = Instance.new("SpecialMesh", p9) | |
920 | b9.MeshId = "http://www.roblox.com/asset/?id=12259089" | |
921 | b9.TextureId = "" | |
922 | b9.MeshType = Enum.MeshType.FileMesh | |
923 | b9.Name = "Mesh" | |
924 | b9.VertexColor = Vector3.new(0, 0, 0) | |
925 | b9.Scale = Vector3.new(1.01999998, 1.04999995, 1.04999995) | |
926 | p10 = Instance.new("Part", Model) | |
927 | p10.BrickColor = BrickColor.new(colortwo) | |
928 | p10.Transparency = 1 | |
929 | p10.FormFactor = Enum.FormFactor.Symmetric | |
930 | p10.Size = Vector3.new(1, 1, 1) | |
931 | 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) | |
932 | p10.CanCollide = false | |
933 | p10.Locked = true | |
934 | p10.BottomSurface = Enum.SurfaceType.Smooth | |
935 | p10.TopSurface = Enum.SurfaceType.Smooth | |
936 | b10 = Instance.new("SpecialMesh", p10) | |
937 | b10.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
938 | b10.TextureId = "" | |
939 | b10.MeshType = Enum.MeshType.FileMesh | |
940 | b10.Name = "Mesh" | |
941 | b10.VertexColor = Vector3.new(0, 0, 0) | |
942 | b10.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
943 | p11 = Instance.new("Part", Model) | |
944 | p11.BrickColor = BrickColor.new(colortwo) | |
945 | p11.Transparency = 1 | |
946 | p11.FormFactor = Enum.FormFactor.Symmetric | |
947 | p11.Size = Vector3.new(1, 1, 1) | |
948 | 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) | |
949 | p11.CanCollide = false | |
950 | p11.Locked = true | |
951 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
952 | p11.TopSurface = Enum.SurfaceType.Smooth | |
953 | b11 = Instance.new("SpecialMesh", p11) | |
954 | b11.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
955 | b11.TextureId = "" | |
956 | b11.MeshType = Enum.MeshType.FileMesh | |
957 | b11.Name = "Mesh" | |
958 | b11.VertexColor = Vector3.new(0, 0, 0) | |
959 | b11.Scale = Vector3.new(1, 1.60000002, 1.29999995) | |
960 | p12 = Instance.new("Part", Model) | |
961 | p12.BrickColor = BrickColor.new(colortwo) | |
962 | p12.FormFactor = Enum.FormFactor.Custom | |
963 | p12.Size = Vector3.new(1, 3.5, 1) | |
964 | 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) | |
965 | p12.CanCollide = false | |
966 | p12.Transparency = 1 | |
967 | p12.Locked = true | |
968 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
969 | p12.TopSurface = Enum.SurfaceType.Smooth | |
970 | b12 = Instance.new("SpecialMesh", p12) | |
971 | b12.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
972 | b12.TextureId = "" | |
973 | b12.MeshType = Enum.MeshType.FileMesh | |
974 | b12.Name = "Mesh" | |
975 | b12.VertexColor = Vector3.new(0, 0, 0) | |
976 | b12.Scale = Vector3.new(1, 3, 1.29999995) | |
977 | p13 = Instance.new("Part", Model) | |
978 | p13.Transparency = 1 | |
979 | p13.BrickColor = BrickColor.new(colortwo) | |
980 | p13.FormFactor = Enum.FormFactor.Custom | |
981 | p13.Size = Vector3.new(1, 2, 1) | |
982 | 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) | |
983 | p13.CanCollide = false | |
984 | p13.Locked = true | |
985 | p13.BottomSurface = Enum.SurfaceType.Smooth | |
986 | p13.TopSurface = Enum.SurfaceType.Smooth | |
987 | b13 = Instance.new("SpecialMesh", p13) | |
988 | b13.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
989 | b13.TextureId = "" | |
990 | b13.MeshType = Enum.MeshType.FileMesh | |
991 | b13.Name = "Mesh" | |
992 | b13.VertexColor = Vector3.new(0, 0, 0) | |
993 | b13.Scale = Vector3.new(1, 3, 1.29999995) | |
994 | p14 = Instance.new("Part", Model) | |
995 | p14.Transparency = 1 | |
996 | p14.BrickColor = BrickColor.new(colortwo) | |
997 | p14.FormFactor = Enum.FormFactor.Custom | |
998 | p14.Size = Vector3.new(1, 2, 1) | |
999 | 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) | |
1000 | p14.CanCollide = false | |
1001 | p14.Locked = true | |
1002 | p14.BottomSurface = Enum.SurfaceType.Smooth | |
1003 | p14.TopSurface = Enum.SurfaceType.Smooth | |
1004 | b14 = Instance.new("SpecialMesh", p14) | |
1005 | b14.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
1006 | b14.TextureId = "" | |
1007 | b14.MeshType = Enum.MeshType.FileMesh | |
1008 | b14.Name = "Mesh" | |
1009 | b14.VertexColor = Vector3.new(0, 0, 0) | |
1010 | b14.Scale = Vector3.new(1, 3, 1.29999995) | |
1011 | p15 = Instance.new("Part", Model) | |
1012 | p15.BrickColor = BrickColor.new(colortwo) | |
1013 | p15.FormFactor = Enum.FormFactor.Custom | |
1014 | p15.Size = Vector3.new(1, 2.5, 1) | |
1015 | 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) | |
1016 | p15.CanCollide = false | |
1017 | p15.Transparency = 1 | |
1018 | p15.Locked = true | |
1019 | p15.BottomSurface = Enum.SurfaceType.Smooth | |
1020 | p15.TopSurface = Enum.SurfaceType.Smooth | |
1021 | b15 = Instance.new("SpecialMesh", p15) | |
1022 | b15.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
1023 | b15.TextureId = "" | |
1024 | b15.MeshType = Enum.MeshType.FileMesh | |
1025 | b15.Name = "Mesh" | |
1026 | b15.VertexColor = Vector3.new(0, 0, 0) | |
1027 | b15.Scale = Vector3.new(1, 3, 1.29999995) | |
1028 | p16 = Instance.new("Part", Model) | |
1029 | p16.BrickColor = BrickColor.new(colortwo) | |
1030 | p16.FormFactor = Enum.FormFactor.Custom | |
1031 | p16.Size = Vector3.new(1, 2.5, 1) | |
1032 | p16.Transparency = 1 | |
1033 | 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) | |
1034 | p16.CanCollide = false | |
1035 | p16.Locked = true | |
1036 | p16.BottomSurface = Enum.SurfaceType.Smooth | |
1037 | p16.TopSurface = Enum.SurfaceType.Smooth | |
1038 | b16 = Instance.new("SpecialMesh", p16) | |
1039 | b16.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
1040 | b16.TextureId = "" | |
1041 | b16.MeshType = Enum.MeshType.FileMesh | |
1042 | b16.Name = "Mesh" | |
1043 | b16.VertexColor = Vector3.new(0, 0, 0) | |
1044 | b16.Scale = Vector3.new(1, 3, 1.29999995) | |
1045 | p17 = Instance.new("Part", Model) | |
1046 | p17.BrickColor = BrickColor.new(colortwo) | |
1047 | p17.Transparency = 1 | |
1048 | p17.FormFactor = Enum.FormFactor.Custom | |
1049 | p17.Size = Vector3.new(1, 2.4000001, 1) | |
1050 | 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) | |
1051 | p17.CanCollide = false | |
1052 | p17.Locked = true | |
1053 | p17.BottomSurface = Enum.SurfaceType.Smooth | |
1054 | p17.TopSurface = Enum.SurfaceType.Smooth | |
1055 | b17 = Instance.new("SpecialMesh", p17) | |
1056 | b17.MeshId = "http://www.roblox.com/asset/?id=12212520" | |
1057 | b17.TextureId = "" | |
1058 | b17.MeshType = Enum.MeshType.FileMesh | |
1059 | b17.Name = "Mesh" | |
1060 | b17.VertexColor = Vector3.new(0, 0, 0) | |
1061 | b17.Scale = Vector3.new(1, 3, 1.29999995) | |
1062 | p18 = Instance.new("Part", Model) | |
1063 | p18.BrickColor = BrickColor.new(colortwo) | |
1064 | p18.FormFactor = Enum.FormFactor.Custom | |
1065 | p18.Size = Vector3.new(2, 2, 2) | |
1066 | p18.Transparency = 1 | |
1067 | 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) | |
1068 | p18.CanCollide = false | |
1069 | p18.Locked = true | |
1070 | p18.BottomSurface = Enum.SurfaceType.Smooth | |
1071 | p18.TopSurface = Enum.SurfaceType.Smooth | |
1072 | b18 = Instance.new("SpecialMesh", p18) | |
1073 | b18.MeshId = "http://www.roblox.com/asset/?id=16627529" | |
1074 | b18.TextureId = "" | |
1075 | b18.MeshType = Enum.MeshType.FileMesh | |
1076 | b18.Name = "Mesh" | |
1077 | b18.VertexColor = Vector3.new(0, 0, 0) | |
1078 | b18.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995) | |
1079 | w1 = Instance.new("Weld", p1) | |
1080 | w1.Name = "Head_Weld" | |
1081 | w1.Part0 = p1 | |
1082 | 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) | |
1083 | w1.Part1 = p2 | |
1084 | 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) | |
1085 | w2 = Instance.new("Weld", p2) | |
1086 | w2.Name = "Part_Weld" | |
1087 | w2.Part0 = p2 | |
1088 | 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) | |
1089 | w2.Part1 = p3 | |
1090 | 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) | |
1091 | w3 = Instance.new("Weld", p3) | |
1092 | w3.Name = "Part_Weld" | |
1093 | w3.Part0 = p3 | |
1094 | 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) | |
1095 | w3.Part1 = p4 | |
1096 | 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) | |
1097 | w4 = Instance.new("Weld", p4) | |
1098 | w4.Name = "Part_Weld" | |
1099 | w4.Part0 = p4 | |
1100 | 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) | |
1101 | w4.Part1 = p5 | |
1102 | 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) | |
1103 | w5 = Instance.new("Weld", p5) | |
1104 | w5.Name = "Part_Weld" | |
1105 | w5.Part0 = p5 | |
1106 | 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) | |
1107 | w5.Part1 = p6 | |
1108 | 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) | |
1109 | w6 = Instance.new("Weld", p6) | |
1110 | w6.Name = "Part_Weld" | |
1111 | w6.Part0 = p6 | |
1112 | 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) | |
1113 | w6.Part1 = p7 | |
1114 | 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) | |
1115 | w7 = Instance.new("Weld", p7) | |
1116 | w7.Name = "Part_Weld" | |
1117 | w7.Part0 = p7 | |
1118 | 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) | |
1119 | w7.Part1 = p8 | |
1120 | 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) | |
1121 | w8 = Instance.new("Weld", p8) | |
1122 | w8.Name = "Part_Weld" | |
1123 | w8.Part0 = p8 | |
1124 | 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) | |
1125 | w8.Part1 = p9 | |
1126 | 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) | |
1127 | w9 = Instance.new("Weld", p9) | |
1128 | w9.Name = "Part_Weld" | |
1129 | w9.Part0 = p9 | |
1130 | 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) | |
1131 | w9.Part1 = p10 | |
1132 | 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) | |
1133 | w10 = Instance.new("Weld", p10) | |
1134 | w10.Name = "Part_Weld" | |
1135 | w10.Part0 = p10 | |
1136 | 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) | |
1137 | w10.Part1 = p11 | |
1138 | 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) | |
1139 | w11 = Instance.new("Weld", p11) | |
1140 | w11.Name = "Part_Weld" | |
1141 | w11.Part0 = p11 | |
1142 | 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) | |
1143 | w11.Part1 = p12 | |
1144 | 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) | |
1145 | w12 = Instance.new("Weld", p12) | |
1146 | w12.Name = "Part_Weld" | |
1147 | w12.Part0 = p12 | |
1148 | 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) | |
1149 | w12.Part1 = p13 | |
1150 | 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) | |
1151 | w13 = Instance.new("Weld", p13) | |
1152 | w13.Name = "Part_Weld" | |
1153 | w13.Part0 = p13 | |
1154 | 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) | |
1155 | w13.Part1 = p14 | |
1156 | 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) | |
1157 | w14 = Instance.new("Weld", p14) | |
1158 | w14.Name = "Part_Weld" | |
1159 | w14.Part0 = p14 | |
1160 | 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) | |
1161 | w14.Part1 = p15 | |
1162 | 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) | |
1163 | w15 = Instance.new("Weld", p15) | |
1164 | w15.Name = "Part_Weld" | |
1165 | w15.Part0 = p15 | |
1166 | 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) | |
1167 | w15.Part1 = p16 | |
1168 | 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) | |
1169 | w16 = Instance.new("Weld", p16) | |
1170 | w16.Name = "Part_Weld" | |
1171 | w16.Part0 = p16 | |
1172 | 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) | |
1173 | w16.Part1 = p17 | |
1174 | 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) | |
1175 | w17 = Instance.new("Weld", p17) | |
1176 | w17.Name = "Part_Weld" | |
1177 | w17.Part0 = p17 | |
1178 | 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) | |
1179 | w17.Part1 = p18 | |
1180 | 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) | |
1181 | ||
1182 | ||
1183 | ---------------------------------------------------- | |
1184 | ||
1185 | ||
1186 | ||
1187 | ||
1188 | ||
1189 | ||
1190 | char = game.Players.LocalPlayer.Character | |
1191 | ||
1192 | ||
1193 | ||
1194 | ||
1195 | ||
1196 | ||
1197 | ||
1198 | LightOnBody2 = Instance.new("PointLight", hed) | |
1199 | LightOnBody2.Brightness = 0 | |
1200 | LightOnBody2.Range = 20 | |
1201 | LightOnBody2.Color = Color3.new(255, 255, 255) | |
1202 | ||
1203 | spi.BrickColor = BrickColor.new(colorone) | |
1204 | Flash(nil, BrickColor.new("Cyan").Color, 7, 0.1, true) | |
1205 | for i = 1, 20 do | |
1206 | m.Scale = m.Scale + Vector3.new(6, 6, 6) | |
1207 | spi.Transparency = i / 20 | |
1208 | wait(0.03) | |
1209 | end | |
1210 | ||
1211 | ||
1212 | ||
1213 | ||
1214 | ||
1215 | spi:Destroy() | |
1216 | Anims.Implode(false) | |
1217 | Humanoid.WalkSpeed = 16 | |
1218 | Transformed = true | |
1219 | Occupied = false | |
1220 | if not active and Transformed and not Occupied then | |
1221 | Occupied = true | |
1222 | Humanoid.WalkSpeed = 0 | |
1223 | Anims.Pose(true) | |
1224 | Sound(Head, 2248511, 0.75, 0.6) | |
1225 | Sound(Head, 2691586, 0.7, 0.4) | |
1226 | Sound(Head, 2785493, 0.55, 0.9) | |
1227 | Sound(Head, 2785493, 0.7, 0.7) | |
1228 | Shake(5, 0.1, 20, true) | |
1229 | Flash(nil, Color3.new(1, 1, 1), 7, 0.1, false) | |
1230 | coroutine.resume(coroutine.create(function() | |
1231 | for i = 1, 0, -0.075 do | |
1232 | wait(0.016666666666667) | |
1233 | for _,v in pairs(Character:GetChildren()) do | |
1234 | if v.Name == "Hair" then | |
1235 | v.Transparency = i | |
1236 | end | |
1237 | end | |
1238 | end | |
1239 | for _,v in pairs(Character:GetChildren()) do | |
1240 | if v.Name == "Hair" then | |
1241 | v.Transparency = 0 | |
1242 | end | |
1243 | end | |
1244 | end | |
1245 | )) | |
1246 | for i = 0, 1, 0.075 do | |
1247 | wait(0.016666666666667) | |
1248 | ||
1249 | end | |
1250 | ||
1251 | Sound(Head, 2800815, 0.85, 1) | |
1252 | Sound(Head, 2800815, 0.55, 0.8) | |
1253 | Sound(Head, 2691586, 0.45, 0.3) | |
1254 | pcall(function() | |
1255 | end | |
1256 | ) | |
1257 | wait(0.1) | |
1258 | pcall(function() | |
1259 | end | |
1260 | ) | |
1261 | Anims.Pose(false) | |
1262 | Humanoid.WalkSpeed = 16 | |
1263 | wait(0.35) | |
1264 | Transformed = false | |
1265 | Occupied = false | |
1266 | end | |
1267 | end | |
1268 | end | |
1269 | end | |
1270 | end | |
1271 | ||
1272 | ||
1273 | ||
1274 | ||
1275 | ||
1276 | ||
1277 | ||
1278 | Transform(true) | |
1279 | ||
1280 | ||
1281 | Transforming = false | |
1282 | ||
1283 | ||
1284 | ||
1285 | ||
1286 | ||
1287 | chatfunc("Come meet your death") | |
1288 | ||
1289 | local taunt = Instance.new("Sound",Character) | |
1290 | taunt.SoundId = "rbxassetid://907332997" | |
1291 | taunt.Pitch = 0.7 | |
1292 | taunt.Volume = 10 | |
1293 | taunt.Looped = false | |
1294 | - | local p = game.Players.LocalPlayer |
1294 | + | |
1295 | ||
1296 | Services = setmetatable({},{__index=function(s,r) return game:service(r) end}) | |
1297 | Player = Services.Players.LocalPlayer | |
1298 | ||
1299 | - | local Player = game.Players.localPlayer |
1299 | + | |
1300 | wait()script.Parent=nil | |
1301 | BodyParts={} | |
1302 | abs = function(int) | |
1303 | if int < 0 then return -int else return int end | |
1304 | end | |
1305 | rad = function(deg) | |
1306 | return deg * math.pi / 180 | |
1307 | end | |
1308 | deg = function(rad) | |
1309 | return rad * 180 / math.pi | |
1310 | end | |
1311 | dist = function(p1,p2) | |
1312 | r,e = ypcall(function() | |
1313 | p1 = p1.Position | |
1314 | end) | |
1315 | if not r then p1 = p1 end | |
1316 | r,e = ypcall(function() | |
1317 | p2 = p2.Position | |
1318 | end) | |
1319 | if not r then p1 = p1 end | |
1320 | return math.sqrt( (p2.X-p1.X)^2 + (p2.Y-p1.Y)^2 + (p2.Z-p1.Z)^2 ) | |
1321 | end | |
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | function GetHum() | |
1328 | for i,v in pairs(GetChar():children'') do | |
1329 | if v.ClassName == 'Humanoid' then | |
1330 | return v | |
1331 | end | |
1332 | end | |
1333 | end | |
1334 | ||
1335 | function GetChar() | |
1336 | return Player.Character | |
1337 | end | |
1338 | ||
1339 | function Died() | |
1340 | for i,v in pairs(GetChar():children'') do | |
1341 | if v.ClassName == 'Part' then | |
1342 | table.insert(BodyParts,{v.CFrame,v}) | |
1343 | elseif v.ClassName == 'Hat' then | |
1344 | v.Parent=workspace | |
1345 | table.insert(BodyParts,{v.Handle.CFrame,v.Handle,1}) | |
1346 | - | local Players=game:service'Players' |
1346 | + | |
1347 | - | local Player=Players.LocalPlayer |
1347 | + | |
1348 | - | local Mouse=Player:GetMouse'' |
1348 | + | |
1349 | wait(3) | |
1350 | for i,v in pairs(BodyParts) do | |
1351 | v[2].Anchored=true | |
1352 | if v[2].Name == 'Torso' then pos = v[1] end | |
1353 | end | |
1354 | ||
1355 | for i,v in pairs(BodyParts) do | |
1356 | coroutine.resume(coroutine.create(function() | |
1357 | repeat Services.RunService.Heartbeat:wait() | |
1358 | v[2].CFrame = v[2].CFrame:lerp(v[1],.1) | |
1359 | until dist(v[2],v[1]) < .05 | |
1360 | v[2].CFrame=v[1] | |
1361 | end)) | |
1362 | end | |
1363 | end | |
1364 | ||
1365 | Player.CharacterAdded:connect(function(char) | |
1366 | char:WaitForChild('Torso') | |
1367 | for i,v in pairs(BodyParts) do | |
1368 | if v[3] then | |
1369 | v[2]:Remove() | |
1370 | end | |
1371 | end | |
1372 | BodyParts={} | |
1373 | char.Torso.CFrame=pos or CFrame.new(0,12,0) | |
1374 | GetHum().Died:connect(Died) | |
1375 | end) | |
1376 | GetHum().Died:connect(Died) | |
1377 | print'rannering' | |
1378 | local p = owner | |
1379 | local char = p.Character | |
1380 | local hed = char.Head | |
1381 | local LocalPlayer = p | |
1382 | ||
1383 | local Player = owner | |
1384 | local Character = p.Character | |
1385 | ||
1386 | local LeftArm2 = Character["Left Arm"] | |
1387 | local RightArm2 = Character["Right Arm"] | |
1388 | local LeftLeg2 = Character["Left Leg"] | |
1389 | local RightLeg2 = Character["Right Leg"] | |
1390 | local Head2 = Character.Head | |
1391 | local Torso2 = Character.Torso | |
1392 | ||
1393 | char.Humanoid.MaxHealth = math.huge | |
1394 | char.Humanoid.Health = math.huge | |
1395 | ||
1396 | ||
1397 | for i,v in pairs(char:GetChildren()) do | |
1398 | if v.ClassName == "Accessory" or v.ClassName == "Hat" then | |
1399 | v:destroy() | |
1400 | end | |
1401 | end | |
1402 | ||
1403 | local KonoDioDa = Instance.new("Part",char) | |
1404 | KonoDioDa.Size = Vector3.new(1.67, 2.38, 1.7) | |
1405 | KonoDioDa.CanCollide = false | |
1406 | KonoDioDa.BrickColor = BrickColor.new("Fire Yellow") | |
1407 | local KonoDioDa2 = Instance.new("SpecialMesh",KonoDioDa) | |
1408 | KonoDioDa2.MeshId = "rbxassetid://867480786" | |
1409 | KonoDioDa2.TextureId = "rbxassetid://591885543" | |
1410 | KonoDioDa2.Offset = Vector3.new(0.08, 0, 0.3) | |
1411 | KonoDioDa2.Scale = Vector3.new(0.04, 0.04, 0.04) | |
1412 | local KonoDioDa3 = Instance.new("Weld",KonoDioDa) | |
1413 | KonoDioDa3.Part0 = Head | |
1414 | KonoDioDa3.Part1 = KonoDioDa | |
1415 | KonoDioDa3.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0) | |
1416 | ||
1417 | cut = Instance.new("Sound", Character) | |
1418 | cut.SoundId = "https://www.roblox.com/asset/?id=97095069" | |
1419 | cut.Volume = 1.5 | |
1420 | thri = Instance.new("Sound", Character) | |
1421 | thri.SoundId = "https://www.roblox.com/asset/?id=186311262" | |
1422 | thri.Volume = 2.5 | |
1423 | WRY = Instance.new("Sound", Character) | |
1424 | WRY.SoundId = "https://www.roblox.com/asset/?id=910713928" | |
1425 | WRY.Volume = 5 | |
1426 | ||
1427 | ff = Instance.new("ForceField", game.Players.LocalPlayer.Character) | |
1428 | ff.Visible = false | |
1429 | ||
1430 | local Players=Players.LocalPlayer | |
1431 | local Player=owner | |
1432 | local RenderStepped=game:service'RunService'.RenderStepped | |
1433 | ||
1434 | local MeshId='http://www.roblox.com/asset?id=202083123' | |
1435 | ||
1436 | local KnifeSpeed= 250.255 | |
1437 | ||
1438 | Player:GetMouse().KeyDown:connect(function(key) | |
1439 | key = key:lower() | |
1440 | if key == "e" then | |
1441 | cut:Play() | |
1442 | if Mouse.Target then | |
1443 | local Knife=Instance.new('Part',Player.Character) | |
1444 | Knife.CanCollide=false | |
1445 | Knife.BrickColor = BrickColor.new("Really red") | |
1446 | Knife.Size=Vector3.new(2,2,2) | |
1447 | Knife.CFrame=Player.Character.Torso.CFrame | |
1448 | local KnifeMesh=Instance.new('SpecialMesh',Knife) | |
1449 | KnifeMesh.MeshType='FileMesh' | |
1450 | KnifeMesh.MeshId=MeshId | |
1451 | KnifeMesh.Scale=Vector3.new(1,1,1) | |
1452 | local BodyVel=Instance.new('BodyVelocity',Knife) | |
1453 | BodyVel.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1454 | local BodyGyro=Instance.new('BodyGyro',Knife) | |
1455 | BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1456 | BodyGyro.P=2e4 | |
1457 | coroutine.wrap(function() | |
1458 | RenderStepped:connect(function() | |
1459 | BodyGyro.cframe=CFrame.new(Knife.Position,Mouse.Hit.p) | |
1460 | BodyVel.velocity=Knife.CFrame.lookVector*KnifeSpeed | |
1461 | end) | |
1462 | end)() | |
1463 | Knife.Touched:connect(function(p) | |
1464 | if p.Parent~=Player.Character and p.Parent:FindFirstChild'Humanoid' then | |
1465 | p.Parent:BreakJoints() | |
1466 | Knife:Destroy'' | |
1467 | thri:Play() | |
1468 | end | |
1469 | end) | |
1470 | end | |
1471 | end | |
1472 | end) | |
1473 | ||
1474 | mse = Player:GetMouse() | |
1475 | ||
1476 | sound = Instance.new("Sound", Character) | |
1477 | sound.SoundId = "https://www.roblox.com/asset/?id=840567549" | |
1478 | sound.Volume = 0 | |
1479 | sound2 = Instance.new("Sound", Character) | |
1480 | sound2.SoundId = "https://www.roblox.com/asset/?id=184605339" | |
1481 | sound2.Volume = 10 | |
1482 | ||
1483 | sound3 = Instance.new("Sound", Character) | |
1484 | sound3.SoundId = "https://www.roblox.com/asset/?id=616576400" | |
1485 | sound3.Volume = 0 | |
1486 | sound4 = Instance.new("Sound", Character) | |
1487 | sound4.SoundId = "https://www.roblox.com/asset/?id=616576400" | |
1488 | sound4.Volume = 0 | |
1489 | TSTheme = Instance.new("Sound", Character) | |
1490 | TSTheme.SoundId = "https://www.roblox.com/asset/?id=823918467" | |
1491 | TSTheme.Volume = 10 | |
1492 | canworld = true | |
1493 | mse.KeyDown:connect(function(key) | |
1494 | key = key:lower() | |
1495 | if key == "t" then | |
1496 | if canworld == false then return end | |
1497 | if canworld then | |
1498 | canworld = false | |
1499 | sound3:Play() | |
1500 | sound:Play() | |
1501 | sound4:Play() | |
1502 | TSTheme:Play() | |
1503 | local sky = Instance.new("Sky",game.Lighting) | |
1504 | sky.CelestialBodiesShown = false | |
1505 | sky.MoonAngularSize = 11 | |
1506 | sky.MoonTextureId = "rbxasset://sky/moon.jpg" | |
1507 | sky.SkyboxBk = "rbxassetid://566616113" | |
1508 | sky.SkyboxDn = "rbxassetid://566616232" | |
1509 | sky.SkyboxFt = "rbxassetid://566616141" | |
1510 | sky.SkyboxLf = "rbxassetid://566616044" | |
1511 | sky.SkyboxRt = "rbxassetid://566616082" | |
1512 | sky.SkyboxUp = "rbxassetid://566616187" | |
1513 | sky.StarCount = 3000 | |
1514 | sky.SunAngularSize = 21 | |
1515 | sky.SunTextureId = "rbxasset://sky/sun.jpg" | |
1516 | local function spawnpart() | |
1517 | sphere = Instance.new("Part") | |
1518 | --game.Debris:AddItem(sphere,3) | |
1519 | local sm = Instance.new("SpecialMesh", sphere) | |
1520 | sm.MeshType = "Sphere" | |
1521 | sphere.Transparency = 0.5 | |
1522 | sphere.Anchored = true | |
1523 | sphere.CanCollide = false | |
1524 | sphere.Material = "Neon" | |
1525 | sphere.BrickColor = BrickColor.new("Black") | |
1526 | end | |
1527 | ||
1528 | local function weld(lol) | |
1529 | local weld = Instance.new("Weld", Player.Character.Torso) | |
1530 | weld.Part0 = Player.Character.Torso | |
1531 | weld.Part1 = lol | |
1532 | weld.C0 = Player.Character.Torso.CFrame:inverse() | |
1533 | weld.C1 = lol.CFrame:inverse() | |
1534 | end | |
1535 | wait() | |
1536 | spawnpart() | |
1537 | for i, v in pairs(game.Players:GetChildren()) do | |
1538 | t = v.Character:FindFirstChild("Torso") | |
1539 | if t then | |
1540 | t.Anchored = true | |
1541 | Player.Character:FindFirstChild("Torso").Anchored = false | |
1542 | end | |
1543 | RA = v.Character:FindFirstChild("Right Arm") | |
1544 | if RA then | |
1545 | RA.Anchored = true | |
1546 | Player.Character:FindFirstChild("Right Arm").Anchored = false | |
1547 | end | |
1548 | LA = v.Character:FindFirstChild("Left Arm") | |
1549 | if LA then | |
1550 | LA.Anchored = true | |
1551 | Player.Character:FindFirstChild("Left Arm").Anchored = false | |
1552 | end | |
1553 | RL = v.Character:FindFirstChild("Right Leg") | |
1554 | if RL then | |
1555 | RL.Anchored = true | |
1556 | Player.Character:FindFirstChild("Right Leg").Anchored = false | |
1557 | end | |
1558 | LL = v.Character:FindFirstChild("Left Leg") | |
1559 | if LL then | |
1560 | LL.Anchored = true | |
1561 | Player.Character:FindFirstChild("Left Leg").Anchored = false | |
1562 | end | |
1563 | end | |
1564 | weld(sphere) | |
1565 | cce = Instance.new("ColorCorrectionEffect", game.Lighting) | |
1566 | cce.Saturation = -5 | |
1567 | --game.Debris:AddItem(cce, 5) | |
1568 | sphere.Parent = Character.Torso | |
1569 | for i = 1,3 do | |
1570 | sphere.Size = sphere.Size + Vector3.new(50,50,50) | |
1571 | wait() | |
1572 | end | |
1573 | wait() | |
1574 | sphere:Destroy() | |
1575 | KnifeSpeed = 0 | |
1576 | cce.Saturation = -0.1 | |
1577 | wait(0.3) | |
1578 | cce.Saturation = -0.2 | |
1579 | wait(0.3) | |
1580 | cce.Saturation = -0.3 | |
1581 | wait(0.2) | |
1582 | cce.Saturation = -1.5 | |
1583 | wait() | |
1584 | end | |
1585 | end | |
1586 | end | |
1587 | ) | |
1588 | ||
1589 | mse.KeyDown:connect(function(key) | |
1590 | key = key:lower() | |
1591 | if key == "y" then | |
1592 | canworld = true | |
1593 | sound2:Play() | |
1594 | - | local Player = game.Players.localPlayer |
1594 | + | |
1595 | KnifeSpeed = 1 | |
1596 | cce.Saturation = -1.3 | |
1597 | - | local Mouse = Player:GetMouse() |
1597 | + | |
1598 | KnifeSpeed = 1.2 | |
1599 | cce.Saturation = -0.5 | |
1600 | wait(0.5) | |
1601 | KnifeSpeed = 1.4 | |
1602 | cce.Saturation = -0.4 | |
1603 | wait(0.3) | |
1604 | KnifeSpeed = 1.5 | |
1605 | cce.Saturation = -0.2 | |
1606 | wait(0.2) | |
1607 | cce.Saturation = 0 | |
1608 | ||
1609 | for i, v in pairs(game.Players:GetChildren()) do | |
1610 | t = v.Character:FindFirstChild("Torso") | |
1611 | if t then | |
1612 | t.Anchored = false | |
1613 | end | |
1614 | RA = v.Character:FindFirstChild("Right Arm") | |
1615 | if RA then | |
1616 | RA.Anchored = false | |
1617 | end | |
1618 | LA = v.Character:FindFirstChild("Left Arm") | |
1619 | if LA then | |
1620 | LA.Anchored = false | |
1621 | end | |
1622 | RL = v.Character:FindFirstChild("Right Leg") | |
1623 | if RL then | |
1624 | RL.Anchored = false | |
1625 | end | |
1626 | LL = v.Character:FindFirstChild("Left Leg") | |
1627 | if LL then | |
1628 | LL.Anchored = false | |
1629 | end | |
1630 | end | |
1631 | KnifeSpeed = 250.255 | |
1632 | game.Lighting.Sky:Remove() | |
1633 | TSTheme:Stop() | |
1634 | game.Lighting.ColorCorrection:Remove() | |
1635 | end | |
1636 | end) | |
1637 | CV="Really black" | |
1638 | p = game.Players.LocalPlayer | |
1639 | char = p.Character | |
1640 | local txt = Instance.new("BillboardGui", char) | |
1641 | txt.Adornee = char .Head | |
1642 | txt.Name = "_status" | |
1643 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
1644 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
1645 | local text = Instance.new("TextLabel", txt) | |
1646 | text.Size = UDim2.new(10, 0, 7, 0) | |
1647 | text.FontSize = "Size24" | |
1648 | text.TextScaled = true | |
1649 | text.TextTransparency = 0 | |
1650 | text.BackgroundTransparency = 1 | |
1651 | text.TextTransparency = 0 | |
1652 | text.TextStrokeTransparency = 0 | |
1653 | text.Font = "Fantasy" | |
1654 | text.TextStrokeColor3 = Color3.new(255,0,0) | |
1655 | ||
1656 | v=Instance.new("Part") | |
1657 | v.Name = "ColorBrick" | |
1658 | v.Parent=p.Character | |
1659 | v.FormFactor="Symmetric" | |
1660 | v.Anchored=true | |
1661 | v.CanCollide=false | |
1662 | v.BottomSurface="Smooth" | |
1663 | v.TopSurface="Smooth" | |
1664 | v.Size=Vector3.new(1,1,1) | |
1665 | v.Transparency=1 | |
1666 | v.CFrame=char.Torso.CFrame | |
1667 | v.BrickColor=BrickColor.new(CV) | |
1668 | v.Transparency=1 | |
1669 | text.TextColor3 = Color3.new(255,255,255) | |
1670 | v.Shape="Block" | |
1671 | text.Text = "Corrupted Dio" | |
1672 | ||
1673 | ||
1674 | ||
1675 | wait(1 / 60) | |
1676 | Effects = { } | |
1677 | local Player = owner | |
1678 | local Character = Player.Character | |
1679 | local Humanoid = Character.Humanoid | |
1680 | local LeftArm = Character["Left Arm"] | |
1681 | local RightArm = Character["Right Arm"] | |
1682 | local LeftLeg = Character["Left Leg"] | |
1683 | local RightLeg = Character["Right Leg"] | |
1684 | local Head = Character.Head | |
1685 | local Torso = Character.Torso | |
1686 | local Camera = game.Workspace.CurrentCamera | |
1687 | local RootPart = Character.HumanoidRootPart | |
1688 | local RootJoint = RootPart.RootJoint | |
1689 | local attack = false | |
1690 | local Anim = 'Idle' | |
1691 | local attacktype = 1 | |
1692 | local delays = false | |
1693 | local play = true | |
1694 | local targetted = nil | |
1695 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1696 | local velocity = RootPart.Velocity.y | |
1697 | local sine = 0 | |
1698 | local change = 1 | |
1699 | local doe = 0 | |
1700 | local Create = LoadLibrary("RbxUtility").Create | |
1701 | Humanoid.WalkSpeed = 50 | |
1702 | local m = Create("Model"){ | |
1703 | Parent = Character, | |
1704 | Name = "WeaponModel", | |
1705 | } | |
1706 | local Orin = "http://www.roblox.com/asset/?id=124924590" | |
1707 | Head.face.Texture = Orin | |
1708 | spawn(function() | |
1709 | while wait() do | |
1710 | Head.BrickColor = BrickColor.new("Really black") | |
1711 | RightArm.BrickColor = BrickColor.new("Really red") | |
1712 | LeftArm.BrickColor = BrickColor.new("Really red") | |
1713 | Torso.BrickColor = BrickColor.new("Really black") | |
1714 | RightLeg.BrickColor = BrickColor.new("Really black") | |
1715 | LeftLeg.BrickColor = BrickColor.new("Really black") | |
1716 | end | |
1717 | end) | |
1718 | for i,v in pairs(Character:children()) do | |
1719 | if v:IsA("Shirt") then | |
1720 | v:Destroy() | |
1721 | end | |
1722 | end | |
1723 | for i,v in pairs(Character:children()) do | |
1724 | if v:IsA("Pants") then | |
1725 | v:Destroy() | |
1726 | end | |
1727 | end | |
1728 | for i,v in pairs(Character:children()) do | |
1729 | if v:IsA("Accessory") then | |
1730 | v:Destroy() | |
1731 | end | |
1732 | end | |
1733 | ||
1734 | ||
1735 | shirt = Instance.new("Shirt", Character) | |
1736 | shirt.Name = "Shirt" | |
1737 | pants = Instance.new("Pants", Character) | |
1738 | pants.Name = "Pants" | |
1739 | Character.Shirt.ShirtTemplate = "rbxassetid://274326531" | |
1740 | Character.Pants.PantsTemplate = "rbxassetid://128946129" | |
1741 | Humanoid.Animator.Parent = nil | |
1742 | Character.Animate.Parent = nil | |
1743 | hat = Instance.new("Hat", game.ReplicatedStorage) | |
1744 | hat.Name = "Hair?" | |
1745 | hat.AttachmentForward = Vector3.new(0,0,-1) | |
1746 | hat.AttachmentPos = Vector3.new(0,-0.05,0.1) | |
1747 | hat.AttachmentRight = Vector3.new(1,0,0) | |
1748 | hat.AttachmentUp = Vector3.new(0,1,0) | |
1749 | local handle = Instance.new("Part",hat) | |
1750 | handle.Rotation = Vector3.new(0, 90, 0) | |
1751 | handle.Name = "Handle" | |
1752 | handle.TopSurface = "Smooth" | |
1753 | handle.BottomSurface = "Smooth" | |
1754 | handle.Size = Vector3.new(1,1,1) | |
1755 | handle.Transparency = 1 | |
1756 | local mesh = Instance.new("SpecialMesh",handle) | |
1757 | mesh.MeshType = "FileMesh" | |
1758 | mesh.MeshId = "http://www.roblox.com/asset/?id=62246019" | |
1759 | mesh.TextureId = "rbxassetid://252864626" | |
1760 | mesh.Scale = Vector3.new(1.05,1.05,1.05) | |
1761 | hat.Parent = Character | |
1762 | ||
1763 | ||
1764 | ||
1765 | local newMotor = function(part0, part1, c0, c1) | |
1766 | local w = Create('Motor'){ | |
1767 | Parent = part0, | |
1768 | Part0 = part0, | |
1769 | Part1 = part1, | |
1770 | C0 = c0, | |
1771 | C1 = c1, | |
1772 | } | |
1773 | return w | |
1774 | end | |
1775 | ||
1776 | function clerp(a, b, t) | |
1777 | return a:lerp(b, t) | |
1778 | end | |
1779 | ||
1780 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
1781 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1782 | ||
1783 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
1784 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
1785 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
1786 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
1787 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
1788 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
1789 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
1790 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
1791 | ||
1792 | local rarmc1 = RW.C1 | |
1793 | local larmc1 = LW.C1 | |
1794 | local rlegc1 = RH.C1 | |
1795 | local llegc1 = LH.C1 | |
1796 | ||
1797 | local resetc1 = false | |
1798 | ||
1799 | function PlayAnimationFromTable(table, speed, bool) | |
1800 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
1801 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
1802 | RW.C0 = clerp(RW.C0, table[3], speed) | |
1803 | LW.C0 = clerp(LW.C0, table[4], speed) | |
1804 | RH.C0 = clerp(RH.C0, table[5], speed) | |
1805 | LH.C0 = clerp(LH.C0, table[6], speed) | |
1806 | if bool == true then | |
1807 | if resetc1 == false then | |
1808 | resetc1 = true | |
1809 | RootJoint.C1 = RootJoint.C1 | |
1810 | Torso.Neck.C1 = Torso.Neck.C1 | |
1811 | RW.C1 = rarmc1 | |
1812 | LW.C1 = larmc1 | |
1813 | RH.C1 = rlegc1 | |
1814 | LH.C1 = llegc1 | |
1815 | end | |
1816 | end | |
1817 | end | |
1818 | ||
1819 | ArtificialHB = Create("BindableEvent", script){ | |
1820 | Parent = script, | |
1821 | Name = "Heartbeat", | |
1822 | } | |
1823 | ||
1824 | script:WaitForChild("Heartbeat") | |
1825 | ||
1826 | frame = 1 / 30 | |
1827 | tf = 0 | |
1828 | allowframeloss = false | |
1829 | tossremainder = false | |
1830 | lastframe = tick() | |
1831 | script.Heartbeat:Fire() | |
1832 | ||
1833 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1834 | tf = tf + s | |
1835 | if tf >= frame then | |
1836 | if allowframeloss then | |
1837 | script.Heartbeat:Fire() | |
1838 | lastframe = tick() | |
1839 | else | |
1840 | for i = 1, math.floor(tf / frame) do | |
1841 | script.Heartbeat:Fire() | |
1842 | end | |
1843 | lastframe = tick() | |
1844 | end | |
1845 | if tossremainder then | |
1846 | tf = 0 | |
1847 | else | |
1848 | tf = tf - frame * math.floor(tf / frame) | |
1849 | end | |
1850 | end | |
1851 | end) | |
1852 | ||
1853 | function swait(num) | |
1854 | if num == 0 or num == nil then | |
1855 | ArtificialHB.Event:wait() | |
1856 | else | |
1857 | for i = 0, num do | |
1858 | ArtificialHB.Event:wait() | |
1859 | end | |
1860 | end | |
1861 | end | |
1862 | ||
1863 | function RemoveOutlines(part) | |
1864 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1865 | end | |
1866 | ||
1867 | CFuncs = { | |
1868 | ["Part"] = { | |
1869 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1870 | local Part = Create("Part"){ | |
1871 | Parent = Parent, | |
1872 | Reflectance = Reflectance, | |
1873 | Transparency = Transparency, | |
1874 | CanCollide = false, | |
1875 | Locked = true, | |
1876 | BrickColor = BrickColor.new(tostring(BColor)), | |
1877 | Name = Name, | |
1878 | Size = Size, | |
1879 | Material = Material, | |
1880 | } | |
1881 | RemoveOutlines(Part) | |
1882 | return Part | |
1883 | end; | |
1884 | }; | |
1885 | ||
1886 | ["Mesh"] = { | |
1887 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1888 | local Msh = Create(Mesh){ | |
1889 | Parent = Part, | |
1890 | Offset = OffSet, | |
1891 | Scale = Scale, | |
1892 | } | |
1893 | if Mesh == "SpecialMesh" then | |
1894 | Msh.MeshType = MeshType | |
1895 | Msh.MeshId = MeshId | |
1896 | end | |
1897 | return Msh | |
1898 | end; | |
1899 | }; | |
1900 | ||
1901 | ["Mesh"] = { | |
1902 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1903 | local Msh = Create(Mesh){ | |
1904 | Parent = Part, | |
1905 | Offset = OffSet, | |
1906 | Scale = Scale, | |
1907 | } | |
1908 | if Mesh == "SpecialMesh" then | |
1909 | Msh.MeshType = MeshType | |
1910 | Msh.MeshId = MeshId | |
1911 | end | |
1912 | return Msh | |
1913 | end; | |
1914 | }; | |
1915 | ||
1916 | ["Weld"] = { | |
1917 | Create = function(Parent, Part0, Part1, C0, C1) | |
1918 | local Weld = Create("Weld"){ | |
1919 | Parent = Parent, | |
1920 | Part0 = Part0, | |
1921 | Part1 = Part1, | |
1922 | C0 = C0, | |
1923 | C1 = C1, | |
1924 | } | |
1925 | return Weld | |
1926 | end; | |
1927 | }; | |
1928 | ||
1929 | ["Sound"] = { | |
1930 | Create = function(id, par, vol, pit) | |
1931 | coroutine.resume(coroutine.create(function() | |
1932 | local S = Create("Sound"){ | |
1933 | Volume = vol, | |
1934 | Pitch = pit or 1, | |
1935 | SoundId = id, | |
1936 | Parent = par or workspace, | |
1937 | } | |
1938 | wait() | |
1939 | S:play() | |
1940 | game:GetService("Debris"):AddItem(S, 6) | |
1941 | end)) | |
1942 | end; | |
1943 | }; | |
1944 | ||
1945 | ["ParticleEmitter"] = { | |
1946 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
1947 | local fp = Create("ParticleEmitter"){ | |
1948 | Parent = Parent, | |
1949 | Color = ColorSequence.new(Color1, Color2), | |
1950 | LightEmission = LightEmission, | |
1951 | Size = Size, | |
1952 | Texture = Texture, | |
1953 | Transparency = Transparency, | |
1954 | ZOffset = ZOffset, | |
1955 | Acceleration = Accel, | |
1956 | Drag = Drag, | |
1957 | LockedToPart = LockedToPart, | |
1958 | VelocityInheritance = VelocityInheritance, | |
1959 | EmissionDirection = EmissionDirection, | |
1960 | Enabled = Enabled, | |
1961 | Lifetime = LifeTime, | |
1962 | Rate = Rate, | |
1963 | Rotation = Rotation, | |
1964 | RotSpeed = RotSpeed, | |
1965 | Speed = Speed, | |
1966 | VelocitySpread = VelocitySpread, | |
1967 | } | |
1968 | return fp | |
1969 | end; | |
1970 | }; | |
1971 | ||
1972 | CreateTemplate = { | |
1973 | ||
1974 | }; | |
1975 | } | |
1976 | ||
1977 | ||
1978 | ||
1979 | New = function(Object, Parent, Name, Data) | |
1980 | local Object = Instance.new(Object) | |
1981 | for Index, Value in pairs(Data or {}) do | |
1982 | Object[Index] = Value | |
1983 | end | |
1984 | Object.Parent = Parent | |
1985 | Object.Name = Name | |
1986 | return Object | |
1987 | end | |
1988 | ||
1989 | ||
1990 | ShadowHead = New("Part",Character,"ShadowHead",{CanCollide = false,BrickColor = BrickColor.new("Institutional white"),Transparency = 1,Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
1991 | Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),}) | |
1992 | Weld = New("Weld",ShadowHead,"mot",{Part0 = ShadowHead,Part1 = Character.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
1993 | ||
1994 | Handle = New("Part",m,"Handle",{Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1.78105354, 1.21267569, 0.446083069),CFrame = CFrame.new(3.48884702, 1.89424598, -23.6011944, 0.0172098875, -7.30156898e-07, 0.999851942, 0.999853492, 1.19907781e-08, -0.0172098596, -1.80598714e-09, 1.00000083, 1.4975667e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1995 | moter = New("Weld",Handle,"mot",{Part0 = RightArm,Part1 = Handle,}) | |
1996 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.46324158, 2.55061626, -23.0996056, 0.0172099378, 1.26508749e-05, 0.999852061, 0.999856234, 0.000737910799, -0.0172098614, -0.000738026109, 1.00000215, 2.29468287e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1997 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.24608025, 0.123040132),}) | |
1998 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098838, 0.999853015, -0.000738022442, 1.18836761e-05, 0.000737924012, 1.00000048, 0.999851942, -0.0172098614, 1.52736902e-06),C1 = CFrame.new(0.655831456, 0.501588821, -0.0368974209, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1999 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.200000003, 0.270688266, 0.270688266),CFrame = CFrame.new(3.47537327, 1.11045444, -23.2953625, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2000 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,}) | |
2001 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.783906102, 0.305831909, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2002 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.221472263, 0.344512314),CFrame = CFrame.new(3.48828244, 1.86040294, -23.3093491, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2003 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1.00999999, 1),}) | |
2004 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(-0.0338476896, 0.291845322, 1.8119812e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2005 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.98432076, 0.200000003, 0.24608022),CFrame = CFrame.new(3.48404813, 1.61474013, -23.4433804, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2006 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.246080264, 1),}) | |
2007 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279546618, 0.157814026, 1.21593475e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2008 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.984321058, 0.200000003, 0.200000003),CFrame = CFrame.new(3.36101127, 1.61687815, -23.4187717, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2009 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,}) | |
2010 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279526353, 0.182422638, -0.123043299, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2011 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.53706741, 2.54934502, -23.0996056, 0.0172099378, 1.26508749e-05, 0.999852061, 0.999856234, 0.000737910799, -0.0172098614, -0.000738026109, 1.00000215, 2.29468287e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2012 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.246080235, 0.123040132),}) | |
2013 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098838, 0.999853015, -0.000738022442, 1.18836761e-05, 0.000737924012, 1.00000048, 0.999851942, -0.0172098614, 1.52736902e-06),C1 = CFrame.new(0.655830979, 0.501588821, 0.0369393826, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2014 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.200000003, 0.200000003),CFrame = CFrame.new(3.48828554, 1.86097884, -23.1606178, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2015 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.7382406),}) | |
2016 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.0332717896, 0.440576553, 1.14440918e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2017 | Partss = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.200000003, 0.221472204, 0.221472189),CFrame = CFrame.new(3.47526526, 1.10428262, -23.2953568, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
2018 | Mesh = New("SpecialMesh",Partss,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,}) | |
2019 | mot = New("Weld",Partss,"mot",{Part0 = Partss,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.790078878, 0.305837631, 1.57356262e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2020 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.49040294, 1.9837563, -23.5174713, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2021 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.615200579, 0.36912033, 0.24608025),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,}) | |
2022 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(0.0895236731, 0.0837230682, 1.52587891e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2023 | Part = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.295296252, 0.738240778, 0.369120389),CFrame = CFrame.new(3.49802279, 2.42631888, -23.8138046, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
2024 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(0.532151103, -0.212610245, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2025 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512314, 0.78745681, 0.344512314),CFrame = CFrame.new(3.49802279, 2.42631888, -23.8138046, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2026 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(0.532151103, -0.212610245, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2027 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.984321058, 0.200000003, 0.200000003),CFrame = CFrame.new(3.60706425, 1.61264217, -23.4187698, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2028 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,}) | |
2029 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279527187, 0.182424545, 0.12304616, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2030 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.47672749, 1.18911982, -23.1232109, 0.999851942, 0.00638213893, 0.0159827713, -0.0172098316, 0.37065956, 0.928613782, 4.44045327e-06, -0.928749561, 0.370713741),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2031 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.246080264, 0.615200639),MeshType = Enum.MeshType.Wedge,}) | |
2032 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098316, 3.67313623e-06, 0.00638283044, 0.370658338, -0.928748012, 0.0159824342, 0.928610861, 0.370713145),C1 = CFrame.new(-0.705229163, 0.477983475, 1.76429749e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2033 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512254, 0.787456751, 0.200000003),CFrame = CFrame.new(3.50247502, 2.68478155, -23.8132839, 0.999851942, 1.0713723e-05, -0.0172099732, -0.0172098912, 0.000738376984, -0.999856234, 4.21693585e-06, 1.00000226, 0.000738456321),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2034 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,}) | |
2035 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098912, 3.44961882e-06, 9.9465251e-06, 0.000738390256, 1.0000006, -0.0172099192, -0.999853015, 0.000738452654),C1 = CFrame.new(0.790651679, -0.212089539, 2.07424164e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2036 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.4904809, 1.98827124, -23.5162678, -0.999852061, -0.0148990965, 0.00861407723, 0.0172099397, -0.865535975, 0.500560343, -4.36594746e-06, 0.500633478, 0.865662456),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2037 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.369120389, 0.861280918),MeshType = Enum.MeshType.Wedge,}) | |
2038 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.999851942, 0.0172099397, -3.59863043e-06, -0.0148994327, -0.865533173, 0.500632644, 0.00861338526, 0.500558794, 0.865661025),C1 = CFrame.new(0.0940393209, 0.0849266052, 1.54972076e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2039 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.442944348, 0.200000003, 0.200000003),CFrame = CFrame.new(3.37415838, 2.37982368, -23.1609974, 0.0172098633, 1.48413446e-05, 0.999851882, 0.999856234, 0.0007376945, -0.0172097869, -0.000737846654, 1.00000215, 7.44058752e-08),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2040 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
2041 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098093, 0.999853015, -0.000737842987, 1.40741467e-05, 0.000737707771, 1.00000048, 0.999851823, -0.0172097888, -6.92903996e-07),C1 = CFrame.new(0.483531356, 0.440196991, -0.12302804, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2042 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.61520052, 0.200000003, 0.200000003),CFrame = CFrame.new(3.35783243, 1.43252242, -23.1602993, 0.0172098633, 1.48413446e-05, 0.999851882, 0.999856234, 0.0007376945, -0.0172097869, -0.000737846654, 1.00000215, 7.44058752e-08),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2043 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
2044 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098093, 0.999853015, -0.000737842987, 1.40741467e-05, 0.000737707771, 1.00000048, 0.999851823, -0.0172097888, -6.92903996e-07),C1 = CFrame.new(-0.463909149, 0.440895081, -0.123048544, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2045 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.200000003, 0.200000003),CFrame = CFrame.new(3.61130548, 1.85886192, -23.160614, -0.0172098689, 1.04156998e-05, -0.99985218, -0.999856234, 0.000738191127, 0.0172097925, 0.000738266157, 1.00000238, -4.55221243e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2046 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
2047 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.0172098149, -0.999853075, 0.00073826249, 9.64850187e-06, 0.00073820434, 1.00000072, -0.999852121, 0.0172097944, -3.78489494e-06),C1 = CFrame.new(-0.0332713127, 0.440580368, 0.123049498, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2048 | Wedge = New("WedgePart",m,"Wedge",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.36912033, 0.738240778, 0.200000003),CFrame = CFrame.new(3.50183868, 2.64789343, -23.8132629, 0.999851942, 1.0818032e-05, -0.017209895, -0.0172098186, 0.000737608876, -0.999856234, 4.13497901e-06, 1.00000238, 0.000737691764),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0, 0, 0),}) | |
2049 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,}) | |
2050 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098186, 3.36766243e-06, 1.00508332e-05, 0.000737622147, 1.00000072, -0.0172098409, -0.999853015, 0.000737688097),C1 = CFrame.new(0.753758311, -0.212068558, 1.93119049e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2051 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512254, 0.787456751, 0.200000003),CFrame = CFrame.new(3.49357963, 2.16808391, -23.8129005, 0.999852061, -1.05647114e-05, 0.0172100067, -0.0172099303, -0.000737611321, 0.999856114, 4.36594746e-06, -1.00000226, -0.000737689785),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2052 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,}) | |
2053 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851942, -0.0172099303, 3.59863043e-06, -9.79751348e-06, -0.000737624592, -1.0000006, 0.0172099527, 0.999852955, -0.000737686118),C1 = CFrame.new(0.273878455, -0.211706161, 1.90734863e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2054 | Wedge = New("WedgePart",m,"Wedge",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.36912033, 0.738240659, 0.200000003),CFrame = CFrame.new(3.49420977, 2.20497489, -23.8129292, 0.999852061, -1.05647114e-05, 0.0172100067, -0.0172099303, -0.000737611321, 0.999856114, 4.36594746e-06, -1.00000226, -0.000737689785),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0, 0, 0),}) | |
2055 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,}) | |
2056 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851942, -0.0172099303, 3.59863043e-06, -9.79751348e-06, -0.000737624592, -1.0000006, 0.0172099527, 0.999852955, -0.000737686118),C1 = CFrame.new(0.310774684, -0.211734772, 1.43051147e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
2057 | ||
2058 | for _,v in pairs(m:children()) do | |
2059 | if v:IsA("Part") then | |
2060 | v.CanCollide = false | |
2061 | end | |
2062 | end | |
2063 | if Character.Name == "TheNeonKaratedKid" or Character.Name == "rokeliuxas" or Character.Name == "Pedrob03" then | |
2064 | for _,v in pairs(Character:children()) do | |
2065 | if v:IsA("Accessory") then | |
2066 | v:Remove() | |
2067 | end | |
2068 | end | |
2069 | Handle = New("Part",m,"Handle",{CanCollide = false,BrickColor = BrickColor.new("New Yeller"),Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-27.3000507, 4.79990387, 28.10005, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0, 0),}) | |
2070 | Mesh = New("SpecialMesh",Handle,"Mesh",{Offset = Vector3.new(0, 0.100000001, 0),MeshId = "http://www.roblox.com/asset/?id=62246019",MeshType = Enum.MeshType.FileMesh,}) | |
2071 | mot = New("Motor",Handle,"mot",{Part0 = Handle,Part1 = Head,C0 = CFrame.new(0, 0, 0, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),C1 = CFrame.new(-0.100000381, 0.0999999046, 0.200000763, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),}) | |
2072 | Handle1 = New("Part",m,"Handle1",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-27.3000507, 4.79990387, 28.10005, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0, 0),}) | |
2073 | Mesh = New("SpecialMesh",Handle1,"Mesh",{Offset = Vector3.new(0, 0.100000001, 0),Scale = Vector3.new(0.949999988, 0.949999988, 0.949999988),MeshId = "http://www.roblox.com/asset/?id=62246019",MeshType = Enum.MeshType.FileMesh,}) | |
2074 | mot = New("Motor",Handle1,"mot",{Part0 = Handle1,Part1 = Head,C0 = CFrame.new(0, 0, 0, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),C1 = CFrame.new(-0.100000381, 0.0999999046, 0.200000763, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),}) | |
2075 | end | |
2076 | ||
2077 | ||
2078 | function rayCast(Position, Direction, Range, Ignore) | |
2079 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
2080 | end | |
2081 | ||
2082 | FindNearestTorso = function(pos) | |
2083 | local list = (game.Workspace:children()) | |
2084 | local torso = nil | |
2085 | local dist = 1000 | |
2086 | local temp, human, temp2 = nil, nil, nil | |
2087 | for x = 1, #list do | |
2088 | temp2 = list[x] | |
2089 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
2090 | temp = temp2:findFirstChild("Torso") | |
2091 | human = temp2:findFirstChild("Humanoid") | |
2092 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
2093 | local dohit = true | |
2094 | if dohit == true then | |
2095 | torso = temp | |
2096 | dist = (temp.Position - pos).magnitude | |
2097 | end | |
2098 | end | |
2099 | end | |
2100 | end | |
2101 | return torso, dist | |
2102 | end | |
2103 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
2104 | if SinglePlayer then | |
2105 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
2106 | end | |
2107 | local List = {} | |
2108 | for i, v in pairs(workspace:GetChildren()) do | |
2109 | if v:IsA("Model") then | |
2110 | if v:findFirstChild("Torso") then | |
2111 | if v ~= Character then | |
2112 | if (v.Torso.Position - Position).magnitude <= Distance then | |
2113 | table.insert(List, v) | |
2114 | end | |
2115 | end | |
2116 | end | |
2117 | end | |
2118 | end | |
2119 | return List | |
2120 | end | |
2121 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
2122 | if hit.Parent == nil then | |
2123 | return | |
2124 | end | |
2125 | local h = hit.Parent:FindFirstChild("Humanoid") | |
2126 | for _, v in pairs(hit.Parent:children()) do | |
2127 | if v:IsA("Humanoid") then | |
2128 | h = v | |
2129 | end | |
2130 | end | |
2131 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
2132 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
2133 | if hit.Parent.DebounceHit.Value == true then | |
2134 | return | |
2135 | end | |
2136 | end | |
2137 | local c = Create("ObjectValue"){ | |
2138 | Name = "creator", | |
2139 | Value = game:service("Players").LocalPlayer, | |
2140 | Parent = h, | |
2141 | } | |
2142 | game:GetService("Debris"):AddItem(c, .5) | |
2143 | if HitSound ~= nil and HitPitch ~= nil then | |
2144 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
2145 | end | |
2146 | local Damage = math.random(minim, maxim) | |
2147 | local blocked = false | |
2148 | local block = hit.Parent:findFirstChild("Block") | |
2149 | if block ~= nil then | |
2150 | if block.className == "IntValue" then | |
2151 | if block.Value > 0 then | |
2152 | blocked = true | |
2153 | block.Value = block.Value - 1 | |
2154 | print(block.Value) | |
2155 | end | |
2156 | end | |
2157 | end | |
2158 | if blocked == false then | |
2159 | h.Health = h.Health - Damage | |
2160 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Hot pink").Color) | |
2161 | else | |
2162 | h.Health = h.Health - (Damage / 2) | |
2163 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Hot pink").Color) | |
2164 | end | |
2165 | if Type == "Knockdown" then | |
2166 | local hum = hit.Parent.Humanoid | |
2167 | hum.PlatformStand = true | |
2168 | coroutine.resume(coroutine.create(function(HHumanoid) | |
2169 | swait(1) | |
2170 | HHumanoid.PlatformStand = false | |
2171 | end), hum) | |
2172 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
2173 | local bodvol = Create("BodyVelocity"){ | |
2174 | velocity = angle * knockback, | |
2175 | P = 5000, | |
2176 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2177 | Parent = hit, | |
2178 | } | |
2179 | local rl = Create("BodyAngularVelocity"){ | |
2180 | P = 3000, | |
2181 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
2182 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
2183 | Parent = hit, | |
2184 | } | |
2185 | game:GetService("Debris"):AddItem(bodvol, .5) | |
2186 | game:GetService("Debris"):AddItem(rl, .5) | |
2187 | elseif Type == "Normal" then | |
2188 | local vp = Create("BodyVelocity"){ | |
2189 | P = 500, | |
2190 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
2191 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
2192 | } | |
2193 | if knockback > 0 then | |
2194 | vp.Parent = hit.Parent.Torso | |
2195 | end | |
2196 | game:GetService("Debris"):AddItem(vp, .5) | |
2197 | elseif Type == "Up" then | |
2198 | local bodyVelocity = Create("BodyVelocity"){ | |
2199 | velocity = Vector3.new(0, 20, 0), | |
2200 | P = 5000, | |
2201 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2202 | Parent = hit, | |
2203 | } | |
2204 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
2205 | elseif Type == "DarkUp" then | |
2206 | coroutine.resume(coroutine.create(function() | |
2207 | for i = 0, 1, 0.1 do | |
2208 | swait() | |
2209 | Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
2210 | end | |
2211 | end)) | |
2212 | local bodyVelocity = Create("BodyVelocity"){ | |
2213 | velocity = Vector3.new(0, 20, 0), | |
2214 | P = 5000, | |
2215 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2216 | Parent = hit, | |
2217 | } | |
2218 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
2219 | elseif Type == "Snare" then | |
2220 | local bp = Create("BodyPosition"){ | |
2221 | P = 2000, | |
2222 | D = 100, | |
2223 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
2224 | position = hit.Parent.Torso.Position, | |
2225 | Parent = hit.Parent.Torso, | |
2226 | } | |
2227 | game:GetService("Debris"):AddItem(bp, 1) | |
2228 | elseif Type == "Freeze" then | |
2229 | local BodPos = Create("BodyPosition"){ | |
2230 | P = 50000, | |
2231 | D = 1000, | |
2232 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
2233 | position = hit.Parent.Torso.Position, | |
2234 | Parent = hit.Parent.Torso, | |
2235 | } | |
2236 | local BodGy = Create("BodyGyro") { | |
2237 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
2238 | P = 20e+003, | |
2239 | Parent = hit.Parent.Torso, | |
2240 | cframe = hit.Parent.Torso.CFrame, | |
2241 | } | |
2242 | hit.Parent.Torso.Anchored = true | |
2243 | coroutine.resume(coroutine.create(function(Part) | |
2244 | swait(1.5) | |
2245 | Part.Anchored = false | |
2246 | end), hit.Parent.Torso) | |
2247 | game:GetService("Debris"):AddItem(BodPos, 3) | |
2248 | game:GetService("Debris"):AddItem(BodGy, 3) | |
2249 | end | |
2250 | local debounce = Create("BoolValue"){ | |
2251 | Name = "DebounceHit", | |
2252 | Parent = hit.Parent, | |
2253 | Value = true, | |
2254 | } | |
2255 | game:GetService("Debris"):AddItem(debounce, Delay) | |
2256 | c = Create("ObjectValue"){ | |
2257 | Name = "creator", | |
2258 | Value = Player, | |
2259 | Parent = h, | |
2260 | } | |
2261 | game:GetService("Debris"):AddItem(c, .5) | |
2262 | end | |
2263 | end | |
2264 | ||
2265 | function ShowDamage(Pos, Text, Time, Color) | |
2266 | local Rate = (1 / 30) | |
2267 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
2268 | local Text = (Text or "") | |
2269 | local Time = (Time or 2) | |
2270 | local Color = (Color or Color3.new(255, 255, 255)) | |
2271 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
2272 | EffectPart.Anchored = true | |
2273 | local BillboardGui = Create("BillboardGui"){ | |
2274 | Size = UDim2.new(3, 0, 3, 0), | |
2275 | Adornee = EffectPart, | |
2276 | Parent = EffectPart, | |
2277 | } | |
2278 | local TextLabel = Create("TextLabel"){ | |
2279 | BackgroundTransparency = 1, | |
2280 | Size = UDim2.new(1, 0, 1, 0), | |
2281 | Text = Text, | |
2282 | Font = "Arcade", | |
2283 | TextColor3 = Color, | |
2284 | TextScaled = true, | |
2285 | Parent = BillboardGui, | |
2286 | } | |
2287 | game.Debris:AddItem(EffectPart, (Time)) | |
2288 | EffectPart.Parent = game:GetService("Workspace") | |
2289 | delay(0, function() | |
2290 | local Frames = (Time / Rate) | |
2291 | for Frame = 1, Frames do | |
2292 | wait(Rate) | |
2293 | local Percent = (Frame / Frames) | |
2294 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
2295 | TextLabel.TextTransparency = Percent | |
2296 | end | |
2297 | if EffectPart and EffectPart.Parent then | |
2298 | EffectPart:Destroy() | |
2299 | end | |
2300 | end) | |
2301 | end | |
2302 | ||
2303 | function dmg(dude) | |
2304 | if dude.Name ~= Character then | |
2305 | dude.Humanoid.PlatformStand = true | |
2306 | local bgf = Instance.new("BodyGyro",dude.Head) | |
2307 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
2308 | local val = Instance.new("BoolValue",dude) | |
2309 | val.Name = "IsHit" | |
2310 | for i = 1, 6 do | |
2311 | local blo = Instance.new("Part",game.Workspace) | |
2312 | blo.Size = Vector3.new(.6,.2,.6) | |
2313 | blo.Material = "SmoothPlastic" | |
2314 | blo.BrickColor = BrickColor.new("Really red") | |
2315 | --blo.Position = dude.Head.Position | |
2316 | blo.CFrame = dude.Head.CFrame | |
2317 | game:GetService("Debris"):AddItem(blo,30) | |
2318 | end | |
2319 | local ds = coroutine.wrap(function() | |
2320 | wait(.2) | |
2321 | dude.Torso:BreakJoints() | |
2322 | end) | |
2323 | ds() | |
2324 | end | |
2325 | end | |
2326 | ||
2327 | function mdmg(Part, Magnitude)--, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
2328 | --local buddy | |
2329 | for _, c in pairs(workspace:children()) do | |
2330 | local hum = c:findFirstChild("Humanoid") | |
2331 | if hum ~= nil then | |
2332 | local head = c:findFirstChild("Torso") | |
2333 | if head ~= nil then | |
2334 | local targ = head.Position - Part.Position | |
2335 | local mag = targ.magnitude | |
2336 | if mag <= Magnitude and c.Name ~= Player.Name then | |
2337 | if c.Name ~= Character then | |
2338 | if c.Name ~= "125thenoob" then | |
2339 | local asd = Instance.new("ParticleEmitter",c.Torso) | |
2340 | asd.Color = ColorSequence.new(Color3.new(255, 255, 255), Color3.new(255, 255, 255)) | |
2341 | asd.LightEmission = .1 | |
2342 | asd.Size = NumberSequence.new(0.2) | |
2343 | asd.Texture = "http://www.roblox.com/asset/?ID=737783387" | |
2344 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
2345 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
2346 | asd.Transparency = bbb | |
2347 | asd.Size = aaa | |
2348 | asd.ZOffset = .9 | |
2349 | asd.Acceleration = Vector3.new(0, -5, 0) | |
2350 | asd.LockedToPart = false | |
2351 | asd.EmissionDirection = "Back" | |
2352 | asd.Lifetime = NumberRange.new(1, 2) | |
2353 | asd.Rate = 1000 | |
2354 | asd.Rotation = NumberRange.new(-100, 100) | |
2355 | asd.RotSpeed = NumberRange.new(-100, 100) | |
2356 | asd.Speed = NumberRange.new(6) | |
2357 | asd.VelocitySpread = 10000 | |
2358 | asd.Enabled=true | |
2359 | --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
2360 | dmg(c) | |
2361 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=381671754", c.Torso, 1.2, .8) | |
2362 | coroutine.wrap(function() | |
2363 | wait(.2) | |
2364 | asd.Enabled = false | |
2365 | wait(2) | |
2366 | asd:Remove() | |
2367 | end)() | |
2368 | else | |
2369 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=381671754", c.Torso, 1.5, math.random(1,1.3)) | |
2370 | Effects.Sphere.Create(BrickColor.new("Really black"), c.Torso.CFrame, 30, 30, 30, .5, .5, .5, 0.04) | |
2371 | ||
2372 | end | |
2373 | end | |
2374 | end | |
2375 | end | |
2376 | end | |
2377 | end | |
2378 | end | |
2379 | EffectModel = Create("Model"){ | |
2380 | Parent = Character, | |
2381 | Name = "Effects", | |
2382 | } | |
2383 | ||
2384 | Effects = { | |
2385 | Block = { | |
2386 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
2387 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2388 | prt.Anchored = true | |
2389 | prt.CFrame = cframe | |
2390 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2391 | game:GetService("Debris"):AddItem(prt, 10) | |
2392 | if Type == 1 or Type == nil then | |
2393 | table.insert(Effects, { | |
2394 | prt, | |
2395 | "Block1", | |
2396 | delay, | |
2397 | x3, | |
2398 | y3, | |
2399 | z3, | |
2400 | msh | |
2401 | }) | |
2402 | elseif Type == 2 then | |
2403 | table.insert(Effects, { | |
2404 | prt, | |
2405 | "Block2", | |
2406 | delay, | |
2407 | x3, | |
2408 | y3, | |
2409 | z3, | |
2410 | msh | |
2411 | }) | |
2412 | end | |
2413 | end; | |
2414 | }; | |
2415 | ||
2416 | Cylinder = { | |
2417 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2418 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2419 | prt.Anchored = true | |
2420 | prt.CFrame = cframe | |
2421 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2422 | game:GetService("Debris"):AddItem(prt, 10) | |
2423 | table.insert(Effects, { | |
2424 | prt, | |
2425 | "Cylinder", | |
2426 | delay, | |
2427 | x3, | |
2428 | y3, | |
2429 | z3, | |
2430 | msh | |
2431 | }) | |
2432 | end; | |
2433 | }; | |
2434 | Head = { | |
2435 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2436 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2437 | prt.Anchored = true | |
2438 | prt.CFrame = cframe | |
2439 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2440 | game:GetService("Debris"):AddItem(prt, 10) | |
2441 | table.insert(Effects, { | |
2442 | prt, | |
2443 | "Cylinder", | |
2444 | delay, | |
2445 | x3, | |
2446 | y3, | |
2447 | z3, | |
2448 | msh | |
2449 | }) | |
2450 | end; | |
2451 | }; | |
2452 | ||
2453 | Sphere = { | |
2454 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2455 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2456 | prt.Anchored = true | |
2457 | prt.CFrame = cframe | |
2458 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2459 | game:GetService("Debris"):AddItem(prt, 10) | |
2460 | table.insert(Effects, { | |
2461 | prt, | |
2462 | "Cylinder", | |
2463 | delay, | |
2464 | x3, | |
2465 | y3, | |
2466 | z3, | |
2467 | msh | |
2468 | }) | |
2469 | end; | |
2470 | }; | |
2471 | ||
2472 | Elect = { | |
2473 | Create = function(cff, x, y, z) | |
2474 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Really red"), "Part", Vector3.new(1, 1, 1)) | |
2475 | prt.Anchored = true | |
2476 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
2477 | prt.CFrame = CFrame.new(prt.Position) | |
2478 | game:GetService("Debris"):AddItem(prt, 2) | |
2479 | local xval = math.random() / 2 | |
2480 | local yval = math.random() / 2 | |
2481 | local zval = math.random() / 2 | |
2482 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
2483 | table.insert(Effects, { | |
2484 | prt, | |
2485 | "Elec", | |
2486 | 0.1, | |
2487 | x, | |
2488 | y, | |
2489 | z, | |
2490 | xval, | |
2491 | yval, | |
2492 | zval | |
2493 | }) | |
2494 | end; | |
2495 | ||
2496 | }; | |
2497 | ||
2498 | Ring = { | |
2499 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2500 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2501 | prt.Anchored = true | |
2502 | prt.CFrame = cframe | |
2503 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2504 | game:GetService("Debris"):AddItem(prt, 10) | |
2505 | table.insert(Effects, { | |
2506 | prt, | |
2507 | "Cylinder", | |
2508 | delay, | |
2509 | x3, | |
2510 | y3, | |
2511 | z3, | |
2512 | msh | |
2513 | }) | |
2514 | end; | |
2515 | }; | |
2516 | ||
2517 | ||
2518 | Wave = { | |
2519 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2520 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2521 | prt.Anchored = true | |
2522 | prt.CFrame = cframe | |
2523 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2524 | game:GetService("Debris"):AddItem(prt, 10) | |
2525 | table.insert(Effects, { | |
2526 | prt, | |
2527 | "Cylinder", | |
2528 | delay, | |
2529 | x3, | |
2530 | y3, | |
2531 | z3, | |
2532 | msh | |
2533 | }) | |
2534 | end; | |
2535 | }; | |
2536 | ||
2537 | Break = { | |
2538 | Create = function(brickcolor, cframe, x1, y1, z1) | |
2539 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
2540 | prt.Anchored = true | |
2541 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2542 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2543 | local num = math.random(10, 50) / 1000 | |
2544 | game:GetService("Debris"):AddItem(prt, 10) | |
2545 | table.insert(Effects, { | |
2546 | prt, | |
2547 | "Shatter", | |
2548 | num, | |
2549 | prt.CFrame, | |
2550 | math.random() - math.random(), | |
2551 | 0, | |
2552 | math.random(50, 100) / 100 | |
2553 | }) | |
2554 | end; | |
2555 | }; | |
2556 | ||
2557 | Fire = { | |
2558 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
2559 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2560 | prt.Anchored = true | |
2561 | prt.CFrame = cframe | |
2562 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2563 | game:GetService("Debris"):AddItem(prt, 10) | |
2564 | table.insert(Effects, { | |
2565 | prt, | |
2566 | "Fire", | |
2567 | delay, | |
2568 | 1, | |
2569 | 1, | |
2570 | 1, | |
2571 | msh | |
2572 | }) | |
2573 | end; | |
2574 | }; | |
2575 | ||
2576 | FireWave = { | |
2577 | Create = function(brickcolor, cframe, x1, y1, z1) | |
2578 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
2579 | prt.Anchored = true | |
2580 | prt.CFrame = cframe | |
2581 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2582 | local d = Create("Decal"){ | |
2583 | Parent = prt, | |
2584 | Texture = "rbxassetid://737783387", | |
2585 | Face = "Top", | |
2586 | } | |
2587 | local d = Create("Decal"){ | |
2588 | Parent = prt, | |
2589 | Texture = "rbxassetid://737783387", | |
2590 | Face = "Bottom", | |
2591 | } | |
2592 | game:GetService("Debris"):AddItem(prt, 10) | |
2593 | table.insert(Effects, { | |
2594 | prt, | |
2595 | "FireWave", | |
2596 | 1, | |
2597 | 30, | |
2598 | math.random(400, 600) / 100, | |
2599 | msh | |
2600 | }) | |
2601 | end; | |
2602 | }; | |
2603 | ||
2604 | Lightning = { | |
2605 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
2606 | local magz = (p0 - p1).magnitude | |
2607 | local curpos = p0 | |
2608 | local trz = { | |
2609 | -ofs, | |
2610 | ofs | |
2611 | } | |
2612 | for i = 1, tym do | |
2613 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
2614 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
2615 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
2616 | li.Material = "Neon" | |
2617 | if tym == i then | |
2618 | local magz2 = (curpos - p1).magnitude | |
2619 | li.Size = Vector3.new(th, th, magz2) | |
2620 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
2621 | table.insert(Effects, { | |
2622 | li, | |
2623 | "Disappear", | |
2624 | last | |
2625 | }) | |
2626 | else | |
2627 | do | |
2628 | do | |
2629 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
2630 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
2631 | game.Debris:AddItem(li, 10) | |
2632 | table.insert(Effects, { | |
2633 | li, | |
2634 | "Disappear", | |
2635 | last | |
2636 | }) | |
2637 | end | |
2638 | end | |
2639 | end | |
2640 | end | |
2641 | end | |
2642 | }; | |
2643 | ||
2644 | EffectTemplate = { | |
2645 | ||
2646 | }; | |
2647 | } | |
2648 | ||
2649 | function chatfunc(text) | |
2650 | local chat = coroutine.wrap(function() | |
2651 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
2652 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
2653 | end | |
2654 | local naeeym2 = Instance.new("BillboardGui",Character) | |
2655 | naeeym2.Size = UDim2.new(0,100,0,40) | |
2656 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
2657 | naeeym2.Adornee = Character.Head | |
2658 | naeeym2.Name = "TalkingBillBoard" | |
2659 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
2660 | tecks2.BackgroundTransparency = 1 | |
2661 | tecks2.BorderSizePixel = 0 | |
2662 | tecks2.Text = "" | |
2663 | tecks2.Font = "Fantasy" | |
2664 | tecks2.TextSize = 30 | |
2665 | tecks2.TextStrokeTransparency = 0 | |
2666 | tecks2.TextColor3 = Color3.new(255,255,255) | |
2667 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
2668 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
2669 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
2670 | tecks3.BackgroundTransparency = 1 | |
2671 | tecks3.BorderSizePixel = 0 | |
2672 | tecks3.Text = "" | |
2673 | tecks3.Font = "Fantasy" | |
2674 | tecks3.TextSize = 30 | |
2675 | tecks3.TextStrokeTransparency = 0 | |
2676 | tecks3.TextColor3 = Color3.new(255,255,255) | |
2677 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
2678 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
2679 | for i = 1,string.len(text),1 do | |
2680 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=381671754", Character, .6, .8) | |
2681 | tecks2.Text = string.sub(text,1,i) | |
2682 | tecks3.Text = string.sub(text,1,i) | |
2683 | wait(0.01) | |
2684 | end | |
2685 | wait(2) | |
2686 | for i = 1, 50 do | |
2687 | swait() | |
2688 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
2689 | tecks2.Rotation = tecks2.Rotation - .8 | |
2690 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
2691 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
2692 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
2693 | tecks3.Rotation = tecks2.Rotation + .8 | |
2694 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
2695 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
2696 | end | |
2697 | naeeym2:Destroy() | |
2698 | end) | |
2699 | chat() | |
2700 | end | |
2701 | function onChatted(msg) | |
2702 | chatfunc(msg) | |
2703 | end | |
2704 | Player.Chatted:connect(onChatted) | |
2705 | ||
2706 | abss = Instance.new("BillboardGui",Character) | |
2707 | abss.Size = UDim2.new(10,0,10,0) | |
2708 | abss.Enabled = false | |
2709 | imgl = Instance.new("ImageLabel",abss) | |
2710 | imgl.Position = UDim2.new(0,0,0,0) | |
2711 | imgl.Size = UDim2.new(1,0,1,0) | |
2712 | imgl.Image = "rbxassetid://737783387" | |
2713 | imgl.BackgroundTransparency = 1 | |
2714 | imgl.ImageColor3 = Color3.new(.9,0,0) | |
2715 | img2 = Instance.new("ImageLabel",abss) | |
2716 | img2.Position = UDim2.new(0,0,0,0) | |
2717 | img2.Size = UDim2.new(1,0,1,0) | |
2718 | img2.Image = "rbxassetid://737783387" | |
2719 | img2.BackgroundTransparency = 1 | |
2720 | img2.ImageColor3 = Color3.new(255,255,255) | |
2721 | ||
2722 | spawn(function() | |
2723 | chatfunc("Why can't you just leave me alone...") | |
2724 | wait(4) | |
2725 | chatfunc("Honestly people like you make this world worse.") | |
2726 | wait(3) | |
2727 | chatfunc("I don't care enough to be patient.") | |
2728 | wait(3) | |
2729 | chatfunc("Prepare for your destruction.") | |
2730 | end) | |
2731 | function attackone() | |
2732 | attack = true | |
2733 | Humanoid.WalkSpeed = 0 | |
2734 | if targetted.Name ~= "TheNeonKaratedKid" then | |
2735 | local partasdeff = Instance.new("ParticleEmitter",targetted.Torso) | |
2736 | partasdeff.Color = ColorSequence.new(Color3.new(255, 255, 255), Color3.new(255, 255, 255)) | |
2737 | partasdeff.LightEmission = .1 | |
2738 | partasdeff.Size = NumberSequence.new(0.2) | |
2739 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=737783387" | |
2740 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
2741 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
2742 | partasdeff.Transparency = bbb | |
2743 | partasdeff.Size = aaa | |
2744 | partasdeff.ZOffset = .9 | |
2745 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
2746 | partasdeff.LockedToPart = false | |
2747 | partasdeff.EmissionDirection = "Back" | |
2748 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
2749 | partasdeff.Rate = 1000 | |
2750 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
2751 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
2752 | partasdeff.Speed = NumberRange.new(6) | |
2753 | partasdeff.VelocitySpread = 10000 | |
2754 | partasdeff.Enabled=false | |
2755 | for i = 0, 3, 0.1 do | |
2756 | swait() | |
2757 | PlayAnimationFromTable({ | |
2758 | CFrame.new(0.0150662307, -4.88092428e-06, 0.0148906102, -0.01982099, -1.08002496e-12, 0.999803543, -4.46946984e-07, 1, -8.86181084e-09, -0.999803782, 3.27825546e-07, -0.0198209975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2759 | CFrame.new(-0.00189219415, 1.50098944, -0.129972562, 0.0201512501, 0.0765038878, -0.996864021, 0.0566192083, 0.995383799, 0.0775336027, 0.998202145, -0.0580037907, 0.0157258138) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2760 | CFrame.new(2.01696348, 0.389823437, -0.060955409, -0.000397110358, -0.999624014, -0.0274192169, 0.00981300231, 0.0274140034, -0.999576092, 0.999951839, -0.0006660074, 0.00979842618) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2761 | CFrame.new(-1.64040112, 0.216884568, 1.93210121e-06, 0.962137103, 0.272578239, -7.02217221e-07, -0.272574633, 0.962141275, -9.83368591e-06, -2.00979412e-06, 9.69739631e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2762 | CFrame.new(0.64369607, -1.98395038, 0.206737444, 0.19058302, -0.152998164, -0.969677031, 0.0664296299, 0.987527609, -0.142758414, 0.979424179, -0.0372077115, 0.198368743) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2763 | CFrame.new(-0.641120076, -1.92643452, -0.0258421432, 0.848103583, 0.133398816, -0.51276207, -0.0662644878, 0.986892581, 0.147146463, 0.52567035, -0.0908175632, 0.845826566) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2764 | }, .1, false) | |
2765 | moter.C0 = clerp(moter.C0, CFrame.new(0.011209704, -1.63770795, -0.318749219, -0.0172089972, -4.19956632e-06, -0.999852002, 0.999852061, 8.99471343e-06, -0.0172089972, 9.06549394e-06, -1.00000012, 4.04558159e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
2766 | end | |
2767 | Effects.Block.Create(BrickColor.new("Really black"), Partss.CFrame, 2, 2, 2, 0.9, 0.9, 0.9, 0.05) | |
2768 | Effects.Block.Create(BrickColor.new("Really black"), Partss.CFrame, 2, 2, 2, 0.5, 0.5, 0.5, 0.05) | |
2769 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=136523485", Character, 1, .5) | |
2770 | dmg(targetted) | |
2771 | partasdeff.Enabled=true | |
2772 | for i = 0, 1, 0.1 do | |
2773 | swait() | |
2774 | PlayAnimationFromTable({ | |
2775 | CFrame.new(0.0150662307, -4.88092428e-06, 0.0148906102, -0.01982099, -1.08002496e-12, 0.999803543, -4.46946984e-07, 1, -8.86181084e-09, -0.999803782, 3.27825546e-07, -0.0198209975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2776 | CFrame.new(-0.0879677385, 1.49240708, -0.127746791, 0.0201510563, -0.100440688, -0.994740784, 0.0566197298, 0.99346137, -0.0991647467, 0.998197258, -0.0543235913, 0.0257058665) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2777 | CFrame.new(2.03539443, 0.729742587, 0.0108130341, -0.00389442407, -0.967803538, 0.251676887, 0.0148300035, -0.251707017, -0.967689872, 0.999882519, -3.62247229e-05, 0.0153327845) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2778 | CFrame.new(-1.64040112, 0.216884568, 1.93210121e-06, 0.962137103, 0.272578239, -7.02217221e-07, -0.272574633, 0.962141275, -9.83368591e-06, -2.00979412e-06, 9.69739631e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2779 | CFrame.new(0.64369607, -1.98395038, 0.206737444, 0.19058302, -0.152998164, -0.969677031, 0.0664296299, 0.987527609, -0.142758414, 0.979424179, -0.0372077115, 0.198368743) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2780 | CFrame.new(-0.641120076, -1.92643452, -0.0258421432, 0.848103583, 0.133398816, -0.51276207, -0.0662644878, 0.986892581, 0.147146463, 0.52567035, -0.0908175632, 0.845826566) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2781 | }, .3, false) | |
2782 | moter.C0 = clerp(moter.C0, CFrame.new(0.0112083517, -1.63770616, -0.318746239, -0.0172079317, -2.87033617e-06, -0.999851942, 0.999852002, 8.28504562e-06, -0.0172079336, 8.27014446e-06, -1.00000012, 2.72750913e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
2783 | end | |
2784 | partasdeff.Enabled=false | |
2785 | for i = 0, 2, 0.1 do | |
2786 | swait() | |
2787 | PlayAnimationFromTable({ | |
2788 | CFrame.new(0.0150662307, -4.88092428e-06, 0.0148906102, -0.01982099, -1.08002496e-12, 0.999803543, -4.46946984e-07, 1, -8.86181084e-09, -0.999803782, 3.27825546e-07, -0.0198209975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2789 | CFrame.new(-0.00189219415, 1.50098944, -0.129972562, 0.0201512501, 0.0765038878, -0.996864021, 0.0566192083, 0.995383799, 0.0775336027, 0.998202145, -0.0580037907, 0.0157258138) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2790 | CFrame.new(2.01696348, 0.389823437, -0.060955409, -0.000397110358, -0.999624014, -0.0274192169, 0.00981300231, 0.0274140034, -0.999576092, 0.999951839, -0.0006660074, 0.00979842618) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2791 | CFrame.new(-1.64040112, 0.216884568, 1.93210121e-06, 0.962137103, 0.272578239, -7.02217221e-07, -0.272574633, 0.962141275, -9.83368591e-06, -2.00979412e-06, 9.69739631e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2792 | CFrame.new(0.64369607, -1.98395038, 0.206737444, 0.19058302, -0.152998164, -0.969677031, 0.0664296299, 0.987527609, -0.142758414, 0.979424179, -0.0372077115, 0.198368743) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2793 | CFrame.new(-0.641120076, -1.92643452, -0.0258421432, 0.848103583, 0.133398816, -0.51276207, -0.0662644878, 0.986892581, 0.147146463, 0.52567035, -0.0908175632, 0.845826566) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2794 | }, .3, false) | |
2795 | moter.C0 = clerp(moter.C0, CFrame.new(0.011209704, -1.63770795, -0.318749219, -0.0172089972, -4.19956632e-06, -0.999852002, 0.999852061, 8.99471343e-06, -0.0172089972, 9.06549394e-06, -1.00000012, 4.04558159e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
2796 | end | |
2797 | coroutine.wrap(function() | |
2798 | wait(2) | |
2799 | partasdeff:Remove() | |
2800 | end)() | |
2801 | else | |
2802 | sel = math.random(1,3) | |
2803 | if sel == 1 then | |
2804 | chatfunc("GR...") | |
2805 | elseif sel == 2 then | |
2806 | chatfunc("Ugh...") | |
2807 | elseif sel == 3 then | |
2808 | chatfunc("Aw???") | |
2809 | end | |
2810 | for i = 0, 5, 0.1 do | |
2811 | swait() | |
2812 | PlayAnimationFromTable({ | |
2813 | CFrame.new(0, 0, 0, 0.999999881, 5.04870979e-29, -4.21790838e-43, 5.04870979e-29, 1, -5.04870979e-29, -4.21790838e-43, -5.04870979e-29, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2814 | CFrame.new(-0.055980958, 1.49253583, -0.318915963, 0.999889553, 0.0107171191, -0.0102898544, -0.00218299939, 0.791040659, 0.611759722, 0.0146959936, -0.61166966, 0.790976703) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0- .4 * math.cos((sine) / 5), 0), | |
2815 | CFrame.new(1.54004693, 0.0494250022, 1.90734852e-06, 0.997847795, -0.0655719861, 0, 0.0655719936, 0.997847855, 7.53468894e-22, -4.94064563e-23, -7.51847299e-22, 0.99999994) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2816 | CFrame.new(-1.51232088, 0.0410207808, -3.73942044e-06, 0.998558879, 0.053665854, -2.33806347e-07, -0.0536658242, 0.998558939, -1.04548817e-05, -3.27600219e-07, 1.04523697e-05, 0.99999994) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2817 | CFrame.new(0.540300906, -1.99793804, -2.11055158e-06, 0.998698354, -0.0510031469, 6.26438805e-07, 0.0510031544, 0.998698473, -1.04335422e-05, -9.34800966e-08, 1.04519122e-05, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2818 | CFrame.new(-0.539562821, -1.99794102, -5.75710146e-09, 0.998630941, 0.0523070693, -1.67712614e-07, -0.0523070768, 0.99863106, -1.0458818e-05, -3.79587107e-07, 1.04532719e-05, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2819 | }, .3, false) | |
2820 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111967381, -1.6377008, -0.318754196, -0.0172117949, 0, -0.999851942, 0.999851942, 0, -0.0172117949, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
2821 | end | |
2822 | end | |
2823 | Humanoid.WalkSpeed = 50 | |
2824 | attack = false | |
2825 | end | |
2826 | local Grabbed = false | |
2827 | ||
2828 | function hedshoot() | |
2829 | attack = true | |
2830 | ||
2831 | --local GGyro = Instance.new("BodyPosition") | |
2832 | local grab = nil | |
2833 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 10)) do | |
2834 | if v:FindFirstChild('Torso') then | |
2835 | Grabbed = true | |
2836 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=260430060", v.Torso, 1, .8) | |
2837 | grab = v | |
2838 | end | |
2839 | end | |
2840 | Effects.Wave.Create(BrickColor.new("White"), RootPart.CFrame * CFrame.Angles(0,math.rad(90),math.rad(90)), .5, .5, .5, 1, .2, 1, 0.07) | |
2841 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=200632211", RootPart, 1.5, .5) | |
2842 | for i = 0, 1, 0.1 do | |
2843 | swait() | |
2844 | if Grabbed == true then | |
2845 | grab.Humanoid.PlatformStand = true | |
2846 | --GGyro.position = Partss.Position | |
2847 | --GGyro.Parent = grab.Head | |
2848 | grab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(-90),0) | |
2849 | end | |
2850 | PlayAnimationFromTable({ | |
2851 | CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2852 | CFrame.new(0.0029296279, 1.47845411, -0.120581962, 0.0750327855, 0.428286105, -0.900522709, 0.166523039, 0.885005891, 0.434781253, 0.983178616, -0.18258062, -0.00491504371) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2853 | CFrame.new(1.96751118, 0.433084905, -0.278422326, 0.305184275, -0.951701581, -0.033564698, 0.012345003, 0.0391969904, -0.999155343, 0.952213347, 0.304512084, 0.0237110667) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2854 | CFrame.new(-1.66092706, 0.266950369, 2.51774691e-06, 0.876968205, 0.480548859, -2.5331974e-06, -0.480548888, 0.876968026, -7.03267551e-06, -1.13248825e-06, 7.38352537e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2855 | CFrame.new(0.146832585, -1.7542398, 0.105335698, 0.266426086, 0.491796821, -0.828946948, 0.0135936746, 0.8580302, 0.513420045, 0.96375972, -0.148056909, 0.221916124) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2856 | CFrame.new(-1.09110987, -1.74702656, 0.342675447, 0.765578806, 0.632523358, 0.117487431, -0.642276406, 0.740949869, 0.196148768, 0.0370163769, -0.225626737, 0.973510265) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2857 | }, .3, false) | |
2858 | RootPart.Velocity = RootPart.CFrame.lookVector * 90 | |
2859 | ||
2860 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
2861 | end | |
2862 | if Grabbed == true then | |
2863 | Humanoid.WalkSpeed = 0 | |
2864 | for i = 0, 2, 0.1 do | |
2865 | swait() | |
2866 | if Grabbed == true then | |
2867 | grab.Humanoid.PlatformStand = true | |
2868 | --GGyro.position = Partss.Position | |
2869 | --GGyro.Parent = grab.Head | |
2870 | grab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(-90),0) | |
2871 | end | |
2872 | PlayAnimationFromTable({ | |
2873 | CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2874 | CFrame.new(0.0029296279, 1.47845411, -0.120581962, 0.0750327855, 0.428286105, -0.900522709, 0.166523039, 0.885005891, 0.434781253, 0.983178616, -0.18258062, -0.00491504371) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2875 | CFrame.new(1.96751118, 0.433084905, -0.278422326, 0.305184275, -0.951701581, -0.033564698, 0.012345003, 0.0391969904, -0.999155343, 0.952213347, 0.304512084, 0.0237110667) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2876 | CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2877 | CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2878 | CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2879 | }, .3, false) | |
2880 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
2881 | end | |
2882 | if grab.Name ~= "TheNeonKaratedKid" then | |
2883 | local partasdeff = Instance.new("ParticleEmitter",grab.Torso) | |
2884 | partasdeff.Color = ColorSequence.new(Color3.new(255, 255, 255), Color3.new(255, 255, 255)) | |
2885 | partasdeff.LightEmission = .1 | |
2886 | partasdeff.Size = NumberSequence.new(0.2) | |
2887 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=737783387" | |
2888 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
2889 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
2890 | partasdeff.Transparency = bbb | |
2891 | partasdeff.Size = aaa | |
2892 | partasdeff.ZOffset = .9 | |
2893 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
2894 | partasdeff.LockedToPart = false | |
2895 | partasdeff.EmissionDirection = "Back" | |
2896 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
2897 | partasdeff.Rate = 10000 | |
2898 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
2899 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
2900 | partasdeff.Speed = NumberRange.new(10) | |
2901 | partasdeff.VelocitySpread = 20 | |
2902 | partasdeff.Enabled=false | |
2903 | sel = math.random(1,3) | |
2904 | if sel == 1 then | |
2905 | chatfunc("I'm not the monster here.") | |
2906 | elseif sel == 2 then | |
2907 | chatfunc("Goodbye.") | |
2908 | elseif sel == 3 then | |
2909 | chatfunc("You failed the test of life!") | |
2910 | end | |
2911 | for i = 0, 2, 0.1 do | |
2912 | swait() | |
2913 | if Grabbed == true then | |
2914 | grab.Humanoid.PlatformStand = true | |
2915 | --GGyro.position = Partss.Position | |
2916 | --GGyro.Parent = grab.Head | |
2917 | grab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(-90),0) | |
2918 | end | |
2919 | PlayAnimationFromTable({ | |
2920 | CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2921 | CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2922 | CFrame.new(1.94523025, 1.02494264, -0.272673488, 0.287940055, -0.795002162, 0.533912063, 0.0434400104, -0.546107173, -0.836588264, 0.956662774, 0.264080375, -0.122711219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2923 | CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2924 | CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2925 | CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2926 | }, .1, false) | |
2927 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111939851, -1.63769794, -0.31875661, -0.0172049776, -1.39437616e-05, -0.999852121, 0.999852002, 5.96046448e-06, -0.0172049757, 6.16908073e-06, -1, 1.38394535e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
2928 | end | |
2929 | Effects.Block.Create(BrickColor.new("Institutional white"), Partss.CFrame, 2, 2, 2, 0.9, 0.9, 0.9, 0.05) | |
2930 | Effects.Block.Create(BrickColor.new("Institutional white"), Partss.CFrame, 2, 2, 2, 0.5, 0.5, 0.5, 0.05) | |
2931 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=136523485", Character, 1, .5) | |
2932 | dmg(grab) | |
2933 | grab.Head.Velocity = grab.Head.CFrame.lookVector * -60 | |
2934 | partasdeff.Enabled=true | |
2935 | for i = 0, 1, 0.1 do | |
2936 | swait() | |
2937 | PlayAnimationFromTable({ | |
2938 | CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2939 | CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2940 | CFrame.new(1.95760894, 1.20200562, -0.275867403, 0.278526366, -0.669772983, 0.688351095, 0.0506580099, -0.705469668, -0.706927419, 0.959091723, 0.23176837, -0.162562534) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2941 | CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2942 | CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2943 | CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2944 | }, .3, false) | |
2945 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932531, -1.63769579, -0.318755656, -0.0172050633, -1.61863863e-05, -0.999852121, 0.999851882, 5.15580177e-06, -0.017205067, 5.453825e-06, -1, 1.60960481e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
2946 | end | |
2947 | partasdeff.Enabled=false | |
2948 | for i = 0, 2.5, 0.1 do | |
2949 | swait() | |
2950 | PlayAnimationFromTable({ | |
2951 | CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2952 | CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2953 | CFrame.new(1.94523025, 1.02494264, -0.272673488, 0.287940055, -0.795002162, 0.533912063, 0.0434400104, -0.546107173, -0.836588264, 0.956662774, 0.264080375, -0.122711219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2954 | CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2955 | CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2956 | CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2957 | }, .2, false) | |
2958 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111939851, -1.63769794, -0.31875661, -0.0172049776, -1.39437616e-05, -0.999852121, 0.999852002, 5.96046448e-06, -0.0172049757, 6.16908073e-06, -1, 1.38394535e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
2959 | end | |
2960 | coroutine.wrap(function() | |
2961 | wait(2) | |
2962 | partasdeff:Remove() | |
2963 | end)() | |
2964 | else | |
2965 | grab.Humanoid.PlatformStand = false | |
2966 | for i = 0, 3, 0.1 do | |
2967 | swait() | |
2968 | PlayAnimationFromTable({ | |
2969 | CFrame.new(0.104280457, -1.46030498e-22, -0.179343686, 0.249860913, 5.18448626e-22, 0.968281686, -5.82335151e-22, 1, -5.29395592e-22, -0.968281686, -3.70576914e-22, 0.249860913) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2970 | CFrame.new(0.00671941042, 1.48144531, -0.121562012, 0.0679168552, 0.388981611, -0.918738663, 0.158512011, 0.904961228, 0.394866198, 0.985018492, -0.172449201, -0.000196114182) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2971 | CFrame.new(1.5714488, -0.100437641, -0.219321564, 0.297819793, -0.653239965, -0.696118593, -0.0311920028, 0.722160041, -0.691022456, 0.954112411, 0.227513462, 0.194697708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2972 | CFrame.new(-1.5814501, 0.177012652, 5.41775626e-06, 0.939689815, 0.342028022, -2.68220901e-06, -0.342027992, 0.939689755, -6.1805149e-06, 4.17232513e-07, 6.72787428e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2973 | CFrame.new(0.569012046, -1.89856982, -0.00933695585, 0.266445845, -0.0764764398, -0.960811257, 0.0135949478, 0.997046292, -0.075590536, 0.963754177, 0.00707861409, 0.266698539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2974 | CFrame.new(-0.849534154, -2.01595497, 0.241721377, 0.948572636, 0.308689058, 0.070150286, -0.312330276, 0.948733151, 0.0485308319, -0.0515729487, -0.067945078, 0.996355295) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2975 | }, .1, false) | |
2976 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111981034, -1.63767779, -0.318741798, -0.0172085222, -1.4077872e-05, -0.999851882, 0.999851942, 7.4505806e-06, -0.0172085222, 7.68899918e-06, -1.00000012, 1.39512122e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
2977 | end | |
2978 | sel = math.random(1,3) | |
2979 | if sel == 1 then | |
2980 | chatfunc("Why Should I Even Try...") | |
2981 | elseif sel == 2 then | |
2982 | chatfunc("I Cant Kill My Creator...") | |
2983 | elseif sel == 3 then | |
2984 | chatfunc("I Need To Stop Trying...") | |
2985 | end | |
2986 | for i = 0, 5, 0.1 do | |
2987 | swait() | |
2988 | PlayAnimationFromTable({ | |
2989 | CFrame.new(0, 0, 0, 0.999999881, 5.04870979e-29, -4.21790838e-43, 5.04870979e-29, 1, -5.04870979e-29, -4.21790838e-43, -5.04870979e-29, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2990 | CFrame.new(-0.0399715528, 1.42130852, -0.217550665, 0.985933542, -0.136098281, -0.097015582, 0.166522697, 0.849608123, 0.500436008, 0.0143167432, -0.509551942, 0.860320628) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0- .4 * math.cos((sine) / 5), 0), | |
2991 | CFrame.new(1.57258642, 0.0433240086, 3.83948304e-08, 0.990993857, -0.133906633, -2.60571618e-08, 0.133906662, 0.990993977, 5.96046341e-08, 1.78410318e-08, -6.25570422e-08, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2992 | CFrame.new(-0.693957031, 0.999676406, -0.811627388, 0.817211449, -0.569911301, -0.0858340934, -0.499626935, -0.626295447, -0.598442137, 0.287295371, 0.531934083, -0.796558976) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2993 | CFrame.new(0.540301144, -1.99792778, 1.70425119e-06, 0.998698354, -0.0510031469, 6.26438805e-07, 0.0510031544, 0.998698473, -1.04335422e-05, -9.34800966e-08, 1.04519122e-05, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2994 | CFrame.new(-0.539563119, -1.99793291, 1.9016752e-06, 0.998630941, 0.0523070693, -1.67712614e-07, -0.0523070768, 0.99863106, -1.0458818e-05, -3.79587107e-07, 1.04532719e-05, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2995 | }, .3, false) | |
2996 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111991819, -1.63769639, -0.318748534, -0.0172109455, -5.96046448e-08, -0.999852002, 0.999852061, -1.19209318e-07, -0.0172108412, 5.96046519e-08, -0.99999994, -1.19209275e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
2997 | end | |
2998 | end | |
2999 | end | |
3000 | --GGyro.Parent = nil | |
3001 | attack = false | |
3002 | Grabbed = false | |
3003 | Humanoid.WalkSpeed = 50 | |
3004 | ||
3005 | end | |
3006 | function moarblood() | |
3007 | attack = true | |
3008 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521656", Character, 1, .8) | |
3009 | RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,4) | |
3010 | local k = New("Part",LeftArm,"k",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.200000003, 0.221472204, 0.221472189),CFrame = CFrame.new(4.93319941, -1.31948221, -45.7696877, 0.141969427, -5.55023435e-05, -0.989871144, 0.989874005, 1.80069164e-05, 0.141970903, 1.06166653e-05, -1.00000143, 5.59078326e-05),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
3011 | mot = New("Weld",k,"mot",{Part0 = k,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, 0.141969457, 0.989873946, 1.06166663e-05, -5.55023507e-05, 1.80069164e-05, -1.00000167, -0.989871264, 0.141970903, 5.59078399e-05),C1 = CFrame.new(6.67572021e-06, -1.40000057, -3.81469727e-06, 0.989870846, -0.14197053, -1.2531201e-06, 0.141970515, 0.989870906, 1.03843358e-05, -2.33842215e-07, -1.04570581e-05, 0.99999994),}) | |
3012 | wait(.5) | |
3013 | for i = 0, 1.2, 0.1 do | |
3014 | swait() | |
3015 | PlayAnimationFromTable({ | |
3016 | CFrame.new(0.0246932413, -0.0966757834, -0.0092370566, 0.713696778, 5.59592329e-22, 0.700454772, -9.27150216e-22, 1, 1.45779223e-22, -0.700454772, -7.53468894e-22, 0.713696778) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3017 | CFrame.new(0.098094359, 1.53651738, -0.281765848, 0.593379974, 0.280785412, -0.754360616, -0.0276839901, 0.943748772, 0.329502523, 0.804446399, -0.174636483, 0.567774832) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3018 | CFrame.new(1.58677018, 0.143787161, 0.0495693758, 0.968102753, -0.250522822, -0.00394502282, 0.250228018, 0.965921044, 0.0662006512, -0.0127741396, -0.0650762022, 0.997798622) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3019 | CFrame.new(-1.74332106, 0.446618229, -0.859300971, 0.795205951, 0.606264353, -0.0095520094, -0.0538869984, 0.0549720451, -0.997032762, -0.603940368, 0.793361068, 0.0763838589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3020 | CFrame.new(0.648194611, -1.97843742, -0.088139981, 0.954304218, -0.129303336, -0.269414723, 0.107585981, 0.989748061, -0.0939367935, 0.278798997, 0.0606590137, 0.958431959) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3021 | CFrame.new(-0.671899676, -2.02211809, 0.00866907835, 0.94230175, 0.108399026, -0.316728801, -0.108764999, 0.993929207, 0.0165804606, 0.316603303, 0.0188252106, 0.948371291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3022 | }, .2, false) | |
3023 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111978557, -1.63769853, -0.318748116, -0.0172083378, 3.06963921e-06, -0.999852002, 0.999851942, -2.01165676e-07, -0.0172083378, -2.4586916e-07, -1, -3.09944153e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3024 | end | |
3025 | if targetted.Name ~= "TheNeonKaratedKid" then | |
3026 | local grab = nil | |
3027 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do | |
3028 | if v:FindFirstChild('Head') then | |
3029 | Grabbed = true | |
3030 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=260430060", v.Head, 1, .8) | |
3031 | grab = v | |
3032 | end | |
3033 | end | |
3034 | Humanoid.WalkSpeed = 0 | |
3035 | for i = 0, 2, 0.1 do | |
3036 | swait() | |
3037 | if Grabbed == true then | |
3038 | grab.Humanoid.PlatformStand = true | |
3039 | --GGyro.position = Partss.Position | |
3040 | --GGyro.Parent = grab.Head | |
3041 | grab.Head.CFrame = k.CFrame * CFrame.Angles(0,math.rad(-90),0) | |
3042 | end | |
3043 | PlayAnimationFromTable({ | |
3044 | CFrame.new(-0.203895777, -0.0966757089, 0.221102715, 0.860356927, 5.59592329e-22, -0.509691954, -9.74120787e-23, 1, 9.33471908e-22, 0.509691954, -7.53468894e-22, 0.860356927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3045 | CFrame.new(-0.0263810754, 1.49789393, -0.36129567, 0.83927381, -0.177804202, 0.513814509, -0.0293880031, 0.928800881, 0.369412124, -0.542914331, -0.325137854, 0.774292946) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3046 | CFrame.new(1.70567894, 0.192227185, 0.324310064, 0.910149336, -0.402004361, -0.100104719, 0.41140601, 0.848634601, 0.332512379, -0.0487190783, -0.343819588, 0.937771142) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3047 | CFrame.new(-0.925376594, 0.275374949, -0.912649989, 0.847262561, -0.507846355, 0.155686736, 0.278232396, 0.17463918, -0.944503605, 0.452473402, 0.84355998, 0.289265245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3048 | CFrame.new(0.648186982, -1.97843516, -0.0881449506, 0.954305232, -0.129303262, -0.269411147, 0.107586049, 0.989748061, -0.0939371213, 0.278795511, 0.0606598109, 0.958432913) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3049 | CFrame.new(-0.671897829, -2.02211738, 0.00865991414, 0.942302644, 0.108399101, -0.316726208, -0.108764961, 0.993929207, 0.0165806562, 0.31660068, 0.0188247077, 0.948372126) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3050 | }, .25, false) | |
3051 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111928731, -1.63769662, -0.318741947, -0.0172089636, 8.2552433e-06, -0.999852061, 0.999852061, 7.4505806e-07, -0.0172089189, 5.66244125e-07, -1.00000012, -8.2552433e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3052 | end | |
3053 | if Grabbed == true then | |
3054 | sel = math.random(1,3) | |
3055 | if sel == 1 then | |
3056 | chatfunc("YOU ARE SO ANNOYING.") | |
3057 | elseif sel == 2 then | |
3058 | chatfunc("Please stop.") | |
3059 | elseif sel == 3 then | |
3060 | chatfunc("I'm not enjoying this either.") | |
3061 | end | |
3062 | local partasdeff = Instance.new("ParticleEmitter",targetted.Head) | |
3063 | partasdeff.Color = ColorSequence.new(Color3.new(255, 255, 255), Color3.new(255, 255, 255)) | |
3064 | partasdeff.LightEmission = .1 | |
3065 | partasdeff.Size = NumberSequence.new(0.2) | |
3066 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=737783387" | |
3067 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
3068 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
3069 | partasdeff.Transparency = bbb | |
3070 | partasdeff.Size = aaa | |
3071 | partasdeff.ZOffset = .9 | |
3072 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
3073 | partasdeff.LockedToPart = false | |
3074 | partasdeff.EmissionDirection = "Back" | |
3075 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
3076 | partasdeff.Rate = 10000 | |
3077 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
3078 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
3079 | partasdeff.Speed = NumberRange.new(6) | |
3080 | partasdeff.VelocitySpread = 100000 | |
3081 | partasdeff.Enabled=false | |
3082 | for i = 0, 3, 0.1 do | |
3083 | swait() | |
3084 | if Grabbed == true then | |
3085 | grab.Humanoid.PlatformStand = true | |
3086 | --GGyro.position = Partss.Position | |
3087 | --GGyro.Parent = grab.Head | |
3088 | grab.Head.CFrame = k.CFrame * CFrame.Angles(0,math.rad(-90),0) | |
3089 | end | |
3090 | PlayAnimationFromTable({ | |
3091 | CFrame.new(-0.203895777, -0.0966757089, 0.221102715, 0.860356927, 5.59592329e-22, -0.509691954, -9.74120787e-23, 1, 9.33471908e-22, 0.509691954, -7.53468894e-22, 0.860356927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3092 | CFrame.new(0.0996288583, 1.46053851, -0.148588806, 0.834862471, 0.0359686315, 0.549282432, -0.0103890011, 0.998714745, -0.0496083908, -0.550360739, 0.0357096791, 0.83416307) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3093 | CFrame.new(1.70567894, 0.192227185, 0.324310064, 0.910149336, -0.402004361, -0.100104719, 0.41140601, 0.848634601, 0.332512379, -0.0487190783, -0.343819588, 0.937771142) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3094 | CFrame.new(-1.5511272, 1.22937977, -0.634234905, 0.785770595, 0.333147645, 0.521131098, 0.522403002, -0.808557391, -0.270795107, 0.331149668, 0.485022962, -0.809378147) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3095 | CFrame.new(0.648186982, -1.97843516, -0.0881449506, 0.954305232, -0.129303262, -0.269411147, 0.107586049, 0.989748061, -0.0939371213, 0.278795511, 0.0606598109, 0.958432913) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3096 | CFrame.new(-0.684103072, -2.02189779, 0.0673112273, 0.973016024, 0.108399175, -0.203689545, -0.109960191, 0.993929327, 0.00367253274, 0.202851087, 0.0188243091, 0.979028702) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3097 | }, .1, false) | |
3098 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111928731, -1.63769662, -0.318741947, -0.0172089636, 8.2552433e-06, -0.999852061, 0.999852061, 7.4505806e-07, -0.0172089189, 5.66244125e-07, -1.00000012, -8.2552433e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3099 | end | |
3100 | partasdeff.Enabled=true | |
3101 | grab.Torso.Transparency = 1 | |
3102 | dmg(grab) | |
3103 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=206082273", grab.Head, .8, .8) | |
3104 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=206082327", grab.Head, 1, .7) | |
3105 | ||
3106 | coroutine.wrap(function() | |
3107 | wait(.4) | |
3108 | partasdeff.Enabled=false | |
3109 | end)() | |
3110 | for i = 0, 3.5, 0.1 do | |
3111 | swait() | |
3112 | PlayAnimationFromTable({ | |
3113 | CFrame.new(-0.203895777, -0.0966757089, 0.221102715, 0.860356927, 5.59592329e-22, -0.509691954, -9.74120787e-23, 1, 9.33471908e-22, 0.509691954, -7.53468894e-22, 0.860356927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3114 | CFrame.new(0.0996288583, 1.46053851, -0.148588806, 0.834862471, 0.0359686315, 0.549282432, -0.0103890011, 0.998714745, -0.0496083908, -0.550360739, 0.0357096791, 0.83416307) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3115 | CFrame.new(1.70567894, 0.192227185, 0.324310064, 0.910149336, -0.402004361, -0.100104719, 0.41140601, 0.848634601, 0.332512379, -0.0487190783, -0.343819588, 0.937771142) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3116 | CFrame.new(-1.40260935, 1.29555511, -0.560751677, 0.832364976, 0.188659444, 0.521130562, 0.370884001, -0.88832134, -0.2707977, 0.411842346, 0.418681324, -0.809378505) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3117 | CFrame.new(0.648186982, -1.97843516, -0.0881449506, 0.954305232, -0.129303262, -0.269411147, 0.107586049, 0.989748061, -0.0939371213, 0.278795511, 0.0606598109, 0.958432913) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3118 | CFrame.new(-0.684103072, -2.02189779, 0.0673112273, 0.973016024, 0.108399175, -0.203689545, -0.109960191, 0.993929327, 0.00367253274, 0.202851087, 0.0188243091, 0.979028702) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3119 | }, .3, false) | |
3120 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111928731, -1.63769662, -0.318741947, -0.0172089636, 8.2552433e-06, -0.999852061, 0.999852061, 7.4505806e-07, -0.0172089189, 5.66244125e-07, -1.00000012, -8.2552433e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3121 | end | |
3122 | end | |
3123 | else | |
3124 | Humanoid.WalkSpeed = 0 | |
3125 | for i = 0, 3, 0.1 do | |
3126 | swait() | |
3127 | PlayAnimationFromTable({ | |
3128 | CFrame.new(0.0246932413, -0.0966757834, -0.0092370566, 0.713696778, 5.59592329e-22, 0.700454772, -9.27150216e-22, 1, 1.45779223e-22, -0.700454772, -7.53468894e-22, 0.713696778) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3129 | CFrame.new(0.098094359, 1.53651738, -0.281765848, 0.593379974, 0.280785412, -0.754360616, -0.0276839901, 0.943748772, 0.329502523, 0.804446399, -0.174636483, 0.567774832) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3130 | CFrame.new(1.58677018, 0.143787161, 0.0495693758, 0.968102753, -0.250522822, -0.00394502282, 0.250228018, 0.965921044, 0.0662006512, -0.0127741396, -0.0650762022, 0.997798622) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3131 | CFrame.new(-1.74332106, 0.446618229, -0.859300971, 0.795205951, 0.606264353, -0.0095520094, -0.0538869984, 0.0549720451, -0.997032762, -0.603940368, 0.793361068, 0.0763838589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3132 | CFrame.new(0.648194611, -1.97843742, -0.088139981, 0.954304218, -0.129303336, -0.269414723, 0.107585981, 0.989748061, -0.0939367935, 0.278798997, 0.0606590137, 0.958431959) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3133 | CFrame.new(-0.671899676, -2.02211809, 0.00866907835, 0.94230175, 0.108399026, -0.316728801, -0.108764999, 0.993929207, 0.0165804606, 0.316603303, 0.0188252106, 0.948371291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3134 | }, .2, false) | |
3135 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111978557, -1.63769853, -0.318748116, -0.0172083378, 3.06963921e-06, -0.999852002, 0.999851942, -2.01165676e-07, -0.0172083378, -2.4586916e-07, -1, -3.09944153e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3136 | end | |
3137 | sel = math.random(1,3) | |
3138 | if sel == 1 then | |
3139 | chatfunc("OOOOOOOOOHHHHHHH...") | |
3140 | elseif sel == 2 then | |
3141 | chatfunc("Whhhyyyy...") | |
3142 | elseif sel == 3 then | |
3143 | chatfunc("Ahhhh...") | |
3144 | end | |
3145 | for i = 0, 5, 0.1 do | |
3146 | swait() | |
3147 | PlayAnimationFromTable({ | |
3148 | CFrame.new(0, 0, 0, 0.999999881, 5.04870979e-29, -4.21790838e-43, 5.04870979e-29, 1, -5.04870979e-29, -4.21790838e-43, -5.04870979e-29, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3149 | CFrame.new(-0.0399715528, 1.42130852, -0.217550665, 0.985933542, -0.136098281, -0.097015582, 0.166522697, 0.849608123, 0.500436008, 0.0143167432, -0.509551942, 0.860320628) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0- .4 * math.cos((sine) / 5), 0), | |
3150 | CFrame.new(1.57258642, 0.0433240086, 3.83948304e-08, 0.990993857, -0.133906633, -2.60571618e-08, 0.133906662, 0.990993977, 5.96046341e-08, 1.78410318e-08, -6.25570422e-08, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3151 | CFrame.new(-0.693957031, 0.999676406, -0.811627388, 0.817211449, -0.569911301, -0.0858340934, -0.499626935, -0.626295447, -0.598442137, 0.287295371, 0.531934083, -0.796558976) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3152 | CFrame.new(0.540301144, -1.99792778, 1.70425119e-06, 0.998698354, -0.0510031469, 6.26438805e-07, 0.0510031544, 0.998698473, -1.04335422e-05, -9.34800966e-08, 1.04519122e-05, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3153 | CFrame.new(-0.539563119, -1.99793291, 1.9016752e-06, 0.998630941, 0.0523070693, -1.67712614e-07, -0.0523070768, 0.99863106, -1.0458818e-05, -3.79587107e-07, 1.04532719e-05, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3154 | }, .3, false) | |
3155 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111991819, -1.63769639, -0.318748534, -0.0172109455, -5.96046448e-08, -0.999852002, 0.999852061, -1.19209318e-07, -0.0172108412, 5.96046519e-08, -0.99999994, -1.19209275e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3156 | end | |
3157 | end | |
3158 | attack = false | |
3159 | Grabbed = false | |
3160 | k:Remove() | |
3161 | Humanoid.WalkSpeed = 50 | |
3162 | end | |
3163 | ||
3164 | function painlessrain() | |
3165 | attack = true | |
3166 | Humanoid.WalkSpeed = 0 | |
3167 | local ref1 = New("Part",m,"ref",{Transparency = 1,Size = Vector3.new(.2,.2,.2),CFrame = Torso.CFrame,Anchored = true,CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
3168 | ||
3169 | coroutine.wrap(function() | |
3170 | for i = 0, 4 do | |
3171 | wait(.2) | |
3172 | CFuncs["Sound"].Create("rbxassetid://958257111", RootPart, 1, 1.3) | |
3173 | end | |
3174 | end)() | |
3175 | for i = 0, 4, 0.1 do | |
3176 | swait() | |
3177 | PlayAnimationFromTable({ | |
3178 | CFrame.new(0.160091802, -3.66497677e-23, -0.0753167868, 0.153125972, 2.95760942e-22, 0.988206744, 9.50910858e-23, 1, -3.14025256e-22, -0.988206744, 1.42055005e-22, 0.153125986) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3179 | CFrame.new(-0.115934461, 1.42953098, -0.0387745127, 0.0422455594, -0.156738758, -0.986736298, 0.091215007, 0.984098434, -0.152414545, 0.994934857, -0.083566308, 0.0558707118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3180 | CFrame.new(1.88563442, 0.849646449, -0.150348112, 0.134151325, -0.917590559, 0.374207288, 0.151069015, -0.354270071, -0.922860146, 0.979378283, 0.180334046, 0.0910937041) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3181 | CFrame.new(-1.53188074, 0.0735950321, 2.69606994e-06, 0.978446901, 0.206499115, 2.48849392e-06, -0.2064991, 0.978446841, -1.05276868e-05, -4.61935997e-06, 9.78447497e-06, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3182 | CFrame.new(0.6596874, -2.0274992, -0.0100709619, 0.00881013274, -0.161221251, -0.986878991, 0.00903601572, 0.986890376, -0.161142424, 0.999920428, -0.0074977763, 0.0101515204) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3183 | CFrame.new(-0.56669867, -2.04759455, -0.0995163321, 0.988194227, 0.0786855519, 0.131456956, -0.0635150596, 0.991232872, -0.115859069, -0.139420897, 0.106141761, 0.984528303) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3184 | }, .07, false) | |
3185 | moter.C0 = clerp(moter.C0, CFrame.new(0.00354172289, -1.19249964, -0.318736732, -0.017209189, -1.8668361e-06, -0.999851942, 0.999851882, 1.90734863e-06, -0.0172091946, 1.93715096e-06, -1.00000012, 1.82725489e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, math.rad(doe * 22)), 0.3) | |
3186 | end | |
3187 | for i = 0, 1.5, 0.1 do | |
3188 | swait() | |
3189 | PlayAnimationFromTable({ | |
3190 | CFrame.new(0.160091802, -3.66497677e-23, -0.0753167868, 0.153125972, 2.95760942e-22, 0.988206744, 9.50910858e-23, 1, -3.14025256e-22, -0.988206744, 1.42055005e-22, 0.153125986) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3191 | CFrame.new(-0.181723118, 1.42154801, -0.0812263489, 0.0422911495, -0.473342478, -0.879862845, 0.0912349299, 0.878800809, -0.468385875, 0.994931221, -0.0604656339, 0.0803508535) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3192 | CFrame.new(1.46608233, 1.280774, -0.0335922651, 0.00761340559, -0.0420075022, 0.999088407, 0.0443810038, -0.998118579, -0.0423049256, 0.998985708, 0.044662632, -0.00573477149) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3193 | CFrame.new(-1.53188074, 0.0735950321, 2.69606994e-06, 0.978446901, 0.206499115, 2.48849392e-06, -0.2064991, 0.978446841, -1.05276868e-05, -4.61935997e-06, 9.78447497e-06, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3194 | CFrame.new(0.6596874, -2.0274992, -0.0100709619, 0.00881013274, -0.161221251, -0.986878991, 0.00903601572, 0.986890376, -0.161142424, 0.999920428, -0.0074977763, 0.0101515204) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3195 | CFrame.new(-0.56669867, -2.04759455, -0.0995163321, 0.988194227, 0.0786855519, 0.131456956, -0.0635150596, 0.991232872, -0.115859069, -0.139420897, 0.106141761, 0.984528303) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3196 | }, .2, false) | |
3197 | moter.C0 = clerp(moter.C0, CFrame.new(0.0112083405, -1.63769615, -0.31873402, -0.0172121376, -2.89082527e-06, -0.999851882, 0.999851942, 4.58210707e-07, -0.0172121413, 5.06639481e-07, -1.00000012, 2.89082527e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3198 | end | |
3199 | for i = 0, 3 do | |
3200 | Effects.Block.Create(BrickColor.new("Institutional white"), Partss.CFrame, 2, 2, 2, 0.9, 0.9, 0.9, 0.05) | |
3201 | Effects.Block.Create(BrickColor.new("Institutional white"), Partss.CFrame, 2, 2, 2, 0.5, 0.5, 0.5, 0.05) | |
3202 | CFuncs["Sound"].Create("rbxassetid://727280278", Character, 1, .5) | |
3203 | for i = 0, .5, 0.1 do | |
3204 | swait() | |
3205 | PlayAnimationFromTable({ | |
3206 | CFrame.new(0.160087422, -3.66470256e-23, -0.0753137618, 0.15316838, 2.95750466e-22, 0.988200247, 9.50818972e-23, 1, -3.14019425e-22, -0.988200247, 1.42057819e-22, 0.15316838) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3207 | CFrame.new(-0.181723118, 1.42154801, -0.0812263489, 0.0422911495, -0.473342478, -0.879862845, 0.0912349299, 0.878800809, -0.468385875, 0.994931221, -0.0604656339, 0.0803508535) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3208 | CFrame.new(1.46630716, 1.08524323, -0.0336530581, 0.00764143467, -0.0426861309, 0.999059498, 0.0445286781, -0.998082876, -0.0429849848, 0.998979032, 0.0448152684, -0.0057259798) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3209 | CFrame.new(-1.53188026, 0.0735908896, 2.69562906e-06, 0.978447855, 0.206495479, 2.48849392e-06, -0.206495419, 0.978447556, -1.05270137e-05, -4.61935997e-06, 9.78633761e-06, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3210 | CFrame.new(0.659685254, -2.0274992, -0.0100700259, 0.00885757804, -0.161218897, -0.986879349, 0.00904085487, 0.986890197, -0.161139548, 0.999920309, -0.00749491528, 0.0101990253) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3211 | CFrame.new(-0.566697419, -2.04759264, -0.0995131433, 0.988195002, 0.078684561, 0.131453067, -0.0635149851, 0.991233289, -0.115855575, -0.139416695, 0.106138662, 0.984529436) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3212 | }, .3, false) | |
3213 | moter.C0 = clerp(moter.C0, CFrame.new(0.0112046078, -1.63744116, -0.318734497, -0.0172122065, 2.46167183e-05, -0.999852002, 0.999850631, -0.00159030408, -0.0172121339, -0.00159040466, -0.999998927, 2.57790089e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3214 | end | |
3215 | for i = 0, .5, 0.1 do | |
3216 | swait() | |
3217 | PlayAnimationFromTable({ | |
3218 | CFrame.new(0.160091802, -3.66497677e-23, -0.0753167868, 0.153125972, 2.95760942e-22, 0.988206744, 9.50910858e-23, 1, -3.14025256e-22, -0.988206744, 1.42055005e-22, 0.153125986) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3219 | CFrame.new(-0.181723118, 1.42154801, -0.0812263489, 0.0422911495, -0.473342478, -0.879862845, 0.0912349299, 0.878800809, -0.468385875, 0.994931221, -0.0604656339, 0.0803508535) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3220 | CFrame.new(1.46608233, 1.280774, -0.0335922651, 0.00761340559, -0.0420075022, 0.999088407, 0.0443810038, -0.998118579, -0.0423049256, 0.998985708, 0.044662632, -0.00573477149) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3221 | CFrame.new(-1.53188074, 0.0735950321, 2.69606994e-06, 0.978446901, 0.206499115, 2.48849392e-06, -0.2064991, 0.978446841, -1.05276868e-05, -4.61935997e-06, 9.78447497e-06, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3222 | CFrame.new(0.6596874, -2.0274992, -0.0100709619, 0.00881013274, -0.161221251, -0.986878991, 0.00903601572, 0.986890376, -0.161142424, 0.999920428, -0.0074977763, 0.0101515204) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3223 | CFrame.new(-0.56669867, -2.04759455, -0.0995163321, 0.988194227, 0.0786855519, 0.131456956, -0.0635150596, 0.991232872, -0.115859069, -0.139420897, 0.106141761, 0.984528303) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3224 | }, .3, false) | |
3225 | moter.C0 = clerp(moter.C0, CFrame.new(0.0112083405, -1.63769615, -0.31873402, -0.0172121376, -2.89082527e-06, -0.999851882, 0.999851942, 4.58210707e-07, -0.0172121413, 5.06639481e-07, -1.00000012, 2.89082527e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3226 | end | |
3227 | end | |
3228 | attack = false | |
3229 | Humanoid.WalkSpeed = 50 | |
3230 | wait(.4) | |
3231 | for i = 0, 8 do | |
3232 | wait(.2) | |
3233 | mdmg(ref1, 3) | |
3234 | CFuncs["Sound"].Create("rbxassetid://157878578", Character, 1.5, .7) | |
3235 | ref1.Position = Mouse.hit.p | |
3236 | ref1.CFrame = ref1.CFrame * CFrame.new(math.random(-.5,.5),0,math.random(-.5,.5)) | |
3237 | Effects.Cylinder.Create(BrickColor.new("Institutional white"), ref1.CFrame, .5, 9999, .5, 0.5, 0, 0.5, 0.07) | |
3238 | end | |
3239 | ref1:Remove() | |
3240 | end | |
3241 | ||
3242 | function TargetSelect(person) | |
3243 | local dd=coroutine.wrap(function() | |
3244 | if targetted ~= person then | |
3245 | targetted = person | |
3246 | img2.Size = UDim2.new(1,0,1,0) | |
3247 | img2.ImageTransparency = 0 | |
3248 | img2.Position = UDim2.new(0,0,0,0) | |
3249 | for i = 0, 2, 0.1 do | |
3250 | swait() | |
3251 | img2.Size = img2.Size + UDim2.new(.05,0,.05,0) | |
3252 | img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0) | |
3253 | img2.ImageTransparency = img2.ImageTransparency + 0.05 | |
3254 | end | |
3255 | end | |
3256 | end) | |
3257 | dd() | |
3258 | end | |
3259 | ||
3260 | function LockOn() | |
3261 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
3262 | TargetSelect(Mouse.Target.Parent) | |
3263 | CFuncs["Sound"].Create("rbxassetid://913821443", Character, 1, .8) | |
3264 | end | |
3265 | end | |
3266 | ||
3267 | ||
3268 | function ofmoosic() -- 2 lazi hoh | |
3269 | delays = true | |
3270 | while wait() and kkk and kkk.Volume >= 0.02 do | |
3271 | kkk.Volume = kkk.Volume - 0.05 | |
3272 | end | |
3273 | wait(0.1) | |
3274 | kkk.Pitch = 0 | |
3275 | kkk.PlaybackSpeed = 0 | |
3276 | play = false | |
3277 | delays = false | |
3278 | end | |
3279 | function onmoosic() | |
3280 | delays = true | |
3281 | kkk.Pitch = .6 | |
3282 | kkk.PlaybackSpeed = 0.7 | |
3283 | while wait() and kkk and kkk.Volume <= 1.5 do | |
3284 | kkk.Volume = kkk.Volume + 0.05 | |
3285 | end | |
3286 | wait(0.1) | |
3287 | play = true | |
3288 | delays = false | |
3289 | end | |
3290 | Mouse.Button1Down:connect(function() | |
3291 | if attack == false and targetted ~= nil then | |
3292 | attackone() | |
3293 | end | |
3294 | end) | |
3295 | ||
3296 | Mouse.KeyDown:connect(function(k) | |
3297 | k = k:lower() | |
3298 | if attack == false and k == 'q' then | |
3299 | LockOn() | |
3300 | end | |
3301 | if k == 'z' and attack == false then | |
3302 | hedshoot() | |
3303 | elseif k == 'x' and attack == false and targetted ~= nil then | |
3304 | moarblood() | |
3305 | elseif k == 'c' and attack == false then | |
3306 | painlessrain() | |
3307 | elseif k == 'g' then | |
3308 | delays = true | |
3309 | chatfunc("You Know") | |
3310 | wait(1) | |
3311 | chatfunc("That") | |
3312 | wait(1) | |
3313 | chatfunc("I'm") | |
3314 | wait(1) | |
3315 | chatfunc("Not") | |
3316 | wait(2) | |
3317 | chatfunc("The bad one here...") | |
3318 | wait(1) | |
3319 | chatfunc("Right?") | |
3320 | wait(1) | |
3321 | chatfunc("...") | |
3322 | delays = false | |
3323 | elseif k == 'm' and play == true and delays == false then | |
3324 | ofmoosic() | |
3325 | elseif k == 'm' and play == false and delays == false then | |
3326 | onmoosic() | |
3327 | end | |
3328 | end) | |
3329 | ||
3330 | kkk = Instance.new("Sound",Character) | |
3331 | kkk.Volume = 1 | |
3332 | kkk.PlaybackSpeed = 1 | |
3333 | kkk.Pitch = 0.7 | |
3334 | kkk.SoundId = "rbxassetid://191412690" | |
3335 | kkk:Play() | |
3336 | kkk.Name = "a" | |
3337 | kkk.Looped = true | |
3338 | ||
3339 | ||
3340 | coroutine.wrap(function() | |
3341 | while true do | |
3342 | swait() | |
3343 | for i, v in pairs(Character.WeaponModel:GetChildren()) do | |
3344 | if v:IsA("Part") then | |
3345 | v.Anchored = false | |
3346 | end | |
3347 | end | |
3348 | for i, v in pairs(Character:GetChildren()) do | |
3349 | if v:IsA("Part") then | |
3350 | v.Anchored = false | |
3351 | elseif v:IsA("Accessory") then | |
3352 | v.Handle.Anchored = false | |
3353 | end | |
3354 | end | |
3355 | end | |
3356 | end)() | |
3357 | coroutine.wrap(function() | |
3358 | while 1 do | |
3359 | swait() | |
3360 | if doe <= 360 then | |
3361 | doe = doe + 2 | |
3362 | else | |
3363 | doe = 0 | |
3364 | end | |
3365 | end | |
3366 | end)() | |
3367 | while true do | |
3368 | swait() | |
3369 | for i, v in pairs(Character:GetChildren()) do | |
3370 | if v:IsA("Part") then | |
3371 | v.Material = "SmoothPlastic" | |
3372 | elseif v:IsA("Accessory") then | |
3373 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
3374 | end | |
3375 | end | |
3376 | while true do | |
3377 | swait() | |
3378 | Character.Humanoid.MaxHealth = math.huge | |
3379 | Character.Humanoid.Health = math.huge | |
3380 | imgl.Rotation = imgl.Rotation + 3 | |
3381 | img2.Rotation = img2.Rotation + 3 | |
3382 | if targetted ~= nil then | |
3383 | abss.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso") | |
3384 | abss.Enabled = true | |
3385 | elseif targetted == nil then | |
3386 | abss.Adornee = nil | |
3387 | abss.Enabled = false | |
3388 | end | |
3389 | ||
3390 | while true and imgl.Rotation >= 360 do | |
3391 | imgl.Rotation = 0 | |
3392 | img2.Rotation = 0 | |
3393 | end | |
3394 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
3395 | velocity = RootPart.Velocity.y | |
3396 | sine = sine + change | |
3397 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
3398 | if RootPart.Velocity.y > 1 and hit == nil then | |
3399 | Anim = "Jump" | |
3400 | if attack == false then | |
3401 | PlayAnimationFromTable({ | |
3402 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3403 | CFrame.new(-0.0579944476, 1.48445117, -0.000906195492, 0.999631822, -0.0259140469, -0.00804444961, 0.0262291897, 0.998776913, 0.0419151038, 0.0069484422, -0.0421099029, 0.999089062) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3404 | CFrame.new(1.68067598, 0.167780995, 5.50026158e-08, 0.965881884, -0.258982956, -3.41060513e-13, 0.258982956, 0.965881884, 4.47034836e-07, 8.49010675e-08, 3.16640808e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3405 | CFrame.new(-1.67620921, 0.188169807, -3.04922651e-07, 0.95698452, 0.290146649, -2.61441073e-07, -0.290146649, 0.95698452, -1.0069979e-05, -2.89639524e-06, 1.04542296e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3406 | CFrame.new(0.537238836, -1.93797374, 0.176598221, 0.998698533, -0.0506777391, -0.00574572897, 0.0510024093, 0.992341697, 0.112511501, -6.35704041e-08, -0.112657718, 0.993634105) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3407 | CFrame.new(-0.536944568, -1.94808352, 0.126473114, 0.998626292, 0.0520468242, 0.00521374354, -0.0523067154, 0.993665218, 0.0995327011, -3.84102691e-07, -0.099668026, 0.995023906) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3408 | }, .3, false) | |
3409 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111988392, -1.63769972, -0.318750381, -0.0172117054, 0, -0.999851942, 0.999851942, 0, -0.0172116756, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3410 | end | |
3411 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
3412 | Anim = "Fall" | |
3413 | if attack == false then | |
3414 | PlayAnimationFromTable({ | |
3415 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3416 | CFrame.new(-0.0576509275, 1.50532985, -0.129091382, 0.999631822, -0.0231846143, -0.0140984114, 0.0262298863, 0.958684564, 0.283279002, 0.00694822101, -0.283544153, 0.958935201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3417 | CFrame.new(1.68622994, 0.21415168, 7.02040666e-08, 0.881990671, -0.471266806, -3.41060513e-13, 0.471266806, 0.881990671, 4.47034836e-07, 1.54493137e-07, 2.89139166e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3418 | CFrame.new(-1.72513735, 0.240890861, 2.54038241e-07, 0.814108491, 0.58071363, -2.61430017e-07, -0.580713034, 0.814108849, -1.00698489e-05, -6.08482924e-06, 8.98058715e-06, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3419 | CFrame.new(0.536720514, -1.92783141, 0.223740995, 0.998698533, -0.0498600565, -0.0107376017, 0.0510031059, 0.976314366, 0.210260883, -3.04512355e-07, -0.210534185, 0.977587521) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3420 | CFrame.new(-0.535922825, -1.92850935, 0.222419083, 0.99863112, 0.0512506701, 0.0104565797, -0.0523065142, 0.978474379, 0.199629858, -3.7062793e-07, -0.199902818, 0.97981596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3421 | }, .3, false) | |
3422 | moter.C0 = clerp(moter.C0, CFrame.new(0.0112015437, -1.63769758, -0.318750381, -0.0172110498, 0, -0.999851942, 0.999851942, 0, -0.0172110498, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3423 | end | |
3424 | elseif Torsovelocity < 1 and hit ~= nil then | |
3425 | Anim = "Idle" | |
3426 | if attack == false then | |
3427 | change = 1 | |
3428 | PlayAnimationFromTable({ | |
3429 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3430 | CFrame.new(-0.0575585738, 1.52553558, -0.218724757, 0.985934377, -0.143356442, -0.0859283879, 0.166522771, 0.886584163, 0.431554198, 0.0143168001, -0.439792335, 0.897985697) * CFrame.new(0, -.05- .05 * math.cos((sine) / 55), 0- .05 * math.cos((sine) / 55)) * CFrame.Angles(math.rad(0 - 5 * math.cos((sine) / 55)), 0, 0), | |
3431 | CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0- 0.025 * math.cos((sine) / 45), 0, 0) * CFrame.Angles(0, 0, 0- 0.05 * math.cos((sine) / 45)), | |
3432 | CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0+ 0.025 * math.cos((sine) / 45), 0, 0) * CFrame.Angles(0, 0, 0+ 0.05 * math.cos((sine) / 45)), | |
3433 | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3434 | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3435 | }, .3, false) | |
3436 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3437 | end | |
3438 | elseif Torsovelocity > 2 and hit ~= nil then | |
3439 | Anim = "Walk" | |
3440 | if attack == false then | |
3441 | PlayAnimationFromTable({ | |
3442 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0), | |
3443 | CFrame.new(-0.0595112406, 1.55331731, -0.0425721854, 0.999631822, -0.0248252042, -0.010953242, 0.0262294486, 0.987443328, 0.155781403, 0.00694842171, -0.156010598, 0.987731278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
3444 | CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
3445 | CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
3446 | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
3447 | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
3448 | }, .3, false) | |
3449 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3450 | end | |
3451 | end | |
3452 | if 0 < #Effects then | |
3453 | for e = 1, #Effects do | |
3454 | if Effects[e] ~= nil then | |
3455 | local Thing = Effects[e] | |
3456 | if Thing ~= nil then | |
3457 | local Part = Thing[1] | |
3458 | local Mode = Thing[2] | |
3459 | local Delay = Thing[3] | |
3460 | local IncX = Thing[4] | |
3461 | local IncY = Thing[5] | |
3462 | local IncZ = Thing[6] | |
3463 | if Thing[2] == "Shoot" then | |
3464 | local Look = Thing[1] | |
3465 | local move = 30 | |
3466 | if Thing[8] == 3 then | |
3467 | move = 10 | |
3468 | end | |
3469 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
3470 | if Thing[10] ~= nil then | |
3471 | da = pos | |
3472 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
3473 | cfa = CFrame.new(Thing[4], pos) | |
3474 | tehCF = cfa:lerp(cf2, 0.2) | |
3475 | Thing[1] = tehCF.lookVector | |
3476 | end | |
3477 | local mag = (Thing[4] - pos).magnitude | |
3478 | Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2) | |
3479 | if Thing[8] == 2 then | |
3480 | Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1) | |
3481 | end | |
3482 | Thing[4] = Thing[4] + Look * move | |
3483 | Thing[3] = Thing[3] - 1 | |
3484 | if 2 < Thing[5] then | |
3485 | Thing[5] = Thing[5] - 0.3 | |
3486 | Thing[6] = Thing[6] - 0.3 | |
3487 | end | |
3488 | if hit ~= nil then | |
3489 | Thing[3] = 0 | |
3490 | if Thing[8] == 1 or Thing[8] == 3 then | |
3491 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
3492 | else | |
3493 | if Thing[8] == 2 then | |
3494 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
3495 | if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then | |
3496 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Hot pink"), "Reference", Vector3.new()) | |
3497 | ref.Anchored = true | |
3498 | ref.CFrame = CFrame.new(pos) | |
3499 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2) | |
3500 | game:GetService("Debris"):AddItem(ref, 0.2) | |
3501 | Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2) | |
3502 | Effects["Ring"].Create(BrickColor.new("Hot pink"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1) | |
3503 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
3504 | end | |
3505 | end | |
3506 | end | |
3507 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Hot pink"), "Reference", Vector3.new()) | |
3508 | ref.Anchored = true | |
3509 | ref.CFrame = CFrame.new(pos) | |
3510 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
3511 | game:GetService("Debris"):AddItem(ref, 1) | |
3512 | end | |
3513 | if Thing[3] <= 0 then | |
3514 | table.remove(Effects, e) | |
3515 | end | |
3516 | end | |
3517 | do | |
3518 | do | |
3519 | if Thing[2] == "FireWave" then | |
3520 | if Thing[3] <= Thing[4] then | |
3521 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
3522 | Thing[3] = Thing[3] + 1 | |
3523 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
3524 | else | |
3525 | Part.Parent = nil | |
3526 | table.remove(Effects, e) | |
3527 | end | |
3528 | end | |
3529 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
3530 | if Thing[1].Transparency <= 1 then | |
3531 | if Thing[2] == "Block1" then | |
3532 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
3533 | Mesh = Thing[7] | |
3534 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
3535 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3536 | else | |
3537 | if Thing[2] == "Block2" then | |
3538 | Thing[1].CFrame = Thing[1].CFrame | |
3539 | Mesh = Thing[7] | |
3540 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
3541 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3542 | else | |
3543 | if Thing[2] == "Fire" then | |
3544 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
3545 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
3546 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3547 | else | |
3548 | if Thing[2] == "Cylinder" then | |
3549 | Mesh = Thing[7] | |
3550 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
3551 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3552 | else | |
3553 | if Thing[2] == "Blood" then | |
3554 | Mesh = Thing[7] | |
3555 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
3556 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
3557 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3558 | else | |
3559 | if Thing[2] == "Elec" then | |
3560 | Mesh = Thing[10] | |
3561 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
3562 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3563 | else | |
3564 | if Thing[2] == "Disappear" then | |
3565 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3566 | else | |
3567 | if Thing[2] == "Shatter" then | |
3568 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
3569 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
3570 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
3571 | Thing[6] = Thing[6] + Thing[5] | |
3572 | end | |
3573 | end | |
3574 | end | |
3575 | end | |
3576 | end | |
3577 | end | |
3578 | end | |
3579 | end | |
3580 | else | |
3581 | Part.Parent = nil | |
3582 | table.remove(Effects, e) | |
3583 | end | |
3584 | end | |
3585 | end | |
3586 | end | |
3587 | end | |
3588 | end | |
3589 | end | |
3590 | end | |
3591 | end | |
3592 | end |