Advertisement
HenloMyDude

Painter Noob [ WIP ]

Jul 3rd, 2020
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.39 KB | None | 0 0
  1.  
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. 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(204448429) or owner.UserId == 204448429 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. sc = 0.5
  67.  
  68. function bevel(p)
  69. if not p:FindFirstChildOfClass("SpecialMesh") then
  70. local m = Instance.new("SpecialMesh", p)
  71. m.MeshId = "rbxassetid://4571305394"
  72. m.Scale = p.Size * 0.5
  73. end
  74. end
  75.  
  76. for i,v in pairs (char:children()) do
  77. if v:IsA("BasePart") then
  78. bevel(v)
  79. elseif v:IsA("ShirtGraphic") or v:IsA("Shirt") or v:IsA("Pants") or v:IsA("BodyColors") or v:IsA("Hat") or v:IsA("Accessory") then
  80. v:Destroy()
  81. end
  82. end
  83.  
  84. local e = Instance.new("BodyColors", char)
  85. e.HeadColor = BrickColor.new("Bright yellow")
  86. e.TorsoColor = BrickColor.new("Black")
  87. e.RightArmColor = BrickColor.new("Bright yellow")
  88. e.LeftArmColor = BrickColor.new("Bright yellow")
  89. e.RightLegColor = BrickColor.new("Br. yellowish green")
  90. e.LeftLegColor = BrickColor.new("Br. yellowish green")
  91.  
  92. local sizo = 1.1
  93. local hat = Instance.new("Part",char)
  94. hat.Size = Vector3.new(0.1, 0.1, 0.1)
  95. hat.CanCollide = false
  96. hat.Color = char.Torso.Color
  97. local mesh = Instance.new("SpecialMesh",hat)
  98. mesh.MeshId = "rbxassetid://9471312"
  99. mesh.Scale = Vector3.new(1, 1, 1) * sizo
  100. local weld = ezweld(char, hat, hed, CFrame.new(0, -0.5, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)))
  101.  
  102. local sizo = 0.8
  103. local brush = Instance.new("Part",char)
  104. brush.Size = Vector3.new(0.1, 0.1, 0.1)
  105. brush.CanCollide = false
  106. brush.Color = char.Torso.Color
  107. local mesh = Instance.new("SpecialMesh",brush)
  108. mesh.MeshId = "rbxassetid://4318449344"
  109. mesh.TextureId = "rbxassetid://4318464138"
  110. mesh.Scale = Vector3.new(1, 1, 1) * sizo
  111. local weldb = ezweld(char, brush, char.Torso, CFrame.new(0, 0, -0.485) * CFrame.Angles(Rad(0), Rad(0), Rad(0)))
  112. wbc0 = weldb.C0
  113.  
  114. hum.WalkSpeed = 10
  115.  
  116. for k,g in pairs (char:GetDescendants()) do
  117. if g:IsA("Weld") or g:IsA("Glue") then
  118. local Angle0 = g.C0 - Vector3.new(g.C0.X,g.C0.Y,g.C0.Z)
  119. local Angle1 = g.C1 - Vector3.new(g.C1.X,g.C1.Y,g.C1.Z)
  120. g.C0 = CFrame.new(g.C0.X*sc,g.C0.Y*sc,g.C0.Z*sc) * Angle0
  121. g.C1 = CFrame.new(g.C1.X*sc,g.C1.Y*sc,g.C1.Z*sc) * Angle1
  122. elseif g:IsA("SpecialMesh") then
  123. if g.MeshType ~= Enum.MeshType.Head then
  124. g.Scale = g.Scale*sc
  125. end
  126. elseif g:IsA("Part") or g:IsA("MeshPart") then
  127. g.Size = g.Size*sc
  128. elseif g:IsA("Motor") or g:IsA("Motor6D") then
  129. local Angle0 = g.C0 - Vector3.new(g.C0.X,g.C0.Y,g.C0.Z)
  130. local Angle1 = g.C1 - Vector3.new(g.C1.X,g.C1.Y,g.C1.Z)
  131. g.C0 = CFrame.new(g.C0.X*sc,g.C0.Y*sc,g.C0.Z*sc) * Angle0
  132. g.C1 = CFrame.new(g.C1.X*sc,g.C1.Y*sc,g.C1.Z*sc) * Angle1
  133. elseif g:IsA("Humanoid") then
  134. g.HipHeight = g.HipHeight*sc
  135. end
  136. end
  137.  
  138. anim = "Idle"
  139. attack = false
  140. local RS = char.Torso["Right Shoulder"]
  141. local LS = char.Torso["Left Shoulder"]
  142. local RH = char.Torso["Right Hip"]
  143. local LH = char.Torso["Left Hip"]
  144. local neck = char.Torso["Neck"]
  145. local root = char.HumanoidRootPart
  146. local rootj = root.RootJoint
  147. local sine = 0
  148. local RSnor = RS.C0
  149. local LSnor = LS.C0
  150. local RHnor = RH.C0
  151. local LHnor = LH.C0
  152. local RSnor2 = RS.C1
  153. local LSnor2 = LS.C1
  154. local RHnor2 = RH.C1
  155. local LHnor2 = LH.C1
  156. local rootjnor = rootj.C0
  157. local necknor = neck.C0
  158. local tors = char.Torso
  159. hum.Animator:remove()
  160. mouse = plr:GetMouse()
  161. hold = false
  162. Debris = game:GetService("Debris")
  163.  
  164. sped = 16
  165. keyhold = false
  166. spino = 0
  167. hito = true
  168.  
  169. function RayCast(Position, Direction, Range, Ignore)
  170. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  171. end
  172.  
  173. local moo = Instance.new("Model")
  174. local fun = Instance.new("Part", moo)
  175. fun.Name = "coolepicdust"
  176. fun.Material = "SmoothPlastic"
  177. fun.CanCollide = false
  178. fun.Color = Color3.new(1, 1, 1)
  179. fun.Size = Vector3.new(1, 1, 1)
  180. fun.Rotation = Vector3.new(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  181. local drawings = Instance.new("Folder", script)
  182.  
  183. local at = 1
  184. md = true
  185.  
  186. function PaintSlash1()
  187. attack = true
  188. for i = 1,3 do
  189. Swait()
  190. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35)), 0.035)
  191. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.035)
  192. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  193. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  194. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6), Rad(25), Rad(21)), 0.6)
  195. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.035)
  196. end
  197. weldb.C0 = CFrame.Angles(0, Rad(180), Rad(135)) * CFrame.new(0, 1, 0)
  198. weldb.Part1 = ra
  199. for i = 1,13 do
  200. Swait()
  201. if md == true then
  202. md = false
  203. local hey = moo:Clone()
  204. hey.Parent = drawings
  205. local fun = hey.coolepicdust
  206. fun.Anchored = true
  207. fun.CFrame = brush.CFrame * CFrame.new(0, 1, 0)
  208. fun.Name = "coolepicdraw"
  209. fun.Material = "SmoothPlastic"
  210. fun.CanCollide = false
  211. fun.BrickColor = BrickColor.new("Lavender")
  212. fun.Size = Vector3.new(0.45, 0.45, 0.45)
  213. fun.Rotation = Vector3.new(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  214. fun.Touched:connect(function(hit)
  215. local dud = hit.Parent
  216. if dud ~= char then
  217. for i,v in pairs (dud:children()) do
  218. if v:IsA("Humanoid") then
  219. v.Health = v.Health - 11.75
  220. end
  221. end
  222. end
  223. end)
  224. coroutine.resume(coroutine.create(function()
  225. coroutine.resume(coroutine.create(function()
  226. wait(0.15)
  227. md = true
  228. end))
  229. for i = 1,15 do
  230. Swait()
  231. --fun.Position = root.Position + Vector3.new(0, -root.Size.y, 0)
  232. fun.Size = fun.Size - Vector3.new(0.035, 0.035, 0.035)
  233. fun.Transparency = fun.Transparency + 0
  234. end
  235. fun:Destroy()
  236. end))
  237. end
  238. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35)), 0.035)
  239. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.035)
  240. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  241. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  242. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6), Rad(25), Rad(175)), 0.1)
  243. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.035)
  244. end
  245. for i = 1,15 do
  246. Swait()
  247. if md == true then
  248. md = false
  249. local hey = moo:Clone()
  250. hey.Parent = drawings
  251. local fun = hey.coolepicdust
  252. fun.Anchored = true
  253. fun.CFrame = brush.CFrame * CFrame.new(0, 1, 0)
  254. fun.Name = "coolepicdraw"
  255. fun.Material = "SmoothPlastic"
  256. fun.CanCollide = false
  257. fun.BrickColor = BrickColor.new("Lavender")
  258. fun.Size = Vector3.new(0.45, 0.45, 0.45)
  259. fun.Rotation = Vector3.new(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  260. fun.Touched:connect(function(hit)
  261. local dud = hit.Parent
  262. if dud ~= char then
  263. for i,v in pairs (dud:children()) do
  264. if v:IsA("Humanoid") then
  265. v.Health = v.Health - 11.75
  266. end
  267. end
  268. end
  269. end)
  270. coroutine.resume(coroutine.create(function()
  271. coroutine.resume(coroutine.create(function()
  272. wait(0.15)
  273. md = true
  274. end))
  275. for i = 1,15 do
  276. Swait()
  277. --fun.Position = root.Position + Vector3.new(0, -root.Size.y, 0)
  278. fun.Size = fun.Size - Vector3.new(0.035, 0.035, 0.035)
  279. fun.Transparency = fun.Transparency + 0
  280. end
  281. fun:Destroy()
  282. end))
  283. end
  284. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35)), 0.055)
  285. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35)), 0.055)
  286. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  287. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  288. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-11), Rad(25), Rad(35)), 0.066)
  289. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.035)
  290. end
  291. weldb.Part1 = char.Torso
  292. weldb.C0 = CFrame.new(0, 0, -0.485/2) * CFrame.Angles(Rad(0), Rad(0), Rad(0))
  293. attack = false
  294. end
  295.  
  296. function PaintSlash2()
  297. attack = true
  298. for i = 1,3 do
  299. Swait()
  300. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35)), 0.035)
  301. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.035)
  302. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  303. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  304. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6), Rad(25), Rad(21)), 0.6)
  305. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.035)
  306. end
  307. weldb.C0 = CFrame.Angles(0, Rad(180), Rad(135)) * CFrame.new(0, 1, 0)
  308. weldb.Part1 = ra
  309. for i = 1,13 do
  310. Swait()
  311. if md == true then
  312. md = false
  313. local hey = moo:Clone()
  314. hey.Parent = drawings
  315. local fun = hey.coolepicdust
  316. fun.Anchored = true
  317. fun.CFrame = brush.CFrame * CFrame.new(0, 1, 0)
  318. fun.Name = "coolepicdraw"
  319. fun.Material = "SmoothPlastic"
  320. fun.CanCollide = false
  321. fun.BrickColor = BrickColor.new("Lavender")
  322. fun.Size = Vector3.new(0.45, 0.45, 0.45)
  323. fun.Rotation = Vector3.new(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  324. fun.Touched:connect(function(hit)
  325. local dud = hit.Parent
  326. if dud ~= char then
  327. for i,v in pairs (dud:children()) do
  328. if v:IsA("Humanoid") then
  329. v.Health = v.Health - 11.75
  330. end
  331. end
  332. end
  333. end)
  334. coroutine.resume(coroutine.create(function()
  335. coroutine.resume(coroutine.create(function()
  336. wait(0.15)
  337. md = true
  338. end))
  339. for i = 1,15 do
  340. Swait()
  341. --fun.Position = root.Position + Vector3.new(0, -root.Size.y, 0)
  342. fun.Size = fun.Size - Vector3.new(0.035, 0.035, 0.035)
  343. fun.Transparency = fun.Transparency + 0
  344. end
  345. fun:Destroy()
  346. end))
  347. end
  348. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-15)), 0.1)
  349. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.1)
  350. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  351. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  352. clerp(RS, RSnor * CFrame.new(0, -0.25, 0.25) * CFrame.Angles(Rad(-90), Rad(0), Rad(0)), 0.1)
  353. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.1)
  354. end
  355. for i = 1,15 do
  356. Swait()
  357. if md == true then
  358. md = false
  359. local hey = moo:Clone()
  360. hey.Parent = drawings
  361. local fun = hey.coolepicdust
  362. fun.Anchored = true
  363. fun.CFrame = brush.CFrame * CFrame.new(0, 1, 0)
  364. fun.Name = "coolepicdraw"
  365. fun.Material = "SmoothPlastic"
  366. fun.CanCollide = false
  367. fun.BrickColor = BrickColor.new("Lavender")
  368. fun.Size = Vector3.new(0.45, 0.45, 0.45)
  369. fun.Rotation = Vector3.new(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  370. fun.Touched:connect(function(hit)
  371. local dud = hit.Parent
  372. if dud ~= char then
  373. for i,v in pairs (dud:children()) do
  374. if v:IsA("Humanoid") then
  375. v.Health = v.Health - 11.75
  376. end
  377. end
  378. end
  379. end)
  380. coroutine.resume(coroutine.create(function()
  381. coroutine.resume(coroutine.create(function()
  382. wait(0.15)
  383. md = true
  384. end))
  385. for i = 1,15 do
  386. Swait()
  387. --fun.Position = root.Position + Vector3.new(0, -root.Size.y, 0)
  388. fun.Size = fun.Size - Vector3.new(0.035, 0.035, 0.035)
  389. fun.Transparency = fun.Transparency + 0
  390. end
  391. fun:Destroy()
  392. end))
  393. end
  394. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90)), 0.2)
  395. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35)), 0.1)
  396. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  397. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.035)
  398. clerp(RS, RSnor * CFrame.new(0, -0.25, 0.25) * CFrame.Angles(Rad(-90), Rad(45), Rad(55)), 0.1)
  399. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.1)
  400. end
  401. weldb.Part1 = char.Torso
  402. weldb.C0 = CFrame.new(0, 0, -0.485/2) * CFrame.Angles(Rad(0), Rad(0), Rad(0))
  403. attack = false
  404. end
  405.  
  406. mouse.Button1Down:connect(function()
  407. if attack == false then
  408. if at == 1 then
  409. PaintSlash1()
  410. at = 2
  411. else
  412. PaintSlash2()
  413. at = 1
  414. end
  415. end
  416. end)
  417.  
  418. while true do
  419. Swait()
  420. hat.Color = tors.Color
  421. sine = sine + 1
  422. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  423. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  424. local WALKSPEEDVALUE = 8 / (sped / 16)
  425. torsverticalvel = root.Velocity.y
  426. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  427. if TORSOVELOCITY < 1 and hitfloor ~= nil then
  428. anim = "Idle"
  429. if attack == false then
  430. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.015 * Cos(sine / 13)) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.1)
  431. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  432. clerp(RH, RHnor * CFrame.new(0, -0.015 * Cos(sine / 13), 0) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.3)
  433. clerp(LH, LHnor * CFrame.new(0, -0.015 * Cos(sine / 13), 0) * CFrame.Angles(Rad(-2), Rad(8), Rad(0)), 0.3)
  434. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(-8 * Sin(sine / 13)), Rad(11 * Cos(sine / 13))), 0.3)
  435. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(8 * Sin(sine / 13)), Rad(-11 * Cos(sine / 13))), 0.3)
  436. end
  437. elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
  438. anim = "Walk"
  439. if attack == false then
  440. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  441. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  442. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(41 * Cos(sine / 8))), 0.3)
  443. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(41 * Cos(sine / 8))), 0.3)
  444. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-41 * Cos(sine / 8))), 0.3)
  445. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-41 * Cos(sine / 8))), 0.3)
  446. end
  447. elseif torsverticalvel > 0.5 and hitfloor == nil then
  448. anim = "Jump"
  449. if attack == false then
  450. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  451. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  452. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  453. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  454. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  455. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  456. end
  457. elseif torsverticalvel < 0.5 and hitfloor == nil then
  458. anim = "Fall"
  459. if attack == false then
  460. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  461. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  462. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  463. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  464. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  465. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  466. end
  467. end
  468. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement