Advertisement
xxtheadmincreatorxx

Test

Mar 25th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.03 KB | None | 0 0
  1. -- This script has convert to FE by xxtheadmincreatorxx
  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("thanks to xxtheadmincreatorxx for converting this script. have a great time")
  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.  
  148.  
  149. local p = game.Players.LocalPlayer
  150. local char = p.Character
  151. local mouse = p:GetMouse()
  152. local larm = char["Left Arm"]
  153. local rarm = char["Right Arm"]
  154. local lleg = char["Left Leg"]
  155. local rleg = char["Right Leg"]
  156. local hed = char.Head
  157. local torso = char.Torso
  158. local hum = char.Humanoid
  159. local cam = game.Workspace.CurrentCamera
  160. local root = char.HumanoidRootPart
  161. local deb = false
  162. local shot = 0
  163. NoAnims = false
  164. local debris=game:service"Debris"
  165. local l = game:GetService("Lighting")
  166. local rs = game:GetService("RunService").RenderStepped
  167. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  168. math.randomseed(os.time())
  169. for i,v in pairs (hed:GetChildren()) do
  170. if v:IsA("Sound") then
  171. v:Destroy()
  172. end
  173. end
  174. ----------------------------------------------------
  175. local Touche = {char.Name, }
  176. ----------------------------------------------------
  177.  
  178. hum.MaxHealth = 150
  179.  
  180. ----------------------------------------------------
  181. function lerp(a, b, t) -- Linear interpolation
  182. return a + (b - a)*t
  183. end
  184.  
  185. function slerp(a, b, t) --Spherical interpolation
  186. dot = a:Dot(b)
  187. if dot > 0.99999 or dot < -0.99999 then
  188. return t <= 0.5 and a or b
  189. else
  190. r = math.acos(dot)
  191. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  192. end
  193. end
  194.  
  195. function matrixInterpolate(a, b, t)
  196. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  197. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  198. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  199. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  200. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  201. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  202. local t = v1:Dot(v2)
  203. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  204. return CFrame.new()
  205. end
  206. return CFrame.new(
  207. v0.x, v0.y, v0.z,
  208. v1.x, v1.y, v1.z,
  209. v2.x, v2.y, v2.z,
  210. v3.x, v3.y, v3.z)
  211. end
  212. ----------------------------------------------------
  213. function genWeld(a,b)
  214. local w = Instance.new("Weld",a)
  215. w.Part0 = a
  216. w.Part1 = b
  217. return w
  218. end
  219. function weld(a, b)
  220. local weld = Instance.new("Weld")
  221. weld.Name = "W"
  222. weld.Part0 = a
  223. weld.Part1 = b
  224. weld.C0 = a.CFrame:inverse() * b.CFrame
  225. weld.Parent = a
  226. return weld;
  227. end
  228. ----------------------------------------------------
  229. function Lerp(c1,c2,al)
  230. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  231. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  232. for i,v in pairs(com1) do
  233. com1[i] = v+(com2[i]-v)*al
  234. end
  235. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  236. end
  237. ----------------------------------------------------
  238. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  239. local wld = Instance.new("Weld", wp1)
  240. wld.Part0 = wp0
  241. wld.Part1 = wp1
  242. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  243. end
  244. ----------------------------------------------------
  245. function weld5(part0, part1, c0, c1)
  246. weeld=Instance.new("Weld", part0)
  247. weeld.Part0=part0
  248. weeld.Part1=part1
  249. weeld.C0=c0
  250. weeld.C1=c1
  251. return weeld
  252. end
  253. ----------------------------------------------------
  254. function HasntTouched(plrname)
  255. local ret = true
  256. for _, v in pairs(Touche) do
  257. if v == plrname then
  258. ret = false
  259. end
  260. end
  261. return ret
  262. end
  263. ----------------------------------------------------
  264. gavehp = false
  265.  
  266. local ends = {"alive","rip"}
  267. result = ""
  268.  
  269. local g = Instance.new("Part",larm)
  270. g.Material = "Neon"
  271. g.CanCollide = false
  272. g.Size = Vector3.new(1,1,1)
  273. local gm = Instance.new("SpecialMesh",g)
  274. gm.MeshId = "rbxassetid://483388971"
  275. gm.TextureId = "rbxassetid://520016684"
  276. gm.Scale = Vector3.new(0.005,0.005,0.005)
  277.  
  278. local cor = Instance.new("Weld")
  279. cor.Part1 = g
  280. cor.Part0 = larm
  281. cor.Parent = char
  282. cor.C1 = CFrame.new(0.2,1.8,0)
  283.  
  284. ----------------------------------------------------
  285. newWeld(torso, larm, -1.5, 0.5, 0)
  286. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  287. newWeld(torso, rarm, 1.5, 0.5, 0)
  288. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  289. newWeld(torso, hed, 0, 1.5, 0)
  290. newWeld(torso, lleg, -0.5, -1, 0)
  291. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  292. newWeld(torso, rleg, 0.5, -1, 0)
  293. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  294. newWeld(root, torso, 0, -1, 0)
  295. torso.Weld.C1 = CFrame.new(0, -1, 0)
  296. ----------------------------------------------------
  297. attack = false
  298. local m = 0
  299. ----------------------------------------------------
  300. char.Health:Destroy()
  301. mouse.KeyDown:connect(function(key)
  302. if key == "e" then
  303. if attack == false then
  304. attack = true
  305. NoAnims = true
  306. hum.Health = 150
  307.  
  308. result = ends[math.random(1,#ends)]
  309.  
  310. local s = Instance.new("Sound",torso)
  311. s.SoundId = "rbxassetid://140923474"
  312. s.Volume = 1
  313. s.Pitch = 1
  314. s.Looped = true
  315. s:Play()
  316.  
  317. coroutine.wrap(function()
  318. s:Remove()
  319. end)()
  320. local s = Instance.new("Sound",torso)
  321. s.SoundId = "rbxassetid://212887982"
  322. s.Volume = 1
  323. s.Pitch = 1
  324. s:Play()
  325.  
  326. cor.Part0 = hed
  327. pcall(function()
  328. for i = 1, 20 do
  329.  
  330. 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)
  331.  
  332. 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)
  333.  
  334. 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)
  335.  
  336. 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)
  337.  
  338. 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)
  339.  
  340. 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)
  341.  
  342. cor.C0 = Lerp(cor.C0, CFrame.new(0.6,0,0)*CFrame.Angles(math.rad(50),0,0),0.2)
  343. rs:wait()
  344.  
  345. end
  346. end)
  347.  
  348. local pgui = p.PlayerGui
  349.  
  350. local sc = Instance.new("ScreenGui",pgui)
  351. local w1 = Instance.new("TextLabel",sc)
  352. w1.Size = UDim2.new(1,0,1,0)
  353. w1.Text = "wo kalm dwn m8 u r gon gt rkt"
  354. w1.TextScaled = true
  355. w1.BackgroundColor3 = Color3.new(1,1,1)
  356. w1.BorderSizePixel = 0
  357.  
  358. coroutine.wrap(function()
  359. for i = 1, 20 do
  360. w1.BackgroundTransparency = i/10
  361. w1.TextTransparency = i/10
  362. end
  363. end)()
  364.  
  365. pcall(function()
  366. for i = 1, 100 do
  367. rs:wait()
  368. m = m + 0.004
  369. hum.Health = hum.Health-1
  370. 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)
  371.  
  372. 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)
  373.  
  374. 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)
  375.  
  376. end
  377. end)
  378.  
  379. if result == "rip" then
  380.  
  381. coroutine.wrap(function()
  382. wait(0.15)
  383. for i = 1, 60 do
  384. cor.Part0 = torso
  385. cor.C0 = Lerp(cor.C0,CFrame.new(9,-0.15,0)*CFrame.Angles(0,0,200),0.1)
  386. rs:wait()
  387. end
  388. end)()
  389.  
  390. s:Remove()
  391. hum.WalkSpeed = 0
  392. pcall(function()
  393. hum.JumpPower = 0
  394. end)
  395.  
  396. pcall(function()
  397. for i = 1, 20 do
  398.  
  399. 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)
  400.  
  401. 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)
  402.  
  403. 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)
  404.  
  405. 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)
  406.  
  407. 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)
  408.  
  409. 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)
  410.  
  411. rs:wait()
  412. end
  413. end)
  414.  
  415. wait(3)
  416.  
  417. coroutine.wrap(function()
  418. while true do
  419. wait(0.07)
  420. pcall(function()
  421.  
  422. rarm.Weld.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.random(0,3),math.random(0,7),math.random(30,45))
  423.  
  424. larm.Weld.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.random(0,5),math.random(10,20),math.random(10,20))
  425.  
  426. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.random(20,30),math.random(0,4),math.random(0,3))
  427.  
  428. lleg.Weld.C0 = CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.random(0,5),math.random(10,15),math.random(5,10))
  429.  
  430. rleg.Weld.C0 = CFrame.new(0.5, -1, 0)*CFrame.Angles(math.random(0,4),math.random(20,30),math.random(20,30))
  431.  
  432. end)
  433. end
  434. end)()
  435.  
  436.  
  437. cor:Destroy()
  438.  
  439. g.Anchored = true
  440.  
  441. for i,v in pairs(char:GetChildren()) do
  442. if v:IsA("Part") then
  443. v.Anchored = true
  444. elseif v:IsA("Accoutrement") then
  445. v.Handle.Anchored = true
  446. end
  447. end
  448.  
  449. cor.Part0 = larm
  450. m = 0
  451. hum.MaxHealth = 0
  452.  
  453. local k = Instance.new("Sound",torso)
  454. k.SoundId = "rbxassetid://154872806"
  455. k.Volume = 10
  456. k.Pitch = 1
  457. k:Play()
  458.  
  459. local cf = torso.CFrame -Vector3.new(0,0.55,0)
  460. cf = cf*CFrame.Angles(math.rad(88.5),0,0)
  461.  
  462. local b = Instance.new("Part",torso)
  463. b.BrickColor = BrickColor.new("Really red")
  464. b.Material = "Neon"
  465. b.Anchored = true
  466. b.CanCollide = false
  467. b.Size = Vector3.new(2,0.01,2)
  468. b.CFrame = cf
  469.  
  470. local bm = Instance.new("CylinderMesh",b)
  471.  
  472. local cf2 = b.CFrame -Vector3.new(3,0,0)
  473.  
  474. local b2 = Instance.new("Part",torso)
  475. b2.BrickColor = BrickColor.new("Really red")
  476. b2.Material = "Neon"
  477. b2.Anchored = true
  478. b2.CanCollide = false
  479. b2.Size = Vector3.new(2,0.01,2)
  480. b2.CFrame = cf2
  481.  
  482. local bm2 = Instance.new("CylinderMesh",b2)
  483.  
  484.  
  485. for i = 1, 40 do
  486. wait()
  487. b.Size = Vector3.new(i/5,0,i/5)
  488. b.CFrame = cf
  489.  
  490. b2.Size = Vector3.new(i/10,0,i/10)
  491. b2.CFrame = cf2
  492. end
  493.  
  494. local bg = Instance.new("BillboardGui", torso)
  495. bg.Name = "rip"
  496. bg.Adornee = torso
  497. bg.Size = UDim2.new(1, 0, 1, 0)
  498. bg.StudsOffset = Vector3.new(0, 2, 0)
  499.  
  500. local fr1 = Instance.new("TextLabel", bg)
  501. fr1.Size = UDim2.new(1, 0, 1, 0)
  502. fr1.BorderSizePixel = 0
  503. fr1.TextTransparency = 1
  504. fr1.BackgroundTransparency = 1
  505. fr1.Text = "r.i.p"
  506. fr1.TextScaled = true
  507.  
  508. coroutine.wrap(function()
  509. for i = 1, 20 do
  510. rs:wait()
  511. fr1.TextTransparency = fr1.TextTransparency - 1/20
  512. fr1.BackgroundTransparency = fr1.BackgroundTransparency - 1/20
  513. end
  514. end)()
  515.  
  516. coroutine.wrap(function()
  517. while true do
  518.  
  519. for i = 0.01, 0.2 do
  520. fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(255,0,0),i)
  521. rs:wait()
  522. end
  523.  
  524. for i = 0.01, 0.2 do
  525. fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(0,255,0),i)
  526. rs:wait()
  527. end
  528.  
  529. for i = 0.01, 0.2 do
  530. fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(0,0,255),i)
  531. rs:wait()
  532. end
  533.  
  534. wait()
  535. end
  536. end)()
  537.  
  538. local x = Instance.new("Sound",torso)
  539. x.SoundId = "rbxassetid://397069204"
  540. x.Looped = true
  541. x:Play()
  542. wait(9)
  543.  
  544. 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"}
  545.  
  546. local t1 = Instance.new("Part",workspace.Base)
  547. t1.Name = "tombstone_dirt"
  548. t1.BrickColor = BrickColor.new("Reddish brown")
  549. t1.CanCollide = false
  550. t1.CFrame = root.CFrame - Vector3.new(0,3.25,0)
  551. t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  552. t1.Material = "Grass"
  553. t1.Size = Vector3.new(4,1,8)
  554.  
  555. local tw = Instance.new("Weld")
  556.  
  557. local t2 = Instance.new("Part",t1)
  558. t2.Name = "tombstone_stone"
  559. t2.CanCollide = false
  560. t2.BrickColor = BrickColor.new("")
  561. t2.Anchored = false
  562. t2.CFrame = t1.CFrame + Vector3.new(0,0,-4)
  563. t2.Size = Vector3.new(4.2,5,1.2)
  564.  
  565. local sg = Instance.new("SurfaceGui",t2)
  566. sg.Enabled = true
  567. sg.Face = "Back"
  568. sg.Adornee = t2
  569. local txts = txts[math.random(1,#txts)]
  570.  
  571. local txt = Instance.new("TextLabel",sg)
  572. txt.TextScaled = true
  573. txt.Text = txts
  574. txt.BackgroundTransparency = 1
  575. txt.BorderSizePixel = 0
  576. txt.Size = UDim2.new(1,0,1,0)
  577.  
  578. txt.TextColor3 = Color3.new(1,1,1)
  579. if txts == "666" then
  580. txt.TextColor3 = Color3.new(1,0,0)
  581. end
  582.  
  583.  
  584. tw.Part1 = t2
  585. tw.Part0 = t1
  586. tw.Parent = char
  587. tw.C0 = CFrame.new(0,2.5,-4)
  588.  
  589. coroutine.wrap(function()
  590. t1.CFrame = root.CFrame - Vector3.new(0,3.2,0)
  591. t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  592. wait(0.1)
  593. t1.CFrame = root.CFrame - Vector3.new(0,3.2,0)
  594. t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  595. t1.Anchored = true
  596. t2.Anchored = true
  597. t1.CanCollide = true
  598. t2.CanCollide = true
  599. end)()
  600.  
  601. char:BreakJoints()
  602.  
  603. elseif result == "alive" then
  604. attack = false
  605. NoAnims = false
  606. cor.Part0 = larm
  607. m = 0
  608. end
  609. end
  610. end
  611. end)
  612.  
  613. pcall(function()
  614. ----------------------------------------------------
  615. mouse.KeyDown:connect(function(key)
  616. if string.byte(key) == 50 then
  617. char.Humanoid.WalkSpeed = 60
  618. end
  619. end)
  620. mouse.KeyUp:connect(function(key)
  621. if string.byte(key) == 50 then
  622. char.Humanoid.WalkSpeed = 16
  623. end
  624. end)
  625. -------------------------------
  626. local animpose = "Idle"
  627. local lastanimpose = "Idle"
  628. local sine = 0
  629. local change = 1
  630. local val = 0
  631. local ffing = false
  632. -------------------------------
  633. game:GetService("RunService").RenderStepped:connect(function()
  634. --[[if char.Humanoid.Jump == true then
  635. jump = true
  636. else
  637. jump = false
  638. end]]
  639. char.Humanoid.FreeFalling:connect(function(f)
  640. if f then
  641. ffing = true
  642. else
  643. ffing = false
  644. end
  645. end)
  646. sine = sine + change
  647. if jumpn == true then
  648. animpose = "Jumping"
  649. elseif ffing == true then
  650. animpose = "Freefalling"
  651. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  652. animpose = "Idle"
  653. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  654. animpose = "Walking"
  655. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  656. animpose = "Running"
  657. end
  658. if animpose ~= lastanimpose then
  659. sine = 0
  660. if animpose == "Idle" then
  661. for i = 1, 2 do
  662. if NoAnims == false then
  663.  
  664. 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)
  665.  
  666. 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)
  667.  
  668. 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)
  669.  
  670. 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)
  671.  
  672. 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)
  673.  
  674. 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)
  675.  
  676. end
  677. end
  678.  
  679. elseif animpose == "Walking" then
  680. for i = 1, 2 do
  681. if NoAnims == false then
  682.  
  683. 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)
  684.  
  685. 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)
  686.  
  687. 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)
  688.  
  689. 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)
  690.  
  691. 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)
  692.  
  693. 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)
  694.  
  695. end
  696. end
  697. elseif animpose == "Running" then
  698. for i = 1, 2 do
  699. if NoAnims == false then
  700. 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)
  701.  
  702. 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)
  703.  
  704. 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)
  705.  
  706. 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)
  707.  
  708. 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)
  709.  
  710. 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)
  711.  
  712. wait()
  713. end
  714. end
  715. else
  716. end
  717. end
  718. lastanimpose = animpose
  719. if animpose == "Idle" then
  720. if NoAnims == false then
  721. change = 0.5
  722.  
  723. 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)
  724.  
  725. 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)
  726.  
  727. 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)
  728.  
  729. 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)
  730.  
  731. 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)
  732.  
  733. 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)
  734.  
  735. cor.C0 = Lerp(cor.C0, CFrame.new(0,0.1,0.2)*CFrame.Angles(math.rad(10),math.pi,0),0.2)
  736.  
  737. end
  738.  
  739. elseif animpose == "Walking" then
  740. if NoAnims == false then
  741. change = 1
  742. cor.C0 = Lerp(cor.C0, CFrame.new(0,0.1,0.2)*CFrame.Angles(math.rad(10),-math.pi/2,0),0.2)
  743.  
  744. 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)
  745.  
  746. 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)
  747.  
  748. 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)
  749.  
  750. 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)
  751.  
  752. 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)
  753.  
  754. 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)
  755.  
  756. end
  757.  
  758. elseif animpose == "Running" then
  759. if NoAnims == false then
  760. change = 0.5
  761.  
  762. 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)
  763.  
  764. 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)
  765.  
  766. 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)
  767.  
  768. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(-90), 0, math.rad(0)), 0.2)
  769.  
  770. 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)
  771.  
  772. 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)
  773.  
  774. end
  775. end
  776. end)
  777. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement