Advertisement
Axprotss

Bleach drink roblox script

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