SHOW:
|
|
- or go back to the newest paste.
1 | - | --One Punch Man Script |
1 | + | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end |
2 | print("FE Compatibility: by WaverlyCole & Mokiros") | |
3 | InternalData = {} | |
4 | do | |
5 | script.Parent = owner.Character | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput" | |
8 | local function NewFakeEvent() | |
9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect | |
10 | return Fake | |
11 | end | |
12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
17 | local function TriggerEvent(self,Event,...) | |
18 | local Trigger = Mouse[Event] | |
19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
20 | Trigger.Function(...) | |
21 | end | |
22 | end | |
23 | Mouse.TrigEvent = TriggerEvent | |
24 | UserInputService.TrigEvent = TriggerEvent | |
25 | - | hum.MaxHealth = 9999999999999999999999999999999999999999 |
25 | + | Event.OnServerEvent:Connect(function(FiredBy,Input) |
26 | if FiredBy.Name ~= owner.Name then end | |
27 | if Input.MouseEvent then | |
28 | Mouse.Target = Input.Target | |
29 | Mouse.Hit = Input.Hit | |
30 | else | |
31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
34 | end | |
35 | for _,Action in pairs(ContextActionService.Actions) do | |
36 | for _,Key in pairs(Action.Keys) do | |
37 | if Key==Input.KeyCode then | |
38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
39 | end | |
40 | end | |
41 | end | |
42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
44 | end | |
45 | end) | |
46 | InternalData["Mouse"] = Mouse | |
47 | InternalData["ContextActionService"] = ContextActionService | |
48 | InternalData["UserInputService"] = UserInputService | |
49 | Event.Parent = NLS([[ | |
50 | local Player = owner | |
51 | local Event = script:WaitForChild("UserInput") | |
52 | local UserInputService = game:GetService("UserInputService") | |
53 | local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input) | |
59 | UserInputService.InputEnded:Connect(Input) | |
60 | local Hit,Target | |
61 | while wait(1/30) do | |
62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
63 | Hit,Target = Mouse.Hit,Mouse.Target | |
64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self) | |
80 | return InternalData["Mouse"] | |
81 | end | |
82 | end | |
83 | return function (self,...) | |
84 | return RealPlayer[Index](RealPlayer,...) | |
85 | end | |
86 | else | |
87 | if Index == "PlrObj" then | |
88 | return RealPlayer | |
89 | end | |
90 | return RealPlayer[Index] | |
91 | end | |
92 | end; | |
93 | __tostring = function(self) | |
94 | return RealPlayer.Name | |
95 | end | |
96 | }) | |
97 | end | |
98 | end | |
99 | if RealGame[Index] then | |
100 | local Type = type(RealGame[Index]) | |
101 | if Type == "function" then | |
102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
103 | return function (self,Service) | |
104 | if Service:lower() == "players" then | |
105 | return setmetatable({},{ | |
106 | __index = function (self2,Index2) | |
107 | local RealService = RealGame:GetService(Service) | |
108 | local Type2 = type(Index2) | |
109 | if Type2 == "function" then | |
110 | return function (self,...) | |
111 | return RealService[Index2](RealService,...) | |
112 | end | |
113 | else | |
114 | if Index2:lower() == "localplayer" then | |
115 | return Sandbox(owner) | |
116 | end | |
117 | return RealService[Index2] | |
118 | end | |
119 | end; | |
120 | __tostring = function(self) | |
121 | return RealGame:GetService(Service).Name | |
122 | end | |
123 | }) | |
124 | elseif Service:lower() == "contextactionservice" then | |
125 | return InternalData["ContextActionService"] | |
126 | elseif Service:lower() == "contextactionservice" then | |
127 | return InternalData["UserInputService"] | |
128 | elseif Service:lower() == "runservice" then | |
129 | return setmetatable({},{ | |
130 | __index = function(self2,Index2) | |
131 | local RealService = RealGame:GetService(Service) | |
132 | local Type2 = type(Index2) | |
133 | if Type2 == "function" then | |
134 | return function (self,...) | |
135 | return RealService[Index2](RealService,...) | |
136 | end | |
137 | else | |
138 | if Index2:lower() == "bindtorenderstep" then | |
139 | return function (self,Name,Priority,Function) | |
140 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
141 | end | |
142 | end | |
143 | if Index2:lower() == "renderstepped" then | |
144 | return RealService["Stepped"] | |
145 | end | |
146 | return RealService[Index2] | |
147 | end | |
148 | end | |
149 | }) | |
150 | else | |
151 | return RealGame:GetService(Service) | |
152 | end | |
153 | end | |
154 | end | |
155 | return function (self,...) | |
156 | return RealGame[Index](RealGame,...) | |
157 | end | |
158 | else | |
159 | if game:GetService(Index) then | |
160 | return game:GetService(Index) | |
161 | end | |
162 | return RealGame[Index] | |
163 | end | |
164 | else | |
165 | return nil | |
166 | end | |
167 | end | |
168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} | |
169 | print("Complete! Running...") | |
170 | ||
171 | --FE one punch man script | |
172 | p = game.Players.LocalPlayer | |
173 | char = p.Character | |
174 | des = false | |
175 | fling = true | |
176 | dot = false | |
177 | falling = false | |
178 | jump = true | |
179 | --char.Shirt:Remove() | |
180 | --for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end | |
181 | for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end | |
182 | wait()--shirt = Instance.new("Shirt", char) | |
183 | --shirt.Name = "Shirt" | |
184 | --pants = Instance.new("Pants", char) | |
185 | --pants.Name = "Pants" | |
186 | ||
187 | --char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=451927425" | |
188 | --char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261" | |
189 | tp = true | |
190 | shoot = true | |
191 | hum = char.Humanoid | |
192 | punch = true | |
193 | neckp = char.Torso.Neck.C0 | |
194 | neck = char.Torso.Neck | |
195 | hum.MaxHealth = 9999999999999999999999999999999999999999999999999999999999999999999999999 | |
196 | wait() | |
197 | hum.Health =hum.MaxHealth | |
198 | des = false | |
199 | root=char.HumanoidRootPart | |
200 | torso = char.Torso | |
201 | char.Head.face.Texture = "rbxassetid://332768867" | |
202 | local ChatService = game:GetService("Chat") | |
203 | local player = game.Players.LocalPlayer | |
204 | lig = Instance.new("PointLight",player.Character.Torso) | |
205 | lig.Color=Color3.new(255,0,0) | |
206 | m=player:GetMouse() | |
207 | bb = Instance.new("BillboardGui",player.Character.Head) | |
208 | bb.Enabled = true | |
209 | function newRay(start,face,range,wat) | |
210 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
211 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
212 | return rey,hit,pos | |
213 | end | |
214 | aa1={} | |
215 | torso=game.Players.LocalPlayer.Character.Torso | |
216 | ||
217 | local WorldUp = Vector3.new(0,1,0) | |
218 | function look2(Vec1,Vec2) | |
219 | local Orig = Vec1 | |
220 | Vec1 = Vec1+Vector3.new(0,1,0) | |
221 | Vec2 = Vec2+Vector3.new(0,1,0) | |
222 | local Forward = (Vec2-Vec1).unit | |
223 | local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit | |
224 | local Right = Up:Cross(Forward).unit | |
225 | Forward = -Forward | |
226 | Right = -Right | |
227 | return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z) | |
228 | end | |
229 | ||
230 | function look(CFr,Vec2) | |
231 | local A = Vector3.new(0,0,0) | |
232 | local B = CFr:inverse()*Vec2 | |
233 | local CF = look2(A,Vector3.new(A.X,B.Y,B.Z)) | |
234 | if B.Z > 0 then | |
235 | CF = CFr*(CF*CFrame.Angles(0,0,math.pi)) | |
236 | elseif B.Z == 0 then | |
237 | if B.Y > 0 then | |
238 | CF = CFr*CFrame.Angles(math.pi/2,0,0) | |
239 | elseif B.Y < 0 then | |
240 | CF = CFr*CFrame.Angles(-math.pi/2,0,0) | |
241 | else | |
242 | CF = CFr | |
243 | end | |
244 | end | |
245 | local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components() | |
246 | local Up = Vector3.new(X,Y,Z) | |
247 | local Forward = (Vec2-CFr.p).unit | |
248 | local Right = Up:Cross(Forward) | |
249 | Forward = -Forward | |
250 | Right = -Right | |
251 | return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z) | |
252 | end | |
253 | ||
254 | function simulate(j,d,m,r,t) | |
255 | local joint = j | |
256 | for i,v in ipairs(t) do | |
257 | if v[1]:FindFirstChild("Weld") then | |
258 | local stiff = m.CFrame.lookVector*0.03 | |
259 | if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end | |
260 | local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit | |
261 | local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude | |
262 | local pos = joint.p+(dir*(d*0.5)) | |
263 | --if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end | |
264 | local inv = v[1].Weld.Part0.CFrame | |
265 | local rel1 = inv:inverse()*pos | |
266 | local rel2 = inv:inverse()*(pos-(dir*dis)) | |
267 | local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z) | |
268 | v[1].Weld.C0 = cf | |
269 | v[2] = inv*cf | |
270 | --v[1].CFrame = cf | |
271 | end | |
272 | end | |
273 | end | |
274 | for i=1,8 do | |
275 | local p = Instance.new("Part",char) | |
276 | p.Anchored = false | |
277 | p.BrickColor = BrickColor.new("Institutional white") | |
278 | p.CanCollide = false | |
279 | p.FormFactor="Custom" | |
280 | p.Material = "SmoothPlastic" | |
281 | p.TopSurface = "SmoothNoOutlines" | |
282 | p.BottomSurface = "SmoothNoOutlines" | |
283 | p.RightSurface = "SmoothNoOutlines" | |
284 | p.LeftSurface = "SmoothNoOutlines" | |
285 | p.FrontSurface = "SmoothNoOutlines" | |
286 | p.BackSurface = "SmoothNoOutlines" | |
287 | ||
288 | p.Size=Vector3.new(2,.2,0.2) | |
289 | p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them | |
290 | mesh = Instance.new("BlockMesh",p) | |
291 | mesh.Scale = Vector3.new(1,1,4) | |
292 | local w = Instance.new("Motor6D",p) | |
293 | w.Part0 = aa1[i-1] and aa1[i-1][1] or torso | |
294 | w.Part1 = p | |
295 | w.Name = "Weld" | |
296 | --table.insert(aa1,p) | |
297 | aa1[i] = {p,p.CFrame} | |
298 | ||
299 | end | |
300 | game:service"RunService".Stepped:connect(function() | |
301 | simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1) | |
302 | end) | |
303 | bb.AlwaysOnTop = true | |
304 | bb.Size = UDim2.new(0,200,0,50) | |
305 | bb.StudsOffset = Vector3.new(0,1,0) | |
306 | gui=Instance.new("TextBox",bb) | |
307 | gui.Text = "* " | |
308 | gui.Size = UDim2.new(0,133,0,45) | |
309 | gui.Position=UDim2.new(0,57,0,-40) | |
310 | gui.TextColor3 = Color3.new(255,255,255) | |
311 | gui.BackgroundColor3=Color3.new(0,0,0) | |
312 | gui.TextWrapped = true | |
313 | gui.TextScaled = true | |
314 | gui.TextXAlignment = "Left" | |
315 | gui.TextYAlignment = "Top" | |
316 | gui.Visible = false | |
317 | gui.BorderColor3 = Color3.new(0,0,0) | |
318 | punch2 = true | |
319 | gui1=Instance.new("TextButton",bb) | |
320 | gui1.Position=UDim2.new(0,5,0,-43) | |
321 | gui1.Size = UDim2.new(0,190,0,51) | |
322 | ||
323 | gui1.TextColor3 = Color3.new(255,255,255) | |
324 | gui1.BackgroundColor3=Color3.new(255,255,255) | |
325 | jump2 = true | |
326 | gui1.Visible = false | |
327 | img = Instance.new("ImageLabel",bb) | |
328 | img.Size = UDim2.new(0,46,0,47) | |
329 | img.Position = UDim2.new(0,10,0,-41) | |
330 | img.Image = "rbxassetid://447301252" | |
331 | img.BorderColor3 = Color3.new(0,0,0) | |
332 | img.Visible = false | |
333 | soka = Instance.new("Sound",char) | |
334 | soka.SoundId = "http://www.roblox.com/asset/?id = 447199232" | |
335 | soka.Volume = 1 | |
336 | boom = Instance.new("Sound",char) | |
337 | boom.SoundId = "http://www.roblox.com/asset/?id = 447041606" | |
338 | boom.Volume = 1 | |
339 | boom2 = Instance.new("Sound",char) | |
340 | boom2.SoundId = "http://www.roblox.com/asset/?id = 449025737" | |
341 | boom2.Volume = 1 | |
342 | boom3 = Instance.new("Sound",char) | |
343 | boom3.SoundId = "http://www.roblox.com/asset/?id = 450719019" | |
344 | boom3.Volume = 1 | |
345 | tps = Instance.new("Sound",char) | |
346 | tps.SoundId = "http://www.roblox.com/asset/?id = 449860746" | |
347 | tps.Volume = 1 | |
348 | asd = Instance.new("Sound",char) | |
349 | asd.SoundId = "http://www.roblox.com/asset/?id = 447310433" | |
350 | asd.Volume =1 | |
351 | asd1 = Instance.new("Sound",char) | |
352 | asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695" | |
353 | ||
354 | asd2 = Instance.new("Sound",char) | |
355 | asd2.SoundId = "http://www.roblox.com/asset/?id = 386713054" | |
356 | asd2.Looped = true | |
357 | asd2.Volume = 5 | |
358 | asd3 = Instance.new("Sound",char) | |
359 | asd3.SoundId = "http://www.roblox.com/asset/?id = 378387996" | |
360 | asd3.Looped = true | |
361 | asd4 = Instance.new("Sound",char) | |
362 | asd4.SoundId = "http://www.roblox.com/asset/?id = 401258325" | |
363 | asd4.Looped = true | |
364 | asd5 = Instance.new("Sound",char) | |
365 | asd5.SoundId = "http://www.roblox.com/asset/?id = 362252261" | |
366 | asd5.Looped = true | |
367 | gas = Instance.new("Sound",char) | |
368 | gas.SoundId = "http://www.roblox.com/asset/?id = 345052019" | |
369 | asd6 = Instance.new("Sound",char) | |
370 | asd6.SoundId = "http://www.roblox.com/asset/?id = 401258325" | |
371 | asd6.Looped = true | |
372 | function play(play) | |
373 | asd:Play() | |
374 | wait(0.05) | |
375 | --asd1:Play() | |
376 | end | |
377 | ||
378 | ||
379 | ||
380 | ------------ | |
381 | ------------------------- | |
382 | ||
383 | function stream(origin,dir,length,size) | |
384 | local parts = {} | |
385 | - | ChatService:Chat(char.Head, "Mind if I get Serious?") |
385 | + | |
386 | local p = Instance.new("Part",char) | |
387 | p.Anchored = true | |
388 | p.Transparency = 0.5 | |
389 | p.TopSurface = 0 | |
390 | p.BottomSurface = 0 | |
391 | p.CanCollide = false | |
392 | p.BrickColor = BrickColor.new("Institutional white") | |
393 | p.Size = Vector3.new(10,30,10) -- for now | |
394 | p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi) | |
395 | parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)} | |
396 | game:GetService("Debris"):AddItem(p,3) | |
397 | end | |
398 | Spawn(function() | |
399 | while parts do | |
400 | for i,v in pairs(parts) do | |
401 | if v[1].Parent == char then | |
402 | v[1].CFrame = v[1].CFrame*v[2] | |
403 | else | |
404 | parts = nil | |
405 | break | |
406 | end | |
407 | end | |
408 | wait(0.02) | |
409 | end | |
410 | end) | |
411 | end | |
412 | ||
413 | --[[-- listen for their chatting | |
414 | player.Chatted:connect(function(message) | |
415 | a = string.len(message) | |
416 | gui.Text = "" | |
417 | gui.Visible = true | |
418 | gui1.Visible = true | |
419 | des = false | |
420 | img.Visible = true | |
421 | print(a) | |
422 | if dot == false then | |
423 | gui.Text = "" | |
424 | for i = 1,string.len(message) do | |
425 | gui.Text =gui.Text..message:sub(i,i) | |
426 | play() | |
427 | ||
428 | end | |
429 | end | |
430 | ||
431 | ||
432 | des = true | |
433 | end)]]-- | |
434 | m.KeyDown:connect(function(k) | |
435 | if k == "g" then | |
436 | asd2:Play() | |
437 | ||
438 | ||
439 | end | |
440 | end) | |
441 | ||
442 | m.KeyDown:connect(function(k) | |
443 | if k == "r" then | |
444 | ||
445 | asd4:Play() | |
446 | end | |
447 | end) | |
448 | m.KeyDown:connect(function(k) | |
449 | if k == "q" then | |
450 | ||
451 | asd3:Play() | |
452 | end | |
453 | end) | |
454 | m.KeyDown:connect(function(k) | |
455 | if k == "z" then | |
456 | img.Image = "rbxassetid://332766052" | |
457 | ||
458 | end | |
459 | end) | |
460 | m.KeyDown:connect(function(k) | |
461 | if k == "c" then | |
462 | img.Image = "rbxassetid://447301252" | |
463 | ||
464 | end | |
465 | end) | |
466 | m.KeyDown:connect(function(k) | |
467 | if k == "b" then | |
468 | ||
469 | asd6:Play() | |
470 | end | |
471 | end) | |
472 | mouse = p:GetMouse() | |
473 | m.KeyDown:connect(function(k) | |
474 | if k:byte() == 48 then | |
475 | ||
476 | hum.WalkSpeed = 100 | |
477 | end | |
478 | end) | |
479 | m.KeyDown:connect(function(k) | |
480 | if k:byte() == 50 then | |
481 | ||
482 | soka:Play() | |
483 | end | |
484 | end) | |
485 | m.KeyDown:connect(function(k) | |
486 | if k:byte() == 52 then | |
487 | ||
488 | char.Head.face.Texture = "rbxassetid://444037452" | |
489 | end | |
490 | end) | |
491 | m.KeyDown:connect(function(k) | |
492 | if k:byte() == 51 then | |
493 | ||
494 | char.Head.face.Texture = "rbxassetid://332768867" | |
495 | end | |
496 | end) | |
497 | m.KeyUp:connect(function(k) | |
498 | if k:byte() == 48 then | |
499 | ||
500 | hum.WalkSpeed = 16 | |
501 | end | |
502 | end) | |
503 | p.Chatted:connect(function(m) | |
504 | if m == "Okay." then | |
505 | soka:Play() | |
506 | end | |
507 | end) | |
508 | m.KeyDown:connect(function(k) | |
509 | if k == "x" then | |
510 | if des == true then | |
511 | gui.Visible = false | |
512 | gui.Text = "* " | |
513 | gui1.Visible = false | |
514 | img.Visible = false | |
515 | end | |
516 | end | |
517 | end) | |
518 | m.KeyDown:connect(function(key) | |
519 | if key == "j" then | |
520 | if tp == true then | |
521 | tp = false | |
522 | tps:Play() | |
523 | char.Head.face.Parent = game.Lighting | |
524 | for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1 | |
525 | end | |
526 | ||
527 | end | |
528 | wait(0.5) | |
529 | for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0 | |
530 | end | |
531 | ||
532 | end | |
533 | char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0) | |
534 | char.HumanoidRootPart.Transparency = 1 | |
535 | game.Lighting.face.Parent = char.Head | |
536 | wait(0.2) | |
537 | ||
538 | tp = true | |
539 | ||
540 | ||
541 | end | |
542 | end | |
543 | end) | |
544 | ||
545 | ||
546 | m.KeyDown:connect(function(key) | |
547 | if key == "t" then | |
548 | if punch2 == true then | |
549 | punch2 = false | |
550 | punch = false | |
551 | ||
552 | local ChatService = game:GetService("Chat") | |
553 | ||
554 | neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0) | |
555 | ChatService:Chat(char.Head, "Guess i'll have to do this...") | |
556 | wait(1) | |
557 | local ChatService = game:GetService("Chat") | |
558 | ||
559 | ||
560 | ChatService:Chat(char.Head ,"Killer Move: Serious Series...") | |
561 | wait(1) | |
562 | local ChatService = game:GetService("Chat") | |
563 | ||
564 | ||
565 | ChatService:Chat(char.Head, "SERIOUS PUNCH.") | |
566 | neck.C0 = neckp | |
567 | wait(0.6) | |
568 | org = char.Torso["Left Shoulder"].C0 | |
569 | char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90)) | |
570 | wait() | |
571 | killbrick2 = Instance.new("Part",char) | |
572 | killbrick2.Size = Vector3.new(80,80,9000) | |
573 | killbrick2.Transparency = 1 | |
574 | ||
575 | killbrick2.CanCollide = true | |
576 | wait(0.1) | |
577 | killbrick2.CanCollide = false | |
578 | ||
579 | killbrick2.Anchored = true | |
580 | ||
581 | killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005) | |
582 | ||
583 | killbrick2.Touched:connect(function(h) | |
584 | local x = h.Parent:FindFirstChild("Humanoid") | |
585 | if x then | |
586 | if x.Parent.Name == game.Players.LocalPlayer.Name then | |
587 | safe = true | |
588 | else safe = false | |
589 | end | |
590 | if x then | |
591 | if safe == false then | |
592 | h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900 | |
593 | local bodyforc = Instance.new("BodyForce", h.Parent.Torso) | |
594 | boom:Play() | |
595 | bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0) | |
596 | ||
597 | ||
598 | wait(0.2) | |
599 | x.Parent:BreakJoints() | |
600 | wait() | |
601 | safe = true | |
602 | end | |
603 | end | |
604 | end | |
605 | end) | |
606 | ||
607 | ||
608 | ||
609 | ||
610 | ||
611 | ||
612 | ||
613 | ||
614 | local rng = Instance.new("Part", char) | |
615 | rng.Anchored = true | |
616 | rng.BrickColor = BrickColor.new("Institutional white") | |
617 | rng.CanCollide = false | |
618 | rng.FormFactor = 3 | |
619 | rng.Name = "Ring" | |
620 | rng.Size = Vector3.new(1, 1, 1) | |
621 | rng.Transparency = 0.8 | |
622 | rng.TopSurface = 0 | |
623 | rng.BottomSurface = 0 | |
624 | rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
625 | --rng.Rotation = Vector3.new(math.pi/2,0,0) | |
626 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
627 | local rngm = Instance.new("SpecialMesh", rng) | |
628 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
629 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
630 | local rng1 = Instance.new("Part", char) | |
631 | rng1.Anchored = true | |
632 | rng1.BrickColor = BrickColor.new("Institutional white") | |
633 | rng1.CanCollide = false | |
634 | rng1.FormFactor = 3 | |
635 | rng1.Name = "Ring" | |
636 | rng1.Size = Vector3.new(1, 1, 1) | |
637 | rng1.Transparency = 0.8 | |
638 | rng1.TopSurface = 0 | |
639 | rng1.BottomSurface = 0 | |
640 | rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
641 | --rng1.Rotation = Vector3.new(math.pi/2,0,0) | |
642 | rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
643 | local rngm1 = Instance.new("SpecialMesh", rng1) | |
644 | rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
645 | rngm1.Scale = Vector3.new(1, 1.3, 2) | |
646 | ||
647 | local p = (torso.CFrame*CFrame.new(-20,0,3)) | |
648 | stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one | |
649 | local p = (torso.CFrame*CFrame.new(20,0,3)) | |
650 | stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here | |
651 | ||
652 | local rng2 = Instance.new("Part", char) | |
653 | rng2.Anchored = true | |
654 | rng2.BrickColor = BrickColor.new("Institutional white") | |
655 | rng2.CanCollide = false | |
656 | rng2.FormFactor = 3 | |
657 | rng2.Name = "Ring" | |
658 | rng2.Size = Vector3.new(1, 1, 1) | |
659 | rng2.Transparency = 0.8 | |
660 | rng2.TopSurface = 0 | |
661 | rng2.BottomSurface = 0 | |
662 | rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
663 | --rng1.Rotation = Vector3.new(math.pi/2,0,0) | |
664 | rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
665 | local rngm2 = Instance.new("SpecialMesh", rng2) | |
666 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
667 | rngm2.Scale = Vector3.new(1, 1.3, 2) | |
668 | wait(0.1) | |
669 | ||
670 | boom3:Play() | |
671 | coroutine.wrap(function() | |
672 | for i = 1, 35, 0.5 do | |
673 | ||
674 | ||
675 | ||
676 | ||
677 | ||
678 | rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4) | |
679 | rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4) | |
680 | rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4) | |
681 | ||
682 | wait() | |
683 | end | |
684 | wait() | |
685 | rng:Destroy() | |
686 | rng1:Destroy() | |
687 | rng2:Destroy() | |
688 | killbrick2:Remove() | |
689 | wait(0.5) | |
690 | char.Torso["Left Shoulder"].C0 = org | |
691 | wait(1) | |
692 | punch2 = true | |
693 | punch = true | |
694 | wait() | |
695 | ||
696 | ||
697 | end)() | |
698 | ||
699 | ||
700 | ||
701 | end | |
702 | ||
703 | ||
704 | wait(.1) | |
705 | ||
706 | ||
707 | end | |
708 | end) | |
709 | ||
710 | ||
711 | ||
712 | ||
713 | ||
714 | m.KeyDown:connect(function(key) | |
715 | if key == "k" then | |
716 | if punch == true then | |
717 | punch = false | |
718 | org = char.Torso["Left Shoulder"].C0 | |
719 | char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90)) | |
720 | killbrick = Instance.new("Part",char) | |
721 | killbrick.Size = Vector3.new(5,1,5) | |
722 | killbrick.Transparency = 1 | |
723 | killbrick:BreakJoints() | |
724 | killbrick.CanCollide = false | |
725 | local wel = Instance.new("Weld",killbrick) | |
726 | wel.Part0 = killbrick | |
727 | wel.Part1 = char["Left Arm"] | |
728 | wel.C0 = CFrame.new(0,1,0) | |
729 | force = 90 | |
730 | ||
731 | killbrick.Touched:connect(function(h) | |
732 | local x = h.Parent.Humanoid | |
733 | if x.Health >= 6000 then | |
734 | fling = false | |
735 | end | |
736 | if x.Health < 6000 then | |
737 | fling = true | |
738 | end | |
739 | local stop = h.Parent.Torso.Velocity | |
740 | if x.Parent.Name == game.Players.LocalPlayer.Name then | |
741 | safe = true | |
742 | else safe = false | |
743 | end | |
744 | if x then | |
745 | if safe == false then | |
746 | if fling == true then | |
747 | force = 900 | |
748 | ||
749 | end | |
750 | if fling == false then | |
751 | force = 200 | |
752 | end | |
753 | ||
754 | ||
755 | h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * force | |
756 | local bodyforc = Instance.new("BodyForce", h.Parent.Torso) | |
757 | boom:Play() | |
758 | bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0) | |
759 | ||
760 | ||
761 | wait(0.2) | |
762 | x:TakeDamage(5000) | |
763 | wait() | |
764 | safe = true | |
765 | bodyforc:Remove() | |
766 | h.Parent.Torso.Velocity = stop | |
767 | ||
768 | end | |
769 | end | |
770 | end) | |
771 | ||
772 | ||
773 | ||
774 | ||
775 | ||
776 | ||
777 | ||
778 | ||
779 | ||
780 | ||
781 | local rng = Instance.new("Part", char) | |
782 | rng.Anchored = true | |
783 | rng.BrickColor = BrickColor.new("Institutional white") | |
784 | rng.CanCollide = false | |
785 | rng.FormFactor = 3 | |
786 | rng.Name = "Ring" | |
787 | rng.Size = Vector3.new(1, 1, 1) | |
788 | rng.Transparency = 0.8 | |
789 | rng.TopSurface = 0 | |
790 | rng.BottomSurface = 0 | |
791 | rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
792 | --rng.Rotation = Vector3.new(math.pi/2,0,0) | |
793 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
794 | local rngm = Instance.new("SpecialMesh", rng) | |
795 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
796 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
797 | wait(0.1) | |
798 | ||
799 | boom2:Play() | |
800 | coroutine.wrap(function() | |
801 | for i = 1, 10, .4 do | |
802 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
803 | ||
804 | wait() | |
805 | end | |
806 | wait() | |
807 | rng:Destroy() | |
808 | killbrick:Remove() | |
809 | wait(0.5) | |
810 | char.Torso["Left Shoulder"].C0 = org | |
811 | wait(1) | |
812 | ||
813 | punch = true | |
814 | wait() | |
815 | end)() | |
816 | ||
817 | ||
818 | ||
819 | end | |
820 | ||
821 | ||
822 | wait(.1) | |
823 | ||
824 | ||
825 | end | |
826 | end) | |
827 | ||
828 | ||
829 | ||
830 | ||
831 | ||
832 | ||
833 | ||
834 | ||
835 | ||
836 | ||
837 | ||
838 | ||
839 | ||
840 | ||
841 | m.KeyDown:connect(function(key) | |
842 | if key == "m" then | |
843 | if jump == true then | |
844 | jump = false | |
845 | ||
846 | ||
847 | local rng = Instance.new("Part", char) | |
848 | rng.Anchored = true | |
849 | rng.BrickColor = BrickColor.new("Institutional white") | |
850 | rng.CanCollide = false | |
851 | rng.FormFactor = 3 | |
852 | rng.Name = "Ring" | |
853 | rng.Size = Vector3.new(1, 1, 1) | |
854 | rng.Transparency = 0.35 | |
855 | rng.TopSurface = 0 | |
856 | rng.BottomSurface = 0 | |
857 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
858 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
859 | local rngm = Instance.new("SpecialMesh", rng) | |
860 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
861 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
862 | wait(0.1) | |
863 | BV = Instance.new("BodyVelocity", torso) | |
864 | BV.maxForce = Vector3.new(0,20000,0) | |
865 | BV.P = 1000 | |
866 | BV.velocity = Vector3.new(0,100,0) | |
867 | boom:Play() | |
868 | coroutine.wrap(function() | |
869 | for i = 1, 60, 2 do | |
870 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
871 | rng.Transparency = i/60 | |
872 | wait() | |
873 | end | |
874 | wait() | |
875 | rng:Destroy() | |
876 | ||
877 | hum.WalkSpeed = 50 | |
878 | wait(1) | |
879 | ||
880 | for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then | |
881 | v:Destroy() jumping2 = true falling = true wait(0.3) jumping2 = false falling = false wait(1.7) jump = true hum.WalkSpeed = 16 falling = false | |
882 | end end | |
883 | wait() | |
884 | end)() | |
885 | ||
886 | ||
887 | ||
888 | end | |
889 | ||
890 | ||
891 | wait(.1) | |
892 | ||
893 | ||
894 | end | |
895 | end) | |
896 | ||
897 | ||
898 | ||
899 | ||
900 | ||
901 | ||
902 | m.KeyDown:connect(function(key) | |
903 | if key == "n" then | |
904 | ||
905 | if falling == true then | |
906 | falling = false | |
907 | if jumping2 == true then | |
908 | jumping2 = false | |
909 | jump = false | |
910 | BV = Instance.new("BodyVelocity", torso) | |
911 | BV.maxForce = Vector3.new(0,-20000,0) | |
912 | BV.P = -1000 | |
913 | BV.velocity = Vector3.new(0,-70,0) | |
914 | wait(0.6) | |
915 | local rng = Instance.new("Part", char) | |
916 | rng.Anchored = true | |
917 | rng.BrickColor = BrickColor.new("Institutional white") | |
918 | rng.CanCollide = false | |
919 | rng.FormFactor = 3 | |
920 | rng.Name = "Ring" | |
921 | rng.Size = Vector3.new(1, 1, 1) | |
922 | rng.Transparency = 0.35 | |
923 | rng.TopSurface = 0 | |
924 | rng.BottomSurface = 0 | |
925 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
926 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
927 | local rngm = Instance.new("SpecialMesh", rng) | |
928 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
929 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
930 | ||
931 | ||
932 | boom:Play() | |
933 | coroutine.wrap(function() | |
934 | for i = 1, 60, 2 do | |
935 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
936 | rng.Transparency = i/60 | |
937 | wait() | |
938 | end | |
939 | wait() | |
940 | rng:Destroy() | |
941 | ||
942 | ||
943 | ||
944 | ||
945 | for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then | |
946 | v:Destroy() wait(2) jumping2 = true hum.WalkSpeed = 16 | |
947 | end end | |
948 | wait() | |
949 | end)() | |
950 | ||
951 | ||
952 | ||
953 | end | |
954 | ||
955 | ||
956 | wait(.1) | |
957 | ||
958 | end | |
959 | end | |
960 | end) | |
961 | m.KeyDown:connect(function(k) | |
962 | if k == "f" then | |
963 | asd3:Stop() | |
964 | asd2:Stop() | |
965 | asd4:Stop() | |
966 | asd6:Stop() | |
967 | asd5:Stop() | |
968 | end | |
969 | end) | |
970 | ------------ | |
971 | -- ~CLarramore 2016 |