Advertisement
teotv202

ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤMidas Touchㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

Mar 28th, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"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("UserInput_Event")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
  5.  
  6.  
  7.  
  8. wait(0.2)
  9.  
  10.  
  11.  
  12. Player = game:GetService("Players").LocalPlayer
  13. PlayerGui = Player.PlayerGui
  14. Cam = workspace.CurrentCamera
  15. Backpack = Player.Backpack
  16. Character = Player.Character
  17. Humanoid = Character.Humanoid
  18. Mouse = Player:GetMouse()
  19. RootPart = Character["HumanoidRootPart"]
  20. Torso = Character["Torso"]
  21. Head = Character["Head"]
  22. RightArm = Character["Right Arm"]
  23. LeftArm = Character["Left Arm"]
  24. RightLeg = Character["Right Leg"]
  25. LeftLeg = Character["Left Leg"]
  26. RootJoint = RootPart["RootJoint"]
  27. Neck = Torso["Neck"]
  28. RightShoulder = Torso["Right Shoulder"]
  29. LeftShoulder = Torso["Left Shoulder"]
  30. RightHip = Torso["Right Hip"]
  31. LeftHip = Torso["Left Hip"]
  32. local sick = Instance.new("Sound",Character)
  33. sick.SoundId = "rbxassetid://1237585433"
  34. sick.Looped = true
  35. sick.Pitch = .9
  36. sick.Volume = 1
  37. sick:Play()
  38.  
  39. IT = Instance.new
  40. CF = CFrame.new
  41. VT = Vector3.new
  42. RAD = math.rad
  43. C3 = Color3.new
  44. UD2 = UDim2.new
  45. BRICKC = BrickColor.new
  46. ANGLES = CFrame.Angles
  47. EULER = CFrame.fromEulerAnglesXYZ
  48. COS = math.cos
  49. ACOS = math.acos
  50. SIN = math.sin
  51. ASIN = math.asin
  52. ABS = math.abs
  53. MRANDOM = math.random
  54. FLOOR = math.floor
  55.  
  56. --//=================================\\
  57. --|| CUSTOMIZATION
  58. --\\=================================//
  59.  
  60. Class_Name = "Greed"
  61. Weapon_Name = "Add-ons"
  62.  
  63. Custom_Colors = {
  64. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  65. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  66.  
  67. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  68. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  69. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  70. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  71. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  72.  
  73. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  74. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  75. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  76. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  77. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  78. }
  79.  
  80.  
  81. Player_Size = 1 --Size of the player.
  82. Animation_Speed = 3
  83. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  84.  
  85. local Speed = 9
  86. local Effects2 = {}
  87.  
  88. --//=================================\\
  89. --|| END OF CUSTOMIZATION
  90. --\\=================================//
  91.  
  92. local function weldBetween(a, b)
  93. local weldd = Instance.new("ManualWeld")
  94. weldd.Part0 = a
  95. weldd.Part1 = b
  96. weldd.C0 = CFrame.new()
  97. weldd.C1 = b.CFrame:inverse() * a.CFrame
  98. weldd.Parent = a
  99. return weldd
  100. end
  101.  
  102. --//=================================\\
  103. --|| USEFUL VALUES
  104. --\\=================================//
  105.  
  106. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  107. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  108. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  109. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  110. local CO1 = 0
  111. local CO2 = 0
  112. local CO3 = 0
  113. local CO4 = 0
  114. local CHANGEDEFENSE = 0
  115. local CHANGEDAMAGE = 0
  116. local CHANGEMOVEMENT = 0
  117. local ANIM = "Idle"
  118. local ATTACK = false
  119. local EQUIPPED = false
  120. local HOLD = false
  121. local COMBO = 1
  122. local LASTPOINT = nil
  123. local BLCF = nil
  124. local SCFR = nil
  125. local STAGGERHITANIM = false
  126. local STAGGERANIM = false
  127. local STUNANIM = false
  128. local CRITCHANCENUMBER = 0
  129. local IDLENUMBER = 0
  130. local DONUMBER = 0
  131. local HANDIDLE = false
  132. local Rooted = false
  133. local SINE = 0
  134. local CHANGE = 2 / Animation_Speed
  135. local WALKINGANIM = false
  136. local WALK = 0
  137. local DISABLEJUMPING = false
  138. local ROBLOXIDLEANIMATION = IT("Animation")
  139. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  140. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  141. --ROBLOXIDLEANIMATION.Parent = Humanoid
  142. local ANIMATOR = Humanoid.Animator
  143. local ANIMATE = Character.Animate
  144. local UNANCHOR = true
  145.  
  146. local SKILLTEXTCOLOR = C3(0,0,0)
  147.  
  148. --//=================================\\
  149. --\\=================================//
  150.  
  151.  
  152. --//=================================\\
  153. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  154. --\\=================================//
  155.  
  156. ArtificialHB = Instance.new("BindableEvent", script)
  157. ArtificialHB.Name = "ArtificialHB"
  158.  
  159. script:WaitForChild("ArtificialHB")
  160.  
  161. frame = Frame_Speed
  162. tf = 0
  163. allowframeloss = false
  164. tossremainder = false
  165. lastframe = tick()
  166. script.ArtificialHB:Fire()
  167.  
  168. game:GetService("RunService").Heartbeat:connect(function(s, p)
  169. tf = tf + s
  170. if tf >= frame then
  171. if allowframeloss then
  172. script.ArtificialHB:Fire()
  173. lastframe = tick()
  174. else
  175. for i = 1, math.floor(tf / frame) do
  176. script.ArtificialHB:Fire()
  177. end
  178. lastframe = tick()
  179. end
  180. if tossremainder then
  181. tf = 0
  182. else
  183. tf = tf - frame * math.floor(tf / frame)
  184. end
  185. end
  186. end)
  187.  
  188. --//=================================\\
  189. --\\=================================//
  190.  
  191.  
  192.  
  193.  
  194.  
  195. --//=================================\\
  196. --|| SOME FUNCTIONS
  197. --\\=================================//
  198.  
  199. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  200. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  201. end
  202.  
  203. function PositiveAngle(NUMBER)
  204. if NUMBER >= 0 then
  205. NUMBER = 0
  206. end
  207. return NUMBER
  208. end
  209.  
  210. function NegativeAngle(NUMBER)
  211. if NUMBER <= 0 then
  212. NUMBER = 0
  213. end
  214. return NUMBER
  215. end
  216.  
  217. function Swait(NUMBER)
  218. if NUMBER == 0 or NUMBER == nil then
  219. ArtificialHB.Event:wait()
  220. else
  221. for i = 1, NUMBER do
  222. ArtificialHB.Event:wait()
  223. end
  224. end
  225. end
  226.  
  227. function QuaternionFromCFrame(cf)
  228. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  229. local trace = m00 + m11 + m22
  230. if trace > 0 then
  231. local s = math.sqrt(1 + trace)
  232. local recip = 0.5 / s
  233. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  234. else
  235. local i = 0
  236. if m11 > m00 then
  237. i = 1
  238. end
  239. if m22 > (i == 0 and m00 or m11) then
  240. i = 2
  241. end
  242. if i == 0 then
  243. local s = math.sqrt(m00 - m11 - m22 + 1)
  244. local recip = 0.5 / s
  245. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  246. elseif i == 1 then
  247. local s = math.sqrt(m11 - m22 - m00 + 1)
  248. local recip = 0.5 / s
  249. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  250. elseif i == 2 then
  251. local s = math.sqrt(m22 - m00 - m11 + 1)
  252. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  253. end
  254. end
  255. end
  256.  
  257. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  258. local xs, ys, zs = x + x, y + y, z + z
  259. local wx, wy, wz = w * xs, w * ys, w * zs
  260. local xx = x * xs
  261. local xy = x * ys
  262. local xz = x * zs
  263. local yy = y * ys
  264. local yz = y * zs
  265. local zz = z * zs
  266. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  267. end
  268.  
  269. function QuaternionSlerp(a, b, t)
  270. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  271. local startInterp, finishInterp;
  272. if cosTheta >= 0.0001 then
  273. if (1 - cosTheta) > 0.0001 then
  274. local theta = ACOS(cosTheta)
  275. local invSinTheta = 1 / SIN(theta)
  276. startInterp = SIN((1 - t) * theta) * invSinTheta
  277. finishInterp = SIN(t * theta) * invSinTheta
  278. else
  279. startInterp = 1 - t
  280. finishInterp = t
  281. end
  282. else
  283. if (1 + cosTheta) > 0.0001 then
  284. local theta = ACOS(-cosTheta)
  285. local invSinTheta = 1 / SIN(theta)
  286. startInterp = SIN((t - 1) * theta) * invSinTheta
  287. finishInterp = SIN(t * theta) * invSinTheta
  288. else
  289. startInterp = t - 1
  290. finishInterp = t
  291. end
  292. end
  293. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  294. end
  295.  
  296. function Clerp(a, b, t)
  297. local qa = {QuaternionFromCFrame(a)}
  298. local qb = {QuaternionFromCFrame(b)}
  299. local ax, ay, az = a.x, a.y, a.z
  300. local bx, by, bz = b.x, b.y, b.z
  301. local _t = 1 - t
  302. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  303. end
  304.  
  305. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  306. local frame = IT("Frame")
  307. frame.BackgroundTransparency = TRANSPARENCY
  308. frame.BorderSizePixel = BORDERSIZEPIXEL
  309. frame.Position = POSITION
  310. frame.Size = SIZE
  311. frame.BackgroundColor3 = COLOR
  312. frame.BorderColor3 = BORDERCOLOR
  313. frame.Name = NAME
  314. frame.Parent = PARENT
  315. return frame
  316. end
  317.  
  318. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  319. local label = IT("TextLabel")
  320. label.BackgroundTransparency = 1
  321. label.Size = UD2(1, 0, 1, 0)
  322. label.Position = UD2(0, 0, 0, 0)
  323. label.TextColor3 = TEXTCOLOR
  324. label.TextStrokeTransparency = STROKETRANSPARENCY
  325. label.TextTransparency = TRANSPARENCY
  326. label.FontSize = TEXTFONTSIZE
  327. label.Font = TEXTFONT
  328. label.BorderSizePixel = BORDERSIZEPIXEL
  329. label.TextScaled = false
  330. label.Text = TEXT
  331. label.Name = NAME
  332. label.Parent = PARENT
  333. return label
  334. end
  335.  
  336. function NoOutlines(PART)
  337. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  338. end
  339.  
  340.  
  341. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  342. local NEWWELD = IT(TYPE)
  343. NEWWELD.Part0 = PART0
  344. NEWWELD.Part1 = PART1
  345. NEWWELD.C0 = C0
  346. NEWWELD.C1 = C1
  347. NEWWELD.Parent = PARENT
  348. return NEWWELD
  349. end
  350.  
  351. function CreateSound(ID, PARENT, VOLUME, PITCH)
  352. local NEWSOUND = nil
  353. coroutine.resume(coroutine.create(function()
  354. NEWSOUND = IT("Sound", PARENT)
  355. NEWSOUND.Volume = VOLUME
  356. NEWSOUND.Pitch = PITCH
  357. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  358. Swait()
  359. NEWSOUND:play()
  360. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  361. end))
  362. return NEWSOUND
  363. end
  364.  
  365. function CFrameFromTopBack(at, top, back)
  366. local right = top:Cross(back)
  367. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  368. end
  369.  
  370. --//=================================\\
  371. --|| SPEECH
  372. --\\=================================//
  373.  
  374. local speak = Instance.new("Sound",Head)
  375. speak.SoundId = "rbxassetid://418252437"
  376. speak.Volume = 4
  377.  
  378. function chatfunc(text,waitt)
  379. local chat = coroutine.wrap(function()
  380. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  381. Character:FindFirstChild("TalkingBillBoard").Parent = nil
  382. end
  383. local naeeym2 = Instance.new("BillboardGui",Character)
  384. naeeym2.Size = UDim2.new(0,100,0,40)
  385. naeeym2.StudsOffset = Vector3.new(0,2,0)
  386. naeeym2.Adornee = Character.Head
  387. naeeym2.Name = "TalkingBillBoard"
  388. naeeym2.AlwaysOnTop = true
  389. local tecks2 = Instance.new("TextLabel",naeeym2)
  390. tecks2.BackgroundTransparency = 1
  391. tecks2.BorderSizePixel = 0
  392. tecks2.Text = ""
  393. tecks2.Font = "Fantasy"
  394. tecks2.TextSize = 30
  395. tecks2.TextStrokeTransparency = 1
  396. tecks2.TextColor3 = SKILLTEXTCOLOR
  397. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  398. tecks2.Size = UDim2.new(1,0,0.5,0)
  399. for i = 1,string.len(text),1 do
  400. if naeeym2.Parent ~= nil then
  401. tecks2.Text = string.sub(text,1,i)
  402. speak.PlaybackSpeed = (math.random(8,9)/10)
  403. speak:Play()
  404. Swait(3)
  405. end
  406. end
  407. wait(waitt)
  408. coroutine.resume(coroutine.create(function()
  409. for i = 1, 10 do
  410. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  411. Swait()
  412. end
  413. naeeym2:Destroy()
  414. end))
  415. end)
  416. chat()
  417. end
  418.  
  419. --//=================================\\
  420. --|| DAMAGING
  421. --\\=================================//
  422.  
  423. function goldify(hit)
  424. local GOLDNAMES = {"Gold","Shiny rock","Munz","$$"}
  425. hit.Anchored = false
  426. hit.CanCollide = true
  427. hit.Parent = workspace
  428. hit.Name = GOLDNAMES[MRANDOM(1,#GOLDNAMES)]
  429. hit.Material = "Glass"
  430. hit.Reflectance = 0.4
  431. hit.BrickColor = BRICKC("Bright yellow")
  432. if hit:FindFirstChildOfClass("SpecialMesh") then
  433. local mesh = hit:FindFirstChildOfClass("SpecialMesh")
  434. mesh.TextureId = ""
  435. end
  436. if hit:FindFirstChildOfClass("Decal") then
  437. local mesh = hit:FindFirstChildOfClass("Decal")
  438. mesh:remove()
  439. end
  440. if hit.ClassName == "MeshPart" then
  441. hit.TextureID = ""
  442. end
  443. if hit.ClassName == "UnionOperation" then
  444. hit.UsePartColor = true
  445. end
  446. end
  447.  
  448. function turntogold(hit)
  449. if hit.Parent ~= Character then
  450. if hit.Parent ~= workspace then
  451. print("My gold...")
  452. local body = hit.Parent:GetChildren()
  453. for part = 1, #body do
  454. local child = body[part]
  455. if child.ClassName == "Part" or child.ClassName == "MeshPart" or child.ClassName == "UnionOperation" then
  456. if child.Name == "Head" then
  457. CreateSound("1037197054", child, 2, 1)
  458. end
  459. goldify(child)
  460. elseif child.ClassName == "Accessory" or child.ClassName == "Hat" then
  461. if child:FindFirstChild("Handle") then
  462. goldify(child.Handle)
  463. end
  464. end
  465. end
  466. else
  467. goldify(hit)
  468. end
  469. end
  470. end
  471.  
  472. --//=================================\\
  473. --|| ATTACK FUNCTIONS AND STUFF
  474. --\\=================================//
  475.  
  476. local hit = Torso.Touched:Connect(function(hit)
  477. if hit.Parent:FindFirstChild("Humanoid") then
  478. turntogold(hit)
  479. end
  480. end)
  481. local hit = RightArm.Touched:Connect(function(hit)
  482. if hit.Parent:FindFirstChild("Humanoid") then
  483. turntogold(hit)
  484. end
  485. end)
  486. local hit = LeftArm.Touched:Connect(function(hit)
  487. if hit.Parent:FindFirstChild("Humanoid") then
  488. turntogold(hit)
  489. end
  490. end)
  491. local hit = RightLeg.Touched:Connect(function(hit)
  492. if hit.Parent:FindFirstChild("Humanoid") then
  493. turntogold(hit)
  494. end
  495. end)
  496. local hit = LeftLeg.Touched:Connect(function(hit)
  497. if hit.Parent:FindFirstChild("Humanoid") then
  498. turntogold(hit)
  499. end
  500. end)
  501. local hit = Head.Touched:Connect(function(hit)
  502. if hit.Parent:FindFirstChild("Humanoid") then
  503. turntogold(hit)
  504. end
  505. end)
  506.  
  507. --//=================================\\
  508. --|| ASSIGN THINGS TO KEYS
  509. --\\=================================//
  510.  
  511. function KeyDown(Key)
  512. if Key == "t" and ATTACK == false then
  513. chatfunc("Oh why hello there!",100)
  514. Swait(150)
  515. chatfunc("Wanna Join the White Crusaders?",5)
  516. Swait(150)
  517. chatfunc("No?",1)
  518. Swait(45)
  519. chatfunc("Well then, join the niggers burning in hell.",1)
  520. end
  521. end
  522.  
  523. function KeyUp(Key)
  524. end
  525.  
  526. Mouse.KeyDown:connect(function(NEWKEY)
  527. KeyDown(NEWKEY)
  528. end)
  529. Mouse.KeyUp:connect(function(NEWKEY)
  530. KeyUp(NEWKEY)
  531. end)
  532.  
  533.  
  534. --//=================================\\
  535. --\\=================================//
  536.  
  537.  
  538. function unanchor()
  539. if UNANCHOR == true then
  540. g = Character:GetChildren()
  541. for i = 1, #g do
  542. if g[i].ClassName == "Part" then
  543. g[i].Anchored = false
  544. end
  545. end
  546. end
  547. end
  548.  
  549.  
  550. --//=================================\\
  551. --|| WRAP THE WHOLE SCRIPT UP
  552. --\\=================================//
  553.  
  554.  
  555. ANIMATE.Parent = nil
  556. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  557. IDLEANIMATION:Play()
  558.  
  559. while true do
  560. Swait()
  561. SINE = SINE + CHANGE
  562. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  563. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  564. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  565. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  566. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  567. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  568. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  569. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  570. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(30 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  571. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(30 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  572. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  573. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  574. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  575. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  576. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  577. end
  578. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  579. ANIM = "Jump"
  580. if ATTACK == false then
  581. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  582. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  583. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  584. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  585. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  586. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  587. end
  588. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  589. ANIM = "Fall"
  590. if ATTACK == false then
  591. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  592. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  593. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  594. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  595. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  596. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  597. end
  598. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  599. ANIM = "Idle"
  600. if ATTACK == false then
  601. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  602. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  603. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  604. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  605. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  606. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  607. end
  608. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  609. ANIM = "Walk"
  610. WALK = WALK + 1 / Animation_Speed
  611. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  612. WALK = 0
  613. if WALKINGANIM == true then
  614. WALKINGANIM = false
  615. elseif WALKINGANIM == false then
  616. WALKINGANIM = true
  617. end
  618. end
  619. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  620. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  621. if ATTACK == false then
  622. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  623. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  624. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  625. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  626. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  627. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  628. end
  629. end
  630. if #Effects2>0 then
  631. for e=1,#Effects2 do
  632. if Effects2[e]~=nil then
  633. local Thing=Effects2[e]
  634. if Thing~=nil then
  635. local Part=Thing[1]
  636. local Mode=Thing[2]
  637. local Delay=Thing[3]
  638. local IncX=Thing[4]
  639. local IncY=Thing[5]
  640. local IncZ=Thing[6]
  641. local Part2=Thing[8]
  642. if Thing[1].Transparency<=1 then
  643. if Thing[2]=="Block1" then
  644. Thing[1].CFrame=Thing[1].CFrame
  645. Mesh=Thing[1].Mesh
  646. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  647. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  648. elseif Thing[2]=="Cylinder" then
  649. Mesh=Thing[1].Mesh
  650. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  651. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  652. elseif Thing[2]=="Blood" then
  653. Mesh=Thing[7]
  654. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  655. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  656. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  657. elseif Thing[2]=="Elec" then
  658. Mesh=Thing[1].Mesh
  659. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  660. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  661. elseif Thing[2]=="Disappear" then
  662. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  663. end
  664. else
  665. Part.Parent=nil
  666. table.remove(Effects2,e)
  667. end
  668. end
  669. end
  670. end
  671. end
  672. unanchor()
  673. if Rooted == false then
  674. Disable_Jump = false
  675. Humanoid.WalkSpeed = Speed
  676. elseif Rooted == true then
  677. Disable_Jump = true
  678. Humanoid.WalkSpeed = 0
  679. end
  680. end
  681.  
  682. --//=================================\\
  683. --\\=================================//
  684.  
  685.  
  686.  
  687.  
  688.  
  689. --//====================================================\\--
  690. --|| END OF SCRIPT
  691. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement