Hugo1234cool

Untitled

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