Advertisement
meninodapacocaII

Untitled

Feb 28th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has convert to FE by who i don't know?
  2.  
  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,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147. local p = game.Players.LocalPlayer
  148. local char = p.Character
  149. local mouse = p:GetMouse()
  150. local larm = char["Left Arm"]
  151. local rarm = char["Right Arm"]
  152. local lleg = char["Left Leg"]
  153. local rleg = char["Right Leg"]
  154. local hed = char.Head
  155. local torso = char.Torso
  156. local hum = char.Humanoid
  157. local cam = game.Workspace.CurrentCamera
  158. local root = char.HumanoidRootPart
  159. local deb = false
  160. local shot = 0
  161. NoAnims = false
  162. local debris=game:service"Debris"
  163. local l = game:GetService("Lighting")
  164. local rs = game:GetService("RunService").RenderStepped
  165. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  166. math.randomseed(os.time())
  167. for i,v in pairs (hed:GetChildren()) do
  168. if v:IsA("Sound") then
  169. v:Destroy()
  170. end
  171. end
  172. ----------------------------------------------------
  173. local Touche = {char.Name, }
  174. ----------------------------------------------------
  175.  
  176. hum.MaxHealth = 150
  177.  
  178. ----------------------------------------------------
  179. function lerp(a, b, t) -- Linear interpolation
  180. return a + (b - a)*t
  181. end
  182.  
  183. function slerp(a, b, t) --Spherical interpolation
  184. dot = a:Dot(b)
  185. if dot > 0.99999 or dot < -0.99999 then
  186. return t <= 0.5 and a or b
  187. else
  188. r = math.acos(dot)
  189. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  190. end
  191. end
  192.  
  193. function matrixInterpolate(a, b, t)
  194. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  195. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  196. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  197. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  198. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  199. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  200. local t = v1:Dot(v2)
  201. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  202. return CFrame.new()
  203. end
  204. return CFrame.new(
  205. v0.x, v0.y, v0.z,
  206. v1.x, v1.y, v1.z,
  207. v2.x, v2.y, v2.z,
  208. v3.x, v3.y, v3.z)
  209. end
  210. ----------------------------------------------------
  211. function genWeld(a,b)
  212. local w = Instance.new("Weld",a)
  213. w.Part0 = a
  214. w.Part1 = b
  215. return w
  216. end
  217. function weld(a, b)
  218. local weld = Instance.new("Weld")
  219. weld.Name = "W"
  220. weld.Part0 = a
  221. weld.Part1 = b
  222. weld.C0 = a.CFrame:inverse() * b.CFrame
  223. weld.Parent = a
  224. return weld;
  225. end
  226. ----------------------------------------------------
  227. function Lerp(c1,c2,al)
  228. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  229. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  230. for i,v in pairs(com1) do
  231. com1[i] = v+(com2[i]-v)*al
  232. end
  233. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  234. end
  235. ----------------------------------------------------
  236. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  237. local wld = Instance.new("Weld", wp1)
  238. wld.Part0 = wp0
  239. wld.Part1 = wp1
  240. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  241. end
  242. ----------------------------------------------------
  243. function weld5(part0, part1, c0, c1)
  244. weeld=Instance.new("Weld", part0)
  245. weeld.Part0=part0
  246. weeld.Part1=part1
  247. weeld.C0=c0
  248. weeld.C1=c1
  249. return weeld
  250. end
  251. ----------------------------------------------------
  252. function HasntTouched(plrname)
  253. local ret = true
  254. for _, v in pairs(Touche) do
  255. if v == plrname then
  256. ret = false
  257. end
  258. end
  259. return ret
  260. end
  261. ----------------------------------------------------
  262. gavehp = false
  263.  
  264. local ends = {"alive","rip"}
  265. result = ""
  266.  
  267. local g = Instance.new("Part",larm)
  268. g.Material = "Neon"
  269. g.CanCollide = false
  270. g.Size = Vector3.new(1,1,1)
  271. local gm = Instance.new("SpecialMesh",g)
  272. gm.MeshId = "rbxassetid://483388971"
  273. gm.TextureId = "rbxassetid://520016684"
  274. gm.Scale = Vector3.new(0.005,0.005,0.005)
  275.  
  276. local cor = Instance.new("Weld")
  277. cor.Part1 = g
  278. cor.Part0 = larm
  279. cor.Parent = char
  280. cor.C1 = CFrame.new(0.2,1.8,0)
  281.  
  282. ----------------------------------------------------
  283. newWeld(torso, larm, -1.5, 0.5, 0)
  284. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  285. newWeld(torso, rarm, 1.5, 0.5, 0)
  286. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  287. newWeld(torso, hed, 0, 1.5, 0)
  288. newWeld(torso, lleg, -0.5, -1, 0)
  289. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  290. newWeld(torso, rleg, 0.5, -1, 0)
  291. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  292. newWeld(root, torso, 0, -1, 0)
  293. torso.Weld.C1 = CFrame.new(0, -1, 0)
  294. ----------------------------------------------------
  295. attack = false
  296. local m = 0
  297. ----------------------------------------------------
  298. char.Health:Destroy()
  299. mouse.KeyDown:connect(function(key)
  300. if key == "e" then
  301. if attack == false then
  302. attack = true
  303. NoAnims = true
  304. hum.Health = 150
  305.  
  306. result = ends[math.random(1,#ends)]
  307.  
  308. local s = Instance.new("Sound",torso)
  309. s.SoundId = "rbxassetid://140923474"
  310. s.Volume = 1
  311. s.Pitch = 1
  312. s.Looped = true
  313. s:Play()
  314.  
  315. coroutine.wrap(function()
  316. s:Remove()
  317. end)()
  318. local s = Instance.new("Sound",torso)
  319. s.SoundId = "rbxassetid://212887982"
  320. s.Volume = 1
  321. s.Pitch = 1
  322. s:Play()
  323.  
  324. cor.Part0 = hed
  325. pcall(function()
  326. for i = 1, 20 do
  327.  
  328. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  329.  
  330. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(30)), 0.2)
  331.  
  332. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  333.  
  334. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
  335.  
  336. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  337.  
  338. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  339.  
  340. cor.C0 = Lerp(cor.C0, CFrame.new(0.6,0,0)*CFrame.Angles(math.rad(50),0,0),0.2)
  341. rs:wait()
  342.  
  343. end
  344. end)
  345.  
  346. local pgui = p.PlayerGui
  347.  
  348. local sc = Instance.new("ScreenGui",pgui)
  349. local w1 = Instance.new("TextLabel",sc)
  350. w1.Size = UDim2.new(1,0,1,0)
  351. w1.Text = "wo kalm dwn m8 u r gon gt rkt"
  352. w1.TextScaled = true
  353. w1.BackgroundColor3 = Color3.new(1,1,1)
  354. w1.BorderSizePixel = 0
  355.  
  356. coroutine.wrap(function()
  357. for i = 1, 20 do
  358. w1.BackgroundTransparency = i/10
  359. w1.TextTransparency = i/10
  360. end
  361. end)()
  362.  
  363. pcall(function()
  364. for i = 1, 100 do
  365. rs:wait()
  366. m = m + 0.004
  367. hum.Health = hum.Health-1
  368. cor.C0 = Lerp(cor.C0, CFrame.new(0.6,0+m/2,0-m/2)*CFrame.Angles(math.rad(50) + m,0,0),0.2)
  369.  
  370. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5+m,0-m/3.5)*CFrame.Angles(math.rad(120) + m,math.rad(0),math.rad(30)), 0.2)
  371.  
  372. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5+m,0+m/3.5)*CFrame.Angles(math.rad(0) - m,math.rad(0),math.rad(0) + m), 0.2)
  373.  
  374. end
  375. end)
  376.  
  377. if result == "rip" then
  378.  
  379. coroutine.wrap(function()
  380. wait(0.15)
  381. for i = 1, 60 do
  382. cor.Part0 = torso
  383. cor.C0 = Lerp(cor.C0,CFrame.new(9,-0.15,0)*CFrame.Angles(0,0,200),0.1)
  384. rs:wait()
  385. end
  386. end)()
  387.  
  388. s:Remove()
  389. hum.WalkSpeed = 0
  390. pcall(function()
  391. hum.JumpPower = 0
  392. end)
  393.  
  394. pcall(function()
  395. for i = 1, 20 do
  396.  
  397. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(30),math.rad(30)), 0.2)
  398.  
  399. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(-10),math.rad(-10)), 0.2)
  400.  
  401. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)), 0.2)
  402.  
  403. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.5, 0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)), 0.2)
  404.  
  405. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(-10),math.rad(-5)), 0.4)
  406.  
  407. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(20)), 0.4)
  408.  
  409. rs:wait()
  410. end
  411. end)
  412.  
  413. wait(3)
  414.  
  415. coroutine.wrap(function()
  416. while true do
  417. wait(0.07)
  418. pcall(function()
  419.  
  420. rarm.Weld.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.random(0,3),math.random(0,7),math.random(30,45))
  421.  
  422. larm.Weld.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.random(0,5),math.random(10,20),math.random(10,20))
  423.  
  424. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.random(20,30),math.random(0,4),math.random(0,3))
  425.  
  426. lleg.Weld.C0 = CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.random(0,5),math.random(10,15),math.random(5,10))
  427.  
  428. rleg.Weld.C0 = CFrame.new(0.5, -1, 0)*CFrame.Angles(math.random(0,4),math.random(20,30),math.random(20,30))
  429.  
  430. end)
  431. end
  432. end)()
  433.  
  434.  
  435. cor:Destroy()
  436.  
  437. g.Anchored = true
  438.  
  439. for i,v in pairs(char:GetChildren()) do
  440. if v:IsA("Part") then
  441. v.Anchored = true
  442. elseif v:IsA("Accoutrement") then
  443. v.Handle.Anchored = true
  444. end
  445. end
  446.  
  447. cor.Part0 = larm
  448. m = 0
  449. hum.MaxHealth = 0
  450.  
  451. local k = Instance.new("Sound",torso)
  452. k.SoundId = "rbxassetid://154872806"
  453. k.Volume = 10
  454. k.Pitch = 1
  455. k:Play()
  456.  
  457. local cf = torso.CFrame -Vector3.new(0,0.55,0)
  458. cf = cf*CFrame.Angles(math.rad(88.5),0,0)
  459.  
  460. local b = Instance.new("Part",torso)
  461. b.BrickColor = BrickColor.new("Really red")
  462. b.Material = "Neon"
  463. b.Anchored = true
  464. b.CanCollide = false
  465. b.Size = Vector3.new(2,0.01,2)
  466. b.CFrame = cf
  467.  
  468. local bm = Instance.new("CylinderMesh",b)
  469.  
  470. local cf2 = b.CFrame -Vector3.new(3,0,0)
  471.  
  472. local b2 = Instance.new("Part",torso)
  473. b2.BrickColor = BrickColor.new("Really red")
  474. b2.Material = "Neon"
  475. b2.Anchored = true
  476. b2.CanCollide = false
  477. b2.Size = Vector3.new(2,0.01,2)
  478. b2.CFrame = cf2
  479.  
  480. local bm2 = Instance.new("CylinderMesh",b2)
  481.  
  482.  
  483. for i = 1, 40 do
  484. wait()
  485. b.Size = Vector3.new(i/5,0,i/5)
  486. b.CFrame = cf
  487.  
  488. b2.Size = Vector3.new(i/10,0,i/10)
  489. b2.CFrame = cf2
  490. end
  491.  
  492. local bg = Instance.new("BillboardGui", torso)
  493. bg.Name = "rip"
  494. bg.Adornee = torso
  495. bg.Size = UDim2.new(1, 0, 1, 0)
  496. bg.StudsOffset = Vector3.new(0, 2, 0)
  497.  
  498. local fr1 = Instance.new("TextLabel", bg)
  499. fr1.Size = UDim2.new(1, 0, 1, 0)
  500. fr1.BorderSizePixel = 0
  501. fr1.TextTransparency = 1
  502. fr1.BackgroundTransparency = 1
  503. fr1.Text = "r.i.p"
  504. fr1.TextScaled = true
  505.  
  506. coroutine.wrap(function()
  507. for i = 1, 20 do
  508. rs:wait()
  509. fr1.TextTransparency = fr1.TextTransparency - 1/20
  510. fr1.BackgroundTransparency = fr1.BackgroundTransparency - 1/20
  511. end
  512. end)()
  513.  
  514. coroutine.wrap(function()
  515. while true do
  516.  
  517. for i = 0.01, 0.2 do
  518. fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(255,0,0),i)
  519. rs:wait()
  520. end
  521.  
  522. for i = 0.01, 0.2 do
  523. fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(0,255,0),i)
  524. rs:wait()
  525. end
  526.  
  527. for i = 0.01, 0.2 do
  528. fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(0,0,255),i)
  529. rs:wait()
  530. end
  531.  
  532. wait()
  533. end
  534. end)()
  535.  
  536. local x = Instance.new("Sound",torso)
  537. x.SoundId = "rbxassetid://397069204"
  538. x.Looped = true
  539. x:Play()
  540. wait(9)
  541.  
  542. local txts = {"R.I.P "..p.Name.." Died drinking his favorite soda","R.I.P "..p.Name.." Died because of the anime called bleach - i mean the drink.","R.I.P "..p.Name.." Potato.","666"}
  543.  
  544. local t1 = Instance.new("Part",workspace.Base)
  545. t1.Name = "tombstone_dirt"
  546. t1.BrickColor = BrickColor.new("Reddish brown")
  547. t1.CanCollide = false
  548. t1.CFrame = root.CFrame - Vector3.new(0,3.25,0)
  549. t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  550. t1.Material = "Grass"
  551. t1.Size = Vector3.new(4,1,8)
  552.  
  553. local tw = Instance.new("Weld")
  554.  
  555. local t2 = Instance.new("Part",t1)
  556. t2.Name = "tombstone_stone"
  557. t2.CanCollide = false
  558. t2.BrickColor = BrickColor.new("")
  559. t2.Anchored = false
  560. t2.CFrame = t1.CFrame + Vector3.new(0,0,-4)
  561. t2.Size = Vector3.new(4.2,5,1.2)
  562.  
  563. local sg = Instance.new("SurfaceGui",t2)
  564. sg.Enabled = true
  565. sg.Face = "Back"
  566. sg.Adornee = t2
  567. local txts = txts[math.random(1,#txts)]
  568.  
  569. local txt = Instance.new("TextLabel",sg)
  570. txt.TextScaled = true
  571. txt.Text = txts
  572. txt.BackgroundTransparency = 1
  573. txt.BorderSizePixel = 0
  574. txt.Size = UDim2.new(1,0,1,0)
  575.  
  576. txt.TextColor3 = Color3.new(1,1,1)
  577. if txts == "666" then
  578. txt.TextColor3 = Color3.new(1,0,0)
  579. end
  580.  
  581.  
  582. tw.Part1 = t2
  583. tw.Part0 = t1
  584. tw.Parent = char
  585. tw.C0 = CFrame.new(0,2.5,-4)
  586.  
  587. coroutine.wrap(function()
  588. t1.CFrame = root.CFrame - Vector3.new(0,3.2,0)
  589. t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  590. wait(0.1)
  591. t1.CFrame = root.CFrame - Vector3.new(0,3.2,0)
  592. t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  593. t1.Anchored = true
  594. t2.Anchored = true
  595. t1.CanCollide = true
  596. t2.CanCollide = true
  597. end)()
  598.  
  599. char:BreakJoints()
  600.  
  601. elseif result == "alive" then
  602. attack = false
  603. NoAnims = false
  604. cor.Part0 = larm
  605. m = 0
  606. end
  607. end
  608. end
  609. end)
  610.  
  611. pcall(function()
  612. ----------------------------------------------------
  613. mouse.KeyDown:connect(function(key)
  614. if string.byte(key) == 50 then
  615. char.Humanoid.WalkSpeed = 60
  616. end
  617. end)
  618. mouse.KeyUp:connect(function(key)
  619. if string.byte(key) == 50 then
  620. char.Humanoid.WalkSpeed = 16
  621. end
  622. end)
  623. -------------------------------
  624. local animpose = "Idle"
  625. local lastanimpose = "Idle"
  626. local sine = 0
  627. local change = 1
  628. local val = 0
  629. local ffing = false
  630. -------------------------------
  631. game:GetService("RunService").RenderStepped:connect(function()
  632. --[[if char.Humanoid.Jump == true then
  633. jump = true
  634. else
  635. jump = false
  636. end]]
  637. char.Humanoid.FreeFalling:connect(function(f)
  638. if f then
  639. ffing = true
  640. else
  641. ffing = false
  642. end
  643. end)
  644. sine = sine + change
  645. if jumpn == true then
  646. animpose = "Jumping"
  647. elseif ffing == true then
  648. animpose = "Freefalling"
  649. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  650. animpose = "Idle"
  651. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  652. animpose = "Walking"
  653. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  654. animpose = "Running"
  655. end
  656. if animpose ~= lastanimpose then
  657. sine = 0
  658. if animpose == "Idle" then
  659. for i = 1, 2 do
  660. if NoAnims == false then
  661.  
  662. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5+math.sin(sine/14)/9,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(30)), 0.2)
  663.  
  664. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5 + math.sin(sine/14)/9,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(30)), 0.2)
  665.  
  666. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  667.  
  668. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
  669.  
  670. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  671.  
  672. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  673.  
  674. end
  675. end
  676.  
  677. elseif animpose == "Walking" then
  678. for i = 1, 2 do
  679. if NoAnims == false then
  680.  
  681. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.7,0.5,-0.35)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-90)), 0.1)
  682.  
  683. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.7,0.5,-0.35)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(80)), 0.1)
  684.  
  685. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  686.  
  687. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
  688.  
  689. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  690.  
  691. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  692.  
  693. end
  694. end
  695. elseif animpose == "Running" then
  696. for i = 1, 2 do
  697. if NoAnims == false then
  698. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  699.  
  700. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  701.  
  702. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  703.  
  704. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.05)
  705.  
  706. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  707.  
  708. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  709.  
  710. wait()
  711. end
  712. end
  713. else
  714. end
  715. end
  716. lastanimpose = animpose
  717. if animpose == "Idle" then
  718. if NoAnims == false then
  719. change = 0.5
  720.  
  721. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.4+math.sin(sine/14)/9,0.2)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-30)), 0.2)
  722.  
  723. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.4 + math.sin(sine/14)/9,-0.2)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(30)), 0.2)
  724.  
  725. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  726.  
  727. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
  728.  
  729. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  730.  
  731. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  732.  
  733. cor.C0 = Lerp(cor.C0, CFrame.new(0,0.1,0.2)*CFrame.Angles(math.rad(10),math.pi,0),0.2)
  734.  
  735. end
  736.  
  737. elseif animpose == "Walking" then
  738. if NoAnims == false then
  739. change = 1
  740. cor.C0 = Lerp(cor.C0, CFrame.new(0,0.1,0.2)*CFrame.Angles(math.rad(10),-math.pi/2,0),0.2)
  741.  
  742. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0) + math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
  743.  
  744. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0) +- math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
  745.  
  746. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.07)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)), 0.2)
  747.  
  748. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
  749.  
  750. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0) + math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
  751.  
  752. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0) +- math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
  753.  
  754. end
  755.  
  756. elseif animpose == "Running" then
  757. if NoAnims == false then
  758. change = 0.5
  759.  
  760. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.7 ,0.5,-0.5)*CFrame.Angles(math.rad(90)+ math.sin(sine/2.5)/2,0,.05), 0.2)
  761.  
  762. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.7,0.5,-0.5)*CFrame.Angles(math.rad(90)+ -math.sin(sine/2.5)/2,0,-.05), 0.2)
  763.  
  764. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0.5)*CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)),0.2)
  765.  
  766. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(-90), 0, math.rad(0)), 0.2)
  767.  
  768. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(85) + math.sin(sine/2.5)/2, 0, 0.05), .4)
  769.  
  770. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(85) + -math.sin(sine/2.5)/2, 0.05, 0), .4)
  771.  
  772. end
  773. end
  774. end)
  775. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement