Advertisement
yoinkydoodlewastaken

uhhhh fixed i guessssss

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