Hugo1234cool

Untitled

Feb 21st, 2019
85
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. --https://github.com/Mokiros/roblox-FE-compatibility
  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 V2 by Mokiros")
  9. local RealPlayer = RealPlayer
  10. script.Parent = RealPlayer.Character
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local Disconnect_Function = function(this)
  14. this[1].Functions[this[2]] = nil
  15. end
  16. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  17. local FakeEvent_Metatable = {__index={
  18. Connect = function(this,f)
  19. local i = tostring(math.random(0,10000))
  20. while this.Functions[i] do
  21. i = tostring(math.random(0,10000))
  22. end
  23. this.Functions[i] = f
  24. return setmetatable({this,i},Disconnect_Metatable)
  25. end
  26. }}
  27. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  28. local function fakeEvent()
  29. return setmetatable({Functions={}},FakeEvent_Metatable)
  30. end
  31.  
  32. --Creating fake input objects with fake variables
  33. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  34. FakeMouse.keyUp = FakeMouse.KeyUp
  35. FakeMouse.keyDown = FakeMouse.KeyDown
  36. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  37. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  38. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  39. end}
  40. --Merged 2 functions into one by checking amount of arguments
  41. CAS.UnbindAction = CAS.BindAction
  42.  
  43. --This function will trigger the events that have been :Connect()'ed
  44. local function TriggerEvent(self,ev,...)
  45. for _,f in pairs(self[ev].Functions) do
  46. f(...)
  47. end
  48. end
  49. FakeMouse.TriggerEvent = TriggerEvent
  50. UIS.TriggerEvent = TriggerEvent
  51.  
  52. --Client communication
  53. local Event = Instance.new("RemoteEvent")
  54. Event.Name = "UserInput_Event"
  55. Event.OnServerEvent:Connect(function(plr,io)
  56. if plr~=RealPlayer then return end
  57. FakeMouse.Target = io.Target
  58. FakeMouse.Hit = io.Hit
  59. if not io.isMouse then
  60. local b = io.UserInputState == Enum.UserInputState.Begin
  61. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  62. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  63. end
  64. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  65. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  66. end
  67. for _,t in pairs(CAS.Actions) do
  68. for _,k in pairs(t.Keys) do
  69. if k==io.KeyCode then
  70. t.Function(t.Name,io.UserInputState,io)
  71. end
  72. end
  73. end
  74. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  75. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  76. end
  77. end)
  78. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  79. local Mouse = owner:GetMouse()
  80. local UIS = game:GetService("UserInputService")
  81. local input = function(io,RobloxHandled)
  82. if RobloxHandled then return end
  83. --Since InputObject is a client-side instance, we create and pass table instead
  84. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  85. end
  86. UIS.InputBegan:Connect(input)
  87. UIS.InputEnded:Connect(input)
  88.  
  89. local h,t
  90. --Give the server mouse data every second frame, but only if the values changed
  91. --If player is not moving their mouse, client won't fire events
  92. local HB = game:GetService("RunService").Heartbeat
  93. while true do
  94. if h~=Mouse.Hit or t~=Mouse.Target then
  95. h,t=Mouse.Hit,Mouse.Target
  96. Event:FireServer({isMouse=true,Target=t,Hit=h})
  97. end
  98. --Wait 2 frames
  99. for i=1,2 do
  100. HB:Wait()
  101. end
  102. end]==],script)
  103.  
  104. ----Sandboxed game object that allows the usage of client-side methods and services
  105. --Real game object
  106. local RealGame = game
  107.  
  108. --Metatable for fake service
  109. local FakeService_Metatable = {
  110. __index = function(self,k)
  111. local s = rawget(self,"_RealService")
  112. if s then
  113. return typeof(s[k])=="function"
  114. and function(_,...)return s[k](s,...)end or s[k]
  115. end
  116. end,
  117. __newindex = function(self,k,v)
  118. local s = rawget(self,"_RealService")
  119. if s then s[k]=v end
  120. end
  121. }
  122. local function FakeService(t,RealService)
  123. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  124. return setmetatable(t,FakeService_Metatable)
  125. end
  126.  
  127. --Fake game object
  128. local FakeGame = {
  129. GetService = function(self,s)
  130. return rawget(self,s) or RealGame:GetService(s)
  131. end,
  132. Players = FakeService({
  133. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  134. },"Players"),
  135. UserInputService = FakeService(UIS,"UserInputService"),
  136. ContextActionService = FakeService(CAS,"ContextActionService"),
  137. RunService = FakeService({
  138. _btrs = {},
  139. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  140. BindToRenderStep = function(self,name,_,fun)
  141. self._btrs[name] = self.Heartbeat:Connect(fun)
  142. end,
  143. UnbindFromRenderStep = function(self,name)
  144. self._btrs[name]:Disconnect()
  145. end,
  146. },"RunService")
  147. }
  148. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  149. FakeGame.service = FakeGame.GetService
  150. FakeService(FakeGame,game)
  151. --Changing owner to fake player object to support owner:GetMouse()
  152. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  153. end
  154. local larm = char["Left Arm"]
  155. local rarm = char["Right Arm"]
  156. local lleg = char["Left Leg"]
  157. local rleg = char["Right Leg"]
  158. local hed = char.Head
  159. local torso = char.Torso
  160. local hum = char.Humanoid
  161. local cam = game.Workspace.CurrentCamera
  162. local root = char.HumanoidRootPart
  163. local deb = false
  164. local shot = 0
  165. NoAnims = false
  166. local debris=game:service"Debris"
  167. local l = game:GetService("Lighting")
  168. local rs = game:GetService("RunService").RenderStepped
  169. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  170. math.randomseed(os.time())
  171. for i,v in pairs (hed:GetChildren()) do
  172. if v:IsA("Sound") then
  173. v:Destroy()
  174. end
  175. end
  176. ----------------------------------------------------
  177. local Touche = {char.Name, }
  178. ----------------------------------------------------
  179.  
  180. hum.MaxHealth = 150
  181.  
  182. ----------------------------------------------------
  183. function lerp(a, b, t) -- Linear interpolation
  184. return a + (b - a)*t
  185. end
  186.  
  187. function slerp(a, b, t) --Spherical interpolation
  188. dot = a:Dot(b)
  189. if dot > 0.99999 or dot < -0.99999 then
  190. return t <= 0.5 and a or b
  191. else
  192. r = math.acos(dot)
  193. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  194. end
  195. end
  196.  
  197. function matrixInterpolate(a, b, t)
  198. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  199. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  200. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  201. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  202. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  203. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  204. local t = v1:Dot(v2)
  205. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  206. return CFrame.new()
  207. end
  208. return CFrame.new(
  209. v0.x, v0.y, v0.z,
  210. v1.x, v1.y, v1.z,
  211. v2.x, v2.y, v2.z,
  212. v3.x, v3.y, v3.z)
  213. end
  214. ----------------------------------------------------
  215. function genWeld(a,b)
  216. local w = Instance.new("Weld",a)
  217. w.Part0 = a
  218. w.Part1 = b
  219. return w
  220. end
  221. function weld(a, b)
  222. local weld = Instance.new("Weld")
  223. weld.Name = "W"
  224. weld.Part0 = a
  225. weld.Part1 = b
  226. weld.C0 = a.CFrame:inverse() * b.CFrame
  227. weld.Parent = a
  228. return weld;
  229. end
  230. ----------------------------------------------------
  231. function Lerp(c1,c2,al)
  232. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  233. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  234. for i,v in pairs(com1) do
  235. com1[i] = v+(com2[i]-v)*al
  236. end
  237. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  238. end
  239. ----------------------------------------------------
  240. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  241. local wld = Instance.new("Weld", wp1)
  242. wld.Part0 = wp0
  243. wld.Part1 = wp1
  244. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  245. end
  246. ----------------------------------------------------
  247. function weld5(part0, part1, c0, c1)
  248. weeld=Instance.new("Weld", part0)
  249. weeld.Part0=part0
  250. weeld.Part1=part1
  251. weeld.C0=c0
  252. weeld.C1=c1
  253. return weeld
  254. end
  255. ----------------------------------------------------
  256. function HasntTouched(plrname)
  257. local ret = true
  258. for _, v in pairs(Touche) do
  259. if v == plrname then
  260. ret = false
  261. end
  262. end
  263. return ret
  264. end
  265. ----------------------------------------------------
  266. gavehp = false
  267.  
  268. local ends = {"alive","rip"}
  269. result = ""
  270.  
  271. local g = Instance.new("Part",larm)
  272. g.Material = "Neon"
  273. g.CanCollide = false
  274. g.Size = Vector3.new(1,1,1)
  275. local gm = Instance.new("SpecialMesh",g)
  276. gm.MeshId = "rbxassetid://483388971"
  277. gm.TextureId = "rbxassetid://520016684"
  278. gm.Scale = Vector3.new(0.005,0.005,0.005)
  279.  
  280. local cor = Instance.new("Weld")
  281. cor.Part1 = g
  282. cor.Part0 = larm
  283. cor.Parent = char
  284. cor.C1 = CFrame.new(0.2,1.8,0)
  285.  
  286. ----------------------------------------------------
  287. newWeld(torso, larm, -1.5, 0.5, 0)
  288. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  289. newWeld(torso, rarm, 1.5, 0.5, 0)
  290. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  291. newWeld(torso, hed, 0, 1.5, 0)
  292. newWeld(torso, lleg, -0.5, -1, 0)
  293. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  294. newWeld(torso, rleg, 0.5, -1, 0)
  295. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  296. newWeld(root, torso, 0, -1, 0)
  297. torso.Weld.C1 = CFrame.new(0, -1, 0)
  298. ----------------------------------------------------
  299. attack = false
  300. local m = 0
  301. ----------------------------------------------------
  302. char.Health:Destroy()
  303. mouse.KeyDown:connect(function(key)
  304. if key == "e" then
  305. if attack == false then
  306. attack = true
  307. NoAnims = true
  308. hum.Health = 150
  309.  
  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)
Add Comment
Please, Sign In to add comment