Advertisement
lafur

Untitled

Jul 1st, 2020
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  2. local RealPlayer = Player
  3. do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end;if owner:IsFriendsWith(673462376) or owner.UserId == 673462376
  4. then else print'bru' while wait() do error'stuP' end end
  5.  
  6. plr = owner
  7. char = plr.Character
  8. ra = char["Right Arm"]
  9. la = char["Left Arm"]
  10. hed = char.Head
  11. root = char.HumanoidRootPart
  12. hum = char.Humanoid
  13. dancin = false
  14.  
  15. clerp = function(toclerp, cf, number)
  16. local joint = toclerp
  17. joint.C0 = joint.C0:Lerp(cf, number)
  18. end
  19.  
  20. clerp2 = function(toclerp, cf)
  21. local joint = toclerp
  22. joint.C0 = cf
  23. end
  24.  
  25. clerp3 = function(toclerp, cf, number)
  26. local joint = toclerp
  27. joint.C1 = joint.C1:Lerp(cf, number)
  28. end
  29.  
  30. Swait,swait = function(number)
  31. if number == 0 or number == nil then
  32. game:GetService("RunService").Heartbeat:Wait()
  33. else
  34. for i = 1,number do
  35. game:GetService("RunService").Heartbeat:Wait()
  36. end
  37. end
  38. end
  39.  
  40. ezweld = function(p, a, b, cf)
  41. local weld = Instance.new("Weld",p)
  42. weld.Part0 = a
  43. weld.Part1 = b
  44. weld.C0 = cf
  45. return weld
  46. end
  47.  
  48. NewSound = function(p, id, pit, vol, loop)
  49. local Sound = Instance.new("Sound",p)
  50. Sound.Pitch = pit
  51. Sound.Volume = vol
  52. Sound.SoundId = "rbxassetid://" ..id
  53. Sound.Looped = loop
  54. Sound:Play()
  55. return Sound
  56. end
  57.  
  58. IT = Instance.new
  59. Rad = math.rad
  60. Cos = math.cos
  61. Sin = math.sin
  62. BrickC = BrickColor.new
  63. C3 = Color3.new
  64. VT = Vector3.new
  65.  
  66. anim = "Idle"
  67. attack = false
  68. local RS = char.Torso["Right Shoulder"]
  69. local LS = char.Torso["Left Shoulder"]
  70. local RH = char.Torso["Right Hip"]
  71. local LH = char.Torso["Left Hip"]
  72. local neck = char.Torso["Neck"]
  73. local root = char.HumanoidRootPart
  74. local rootj = root.RootJoint
  75. local sine = 0
  76. local RSnor = RS.C0
  77. local LSnor = LS.C0
  78. local RHnor = RH.C0
  79. local LHnor = LH.C0
  80. local RSnor2 = RS.C1
  81. local LSnor2 = LS.C1
  82. local RHnor2 = RH.C1
  83. local LHnor2 = LH.C1
  84. local rootjnor = rootj.C0
  85. local necknor = neck.C0
  86. local tors = char.Torso
  87. hum.Animator:remove()
  88. mouse = plr:GetMouse()
  89. hold = false
  90. Debris = game:GetService("Debris")
  91.  
  92. sped = 16
  93. keyhold = false
  94. spino = 0
  95. hito = true
  96.  
  97. SetTween = function(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  98. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  99. local outorin = Enum.EasingDirection[outorin2]
  100.  
  101.  
  102. local dahspeed=1
  103.  
  104. if SPart.Name=="Bullet" then
  105. dahspeed=1
  106. end
  107.  
  108. local tweeningInformation = TweenInfo.new(
  109. AnimTime/dahspeed,
  110. MoveStyle,
  111. outorin,
  112. 0,
  113. false,
  114. 0
  115. )
  116. local MoveCF = CFr
  117. local tweenanim = game:service("TweenService"):Create(SPart,tweeningInformation,MoveCF)
  118. tweenanim:Play()
  119. end
  120.  
  121. function RayCast(Position, Direction, Range, Ignore)
  122. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  123. end
  124.  
  125. talkf = "rbxassetid://8687209"
  126. default = hed.face.Texture
  127. ft = "rbxassetid://152527274"
  128. Aface = "rbxassetid://152630087"
  129. Oface = "rbxassetid://278714419"
  130.  
  131. local moo = Instance.new("Model")
  132. local fun = Instance.new("Part", moo)
  133. fun.Name = "coolepicdust"
  134. fun.Material = "SmoothPlastic"
  135. fun.CanCollide = false
  136. fun.Color = Color3.new(1, 1, 1)
  137. fun.Size = Vector3.new(1, 1, 1)
  138. fun.Rotation = Vector3.new(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  139. local md = true
  140.  
  141. hed.face.Texture = default
  142. beannumber = 1
  143.  
  144. local hoot = NewSound(hed, 1060413310, 1, 10, false)
  145. hoot:Stop()
  146.  
  147. function Chatter(Text,Timer)
  148. local chat = coroutine.wrap(function()
  149. if char:FindFirstChild("SpeechBoard")~= nil then
  150. char:FindFirstChild("SpeechBoard"):destroy()
  151. end
  152. local naeeym2 = IT("BillboardGui",char)
  153. naeeym2.Size = UDim2.new(0,100,0,40)
  154. naeeym2.StudsOffset = Vector3.new(0,2,0)
  155. naeeym2.Adornee = hed
  156. naeeym2.Name = "SpeechBoard"
  157. naeeym2.AlwaysOnTop = true
  158. local tecks2 = IT("TextBox",naeeym2)
  159. tecks2.BackgroundTransparency = 1
  160. tecks2.BorderSizePixel = 0
  161. tecks2.Text = ""
  162. tecks2.Font = "Legacy"
  163. tecks2.TextSize = 15
  164. tecks2.TextStrokeTransparency = 0
  165. tecks2.TextColor3 = Color3.new(1,1,1)
  166. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  167. tecks2.Size = UDim2.new(1,0,0.5,0)
  168. for i = 1,string.len(Text),1 do
  169. if naeeym2.Parent ~= char then
  170. break
  171. end
  172. if beannumber == 1 then
  173. beannumber = 2
  174. if (string.sub(Text,i,i) ~= "p") and (string.sub(Text,i,i) ~= "a") and (string.sub(Text,i,i) ~= "o") then
  175. hed.face.Texture = talkf
  176. elseif string.sub(Text,i,i) == "p" then
  177. hed.face.Texture = ft
  178. elseif string.sub(Text,i,i) == "a" then
  179. hed.face.Texture = Aface
  180. elseif string.sub(Text,i,i) == "o" then
  181. hed.face.Texture = Oface
  182. end
  183. elseif beannumber == 2 then
  184. if math.random(1, 2) == 1 then
  185. hoot.Pitch = Random.new():NextInteger(1, 4)
  186. hoot:Play()
  187. end
  188. beannumber = 1
  189. hed.face.Texture = default
  190. end
  191. tecks2.Text = string.sub(Text,1,i)
  192. wait(Timer)
  193. end
  194. wait(0.75)
  195. hed.face.Texture = default
  196. beannumber = 2
  197. naeeym2:Destroy()
  198. end)
  199. chat()
  200. end
  201.  
  202. function floss()
  203. if dancin == false then
  204. attack = true
  205. dancin = true
  206. repeat
  207. for i = 1,25 do
  208. Swait()
  209. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(7), Rad(0)), 0.1)
  210. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(8), Rad(0)), 0.1)
  211. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-12), Rad(4)), 0.1)
  212. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-11), Rad(12), Rad(-4)), 0.1)
  213. clerp(RS, RSnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(Rad(65), Rad(65), Rad(0)), 0.1)
  214. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.4) * CFrame.Angles(Rad(-65), Rad(65), Rad(0)), 0.1)
  215. end
  216. for i = 1,25 do
  217. Swait()
  218. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-7), Rad(0)), 0.1)
  219. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(0)), 0.1)
  220. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-11), Rad(-12), Rad(-4)), 0.1)
  221. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(12), Rad(4)), 0.1)
  222. clerp(RS, RSnor * CFrame.new(0, 0.35, 0.4) * CFrame.Angles(Rad(-65), Rad(65), Rad(0)), 0.1)
  223. clerp(LS, LSnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(Rad(65), Rad(65), Rad(0)), 0.1)
  224. end
  225. until dancin == false
  226. dancin = false
  227. attack = false
  228. elseif dancin == true then
  229. dancin = false
  230. attack = false
  231. end
  232. end
  233.  
  234. function danc()
  235. if dancin == false then
  236. attack = true
  237. dancin = true
  238. repeat
  239. for i = 1,25 do
  240. Swait()
  241. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(18), Rad(0)), 0.1)
  242. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(19), Rad(0)), 0.1)
  243. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-12+4), Rad(-12), Rad(4)), 0.1)
  244. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-12+4), Rad(12), Rad(-4)), 0.1)
  245. clerp(RS, RSnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(Rad(65), Rad(65), Rad(0)), 0.1)
  246. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.4) * CFrame.Angles(Rad(-65), Rad(65), Rad(0)), 0.1)
  247. end
  248. for i = 1,9 do
  249. Swait()
  250. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.065)
  251. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(3), Rad(0), Rad(0)), 0.065)
  252. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-12), Rad(-4)), 0.065)
  253. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(12), Rad(4)), 0.065)
  254. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-65), Rad(180)), 0.065)
  255. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(65), Rad(-180)), 0.065)
  256. end
  257. for i = 1,25 do
  258. Swait()
  259. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-18), Rad(0)), 0.1)
  260. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-19), Rad(0)), 0.1)
  261. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-12+4), Rad(-12), Rad(-4)), 0.1)
  262. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-12+4), Rad(12), Rad(4)), 0.1)
  263. clerp(RS, RSnor * CFrame.new(0, -0.35, 0.4) * CFrame.Angles(Rad(-65), Rad(-65), Rad(0)), 0.1)
  264. clerp(LS, LSnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(Rad(65), Rad(-65), Rad(0)), 0.1)
  265. end
  266. for i = 1,9 do
  267. Swait()
  268. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.065)
  269. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(3), Rad(0), Rad(0)), 0.065)
  270. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-12), Rad(-4)), 0.065)
  271. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(12), Rad(4)), 0.065)
  272. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-65), Rad(180)), 0.065)
  273. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(65), Rad(-180)), 0.065)
  274. end
  275. until dancin == false
  276. dancin = false
  277. attack = false
  278. elseif dancin == true then
  279. dancin = false
  280. attack = false
  281. end
  282. end
  283.  
  284. local spid = "norm"
  285.  
  286. local CamCFrame = Instance.new("RemoteEvent",char)
  287. CamCFrame.Name = "poopa"
  288.  
  289. CamCFrame.OnServerEvent:Connect(function(_,ree)
  290. spid = ree
  291. end)
  292.  
  293. local DoubleJump = NLS([[
  294.  
  295. local players = game:GetService("Players")
  296. local UserInputService = game:GetService("UserInputService")
  297. local plr = players.LocalPlayer
  298. local mouse = plr:GetMouse()
  299. local character = plr.Character
  300. local sprint = false
  301. local humanoid = character:WaitForChild("Humanoid")
  302. local doubleJumpEnabled = false
  303. local poop = character.poopa
  304.  
  305. humanoid.StateChanged:Connect(function(oldState, newState)
  306. if newState == Enum.HumanoidStateType.Jumping then
  307. if not doubleJumpEnabled then
  308. wait(.2)
  309. if humanoid:GetState() == Enum.HumanoidStateType.Freefall then
  310. doubleJumpEnabled = true
  311. poop:FireServer("norm")
  312. end
  313. end
  314. elseif newState == Enum.HumanoidStateType.Landed then
  315. doubleJumpEnabled = false
  316. poop:FireServer("norm")
  317. end
  318. end)
  319.  
  320. UserInputService.InputBegan:Connect(function(inputObject)
  321. if inputObject.KeyCode == Enum.KeyCode.Space then
  322. if doubleJumpEnabled then
  323. if humanoid:GetState() ~= Enum.HumanoidStateType.Jumping then
  324. humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  325. poop:FireServer("fast")
  326. spawn(function()
  327. doubleJumpEnabled = false
  328. end)
  329. end
  330. end
  331. end
  332. end)
  333.  
  334. ]],char)
  335.  
  336. canc = true
  337.  
  338. function dive()
  339. attack = true
  340. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  341. local b = Instance.new("BodyVelocity", root)
  342. b.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  343. b.Velocity = root.CFrame.lookVector * 75 + Vector3.new(0, 35, 0)
  344. Debris:AddItem(b, 0.05)
  345. local obo = 2
  346. repeat
  347. Swait()
  348. obo = obo + 1
  349. hitfloor = nil
  350. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  351. clerp(rootj, rootjnor * CFrame.new(0, -1, -2.5) * CFrame.Angles(Rad(85+obo), Rad(0), Rad(0)), 0.1)
  352. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-66), Rad(0), Rad(0)), 0.1)
  353. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-25-obo)), 0.1)
  354. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25+obo)), 0.1)
  355. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(175)), 0.1)
  356. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-175)), 0.1)
  357. until hitfloor ~= nil
  358. attack = false
  359. end
  360.  
  361. function longjump()
  362. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  363. hum.Jump = true
  364. local b = Instance.new("BodyVelocity", root)
  365. b.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  366. b.Velocity = root.CFrame.lookVector * 86 + Vector3.new(0, 35, 0)
  367. Debris:AddItem(b, 0.15)
  368. local obo = 0.15
  369. wait(.15)
  370. clerp(rootj, rootjnor * CFrame.new(0, -1, -2.5) * CFrame.Angles(Rad(20+obo), Rad(0), Rad(0)), 0.1)
  371. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-20-obo), Rad(0), Rad(0)), 0.1)
  372. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90)), 0.1)
  373. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  374. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-75+obo)), 0.1)
  375. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(75-obo)), 0.1)
  376. attack = true
  377. wait(.075)
  378. clerp(rootj, rootjnor * CFrame.new(0, -1, -2.5) * CFrame.Angles(Rad(20+obo), Rad(0), Rad(0)), 0.1)
  379. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-20-obo), Rad(0), Rad(0)), 0.1)
  380. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90)), 0.1)
  381. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  382. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-75+obo)), 0.1)
  383. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(75-obo)), 0.1)
  384. repeat
  385. Swait()
  386. obo = obo + 1
  387. hitfloor = nil
  388. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  389. clerp(rootj, rootjnor * CFrame.new(0, -1, -2.5) * CFrame.Angles(Rad(20+obo), Rad(0), Rad(0)), 0.1)
  390. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-20-obo), Rad(0), Rad(0)), 0.1)
  391. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(111)), 0.1)
  392. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-111)), 0.1)
  393. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-85+obo)), 0.1)
  394. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(85-obo)), 0.1)
  395. until hitfloor ~= nil
  396. attack = false
  397. end
  398.  
  399. mouse.KeyDown:connect(function(key)
  400. if key == "e" and attack == false then
  401. dive()
  402. end
  403. if key == "r" and attack == false then
  404. longjump()
  405. end
  406. if key == "t" then
  407. danc()
  408. end
  409. end)
  410.  
  411. plr.Chatted:connect(function(msg)
  412. Chatter(msg, 0.065)
  413. end)
  414.  
  415. while true do
  416. Swait()
  417. sine = sine + 1
  418. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  419. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  420. local WALKSPEEDVALUE = 8 / (sped / 16)
  421. torsverticalvel = root.Velocity.y
  422. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  423. if TORSOVELOCITY < 1 and hitfloor ~= nil then
  424. anim = "Idle"
  425. if attack == false then
  426. clerp(rootj,rootjnor*CFrame.new(0, 0, -0.1+0.05 * Sin(sine / 18.5))*CFrame.Angles(0, Rad(-3 * Sin(sine / (18.5*2))), Rad(-2)), 0.15)
  427. clerp(neck, necknor*CFrame.Angles(Rad(-2 * Sin(sine / 18.5)), 0, Rad(3)), 0.15)
  428. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-4 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3)
  429. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-4 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3)
  430. clerp(RH, RHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))-Rad(2 * Sin(sine / (18.5*2))), Rad(-6), Rad(0)), 0.15)
  431. clerp(LH, LHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))+Rad(2 * Sin(sine / (18.5*2))), Rad(6), Rad(0)), 0.15)
  432. end
  433. elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
  434. anim = "Walk"
  435. if attack == false then
  436. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.1+0.1 * Sin(sine / 3)) * CFrame.Angles(Rad(0), tors.RotVelocity.y/75, Rad(0)), 0.3)
  437. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  438. clerp(RH, RHnor * CFrame.new(0.15 + 0.15 * Sin(sine / 6), 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-11-55 * Cos(sine / 6))), 0.3)
  439. clerp(LH, LHnor * CFrame.new(-0.15 - 0.15 * Sin(sine / 6), 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(11-55 * Cos(sine / 6))), 0.3)
  440. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(55 * Cos(sine / 6))), 0.3)
  441. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(55 * Cos(sine / 6))), 0.3)
  442. end
  443. if attack == false and md == true then
  444. md = false
  445. local hey = moo:Clone()
  446. hey.Parent = script
  447. local fun = hey.coolepicdust
  448. fun.Anchored = true
  449. fun.CFrame = root.CFrame * CFrame.new(0, -root.Size.y*1.5, 0)
  450. fun.Name = "coolepicdust"
  451. fun.Material = "SmoothPlastic"
  452. fun.CanCollide = false
  453. fun.Color = Color3.new(1, 1, 1)
  454. fun.Size = Vector3.new(1, 1, 1)
  455. fun.Rotation = Vector3.new(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  456. coroutine.resume(coroutine.create(function()
  457. coroutine.resume(coroutine.create(function()
  458. wait(0.25)
  459. md = true
  460. end))
  461. wait(0.15)
  462. for i = 1,35 do
  463. Swait()
  464. --fun.Position = root.Position + Vector3.new(0, -root.Size.y, 0)
  465. fun.Size = fun.Size - Vector3.new(0.035, 0.035, 0.035)
  466. fun.Transparency = fun.Transparency + 0
  467. end
  468. fun:Destroy()
  469. end))
  470. end
  471. elseif torsverticalvel > 0.5 and hitfloor == nil then
  472. anim = "Jump"
  473. if attack == false and spid == "norm" then
  474. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.15)
  475. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-15), Rad(0), Rad(0)), 0.15)
  476. clerp(RH, RHnor * CFrame.new(0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-15)), 0.15)
  477. clerp(LH, LHnor * CFrame.new(0.35/2, 0.35/2, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(15)), 0.15)
  478. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(160)), 0.15)
  479. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35)), 0.15)
  480. elseif attack == false and spid == "fast" then
  481. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.15)
  482. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.15)
  483. clerp(RH, RHnor * CFrame.new(0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-15)), 0.15)
  484. clerp(LH, LHnor * CFrame.new(-0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(15)), 0.15)
  485. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(175)), 0.15)
  486. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-175)), 0.15)
  487. end
  488. elseif torsverticalvel < 0.5 and hitfloor == nil then
  489. anim = "Fall"
  490. if attack == false and spid == "norm" then
  491. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(15), Rad(0), Rad(0)), 0.2)
  492. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(15), Rad(0), Rad(0)), 0.2)
  493. clerp(RH, RHnor * CFrame.new(0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-15)), 0.15)
  494. clerp(LH, LHnor * CFrame.new(0.35/2, 0.35/2, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(15)), 0.15)
  495. clerp(RS, RSnor * CFrame.new(0, -0.5, 0.5) * CFrame.Angles(Rad(-85), Rad(0), Rad(0)), 0.2)
  496. clerp(LS, LSnor * CFrame.new(0, -0.5, 0.5) * CFrame.Angles(Rad(-85), Rad(0), Rad(0)), 0.2)
  497. elseif attack == false and spid == "fast" then
  498. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.15)
  499. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(25), Rad(0), Rad(0)), 0.15)
  500. clerp(RH, RHnor * CFrame.new(0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-25)), 0.15)
  501. clerp(LH, LHnor * CFrame.new(-0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.15)
  502. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(145)), 0.15)
  503. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-145)), 0.15)
  504. end
  505. end
  506. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement