Zach_script_stealer2

Midas

Apr 21st, 2019
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.89 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,game,owner = owner,game
  7. local RealPlayer = Player
  8. do
  9. print("FE Compatibility code by Mokiros")
  10. local rp = RealPlayer
  11. script.Parent = rp.Character
  12.  
  13. --RemoteEvent for communicating
  14. local Event = Instance.new("RemoteEvent")
  15. Event.Name = "UserInput_Event"
  16.  
  17. --Fake event to make stuff like Mouse.KeyDown work
  18. local function fakeEvent()
  19. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  20. t.connect = t.Connect
  21. return t
  22. end
  23.  
  24. --Creating fake input objects with fake variables
  25. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  26. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  27. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  28. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  29. end}
  30. --Merged 2 functions into one by checking amount of arguments
  31. CAS.UnbindAction = CAS.BindAction
  32.  
  33. --This function will trigger the events that have been :Connect()'ed
  34. local function te(self,ev,...)
  35. local t = m[ev]
  36. if t and t._fakeEvent then
  37. for _,f in pairs(t.Functions) do
  38. f(...)
  39. end
  40. end
  41. end
  42. m.TrigEvent = te
  43. UIS.TrigEvent = te
  44.  
  45. Event.OnServerEvent:Connect(function(plr,io)
  46. if plr~=rp then return end
  47. m.Target = io.Target
  48. m.Hit = io.Hit
  49. if not io.isMouse then
  50. local b = io.UserInputState == Enum.UserInputState.Begin
  51. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  52. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then return s[k] end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end,
  103. __call = function(self,...)
  104. local s = rawget(self,"_RealService")
  105. if s then return s(...) end
  106. end
  107. }
  108. local function FakeService(t,RealService)
  109. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  110. return setmetatable(t,fsmt)
  111. end
  112.  
  113. --Fake game object
  114. local g = {
  115. GetService = function(self,s)
  116. return self[s]
  117. end,
  118. Players = FakeService({
  119. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  120. },"Players"),
  121. UserInputService = FakeService(UIS,"UserInputService"),
  122. ContextActionService = FakeService(CAS,"ContextActionService"),
  123. }
  124. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  125. g.service = g.GetService
  126.  
  127. g.RunService = FakeService({
  128. RenderStepped = _rg:GetService("RunService").Heartbeat,
  129. BindToRenderStep = function(self,name,_,fun)
  130.  
  131. end,
  132. UnbindFromRenderStep = function(self,name)
  133. self._btrs[name]:Disconnect()
  134. end,
  135. },"RunService")
  136.  
  137. setmetatable(g,{
  138. __index=function(self,s)
  139. return _rg:GetService(s) or typeof(_rg[s])=="function"
  140. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  141. end,
  142. __newindex = fsmt.__newindex,
  143. __call = fsmt.__call
  144. })
  145. --Changing owner to fake player object to support owner:GetMouse()
  146. game,owner = g,g.Players.LocalPlayer
  147. end
  148.  
  149.  
  150.  
  151. wait(0.2)
  152.  
  153.  
  154.  
  155. Player = game:GetService("Players").LocalPlayer
  156. PlayerGui = Player.PlayerGui
  157. Cam = workspace.CurrentCamera
  158. Backpack = Player.Backpack
  159. Character = Player.Character
  160. Humanoid = Character.Humanoid
  161. Mouse = Player:GetMouse()
  162. RootPart = Character["HumanoidRootPart"]
  163. Torso = Character["Torso"]
  164. Head = Character["Head"]
  165. RightArm = Character["Right Arm"]
  166. LeftArm = Character["Left Arm"]
  167. RightLeg = Character["Right Leg"]
  168. LeftLeg = Character["Left Leg"]
  169. RootJoint = RootPart["RootJoint"]
  170. Neck = Torso["Neck"]
  171. RightShoulder = Torso["Right Shoulder"]
  172. LeftShoulder = Torso["Left Shoulder"]
  173. RightHip = Torso["Right Hip"]
  174. LeftHip = Torso["Left Hip"]
  175. local sick = Instance.new("Sound",Character)
  176. sick.SoundId = "rbxassetid://1237585433"
  177. sick.Looped = true
  178. sick.Pitch = .9
  179. sick.Volume = 1
  180. sick:Play()
  181.  
  182. IT = Instance.new
  183. CF = CFrame.new
  184. VT = Vector3.new
  185. RAD = math.rad
  186. C3 = Color3.new
  187. UD2 = UDim2.new
  188. BRICKC = BrickColor.new
  189. ANGLES = CFrame.Angles
  190. EULER = CFrame.fromEulerAnglesXYZ
  191. COS = math.cos
  192. ACOS = math.acos
  193. SIN = math.sin
  194. ASIN = math.asin
  195. ABS = math.abs
  196. MRANDOM = math.random
  197. FLOOR = math.floor
  198.  
  199. --//=================================\\
  200. --|| CUSTOMIZATION
  201. --\\=================================//
  202.  
  203. Class_Name = "Greed"
  204. Weapon_Name = "Add-ons"
  205.  
  206. Custom_Colors = {
  207. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  208. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  209.  
  210. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  211. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  212. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  213. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  214. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  215.  
  216. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  217. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  218. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  219. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  220. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  221. }
  222.  
  223.  
  224. Player_Size = 1 --Size of the player.
  225. Animation_Speed = 3
  226. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  227.  
  228. local Speed = 9
  229. local Effects2 = {}
  230.  
  231. --//=================================\\
  232. --|| END OF CUSTOMIZATION
  233. --\\=================================//
  234.  
  235. local function weldBetween(a, b)
  236. local weldd = Instance.new("ManualWeld")
  237. weldd.Part0 = a
  238. weldd.Part1 = b
  239. weldd.C0 = CFrame.new()
  240. weldd.C1 = b.CFrame:inverse() * a.CFrame
  241. weldd.Parent = a
  242. return weldd
  243. end
  244.  
  245. --//=================================\\
  246. --|| USEFUL VALUES
  247. --\\=================================//
  248.  
  249. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  250. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  251. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  252. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  253. local CO1 = 0
  254. local CO2 = 0
  255. local CO3 = 0
  256. local CO4 = 0
  257. local CHANGEDEFENSE = 0
  258. local CHANGEDAMAGE = 0
  259. local CHANGEMOVEMENT = 0
  260. local ANIM = "Idle"
  261. local ATTACK = false
  262. local EQUIPPED = false
  263. local HOLD = false
  264. local COMBO = 1
  265. local LASTPOINT = nil
  266. local BLCF = nil
  267. local SCFR = nil
  268. local STAGGERHITANIM = false
  269. local STAGGERANIM = false
  270. local STUNANIM = false
  271. local CRITCHANCENUMBER = 0
  272. local IDLENUMBER = 0
  273. local DONUMBER = 0
  274. local HANDIDLE = false
  275. local Rooted = false
  276. local SINE = 0
  277. local CHANGE = 2 / Animation_Speed
  278. local WALKINGANIM = false
  279. local WALK = 0
  280. local DISABLEJUMPING = false
  281. local ROBLOXIDLEANIMATION = IT("Animation")
  282. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  283. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  284. --ROBLOXIDLEANIMATION.Parent = Humanoid
  285. local ANIMATOR = Humanoid.Animator
  286. local ANIMATE = Character.Animate
  287. local UNANCHOR = true
  288.  
  289. local SKILLTEXTCOLOR = C3(0,0,0)
  290.  
  291. --//=================================\\
  292. --\\=================================//
  293.  
  294.  
  295. --//=================================\\
  296. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  297. --\\=================================//
  298.  
  299. ArtificialHB = Instance.new("BindableEvent", script)
  300. ArtificialHB.Name = "ArtificialHB"
  301.  
  302. script:WaitForChild("ArtificialHB")
  303.  
  304. frame = Frame_Speed
  305. tf = 0
  306. allowframeloss = false
  307. tossremainder = false
  308. lastframe = tick()
  309. script.ArtificialHB:Fire()
  310.  
  311. game:GetService("RunService").Heartbeat:connect(function(s, p)
  312. tf = tf + s
  313. if tf >= frame then
  314. if allowframeloss then
  315. script.ArtificialHB:Fire()
  316. lastframe = tick()
  317. else
  318. for i = 1, math.floor(tf / frame) do
  319. script.ArtificialHB:Fire()
  320. end
  321. lastframe = tick()
  322. end
  323. if tossremainder then
  324. tf = 0
  325. else
  326. tf = tf - frame * math.floor(tf / frame)
  327. end
  328. end
  329. end)
  330.  
  331. --//=================================\\
  332. --\\=================================//
  333.  
  334.  
  335.  
  336.  
  337.  
  338. --//=================================\\
  339. --|| SOME FUNCTIONS
  340. --\\=================================//
  341.  
  342. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  343. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  344. end
  345.  
  346. function PositiveAngle(NUMBER)
  347. if NUMBER >= 0 then
  348. NUMBER = 0
  349. end
  350. return NUMBER
  351. end
  352.  
  353. function NegativeAngle(NUMBER)
  354. if NUMBER <= 0 then
  355. NUMBER = 0
  356. end
  357. return NUMBER
  358. end
  359.  
  360. function Swait(NUMBER)
  361. if NUMBER == 0 or NUMBER == nil then
  362. ArtificialHB.Event:wait()
  363. else
  364. for i = 1, NUMBER do
  365. ArtificialHB.Event:wait()
  366. end
  367. end
  368. end
  369.  
  370. function QuaternionFromCFrame(cf)
  371. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  372. local trace = m00 + m11 + m22
  373. if trace > 0 then
  374. local s = math.sqrt(1 + trace)
  375. local recip = 0.5 / s
  376. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  377. else
  378. local i = 0
  379. if m11 > m00 then
  380. i = 1
  381. end
  382. if m22 > (i == 0 and m00 or m11) then
  383. i = 2
  384. end
  385. if i == 0 then
  386. local s = math.sqrt(m00 - m11 - m22 + 1)
  387. local recip = 0.5 / s
  388. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  389. elseif i == 1 then
  390. local s = math.sqrt(m11 - m22 - m00 + 1)
  391. local recip = 0.5 / s
  392. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  393. elseif i == 2 then
  394. local s = math.sqrt(m22 - m00 - m11 + 1)
  395. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  396. end
  397. end
  398. end
  399.  
  400. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  401. local xs, ys, zs = x + x, y + y, z + z
  402. local wx, wy, wz = w * xs, w * ys, w * zs
  403. local xx = x * xs
  404. local xy = x * ys
  405. local xz = x * zs
  406. local yy = y * ys
  407. local yz = y * zs
  408. local zz = z * zs
  409. 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))
  410. end
  411.  
  412. function QuaternionSlerp(a, b, t)
  413. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  414. local startInterp, finishInterp;
  415. if cosTheta >= 0.0001 then
  416. if (1 - cosTheta) > 0.0001 then
  417. local theta = ACOS(cosTheta)
  418. local invSinTheta = 1 / SIN(theta)
  419. startInterp = SIN((1 - t) * theta) * invSinTheta
  420. finishInterp = SIN(t * theta) * invSinTheta
  421. else
  422. startInterp = 1 - t
  423. finishInterp = t
  424. end
  425. else
  426. if (1 + cosTheta) > 0.0001 then
  427. local theta = ACOS(-cosTheta)
  428. local invSinTheta = 1 / SIN(theta)
  429. startInterp = SIN((t - 1) * theta) * invSinTheta
  430. finishInterp = SIN(t * theta) * invSinTheta
  431. else
  432. startInterp = t - 1
  433. finishInterp = t
  434. end
  435. end
  436. 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
  437. end
  438.  
  439. function Clerp(a, b, t)
  440. local qa = {QuaternionFromCFrame(a)}
  441. local qb = {QuaternionFromCFrame(b)}
  442. local ax, ay, az = a.x, a.y, a.z
  443. local bx, by, bz = b.x, b.y, b.z
  444. local _t = 1 - t
  445. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  446. end
  447.  
  448. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  449. local frame = IT("Frame")
  450. frame.BackgroundTransparency = TRANSPARENCY
  451. frame.BorderSizePixel = BORDERSIZEPIXEL
  452. frame.Position = POSITION
  453. frame.Size = SIZE
  454. frame.BackgroundColor3 = COLOR
  455. frame.BorderColor3 = BORDERCOLOR
  456. frame.Name = NAME
  457. frame.Parent = PARENT
  458. return frame
  459. end
  460.  
  461. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  462. local label = IT("TextLabel")
  463. label.BackgroundTransparency = 1
  464. label.Size = UD2(1, 0, 1, 0)
  465. label.Position = UD2(0, 0, 0, 0)
  466. label.TextColor3 = TEXTCOLOR
  467. label.TextStrokeTransparency = STROKETRANSPARENCY
  468. label.TextTransparency = TRANSPARENCY
  469. label.FontSize = TEXTFONTSIZE
  470. label.Font = TEXTFONT
  471. label.BorderSizePixel = BORDERSIZEPIXEL
  472. label.TextScaled = false
  473. label.Text = TEXT
  474. label.Name = NAME
  475. label.Parent = PARENT
  476. return label
  477. end
  478.  
  479. function NoOutlines(PART)
  480. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  481. end
  482.  
  483.  
  484. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  485. local NEWWELD = IT(TYPE)
  486. NEWWELD.Part0 = PART0
  487. NEWWELD.Part1 = PART1
  488. NEWWELD.C0 = C0
  489. NEWWELD.C1 = C1
  490. NEWWELD.Parent = PARENT
  491. return NEWWELD
  492. end
  493.  
  494. function CreateSound(ID, PARENT, VOLUME, PITCH)
  495. local NEWSOUND = nil
  496. coroutine.resume(coroutine.create(function()
  497. NEWSOUND = IT("Sound", PARENT)
  498. NEWSOUND.Volume = VOLUME
  499. NEWSOUND.Pitch = PITCH
  500. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  501. Swait()
  502. NEWSOUND:play()
  503. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  504. end))
  505. return NEWSOUND
  506. end
  507.  
  508. function CFrameFromTopBack(at, top, back)
  509. local right = top:Cross(back)
  510. 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)
  511. end
  512.  
  513. --//=================================\\
  514. --|| SPEECH
  515. --\\=================================//
  516.  
  517. local speak = Instance.new("Sound",Head)
  518. speak.SoundId = "rbxassetid://418252437"
  519. speak.Volume = 4
  520.  
  521. function chatfunc(text,waitt)
  522. local chat = coroutine.wrap(function()
  523. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  524. Character:FindFirstChild("TalkingBillBoard").Parent = nil
  525. end
  526. local naeeym2 = Instance.new("BillboardGui",Character)
  527. naeeym2.Size = UDim2.new(0,100,0,40)
  528. naeeym2.StudsOffset = Vector3.new(0,2,0)
  529. naeeym2.Adornee = Character.Head
  530. naeeym2.Name = "TalkingBillBoard"
  531. naeeym2.AlwaysOnTop = true
  532. local tecks2 = Instance.new("TextLabel",naeeym2)
  533. tecks2.BackgroundTransparency = 1
  534. tecks2.BorderSizePixel = 0
  535. tecks2.Text = ""
  536. tecks2.Font = "Fantasy"
  537. tecks2.TextSize = 30
  538. tecks2.TextStrokeTransparency = 1
  539. tecks2.TextColor3 = SKILLTEXTCOLOR
  540. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  541. tecks2.Size = UDim2.new(1,0,0.5,0)
  542. for i = 1,string.len(text),1 do
  543. if naeeym2.Parent ~= nil then
  544. tecks2.Text = string.sub(text,1,i)
  545. speak.PlaybackSpeed = (math.random(8,9)/10)
  546. speak:Play()
  547. Swait(3)
  548. end
  549. end
  550. wait(waitt)
  551. coroutine.resume(coroutine.create(function()
  552. for i = 1, 10 do
  553. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  554. Swait()
  555. end
  556. naeeym2:Destroy()
  557. end))
  558. end)
  559. chat()
  560. end
  561.  
  562. --//=================================\\
  563. --|| DAMAGING
  564. --\\=================================//
  565.  
  566. function goldify(hit)
  567. local GOLDNAMES = {"Gold","Shiny rock","Munz","$$"}
  568. hit.Anchored = false
  569. hit.CanCollide = true
  570. hit.Parent = workspace
  571. hit.Name = GOLDNAMES[MRANDOM(1,#GOLDNAMES)]
  572. hit.Material = "Plastic"
  573. hit.BrickColor = BRICKC("Gold")
  574. if hit:FindFirstChildOfClass("SpecialMesh") then
  575. local mesh = hit:FindFirstChildOfClass("SpecialMesh")
  576. mesh.TextureId = ""
  577. end
  578. if hit:FindFirstChildOfClass("Decal") then
  579. local mesh = hit:FindFirstChildOfClass("Decal")
  580. mesh:remove()
  581. end
  582. if hit.ClassName == "MeshPart" then
  583. hit.TextureID = ""
  584. end
  585. if hit.ClassName == "UnionOperation" then
  586. hit.UsePartColor = true
  587. end
  588. end
  589.  
  590. function turntogold(hit)
  591. if hit.Parent ~= Character then
  592. if hit.Parent ~= workspace then
  593. print("My gold...")
  594. local body = hit.Parent:GetChildren()
  595. for part = 1, #body do
  596. local child = body[part]
  597. if child.ClassName == "Part" or child.ClassName == "MeshPart" or child.ClassName == "UnionOperation" then
  598. if child.Name == "Head" then
  599. CreateSound("137473066", child, 2, 1)
  600. end
  601. goldify(child)
  602. elseif child.ClassName == "Accessory" or child.ClassName == "Hat" then
  603. if child:FindFirstChild("Handle") then
  604. goldify(child.Handle)
  605. end
  606. end
  607. end
  608. else
  609. goldify(hit)
  610. end
  611. end
  612. end
  613.  
  614. --//=================================\\
  615. --|| ATTACK FUNCTIONS AND STUFF
  616. --\\=================================//
  617.  
  618. local hit = Torso.Touched:Connect(function(hit)
  619. if hit.Parent:FindFirstChild("Humanoid") then
  620. turntogold(hit)
  621. end
  622. end)
  623. local hit = RightArm.Touched:Connect(function(hit)
  624. if hit.Parent:FindFirstChild("Humanoid") then
  625. turntogold(hit)
  626. end
  627. end)
  628. local hit = LeftArm.Touched:Connect(function(hit)
  629. if hit.Parent:FindFirstChild("Humanoid") then
  630. turntogold(hit)
  631. end
  632. end)
  633. local hit = RightLeg.Touched:Connect(function(hit)
  634. if hit.Parent:FindFirstChild("Humanoid") then
  635. turntogold(hit)
  636. end
  637. end)
  638. local hit = LeftLeg.Touched:Connect(function(hit)
  639. if hit.Parent:FindFirstChild("Humanoid") then
  640. turntogold(hit)
  641. end
  642. end)
  643. local hit = Head.Touched:Connect(function(hit)
  644. if hit.Parent:FindFirstChild("Humanoid") then
  645. turntogold(hit)
  646. end
  647. end)
  648.  
  649. --//=================================\\
  650. --|| ASSIGN THINGS TO KEYS
  651. --\\=================================//
  652.  
  653. function KeyDown(Key)
  654. if Key == "t" and ATTACK == false then
  655. chatfunc("Oh why hello there!",100)
  656. Swait(150)
  657. chatfunc("Wanna Join the White Crusaders?",5)
  658. Swait(150)
  659. chatfunc("No?",1)
  660. Swait(45)
  661. chatfunc("well then",1)
  662. end
  663. end
  664.  
  665. function KeyUp(Key)
  666. end
  667.  
  668. Mouse.KeyDown:connect(function(NEWKEY)
  669. KeyDown(NEWKEY)
  670. end)
  671. Mouse.KeyUp:connect(function(NEWKEY)
  672. KeyUp(NEWKEY)
  673. end)
  674.  
  675.  
  676. --//=================================\\
  677. --\\=================================//
  678.  
  679.  
  680. function unanchor()
  681. if UNANCHOR == true then
  682. g = Character:GetChildren()
  683. for i = 1, #g do
  684. if g[i].ClassName == "Part" then
  685. g[i].Anchored = false
  686. end
  687. end
  688. end
  689. end
  690.  
  691.  
  692. --//=================================\\
  693. --|| WRAP THE WHOLE SCRIPT UP
  694. --\\=================================//
  695.  
  696.  
  697. ANIMATE.Parent = nil
  698. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  699. IDLEANIMATION:Play()
  700.  
  701. while true do
  702. Swait()
  703. SINE = SINE + CHANGE
  704. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  705. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  706. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  707. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  708. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  709. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  710. 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)
  711. 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)
  712. 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)
  713. 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)
  714. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  715. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  716. 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)
  717. 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)
  718. 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)
  719. end
  720. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  721. ANIM = "Jump"
  722. if ATTACK == false then
  723. 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)
  724. 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)
  725. 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)
  726. 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)
  727. 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)
  728. 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)
  729. end
  730. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  731. ANIM = "Fall"
  732. if ATTACK == false then
  733. 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)
  734. 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)
  735. 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)
  736. 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)
  737. 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)
  738. 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)
  739. end
  740. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  741. ANIM = "Idle"
  742. if ATTACK == false then
  743. 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)
  744. 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)
  745. 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)
  746. 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)
  747. 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)
  748. 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)
  749. end
  750. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  751. ANIM = "Walk"
  752. WALK = WALK + 1 / Animation_Speed
  753. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  754. WALK = 0
  755. if WALKINGANIM == true then
  756. WALKINGANIM = false
  757. elseif WALKINGANIM == false then
  758. WALKINGANIM = true
  759. end
  760. end
  761. --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)
  762. --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)
  763. if ATTACK == false then
  764. 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)
  765. 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)
  766. 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)
  767. 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)
  768. 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)
  769. 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)
  770. end
  771. end
  772. if #Effects2>0 then
  773. for e=1,#Effects2 do
  774. if Effects2[e]~=nil then
  775. local Thing=Effects2[e]
  776. if Thing~=nil then
  777. local Part=Thing[1]
  778. local Mode=Thing[2]
  779. local Delay=Thing[3]
  780. local IncX=Thing[4]
  781. local IncY=Thing[5]
  782. local IncZ=Thing[6]
  783. local Part2=Thing[8]
  784. if Thing[1].Transparency<=1 then
  785. if Thing[2]=="Block1" then
  786. Thing[1].CFrame=Thing[1].CFrame
  787. Mesh=Thing[1].Mesh
  788. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  789. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  790. elseif Thing[2]=="Cylinder" then
  791. Mesh=Thing[1].Mesh
  792. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  793. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  794. elseif Thing[2]=="Blood" then
  795. Mesh=Thing[7]
  796. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  797. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  798. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  799. elseif Thing[2]=="Elec" then
  800. Mesh=Thing[1].Mesh
  801. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  802. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  803. elseif Thing[2]=="Disappear" then
  804. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  805. end
  806. else
  807. Part.Parent=nil
  808. table.remove(Effects2,e)
  809. end
  810. end
  811. end
  812. end
  813. end
  814. unanchor()
  815. if Rooted == false then
  816. Disable_Jump = false
  817. Humanoid.WalkSpeed = Speed
  818. elseif Rooted == true then
  819. Disable_Jump = true
  820. Humanoid.WalkSpeed = 0
  821. end
  822. end
  823.  
  824. --//=================================\\
  825. --\\=================================//
  826.  
  827.  
  828.  
  829.  
  830.  
  831. --//====================================================\\--
  832. --|| END OF SCRIPT
  833. --\\====================================================//--
Add Comment
Please, Sign In to add comment