Eminic

one pinch edit

Nov 29th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.39 KB | None | 0 0
  1. wait(1)
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. local rp = RealPlayer
  8. script.Parent = rp.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  17. t.connect = t.Connect
  18. return t
  19. end
  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 then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local Mouse = Player:GetMouse()
  67. local UIS = game:GetService("UserInputService")
  68. local input = function(io,a)
  69. if a then return end
  70. --Since InputObject is a client-side instance, we create and pass table instead
  71. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75.  
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then return s[k] end
  95. end,
  96. __newindex = function(self,k,v)
  97. local s = rawget(self,"_RealService")
  98. if s then s[k]=v end
  99. end,
  100. __call = function(self,...)
  101. local s = rawget(self,"_RealService")
  102. if s then return s(...) end
  103. end
  104. }
  105. local function FakeService(t,RealService)
  106. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  107. return setmetatable(t,fsmt)
  108. end
  109.  
  110. --Fake game object
  111. local g = {
  112. GetService = function(self,s)
  113. return self[s]
  114. end,
  115. Players = FakeService({
  116. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  117. },"Players"),
  118. UserInputService = FakeService(UIS,"UserInputService"),
  119. ContextActionService = FakeService(CAS,"ContextActionService"),
  120. }
  121. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  122. g.service = g.GetService
  123.  
  124. g.RunService = FakeService({
  125. RenderStepped = _rg:GetService("RunService").Heartbeat,
  126. BindToRenderStep = function(self,name,_,fun)
  127. self._btrs[name] = self.Heartbeat:Connect(fun)
  128. end,
  129. UnbindFromRenderStep = function(self,name)
  130. self._btrs[name]:Disconnect()
  131. end,
  132. },"RunService")
  133.  
  134. setmetatable(g,{
  135. __index=function(self,s)
  136. return _rg:GetService(s) or typeof(_rg[s])=="function"
  137. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  138. end,
  139. __newindex = fsmt.__newindex,
  140. __call = fsmt.__call
  141. })
  142. --Changing owner to fake player object to support owner:GetMouse()
  143. game,owner = g,g.Players.LocalPlayer
  144. end
  145.  
  146. -- that's right get no scoped ^^
  147. p = game.Players.LocalPlayer
  148. char = p.Character
  149. des = false
  150. fling = true
  151. dot = false
  152. falling = false
  153. jump = true
  154. char.Shirt:Remove()
  155. for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  156. for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
  157. wait()shirt = Instance.new("Shirt", char)
  158. shirt.Name = "Shirt"
  159. pants = Instance.new("Pants", char)
  160. pants.Name = "Pants"
  161.  
  162. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=335466631"
  163. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=400416371"
  164. tp = true
  165. shoot = true
  166. hum = char.Humanoid
  167. punch = true
  168. neckp = char.Torso.Neck.C0
  169. neck = char.Torso.Neck
  170. hum.MaxHealth = math.huge
  171. wait()
  172. hum.Health =hum.MaxHealth
  173. des = false
  174. root=char.HumanoidRootPart
  175. torso = char.Torso
  176. char.Head.face.Texture = "rbxassetid://332768867"
  177. local ChatService = game:GetService("Chat")
  178. local player = game.Players.LocalPlayer
  179. lig = Instance.new("PointLight",player.Character.Torso)
  180. lig.Color=Color3.new(255,0,0)
  181. m=player:GetMouse()
  182. bb = Instance.new("BillboardGui",player.Character.Head)
  183. bb.Enabled = true
  184. function newRay(start,face,range,wat)
  185. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  186. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  187. return rey,hit,pos
  188. end
  189. aa1={}
  190. torso=game.Players.LocalPlayer.Character.Torso
  191.  
  192. local WorldUp = Vector3.new(0,1,0)
  193. function look2(Vec1,Vec2)
  194. local Orig = Vec1
  195. Vec1 = Vec1+Vector3.new(0,1,0)
  196. Vec2 = Vec2+Vector3.new(0,1,0)
  197. local Forward = (Vec2-Vec1).unit
  198. local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
  199. local Right = Up:Cross(Forward).unit
  200. Forward = -Forward
  201. Right = -Right
  202. 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)
  203. end
  204.  
  205. function look(CFr,Vec2)
  206. local A = Vector3.new(0,0,0)
  207. local B = CFr:inverse()*Vec2
  208. local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
  209. if B.Z > 0 then
  210. CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
  211. elseif B.Z == 0 then
  212. if B.Y > 0 then
  213. CF = CFr*CFrame.Angles(math.pi/2,0,0)
  214. elseif B.Y < 0 then
  215. CF = CFr*CFrame.Angles(-math.pi/2,0,0)
  216. else
  217. CF = CFr
  218. end
  219. end
  220. local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
  221. local Up = Vector3.new(X,Y,Z)
  222. local Forward = (Vec2-CFr.p).unit
  223. local Right = Up:Cross(Forward)
  224. Forward = -Forward
  225. Right = -Right
  226. 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)
  227. end
  228.  
  229. function simulate(j,d,m,r,t)
  230. local joint = j
  231. for i,v in ipairs(t) do
  232. if v[1]:FindFirstChild("Weld") then
  233. local stiff = m.CFrame.lookVector*0.03
  234. if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
  235. local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
  236. local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
  237. local pos = joint.p+(dir*(d*0.5))
  238. --if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
  239. local inv = v[1].Weld.Part0.CFrame
  240. local rel1 = inv:inverse()*pos
  241. local rel2 = inv:inverse()*(pos-(dir*dis))
  242. local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
  243. v[1].Weld.C0 = cf
  244. v[2] = inv*cf
  245. --v[1].CFrame = cf
  246. end
  247. end
  248. end
  249.  
  250. game:service"RunService".Stepped:connect(function()
  251. simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
  252. end)
  253. bb.AlwaysOnTop = true
  254. bb.Size = UDim2.new(0,200,0,50)
  255. bb.StudsOffset = Vector3.new(0,1,0)
  256. gui=Instance.new("TextBox",bb)
  257. gui.Text = "* "
  258. gui.Size = UDim2.new(0,133,0,45)
  259. gui.Position=UDim2.new(0,57,0,-40)
  260. gui.TextColor3 = Color3.new(255,255,255)
  261. gui.BackgroundColor3=Color3.new(0,0,0)
  262. gui.TextWrapped = true
  263. gui.TextScaled = true
  264. gui.TextXAlignment = "Left"
  265. gui.TextYAlignment = "Top"
  266. gui.Visible = false
  267. gui.BorderColor3 = Color3.new(0,0,0)
  268. punch2 = true
  269. gui1=Instance.new("TextButton",bb)
  270. gui1.Position=UDim2.new(0,5,0,-43)
  271. gui1.Size = UDim2.new(0,190,0,51)
  272.  
  273. gui1.TextColor3 = Color3.new(255,255,255)
  274. gui1.BackgroundColor3=Color3.new(255,255,255)
  275. jump2 = true
  276. gui1.Visible = false
  277. img = Instance.new("ImageLabel",bb)
  278. img.Size = UDim2.new(0,46,0,47)
  279. img.Position = UDim2.new(0,10,0,-41)
  280. img.Image = "rbxassetid://447301252"
  281. img.BorderColor3 = Color3.new(0,0,0)
  282. img.Visible = false
  283. soka = Instance.new("Sound",char)
  284. soka.SoundId = "http://www.roblox.com/asset/?id = 447199232"
  285. soka.Volume = 1
  286. boom = Instance.new("Sound",char)
  287. boom.SoundId = "http://www.roblox.com/asset/?id = 447041606"
  288. boom.Volume = 1
  289. boom2 = Instance.new("Sound",char)
  290. boom2.SoundId = "http://www.roblox.com/asset/?id = 449025737"
  291. boom2.Volume = 1
  292. boom3 = Instance.new("Sound",char)
  293. boom3.SoundId = "http://www.roblox.com/asset/?id = 450719019"
  294. boom3.Volume = 1
  295. tps = Instance.new("Sound",char)
  296. tps.SoundId = "http://www.roblox.com/asset/?id = 449860746"
  297. tps.Volume = 1
  298. asd = Instance.new("Sound",char)
  299. asd.SoundId = "http://www.roblox.com/asset/?id = 447310433"
  300. asd.Volume =1
  301. asd1 = Instance.new("Sound",char)
  302. asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695"
  303.  
  304. asd2 = Instance.new("Sound",char)
  305. asd2.SoundId = "http://www.roblox.com/asset/?id = 386713054"
  306. asd2.Looped = true
  307. asd2.Volume = 5
  308. asd3 = Instance.new("Sound",char)
  309. asd3.SoundId = "http://www.roblox.com/asset/?id = 339250412"
  310. asd3.Looped = true
  311. asd4 = Instance.new("Sound",char)
  312. asd4.SoundId = "http://www.roblox.com/asset/?id = 401258325"
  313. asd4.Looped = true
  314. asd5 = Instance.new("Sound",char)
  315. asd5.SoundId = "http://www.roblox.com/asset/?id = 362252261"
  316. asd5.Looped = true
  317. gas = Instance.new("Sound",char)
  318. gas.SoundId = "http://www.roblox.com/asset/?id = 345052019"
  319. asd6 = Instance.new("Sound",char)
  320. asd6.SoundId = "http://www.roblox.com/asset/?id = 401258325"
  321. asd6.Looped = true
  322. function play(play)
  323. asd:Play()
  324. wait(0.05)
  325. --asd1:Play()
  326. end
  327.  
  328.  
  329.  
  330. ------------
  331. -------------------------
  332.  
  333. function stream(origin,dir,length,size)
  334. local parts = {}
  335. for i = 1,length do
  336. local p = Instance.new("Part",char)
  337. p.Anchored = true
  338. p.Transparency = 0.5
  339. p.TopSurface = 0
  340. p.BottomSurface = 0
  341. p.CanCollide = false
  342. p.BrickColor = BrickColor.new("Institutional white")
  343. p.Size = Vector3.new(10,30,10) -- for now
  344. p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  345. parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
  346. game:GetService("Debris"):AddItem(p,3)
  347. end
  348. Spawn(function()
  349. while parts do
  350. for i,v in pairs(parts) do
  351. if v[1].Parent == char then
  352. v[1].CFrame = v[1].CFrame*v[2]
  353. else
  354. parts = nil
  355. break
  356. end
  357. end
  358. wait(0.02)
  359. end
  360. end)
  361. end
  362.  
  363. --[[-- listen for their chatting
  364. player.Chatted:connect(function(message)
  365. a = string.len(message)
  366. gui.Text = ""
  367. gui.Visible = true
  368. gui1.Visible = true
  369. des = false
  370. img.Visible = true
  371. print(a)
  372. if dot == false then
  373. gui.Text = ""
  374. for i = 1,string.len(message) do
  375. gui.Text =gui.Text..message:sub(i,i)
  376. play()
  377.  
  378. end
  379. end
  380.  
  381.  
  382. des = true
  383. end)]]--
  384. m.KeyDown:connect(function(k)
  385. if k == "g" then
  386. asd2:Play()
  387.  
  388.  
  389. end
  390. end)
  391.  
  392. m.KeyDown:connect(function(k)
  393. if k == "r" then
  394.  
  395. asd4:Play()
  396. end
  397. end)
  398. m.KeyDown:connect(function(k)
  399. if k == "q" then
  400.  
  401. asd3:Play()
  402. end
  403. end)
  404. m.KeyDown:connect(function(k)
  405. if k == "z" then
  406. img.Image = "rbxassetid://332766052"
  407.  
  408. end
  409. end)
  410. m.KeyDown:connect(function(k)
  411. if k == "c" then
  412. img.Image = "rbxassetid://447301252"
  413.  
  414. end
  415. end)
  416. m.KeyDown:connect(function(k)
  417. if k == "b" then
  418.  
  419. asd6:Play()
  420. end
  421. end)
  422. mouse = p:GetMouse()
  423. m.KeyDown:connect(function(k)
  424. if k:byte() == 48 then
  425.  
  426. hum.WalkSpeed = 100
  427. end
  428. end)
  429. m.KeyDown:connect(function(k)
  430. if k:byte() == 50 then
  431.  
  432. soka:Play()
  433. end
  434. end)
  435. m.KeyDown:connect(function(k)
  436. if k:byte() == 52 then
  437.  
  438. char.Head.face.Texture = "rbxassetid://444037452"
  439. end
  440. end)
  441. m.KeyDown:connect(function(k)
  442. if k:byte() == 51 then
  443.  
  444. char.Head.face.Texture = "rbxassetid://332768867"
  445. end
  446. end)
  447. m.KeyUp:connect(function(k)
  448. if k:byte() == 48 then
  449.  
  450. hum.WalkSpeed = 50
  451. end
  452. end)
  453. p.Chatted:connect(function(m)
  454. if m == "Okay." then
  455. soka:Play()
  456. end
  457. end)
  458. m.KeyDown:connect(function(k)
  459. if k == "x" then
  460. if des == true then
  461. gui.Visible = false
  462. gui.Text = "* "
  463. gui1.Visible = false
  464. img.Visible = false
  465. end
  466. end
  467. end)
  468. m.KeyDown:connect(function(key)
  469. if key == "j" then
  470. if tp == true then
  471. tp = false
  472. tps:Play()
  473. char.Head.face.Parent = game.Lighting
  474. for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1
  475. end
  476.  
  477. end
  478. wait(0.5)
  479. for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0
  480. end
  481.  
  482. end
  483. char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0)
  484. char.HumanoidRootPart.Transparency = 1
  485. game.Lighting.face.Parent = char.Head
  486. wait(0.2)
  487.  
  488. tp = true
  489.  
  490.  
  491. end
  492. end
  493. end)
  494.  
  495.  
  496. m.KeyDown:connect(function(key)
  497. if key == "t" then
  498. if punch2 == true then
  499. punch2 = false
  500. punch = false
  501.  
  502. local ChatService = game:GetService("Chat")
  503.  
  504. neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0)
  505. ChatService:Chat(char.Head, "Mind if I get Serious?")
  506. wait(1)
  507. local ChatService = game:GetService("Chat")
  508.  
  509.  
  510. ChatService:Chat(char.Head ,"Killer Move: Serious Series...")
  511. wait(1)
  512. local ChatService = game:GetService("Chat")
  513.  
  514.  
  515. ChatService:Chat(char.Head, "SERIOUS PUNCH.")
  516. neck.C0 = neckp
  517. wait(0.6)
  518. org = char.Torso["Left Shoulder"].C0
  519. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
  520. wait()
  521. killbrick2 = Instance.new("Part",char)
  522. killbrick2.Size = Vector3.new(300,160,5800)
  523. killbrick2.Transparency = 1
  524.  
  525. killbrick2.CanCollide = true
  526. wait(0.1)
  527. killbrick2.CanCollide = false
  528.  
  529. killbrick2.Anchored = true
  530.  
  531. killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005)
  532.  
  533. killbrick2.Touched:connect(function(h)
  534. local x = h.Parent:FindFirstChild("Humanoid")
  535. if x then
  536. if x.Parent.Name == game.Players.LocalPlayer.Name then
  537. safe = true
  538. else safe = false
  539. end
  540. if x then
  541. if safe == false then
  542. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
  543. local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
  544. boom:Play()
  545. bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
  546.  
  547.  
  548. wait(0.2)
  549. x.Parent:BreakJoints()
  550. wait()
  551. safe = true
  552. end
  553. end
  554. end
  555. end)
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564. local rng = Instance.new("Part", char)
  565. rng.Anchored = true
  566. rng.BrickColor = BrickColor.new("Institutional white")
  567. rng.CanCollide = false
  568. rng.FormFactor = 3
  569. rng.Name = "Ring"
  570. rng.Size = Vector3.new(1, 1, 1)
  571. rng.Transparency = 0.8
  572. rng.TopSurface = 0
  573. rng.BottomSurface = 0
  574. rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
  575. --rng.Rotation = Vector3.new(math.pi/2,0,0)
  576. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  577. local rngm = Instance.new("SpecialMesh", rng)
  578. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  579. rngm.Scale = Vector3.new(1, 1.3, 2)
  580. local rng1 = Instance.new("Part", char)
  581. rng1.Anchored = true
  582. rng1.BrickColor = BrickColor.new("Institutional white")
  583. rng1.CanCollide = false
  584. rng1.FormFactor = 3
  585. rng1.Name = "Ring"
  586. rng1.Size = Vector3.new(1, 1, 1)
  587. rng1.Transparency = 0.8
  588. rng1.TopSurface = 0
  589. rng1.BottomSurface = 0
  590. rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
  591. --rng1.Rotation = Vector3.new(math.pi/2,0,0)
  592. rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  593. local rngm1 = Instance.new("SpecialMesh", rng1)
  594. rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
  595. rngm1.Scale = Vector3.new(1, 1.3, 2)
  596.  
  597. local p = (torso.CFrame*CFrame.new(-20,0,3))
  598. 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
  599. local p = (torso.CFrame*CFrame.new(20,0,3))
  600. stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here
  601.  
  602. local rng2 = Instance.new("Part", char)
  603. rng2.Anchored = true
  604. rng2.BrickColor = BrickColor.new("Institutional white")
  605. rng2.CanCollide = false
  606. rng2.FormFactor = 3
  607. rng2.Name = "Ring"
  608. rng2.Size = Vector3.new(1, 1, 1)
  609. rng2.Transparency = 0.8
  610. rng2.TopSurface = 0
  611. rng2.BottomSurface = 0
  612. rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
  613. --rng1.Rotation = Vector3.new(math.pi/2,0,0)
  614. rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  615. local rngm2 = Instance.new("SpecialMesh", rng2)
  616. rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  617. rngm2.Scale = Vector3.new(1, 1.3, 2)
  618. wait(0.1)
  619.  
  620. boom3:Play()
  621. coroutine.wrap(function()
  622. for i = 1, 35, 0.5 do
  623.  
  624.  
  625.  
  626.  
  627.  
  628. rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4)
  629. rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4)
  630. rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4)
  631.  
  632. wait()
  633. end
  634. wait()
  635. rng:Destroy()
  636. rng1:Destroy()
  637. rng2:Destroy()
  638. killbrick2:Remove()
  639. wait(0.5)
  640. char.Torso["Left Shoulder"].C0 = org
  641. wait(1)
  642. punch2 = true
  643. punch = true
  644. wait()
  645.  
  646.  
  647. end)()
  648.  
  649.  
  650.  
  651. end
  652.  
  653.  
  654. wait(.1)
  655.  
  656.  
  657. end
  658. end)
  659.  
  660.  
  661.  
  662.  
  663.  
  664. m.KeyDown:connect(function(key)
  665. if key == "k" then
  666. if punch == true then
  667. punch = false
  668.  
  669. local ChatService = game:GetService("Chat")
  670.  
  671.  
  672. ChatService:Chat(char.Head ,"Normal Punch")
  673. wait(1)
  674. org = char.Torso["Left Shoulder"].C0
  675. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
  676. killbrick = Instance.new("Part",char)
  677. killbrick.Size = Vector3.new(5,1,5)
  678. killbrick.Transparency = 1
  679. killbrick:BreakJoints()
  680. killbrick.CanCollide = false
  681. local wel = Instance.new("Weld",killbrick)
  682. wel.Part0 = killbrick
  683. wel.Part1 = char["Left Arm"]
  684. wel.C0 = CFrame.new(0,1,0)
  685. force = 90
  686.  
  687. killbrick.Touched:connect(function(h)
  688. local x = h.Parent.Humanoid
  689. if x.Health >= 6000 then
  690. fling = false
  691. end
  692. if x.Health < 6000 then
  693. fling = true
  694. end
  695. local stop = h.Parent.Torso.Velocity
  696. if x.Parent.Name == game.Players.LocalPlayer.Name then
  697. safe = true
  698. else safe = false
  699. end
  700. if x then
  701. if safe == false then
  702. if fling == true then
  703. force = 900
  704.  
  705. end
  706. if fling == false then
  707. force = 200
  708. end
  709.  
  710.  
  711. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * force
  712. local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
  713. boom:Play()
  714. bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
  715.  
  716.  
  717. wait(0.2)
  718. x:TakeDamage(500)
  719. wait()
  720. safe = true
  721. bodyforc:Remove()
  722. h.Parent.Torso.Velocity = stop
  723.  
  724. end
  725. end
  726. end)
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737. local rng = Instance.new("Part", char)
  738. rng.Anchored = true
  739. rng.BrickColor = BrickColor.new("Institutional white")
  740. rng.CanCollide = false
  741. rng.FormFactor = 3
  742. rng.Name = "Ring"
  743. rng.Size = Vector3.new(1, 1, 1)
  744. rng.Transparency = 0.8
  745. rng.TopSurface = 0
  746. rng.BottomSurface = 0
  747. rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
  748. --rng.Rotation = Vector3.new(math.pi/2,0,0)
  749. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  750. local rngm = Instance.new("SpecialMesh", rng)
  751. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  752. rngm.Scale = Vector3.new(1, 1.3, 2)
  753. wait(0.1)
  754.  
  755. boom2:Play()
  756. coroutine.wrap(function()
  757. for i = 1, 10, .4 do
  758. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  759.  
  760. wait()
  761. end
  762. wait()
  763. rng:Destroy()
  764. killbrick:Remove()
  765. wait(0.5)
  766. char.Torso["Left Shoulder"].C0 = org
  767. wait(1)
  768.  
  769. punch = true
  770. wait()
  771. end)()
  772.  
  773.  
  774.  
  775. end
  776.  
  777.  
  778. wait(.1)
  779.  
  780.  
  781. end
  782. end)
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797. m.KeyDown:connect(function(key)
  798. if key == "m" then
  799. if jump == true then
  800. jump = false
  801.  
  802.  
  803. local rng = Instance.new("Part", char)
  804. rng.Anchored = true
  805. rng.BrickColor = BrickColor.new("Institutional white")
  806. rng.CanCollide = false
  807. rng.FormFactor = 3
  808. rng.Name = "Ring"
  809. rng.Size = Vector3.new(1, 1, 1)
  810. rng.Transparency = 0.35
  811. rng.TopSurface = 0
  812. rng.BottomSurface = 0
  813. rng.Position = torso.Position - Vector3.new(0,2,0)
  814. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  815. local rngm = Instance.new("SpecialMesh", rng)
  816. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  817. rngm.Scale = Vector3.new(1, 1.3, 2)
  818. wait(0.1)
  819. BV = Instance.new("BodyVelocity", torso)
  820. BV.maxForce = Vector3.new(0,20000,0)
  821. BV.P = 1000
  822. BV.velocity = Vector3.new(0,100,0)
  823. boom:Play()
  824. coroutine.wrap(function()
  825. for i = 1, 60, 2 do
  826. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  827. rng.Transparency = i/60
  828. wait()
  829. end
  830. wait()
  831. rng:Destroy()
  832.  
  833. hum.WalkSpeed = 50
  834. wait(1)
  835.  
  836. for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then
  837. v:Destroy() jumping2 = true falling = true wait(0.3) jumping2 = false falling = false wait(1.7) jump = true hum.WalkSpeed = 16 falling = false
  838. end end
  839. wait()
  840. end)()
  841.  
  842.  
  843.  
  844. end
  845.  
  846.  
  847. wait(.1)
  848.  
  849.  
  850. end
  851. end)
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858. m.KeyDown:connect(function(key)
  859. if key == "n" then
  860.  
  861. if falling == true then
  862. falling = false
  863. if jumping2 == true then
  864. jumping2 = false
  865. jump = false
  866. BV = Instance.new("BodyVelocity", torso)
  867. BV.maxForce = Vector3.new(0,-20000,0)
  868. BV.P = -1000
  869. BV.velocity = Vector3.new(0,-70,0)
  870. wait(0.6)
  871. local rng = Instance.new("Part", char)
  872. rng.Anchored = true
  873. rng.BrickColor = BrickColor.new("Institutional white")
  874. rng.CanCollide = false
  875. rng.FormFactor = 3
  876. rng.Name = "Ring"
  877. rng.Size = Vector3.new(1, 1, 1)
  878. rng.Transparency = 0.35
  879. rng.TopSurface = 0
  880. rng.BottomSurface = 0
  881. rng.Position = torso.Position - Vector3.new(0,2,0)
  882. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  883. local rngm = Instance.new("SpecialMesh", rng)
  884. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  885. rngm.Scale = Vector3.new(1, 1.3, 2)
  886.  
  887.  
  888. boom:Play()
  889. coroutine.wrap(function()
  890. for i = 1, 60, 2 do
  891. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  892. rng.Transparency = i/60
  893. wait()
  894. end
  895. wait()
  896. rng:Destroy()
  897.  
  898.  
  899.  
  900.  
  901. for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then
  902. v:Destroy() wait(2) jumping2 = true hum.WalkSpeed = 16
  903. end end
  904. wait()
  905. end)()
  906.  
  907.  
  908.  
  909. end
  910.  
  911.  
  912. wait(.1)
  913.  
  914. end
  915. end
  916. end)
  917. m.KeyDown:connect(function(k)
  918. if k == "f" then
  919. asd3:Stop()
  920. asd2:Stop()
  921. asd4:Stop()
  922. asd6:Stop()
  923. asd5:Stop()
  924. end
  925. end)
  926. ------------
  927.  
  928. local verlet = {}
  929. verlet.step_time = 1 / 50
  930. verlet.gravity = Vector3.new(0, -10, 0)
  931.  
  932. local char = game.Players.LocalPlayer.Character
  933. local torso = char:WaitForChild("Torso")
  934. local parts = {}
  935. local render = game:GetService("RunService").RenderStepped
  936.  
  937. wait(2)
  938.  
  939. local point = {}
  940. local link = {}
  941. local rope = {}
  942.  
  943. local function ccw(A,B,C)
  944. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  945. end
  946.  
  947. local function intersect(A,B,C,D)
  948. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  949. end
  950.  
  951. local function vec2(v)
  952. return Vector2.new(v.x, v.z)
  953. end
  954.  
  955. function point:step()
  956. if not self.fixed then
  957. local derivative = (self.position - self.last_position) * 0.95
  958. self.last_position = self.position
  959. self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
  960. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  961. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  962. local pointE = self.position + torso.CFrame.lookVector * 100
  963. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  964. if not doIntersect then
  965. self.postition = self.position - torso.CFrame.lookVector * 10
  966. end]]
  967. end
  968. end
  969.  
  970. function link:step()
  971. for i = 1, 1 do
  972. local distance = self.point1.position - self.point2.position
  973. local magnitude = distance.magnitude
  974. local differance = (self.length - magnitude) / magnitude
  975. local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
  976. if not self.point1.fixed then
  977. self.point1.position = self.point1.position + translation
  978. end
  979. if not self.point2.fixed then
  980. self.point2.position = self.point2.position - translation
  981. end
  982. end
  983. end
  984.  
  985. function verlet.new(class, a, b, c)
  986. if class == "Point" then
  987. local new = {}
  988. setmetatable(new, {__index = point})
  989. new.class = class
  990. new.position = a or Vector3.new()
  991. new.last_position = new.position
  992. new.velocity = verlet.gravity
  993. new.fixed = false
  994. return new
  995. elseif class == "Link" then
  996. local new = {}
  997. setmetatable(new, {__index = link})
  998. new.class = class
  999. new.point1 = a
  1000. new.point2 = b
  1001. new.length = c or (a.position - b.position).magnitude
  1002. return new
  1003. elseif class == "Rope" then
  1004. local new = {}
  1005. setmetatable(new, {__index = link})
  1006. new.class = class
  1007. new.start_point = a
  1008. new.finish_point = b
  1009. new.points = {}
  1010. new.links = {}
  1011. local inc = (b - a) / 10
  1012. for i = 0, 10 do
  1013. table.insert(new.points, verlet.new("Point", a + (i * inc)))
  1014. end
  1015. for i = 2, #new.points do
  1016. table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
  1017. end
  1018. return new
  1019. end
  1020. end
  1021.  
  1022. local tris = {}
  1023. local triParts = {}
  1024.  
  1025. local function GetDiscoColor(hue)
  1026. local section = hue % 1 * 3
  1027. local secondary = 0.5 * math.pi * (section % 1)
  1028. if section < 1 then
  1029. return Color3.new(255, 255, 255)
  1030. elseif section < 2 then
  1031. return Color3.new(255, 255, 255)
  1032. else
  1033. return Color3.new(255, 255, 255)
  1034. end
  1035. end
  1036.  
  1037. local function setupPart(part)
  1038. part.Anchored = true
  1039. part.FormFactor = 3
  1040. part.CanCollide = false
  1041. part.TopSurface = 10
  1042. part.BottomSurface = 10
  1043. part.LeftSurface = 10
  1044. part.RightSurface = 10
  1045. part.FrontSurface = 10
  1046. part.BackSurface = 10
  1047. part.Material = "Plastic"
  1048. local m = Instance.new("SpecialMesh", part)
  1049. m.MeshType = "Wedge"
  1050. m.Scale = Vector3.new(0.2, 1, 1)
  1051. return part
  1052. end
  1053.  
  1054. local function CFrameFromTopBack(at, top, back)
  1055. local right = top:Cross(back)
  1056. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1057. end
  1058.  
  1059. local function drawTri(parent, a, b, c)
  1060. local this = {}
  1061. local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  1062. local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  1063. function this:Set(a, b, c)
  1064. local ab, bc, ca = b-a, c-b, a-c
  1065. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  1066. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  1067. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  1068. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  1069. if edg1 < edg2 then
  1070. if edg1 >= edg3 then
  1071. a, b, c = c, a, b
  1072. ab, bc, ca = ca, ab, bc
  1073. abm = cam
  1074. end
  1075. else
  1076. if edg2 < edg3 then
  1077. a, b, c = b, c, a
  1078. ab, bc, ca = bc, ca, ab
  1079. abm = bcm
  1080. else
  1081. a, b, c = c, a, b
  1082. ab, bc, ca = ca, ab, bc
  1083. abm = cam
  1084. end
  1085. end
  1086.  
  1087. local len1 = -ca:Dot(ab)/abm
  1088. local len2 = abm - len1
  1089. local width = (ca + ab.unit*len1).magnitude
  1090.  
  1091. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  1092.  
  1093. if len1 > 0.2 then
  1094. mPart1.Parent = parent
  1095. mPart1.Size = Vector3.new(0.2, width, len1)
  1096. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1097. else
  1098. mPart1.Parent = nil
  1099. end
  1100.  
  1101. if len2 > 0.2 then
  1102. mPart2.Parent = parent
  1103. mPart2.Size = Vector3.new(0.2, width, len2)
  1104. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1105. else
  1106. mPart2.Parent = nil
  1107. end
  1108. end
  1109. function this:SetProperty(prop, value)
  1110. mPart1[prop] = value
  1111. mPart2[prop] = value
  1112. end
  1113. this:Set(a, b, c)
  1114. function this:Destroy()
  1115. mPart1:Destroy()
  1116. mPart2:Destroy()
  1117. end
  1118. this.p1 = mPart1
  1119. this.p2 = mPart2
  1120. this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
  1121. this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
  1122. return this
  1123. end
  1124.  
  1125. function verlet.draw(object, id)
  1126. if object.class == "Point" then
  1127. local part = parts[id]
  1128. part.BrickColor = BrickColor.new(255, 0, 0)
  1129. part.Transparency = 0
  1130. part.formFactor = 3
  1131. part.Anchored = true
  1132. part.CanCollide = false
  1133. part.TopSurface = 0
  1134. part.BottomSurface = 0
  1135. part.Size = Vector3.new(0.35, 0.35, 0.35)
  1136. part.Material = "Plastic"
  1137. part.CFrame = CFrame.new(object.position)
  1138. part.Parent = torso
  1139. return part
  1140. elseif object.class == "Link" then
  1141. local part = parts[id]
  1142. local dist = (object.point1.position - object.point2.position).magnitude
  1143. part.Size = Vector3.new(0.2, 0.2, dist)
  1144. part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
  1145. part.Parent = torso
  1146. return part
  1147. end
  1148. end
  1149.  
  1150. function verlet.clear()
  1151. for _, v in pairs(workspace:GetChildren()) do
  1152. if v.Name == "Part" then
  1153. v:Destroy()
  1154. end
  1155. end
  1156. end
  1157.  
  1158. local points = {}
  1159. local links = {}
  1160.  
  1161. for x = 0, 2 do
  1162. points[x] = {}
  1163. for y = 0, 3 do
  1164. points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
  1165. points[x][y].fixed = y == 0
  1166. end
  1167. end
  1168.  
  1169. for x = 1, 2 do
  1170. for y = 0, 3 do
  1171. links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
  1172. end
  1173. end
  1174.  
  1175. for x = 0, 2 do
  1176. for y = 1, 3 do
  1177. links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
  1178. end
  1179. end
  1180.  
  1181. render:connect(function()
  1182. for x = 0, 2 do
  1183. for y = 0, 3 do
  1184. if y == 0 then
  1185. points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
  1186. else
  1187. points[x][y]:step()
  1188. end
  1189. end
  1190. end
  1191. for i = 1, #links do
  1192. links[i]:step()
  1193. end
  1194. for i = 1, #tris do
  1195. triParts[#triParts + 1] = tris[i].p1
  1196. triParts[#triParts + 1] = tris[i].p2
  1197. end
  1198. tris = {}
  1199. for x = 1, 2 do
  1200. for y = 1, 3 do
  1201. tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
  1202. tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
  1203. end
  1204. end
  1205. end)
  1206.  
  1207. --/ edited by the cancerous rocky2u
  1208.  
  1209. local plr = game.Players.LocalPlayer
  1210. local chr = plr.Character
  1211. local mouse = plr:GetMouse()
  1212.  
  1213. _G.hotkey = 'e'
  1214.  
  1215. mouse.KeyDown:connect(function(key)
  1216. if key == _G.hotkey then
  1217. local chr = game.Players.LocalPlayer.Character
  1218. stopAnimations()
  1219. chr.Animate.Disabled = true
  1220. chr.Torso["Left Shoulder"].C1 = CFrame.new(0, 0.699999988, 0, 0.939692616, 0, -0.342020124, -0.330366075, -0.258819044, -0.907673359, -0.0885213241, 0.965925813, -0.243210346)
  1221. chr.Torso["Right Shoulder"].C1 = CFrame.new(-0.600000024, 0.5, -0.200000003, 0.664462984, 0.241844743, 0.707106769, -0.664462984, -0.241844788, 0.707106769, 0.342020154, -0.939692616, -3.09086197e-008)
  1222. chr.Torso["Neck"].C1 = CFrame.new(0, -0.600000024, 0, -0.866025388, 0.5, 0, -0.171010137, -0.29619807, 0.939692616, 0.469846278, 0.813797653, 0.342020124)
  1223. end
  1224. end)
  1225.  
  1226. mouse.KeyUp:connect(function(key)
  1227. if key == _G.hotkey then
  1228. local chr = game.Players.LocalPlayer.Character
  1229. chr.Animate.Disabled = false
  1230. chr.Torso["Left Shoulder"].C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1231. chr.Torso["Right Shoulder"].C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1232. chr.Torso["Neck"].C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1233. end
  1234. end)
  1235.  
  1236. function stopAnimations()
  1237. for _,v in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
  1238. v:Stop()
  1239. end
  1240. end
Add Comment
Please, Sign In to add comment