Advertisement
doryna2281337

Untitled

Aug 14th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.16 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. wait(0.2)
  87.  
  88. Player = owner
  89. PlayerGui = Player.PlayerGui
  90. Cam = workspace.CurrentCamera
  91. Backpack = Player.Backpack
  92. Character = Player.Character
  93. Humanoid = Character.Humanoid
  94. RootPart = Character["HumanoidRootPart"]
  95. Torso = Character["Torso"]
  96. Head = Character["Head"]
  97. RightArm = Character["Right Arm"]
  98. LeftArm = Character["Left Arm"]
  99. RightLeg = Character["Right Leg"]
  100. LeftLeg = Character["Left Leg"]
  101. RootJoint = RootPart["RootJoint"]
  102. Neck = Torso["Neck"]
  103. RightShoulder = Torso["Right Shoulder"]
  104. LeftShoulder = Torso["Left Shoulder"]
  105. RightHip = Torso["Right Hip"]
  106. LeftHip = Torso["Left Hip"]
  107.  
  108. IT = Instance.new
  109. CF = CFrame.new
  110. VT = Vector3.new
  111. RAD = math.rad
  112. C3 = Color3.new
  113. UD2 = UDim2.new
  114. BRICKC = BrickColor.new
  115. ANGLES = CFrame.Angles
  116. EULER = CFrame.fromEulerAnglesXYZ
  117. COS = math.cos
  118. ACOS = math.acos
  119. SIN = math.sin
  120. ASIN = math.asin
  121. ABS = math.abs
  122. MRANDOM = math.random
  123. FLOOR = math.floor
  124.  
  125. --//=================================\\
  126. --|| USEFUL VALUES
  127. --\\=================================//
  128.  
  129. Animation_Speed = 3
  130. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  131. local Speed = 16
  132. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  133. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  134. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  135. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  136. local DAMAGEMULTIPLIER = 1
  137. local ANIM = "Idle"
  138. local ATTACK = false
  139. local EQUIPPED = false
  140. local HOLD = false
  141. local COMBO = 1
  142. local Rooted = false
  143. local SINE = 0
  144. local KEYHOLD = false
  145. local CHANGE = 2 / Animation_Speed
  146. local WALKINGANIM = false
  147. local VALUE1 = false
  148. local VALUE2 = false
  149. local ROBLOXIDLEANIMATION = IT("Animation")
  150. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  151. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  152. --ROBLOXIDLEANIMATION.Parent = Humanoid
  153. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  154. WEAPONGUI.Name = "Weapon GUI"
  155. local Weapon = IT("Model")
  156. Weapon.Name = "Adds"
  157. local Effects = IT("Folder", Weapon)
  158. Effects.Name = "Effects"
  159. local ANIMATOR = Humanoid.Animator
  160. local ANIMATE = Character.Animate
  161. local UNANCHOR = true
  162. local CYAN = BRICKC"Cyan".Color
  163. local ICONS = {"167300717","413366101","839798346","413372165","413366777","132769874","99340890","413364594","64940934","99340699"}
  164.  
  165. --//=================================\\
  166. --\\=================================//
  167.  
  168.  
  169. --//=================================\\
  170. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  171. --\\=================================//
  172.  
  173. ArtificialHB = Instance.new("BindableEvent", script)
  174. ArtificialHB.Name = "ArtificialHB"
  175.  
  176. script:WaitForChild("ArtificialHB")
  177.  
  178. frame = Frame_Speed
  179. tf = 0
  180. allowframeloss = false
  181. tossremainder = false
  182. lastframe = tick()
  183. script.ArtificialHB:Fire()
  184.  
  185. game:GetService("RunService").Heartbeat:connect(function(s, p)
  186. tf = tf + s
  187. if tf >= frame then
  188. if allowframeloss then
  189. script.ArtificialHB:Fire()
  190. lastframe = tick()
  191. else
  192. for i = 1, math.floor(tf / frame) do
  193. script.ArtificialHB:Fire()
  194. end
  195. lastframe = tick()
  196. end
  197. if tossremainder then
  198. tf = 0
  199. else
  200. tf = tf - frame * math.floor(tf / frame)
  201. end
  202. end
  203. end)
  204.  
  205. --//=================================\\
  206. --\\=================================//
  207.  
  208. --//=================================\\
  209. --|| SOME FUNCTIONS
  210. --\\=================================//
  211.  
  212. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  213. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  214. end
  215.  
  216. function PositiveAngle(NUMBER)
  217. if NUMBER >= 0 then
  218. NUMBER = 0
  219. end
  220. return NUMBER
  221. end
  222.  
  223. function NegativeAngle(NUMBER)
  224. if NUMBER <= 0 then
  225. NUMBER = 0
  226. end
  227. return NUMBER
  228. end
  229.  
  230. function Swait(NUMBER)
  231. if NUMBER == 0 or NUMBER == nil then
  232. ArtificialHB.Event:wait()
  233. else
  234. for i = 1, NUMBER do
  235. ArtificialHB.Event:wait()
  236. end
  237. end
  238. end
  239.  
  240. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  241. local NEWMESH = IT(MESH)
  242. if MESH == "SpecialMesh" then
  243. NEWMESH.MeshType = MESHTYPE
  244. if MESHID ~= "nil" and MESHID ~= "" then
  245. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  246. end
  247. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  248. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  249. end
  250. end
  251. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  252. NEWMESH.Scale = SCALE
  253. NEWMESH.Parent = PARENT
  254. return NEWMESH
  255. end
  256.  
  257. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  258. local NEWPART = IT("Part")
  259. NEWPART.formFactor = FORMFACTOR
  260. NEWPART.Reflectance = REFLECTANCE
  261. NEWPART.Transparency = TRANSPARENCY
  262. NEWPART.CanCollide = false
  263. NEWPART.Locked = true
  264. NEWPART.Anchored = true
  265. if ANCHOR == false then
  266. NEWPART.Anchored = false
  267. end
  268. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  269. NEWPART.Name = NAME
  270. NEWPART.Size = SIZE
  271. NEWPART.Position = Torso.Position
  272. NEWPART.Material = MATERIAL
  273. NEWPART:BreakJoints()
  274. NEWPART.Parent = PARENT
  275. return NEWPART
  276. end
  277.  
  278. local function weldBetween(a, b)
  279. local weldd = Instance.new("ManualWeld")
  280. weldd.Part0 = a
  281. weldd.Part1 = b
  282. weldd.C0 = CFrame.new()
  283. weldd.C1 = b.CFrame:inverse() * a.CFrame
  284. weldd.Parent = a
  285. return weldd
  286. end
  287.  
  288.  
  289. function QuaternionFromCFrame(cf)
  290. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  291. local trace = m00 + m11 + m22
  292. if trace > 0 then
  293. local s = math.sqrt(1 + trace)
  294. local recip = 0.5 / s
  295. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  296. else
  297. local i = 0
  298. if m11 > m00 then
  299. i = 1
  300. end
  301. if m22 > (i == 0 and m00 or m11) then
  302. i = 2
  303. end
  304. if i == 0 then
  305. local s = math.sqrt(m00 - m11 - m22 + 1)
  306. local recip = 0.5 / s
  307. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  308. elseif i == 1 then
  309. local s = math.sqrt(m11 - m22 - m00 + 1)
  310. local recip = 0.5 / s
  311. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  312. elseif i == 2 then
  313. local s = math.sqrt(m22 - m00 - m11 + 1)
  314. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  315. end
  316. end
  317. end
  318.  
  319. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  320. local xs, ys, zs = x + x, y + y, z + z
  321. local wx, wy, wz = w * xs, w * ys, w * zs
  322. local xx = x * xs
  323. local xy = x * ys
  324. local xz = x * zs
  325. local yy = y * ys
  326. local yz = y * zs
  327. local zz = z * zs
  328. 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))
  329. end
  330.  
  331. function QuaternionSlerp(a, b, t)
  332. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  333. local startInterp, finishInterp;
  334. if cosTheta >= 0.0001 then
  335. if (1 - cosTheta) > 0.0001 then
  336. local theta = ACOS(cosTheta)
  337. local invSinTheta = 1 / SIN(theta)
  338. startInterp = SIN((1 - t) * theta) * invSinTheta
  339. finishInterp = SIN(t * theta) * invSinTheta
  340. else
  341. startInterp = 1 - t
  342. finishInterp = t
  343. end
  344. else
  345. if (1 + cosTheta) > 0.0001 then
  346. local theta = ACOS(-cosTheta)
  347. local invSinTheta = 1 / SIN(theta)
  348. startInterp = SIN((t - 1) * theta) * invSinTheta
  349. finishInterp = SIN(t * theta) * invSinTheta
  350. else
  351. startInterp = t - 1
  352. finishInterp = t
  353. end
  354. end
  355. 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
  356. end
  357.  
  358. function Clerp(a, b, t)
  359. local qa = {QuaternionFromCFrame(a)}
  360. local qb = {QuaternionFromCFrame(b)}
  361. local ax, ay, az = a.x, a.y, a.z
  362. local bx, by, bz = b.x, b.y, b.z
  363. local _t = 1 - t
  364. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  365. end
  366.  
  367. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  368. local frame = IT("Frame")
  369. frame.BackgroundTransparency = TRANSPARENCY
  370. frame.BorderSizePixel = BORDERSIZEPIXEL
  371. frame.Position = POSITION
  372. frame.Size = SIZE
  373. frame.BackgroundColor3 = COLOR
  374. frame.BorderColor3 = BORDERCOLOR
  375. frame.Name = NAME
  376. frame.Parent = PARENT
  377. return frame
  378. end
  379.  
  380. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  381. local label = IT("TextLabel")
  382. label.BackgroundTransparency = 1
  383. label.Size = UD2(1, 0, 1, 0)
  384. label.Position = UD2(0, 0, 0, 0)
  385. label.TextColor3 = TEXTCOLOR
  386. label.TextStrokeTransparency = STROKETRANSPARENCY
  387. label.TextTransparency = TRANSPARENCY
  388. label.FontSize = TEXTFONTSIZE
  389. label.Font = TEXTFONT
  390. label.BorderSizePixel = BORDERSIZEPIXEL
  391. label.TextScaled = false
  392. label.Text = TEXT
  393. label.Name = NAME
  394. label.Parent = PARENT
  395. return label
  396. end
  397.  
  398. function NoOutlines(PART)
  399. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  400. end
  401.  
  402. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  403. local NEWWELD = IT(TYPE)
  404. NEWWELD.Part0 = PART0
  405. NEWWELD.Part1 = PART1
  406. NEWWELD.C0 = C0
  407. NEWWELD.C1 = C1
  408. NEWWELD.Parent = PARENT
  409. return NEWWELD
  410. end
  411.  
  412. local S = IT("Sound")
  413. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  414. local NEWSOUND = nil
  415. coroutine.resume(coroutine.create(function()
  416. NEWSOUND = S:Clone()
  417. NEWSOUND.Parent = PARENT
  418. NEWSOUND.Volume = VOLUME
  419. NEWSOUND.Pitch = PITCH
  420. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  421. NEWSOUND:play()
  422. if DOESLOOP == true then
  423. NEWSOUND.Looped = true
  424. else
  425. repeat Swait() until NEWSOUND.Playing == false
  426. NEWSOUND:remove()
  427. end
  428. end))
  429. return NEWSOUND
  430. end
  431.  
  432. function CFrameFromTopBack(at, top, back)
  433. local right = top:Cross(back)
  434. 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)
  435. end
  436.  
  437. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  438. function WACKYEFFECT(Table)
  439. local TYPE = (Table.EffectType or "Sphere")
  440. local SIZE = (Table.Size or VT(1,1,1))
  441. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  442. local TRANSPARENCY = (Table.Transparency or 0)
  443. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  444. local CFRAME = (Table.CFrame or Torso.CFrame)
  445. local MOVEDIRECTION = (Table.MoveToPos or nil)
  446. local ROTATION1 = (Table.RotationX or 0)
  447. local ROTATION2 = (Table.RotationY or 0)
  448. local ROTATION3 = (Table.RotationZ or 0)
  449. local MATERIAL = (Table.Material or "Neon")
  450. local COLOR = (Table.Color or C3(1,1,1))
  451. local TIME = (Table.Time or 45)
  452. local SOUNDID = (Table.SoundID or nil)
  453. local SOUNDPITCH = (Table.SoundPitch or nil)
  454. local SOUNDVOLUME = (Table.SoundVolume or nil)
  455. coroutine.resume(coroutine.create(function()
  456. local PLAYSSOUND = false
  457. local SOUND = nil
  458. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  459. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  460. PLAYSSOUND = true
  461. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  462. end
  463. EFFECT.Color = COLOR
  464. local MSH = nil
  465. if TYPE == "Sphere" then
  466. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  467. elseif TYPE == "Block" then
  468. MSH = IT("BlockMesh",EFFECT)
  469. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  470. elseif TYPE == "Wave" then
  471. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  472. elseif TYPE == "Ring" then
  473. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.01), VT(0,0,0))
  474. elseif TYPE == "Slash" then
  475. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  476. elseif TYPE == "Round Slash" then
  477. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  478. elseif TYPE == "Swirl" then
  479. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  480. elseif TYPE == "Skull" then
  481. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  482. elseif TYPE == "Crystal" then
  483. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  484. elseif TYPE == "Box" then
  485. MSH = IT("BlockMesh",EFFECT)
  486. MSH.Scale = SIZE
  487. end
  488. if MSH ~= nil then
  489. local MOVESPEED = nil
  490. if MOVEDIRECTION ~= nil then
  491. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  492. end
  493. local GROWTH = SIZE - ENDSIZE
  494. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  495. if TYPE == "Block" then
  496. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  497. else
  498. EFFECT.CFrame = CFRAME
  499. end
  500. for LOOP = 1, TIME do
  501. Swait()
  502. MSH.Scale = MSH.Scale - GROWTH/TIME
  503. if TYPE == "Wave" then
  504. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  505. end
  506. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  507. if TYPE == "Block" then
  508. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  509. else
  510. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  511. end
  512. if MOVEDIRECTION ~= nil then
  513. local ORI = EFFECT.Orientation
  514. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  515. EFFECT.Orientation = ORI
  516. end
  517. end
  518. if PLAYSSOUND == false then
  519. EFFECT:remove()
  520. else
  521. repeat Swait() until SOUND.Playing == false
  522. EFFECT:remove()
  523. end
  524. else
  525. if PLAYSSOUND == false then
  526. EFFECT:remove()
  527. else
  528. repeat Swait() until SOUND.Playing == false
  529. EFFECT:remove()
  530. end
  531. end
  532. end))
  533. end
  534.  
  535. function MakeForm(PART,TYPE)
  536. if TYPE == "Cyl" then
  537. local MSH = IT("CylinderMesh",PART)
  538. elseif TYPE == "Ball" then
  539. local MSH = IT("SpecialMesh",PART)
  540. MSH.MeshType = "Sphere"
  541. elseif TYPE == "Wedge" then
  542. local MSH = IT("SpecialMesh",PART)
  543. MSH.MeshType = "Wedge"
  544. end
  545. end
  546.  
  547. Debris = game:GetService("Debris")
  548.  
  549. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  550. local DIRECTION = CF(StartPos,EndPos).lookVector
  551. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  552. end
  553.  
  554. function turnto(position)
  555. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  556. end
  557.  
  558. --//=================================\\
  559. --|| WEAPON CREATION
  560. --\\=================================//
  561.  
  562. RightArm:remove()
  563. LeftArm:remove()
  564. RightLeg:remove()
  565. LeftLeg:remove()
  566. Humanoid.HipHeight = 6
  567. Head:ClearAllChildren()
  568. Head.Transparency = 1
  569. Torso.Transparency = 1
  570.  
  571. local BOX = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "BOX", VT(2,2,1),false)
  572. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BOX, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
  573. local BOX = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "BOX", VT(1.6,1.6,1.5),false)
  574. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BOX, CF(0,0,0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
  575. local BOX = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "BOX", VT(2,0.2,0.5),false)
  576. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BOX, CF(0,0.9,-0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
  577. local BOX = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "BOX", VT(2,0.2,0.5),false)
  578. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BOX, CF(0,-0.9,-0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
  579. local BOX = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "BOX", VT(0.2,1.8,0.5),false)
  580. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BOX, CF(0.9,0,-0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
  581. local BOX = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "BOX", VT(0.2,1.8,0.5),false)
  582. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, BOX, CF(-0.9,0,-0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
  583.  
  584. local SCREEN = CreatePart(3, Weapon, "Neon", 0, 0, "Bright blue", "SCREEN", VT(1.8,1.8,0.45),false)
  585. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, SCREEN, CF(0,0,-0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
  586. local Eye1 = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Eyeball", VT(0.3,0.7,0.2),false)
  587. MakeForm(Eye1,"Ball")
  588. Eye1.Color = C3(0,0,0)
  589. CreateWeldOrSnapOrMotor("Weld", SCREEN, SCREEN, Eye1, CF(0.3,0.2,-0.2) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
  590. local Eye2 = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Eyeball", VT(0.3,0.7,0.2),false)
  591. MakeForm(Eye2,"Ball")
  592. Eye2.Color = C3(0,0,0)
  593. CreateWeldOrSnapOrMotor("Weld", SCREEN, SCREEN, Eye2, CF(-0.3,0.2,-0.2) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
  594.  
  595. local TIE = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "TIE", VT(0,0,0),false)
  596. local TIEWELD = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, TIE, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,1.8,0.65))
  597. CreateMesh("SpecialMesh", TIE, "FileMesh", "28463033", "28463022", VT(1,1,1)*1.5, VT(0,0,0))
  598.  
  599. for _, c in pairs(Weapon:GetChildren()) do
  600. if c.ClassName == "Part" then
  601. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  602. end
  603. end
  604.  
  605. local SKILLTEXTCOLOR = C3(0,0,0)
  606. local SKILLFONT = "SciFi"
  607. local SKILLTEXTSIZE = 6
  608.  
  609. Weapon.Parent = Character
  610.  
  611. Humanoid.Died:connect(function()
  612. ATTACK = true
  613. end)
  614.  
  615. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  616. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  617. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  618. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  619.  
  620. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Chuck", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  621. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Suck", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  622. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Disable", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
  623. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 4")
  624.  
  625. --//=================================\\
  626. --|| DAMAGE FUNCTIONS
  627. --\\=================================//
  628.  
  629. function StatLabel(CFRAME, TEXT, COLOR)
  630. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  631. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  632. local BODYGYRO = IT("BodyGyro", STATPART)
  633. game:GetService("Debris"):AddItem(STATPART ,5)
  634. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  635. BILLBOARDGUI.Adornee = STATPART
  636. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  637. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  638. BILLBOARDGUI.AlwaysOnTop = false
  639. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  640. TEXTLABEL.BackgroundTransparency = 1
  641. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  642. TEXTLABEL.Text = TEXT
  643. TEXTLABEL.Font = SKILLFONT
  644. TEXTLABEL.FontSize="Size42"
  645. TEXTLABEL.TextColor3 = COLOR
  646. TEXTLABEL.TextStrokeTransparency = 0
  647. TEXTLABEL.TextScaled = true
  648. TEXTLABEL.TextWrapped = true
  649. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  650. for i = 1, 50 do
  651. Swait()
  652. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  653. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  654. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  655. end
  656. THEPART.Parent = nil
  657. end),STATPART, TEXTLABEL)
  658. end
  659.  
  660. --//=================================\\
  661. --|| DAMAGING
  662. --\\=================================//
  663.  
  664. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  665. if Humanoid.MaxHealth == math.huge then
  666. Humanoid.Parent:BreakJoints()
  667. local TORS = Humanoid.Parent:FindFirstChild("Torso") or Humanoid.Parent:FindFirstChild("UpperTorso")
  668. local REMAIN = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Idk lol", VT(3,3,3),false)
  669. REMAIN.CFrame = TORS.CFrame
  670. REMAIN.CanCollide = true
  671. local GUI = Instance.new("BillboardGui",REMAIN)
  672. GUI.Size = UDim2.new(3,0,3,0)
  673. GUI.Adornee = REMAIN
  674. local GUI2 = IT("ImageLabel",GUI)
  675. GUI2.BackgroundTransparency = 1
  676. GUI2.BorderSizePixel = 0
  677. GUI2.Size = UDim2.new(1,0,1,0)
  678. GUI2.SizeConstraint = "RelativeYY"
  679. GUI2.Image = "http://www.roblox.com/asset/?id=167300717"
  680. CreateSound("681582832", REMAIN, 3, 1, false)
  681. Debris:AddItem(REMAIN,15)
  682. if TORS then
  683. end
  684. Humanoid.Parent:remove()
  685. else
  686. local defence = Instance.new("BoolValue",Humanoid.Parent)
  687. defence.Name = ("HitBy"..Player.Name)
  688. game:GetService("Debris"):AddItem(defence, 0.001)
  689. Damage = Damage * DAMAGEMULTIPLIER
  690. if Humanoid.Health ~= 0 then
  691. local CritChance = MRANDOM(1,100)
  692. if CritChance < CritRate + 1 then
  693. Damage = Damage*CritMultiplier
  694. end
  695. if Damage > Humanoid.Health then
  696. Damage = math.ceil(Humanoid.Health)
  697. if Damage == 0 then
  698. Damage = 0.1
  699. end
  700. end
  701. Humanoid.Health = Humanoid.Health - Damage
  702. if Humanoid.Parent:FindFirstChild("Head") then
  703. if CritChance < CritRate + 1 then
  704. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  705. else
  706. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
  707. end
  708. end
  709. if Humanoid.Health == 0 or Humanoid.MaxHealth == "inf" then
  710. local TORS = Humanoid.Parent:FindFirstChild("Torso") or Humanoid.Parent:FindFirstChild("UpperTorso")
  711. local REMAIN = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Idk lol", VT(3,3,3),false)
  712. REMAIN.CFrame = TORS.CFrame
  713. REMAIN.CanCollide = true
  714. local GUI = Instance.new("BillboardGui",REMAIN)
  715. GUI.Size = UDim2.new(3,0,3,0)
  716. GUI.Adornee = REMAIN
  717. local GUI2 = IT("ImageLabel",GUI)
  718. GUI2.BackgroundTransparency = 1
  719. GUI2.BorderSizePixel = 0
  720. GUI2.Size = UDim2.new(1,0,1,0)
  721. GUI2.SizeConstraint = "RelativeYY"
  722. GUI2.Image = "http://www.roblox.com/asset/?id=167300717"
  723. CreateSound("681582832", REMAIN, 3, 1, false)
  724. Debris:AddItem(REMAIN,15)
  725. if TORS then
  726. end
  727. Humanoid.Parent:remove()
  728. end
  729. end
  730. end
  731. end
  732.  
  733. --//=================================\\
  734. --|| ATTACK FUNCTIONS AND STUFF
  735. --\\=================================//
  736.  
  737. function Chuck()
  738. ATTACK = true
  739. Rooted = false
  740. CreateSound("11900833", SCREEN, 3, 1, false)
  741. coroutine.resume(coroutine.create(function()
  742. local TOCHUCK = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Idk lol", VT(1,1,1))
  743. TOCHUCK.CFrame = CF(SCREEN.Position,Mouse.Hit.p)
  744. local GUI = Instance.new("BillboardGui",TOCHUCK)
  745. GUI.Size = UDim2.new(1,0,1,0)
  746. GUI.Adornee = TOCHUCK
  747. local GUI2 = IT("ImageLabel",GUI)
  748. GUI2.BackgroundTransparency = 1
  749. GUI2.BorderSizePixel = 0
  750. GUI2.Size = UDim2.new(1,0,1,0)
  751. GUI2.SizeConstraint = "RelativeYY"
  752. GUI2.Image = "http://www.roblox.com/asset/?id="..ICONS[MRANDOM(1,#ICONS)]
  753. for i = 1, 100 do
  754. Swait()
  755. TOCHUCK.CFrame = TOCHUCK.CFrame*CF(0,0,-1)
  756. local HIT = Raycast(TOCHUCK.Position, TOCHUCK.CFrame.lookVector, 1.5, Character)
  757. if HIT ~= nil then
  758. if HIT.Parent.ClassName == "Model" then
  759. if HIT.Parent:FindFirstChildOfClass("Humanoid") then
  760. CreateSound("131237241", HIT, 3, 1, false)
  761. ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(7,14),4,3)
  762. local bv = Instance.new("BodyVelocity")
  763. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  764. bv.velocity = CF(TOCHUCK.Position,HIT.Position).lookVector*15
  765. bv.Parent = HIT
  766. Debris:AddItem(bv,0.1)
  767. local bv = Instance.new("BodyVelocity")
  768. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  769. bv.velocity = CF(HIT.Position,TOCHUCK.Position).lookVector*15
  770. bv.Parent = TOCHUCK
  771. Debris:AddItem(bv,0.1)
  772. end
  773. end
  774. break
  775. end
  776. TOCHUCK.CFrame = TOCHUCK.CFrame*CF(0,0,-1)
  777. local HIT = Raycast(TOCHUCK.Position, TOCHUCK.CFrame.lookVector, 1.5, Character)
  778. if HIT ~= nil then
  779. if HIT.Parent.ClassName == "Model" then
  780. if HIT.Parent:FindFirstChildOfClass("Humanoid") then
  781. CreateSound("131237241", HIT, 3, 1, false)
  782. ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(7,14),4,3)
  783. local bv = Instance.new("BodyVelocity")
  784. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  785. bv.velocity = CF(TOCHUCK.Position,HIT.Position).lookVector*15
  786. bv.Parent = HIT
  787. Debris:AddItem(bv,0.1)
  788. local bv = Instance.new("BodyVelocity")
  789. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  790. bv.velocity = CF(HIT.Position,TOCHUCK.Position).lookVector*15
  791. bv.Parent = TOCHUCK
  792. Debris:AddItem(bv,0.1)
  793. end
  794. end
  795. break
  796. end
  797. end
  798. TOCHUCK.CanCollide = true
  799. TOCHUCK.Anchored = false
  800. Debris:AddItem(TOCHUCK,5)
  801. end))
  802. for i=0, 0.2, 0.1 / Animation_Speed do
  803. Swait()
  804. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  805. TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(-5), RAD(0), RAD(0))* CF(0,0,-0.1), 1 / Animation_Speed)
  806. end
  807. ATTACK = false
  808. Rooted = false
  809. end
  810.  
  811. function Suck()
  812. local target = nil
  813. local targettorso = nil
  814. if Mouse.Target ~= nil then
  815. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  816. target = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  817. targettorso = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") or Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
  818. end
  819. end
  820. if target ~= nil then
  821. VALUE1 = true
  822. CreateSound("131228548", SCREEN, 10, 1, false)
  823. targettorso.Anchored = true
  824. local GYRO = IT("BodyGyro",RootPart)
  825. GYRO.D = 100
  826. GYRO.P = 2000
  827. GYRO.MaxTorque = VT(0,999999999999999999,0)
  828. GYRO.cframe = CF(RootPart.Position,targettorso.Position)
  829. wait(1.5)
  830. GYRO:remove()
  831. coroutine.resume(coroutine.create(function()
  832. local DISTANCE = 10
  833. local REEEE = CreateSound("1278710301", targettorso, 5, 1, true)
  834. repeat
  835. Swait()
  836. targettorso.CFrame = CF(targettorso.Position,RootPart.Position)*CF(0,0,-1)
  837. DISTANCE = (targettorso.Position - RootPart.Position).Magnitude
  838. targettorso.Anchored = true
  839. target.PlatformStand = true
  840. until DISTANCE < 5
  841. REEEE.Looped = false
  842. targettorso.Anchored = false
  843. wait(0.5)
  844. target.PlatformStand = false
  845. end))
  846. VALUE1 = false
  847. end
  848. end
  849.  
  850. function Disable()
  851. local target = nil
  852. local targettorso = nil
  853. if Mouse.Target ~= nil then
  854. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  855. target = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  856. targettorso = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") or Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
  857. end
  858. end
  859. if target ~= nil then
  860. VALUE1 = true
  861. targettorso.Anchored = true
  862. CreateSound("191456748", SCREEN, 10, 1, false)
  863. local GYRO = IT("BodyGyro",RootPart)
  864. GYRO.D = 100
  865. GYRO.P = 2000
  866. GYRO.MaxTorque = VT(0,999999999999999999,0)
  867. GYRO.cframe = CF(RootPart.Position,targettorso.Position)
  868. wait(1)
  869. WACKYEFFECT({Time = 75, EffectType = "Ring", Size = VT(0.01,0.01,0.01), Size2 = VT(5,5,0.01), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,-2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 314970790, SoundPitch = 1, SoundVolume = 3})
  870. GYRO:remove()
  871. targettorso.CFrame = CF(targettorso.Position,RootPart.Position)
  872. targettorso.Anchored = false
  873. for _, c in pairs(target.Parent:GetChildren()) do
  874. if c.ClassName == "LocalScript" then
  875. local TOCHUCK = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Idk lol", VT(1,1,1))
  876. TOCHUCK.CFrame = targettorso.CFrame
  877. local GUI = Instance.new("BillboardGui",TOCHUCK)
  878. GUI.Size = UDim2.new(1,0,1,0)
  879. GUI.Adornee = TOCHUCK
  880. local GUI2 = IT("ImageLabel",GUI)
  881. GUI2.BackgroundTransparency = 1
  882. GUI2.BorderSizePixel = 0
  883. GUI2.Size = UDim2.new(1,0,1,0)
  884. GUI2.SizeConstraint = "RelativeYY"
  885. GUI2.Image = "http://www.roblox.com/asset/?id=99340858"
  886. c.Disabled = true
  887. c.Parent = TOCHUCK
  888. coroutine.resume(coroutine.create(function()
  889. wait()
  890. TOCHUCK.Anchored = false
  891. TOCHUCK.CanCollide = true
  892. end))
  893. coroutine.resume(coroutine.create(function()
  894. wait(MRANDOM(3,6))
  895. local DISTANCE = 10
  896. TOCHUCK.Anchored = true
  897. TOCHUCK.CanCollide = false
  898. repeat
  899. Swait()
  900. TOCHUCK.CFrame = CF(TOCHUCK.Position,RootPart.Position)*CF(0,0,-1)
  901. DISTANCE = (TOCHUCK.Position - RootPart.Position).Magnitude
  902. until DISTANCE < 2
  903. TOCHUCK:remove()
  904. end))
  905. elseif c.ClassName == "Script" then
  906. local TOCHUCK = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Idk lol", VT(1,1,1))
  907. TOCHUCK.CFrame = targettorso.CFrame
  908. local GUI = Instance.new("BillboardGui",TOCHUCK)
  909. GUI.Size = UDim2.new(1,0,1,0)
  910. GUI.Adornee = TOCHUCK
  911. local GUI2 = IT("ImageLabel",GUI)
  912. GUI2.BackgroundTransparency = 1
  913. GUI2.BorderSizePixel = 0
  914. GUI2.Size = UDim2.new(1,0,1,0)
  915. GUI2.SizeConstraint = "RelativeYY"
  916. GUI2.Image = "http://www.roblox.com/asset/?id=99340890"
  917. c.Disabled = true
  918. c.Parent = TOCHUCK
  919. coroutine.resume(coroutine.create(function()
  920. wait()
  921. TOCHUCK.Anchored = false
  922. TOCHUCK.CanCollide = true
  923. end))
  924. coroutine.resume(coroutine.create(function()
  925. wait(MRANDOM(3,6))
  926. local DISTANCE = 10
  927. TOCHUCK.Anchored = true
  928. TOCHUCK.CanCollide = false
  929. repeat
  930. Swait()
  931. TOCHUCK.CFrame = CF(TOCHUCK.Position,RootPart.Position)*CF(0,0,-1)
  932. DISTANCE = (TOCHUCK.Position - RootPart.Position).Magnitude
  933. until DISTANCE < 1.2
  934. TOCHUCK:remove()
  935. end))
  936. end
  937. end
  938. target.PlatformStand = true
  939. CreateSound("330010786", targettorso, 10, 1, false)
  940. local bv = Instance.new("BodyVelocity")
  941. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  942. bv.velocity = CF(VT(RootPart.Position.X,targettorso.Position.Y-10,RootPart.Position.Z),targettorso.Position).lookVector*350
  943. bv.Parent = targettorso
  944. Debris:AddItem(bv,0.05)
  945. VALUE1 = false
  946. end
  947. end
  948.  
  949. function Warp()
  950. local FRAME = RootPart.Position
  951. for i = 1, 6 do
  952. WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Cyan".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
  953. end
  954. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z))
  955. for i = 1, 6 do
  956. WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Cyan".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
  957. end
  958. end
  959.  
  960. function HavingFun()
  961. ATTACK = true
  962. VALUE2 = true
  963. Speed = 65
  964. local SONGS = {329896322,162986891,1027314531,171131642,248967176,922850176,966409302,255023933}
  965. local PISS = CreateSound(SONGS[MRANDOM(1,#SONGS)], SCREEN, 10, 1, true)
  966. repeat
  967. for i = 1, 5 do
  968. Swait()
  969. PISS.Parent = SCREEN
  970. SCREEN.Color = CYAN
  971. CYAN = C3(MRANDOM(0,255)/255,MRANDOM(0,255)/255,MRANDOM(0,255)/255)
  972. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  973. TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(-5), RAD(0), RAD(0)) * CF(0,0,-0.1), 1 / Animation_Speed)
  974. end
  975. for i = 1, 5 do
  976. Swait()
  977. PISS.Parent = SCREEN
  978. SCREEN.Color = CYAN
  979. CYAN = C3(MRANDOM(0,255)/255,MRANDOM(0,255)/255,MRANDOM(0,255)/255)
  980. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  981. TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(0,-0.1,0.2), 1 / Animation_Speed)
  982. end
  983. if MRANDOM(1,15) == 1 then
  984. for i = 1, 15 do
  985. Swait()
  986. if VALUE2 == false then
  987. break
  988. end
  989. PISS.Parent = SCREEN
  990. SCREEN.Color = CYAN
  991. CYAN = C3(MRANDOM(0,255)/255,MRANDOM(0,255)/255,MRANDOM(0,255)/255)
  992. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(i*18), RAD(0), RAD(0)), 1 / Animation_Speed)
  993. TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(0,-0.1,0.2), 1 / Animation_Speed)
  994. end
  995. end
  996. if MRANDOM(1,15) == 1 then
  997. for i = 1, 15 do
  998. Swait()
  999. if VALUE2 == false then
  1000. break
  1001. end
  1002. PISS.Parent = SCREEN
  1003. SCREEN.Color = CYAN
  1004. CYAN = C3(MRANDOM(0,255)/255,MRANDOM(0,255)/255,MRANDOM(0,255)/255)
  1005. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(i*18)), 1 / Animation_Speed)
  1006. TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(0,-0.1,0.2), 1 / Animation_Speed)
  1007. end
  1008. end
  1009. if MRANDOM(1,15) == 1 then
  1010. for i = 1, 15 do
  1011. Swait()
  1012. if VALUE2 == false then
  1013. break
  1014. end
  1015. PISS.Parent = SCREEN
  1016. SCREEN.Color = CYAN
  1017. CYAN = C3(MRANDOM(0,255)/255,MRANDOM(0,255)/255,MRANDOM(0,255)/255)
  1018. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(i*18), RAD(0)), 1 / Animation_Speed)
  1019. TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(0,-0.1,0.2), 1 / Animation_Speed)
  1020. end
  1021. end
  1022. until VALUE2 == false
  1023. Speed = 16
  1024. PISS:remove()
  1025. SCREEN.BrickColor = BRICKC"Bright blue"
  1026. CYAN = BRICKC"Cyan".Color
  1027. ATTACK = false
  1028. end
  1029.  
  1030. --//=================================\\
  1031. --|| ASSIGN THINGS TO KEYS
  1032. --\\=================================//
  1033.  
  1034. function KeyDown(Key)
  1035. KEYHOLD = true
  1036. if VALUE1 == false and ATTACK == false then
  1037. if Key == "z" then
  1038. Chuck()
  1039. end
  1040.  
  1041. if Key == "b" then
  1042. Suck()
  1043. end
  1044.  
  1045. if Key == "c" then
  1046. Disable()
  1047. end
  1048.  
  1049. if Key == "v" then
  1050. Warp()
  1051. end
  1052.  
  1053. if Key == "t" then
  1054. CreateSound("1395854043", Effects, 5, 1, false)
  1055. end
  1056. end
  1057. if (VALUE1 == false and ATTACK == false) or VALUE2 == true then
  1058. if Key == "q" then
  1059. if VALUE2 == false then
  1060. HavingFun()
  1061. elseif VALUE2 == true then
  1062. VALUE2 = false
  1063. end
  1064. end
  1065. end
  1066. end
  1067.  
  1068. function KeyUp(Key)
  1069. KEYHOLD = false
  1070. end
  1071.  
  1072. Mouse.KeyDown:connect(function(NEWKEY)
  1073. KeyDown(NEWKEY)
  1074. end)
  1075. Mouse.KeyUp:connect(function(NEWKEY)
  1076. KeyUp(NEWKEY)
  1077. end)
  1078.  
  1079. --//=================================\\
  1080. --\\=================================//
  1081.  
  1082.  
  1083. function unanchor()
  1084. if UNANCHOR == true then
  1085. g = Character:GetChildren()
  1086. for i = 1, #g do
  1087. if g[i].ClassName == "Part" then
  1088. g[i].Anchored = false
  1089. end
  1090. end
  1091. end
  1092. end
  1093.  
  1094.  
  1095. --//=================================\\
  1096. --|| WRAP THE WHOLE SCRIPT UP
  1097. --\\=================================//
  1098.  
  1099. Humanoid.Changed:connect(function(Jump)
  1100. if Jump == "Jump" and (Disable_Jump == true) then
  1101. Humanoid.Jump = false
  1102. end
  1103. end)
  1104.  
  1105. local LOOPED = 0
  1106.  
  1107. while true do
  1108. Swait()
  1109. script.Parent = WEAPONGUI
  1110. ANIMATE.Parent = nil
  1111. Character.Parent = workspace
  1112. Humanoid.Parent = Character
  1113. if Humanoid then
  1114. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1115. IDLEANIMATION:Play()
  1116. end
  1117. SINE = SINE + CHANGE
  1118. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1119. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1120. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  1121. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1122. if ATTACK == false then
  1123. if TORSOVELOCITY < 1 then
  1124. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1125. TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1126. elseif TORSOVELOCITY > 1 then
  1127. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 + 0.25 * COS(SINE / 15), 0 + 0.45 * COS(SINE / 20), 0 + 0.25 * COS(SINE / 24)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1128. TIEWELD.C0 = Clerp(TIEWELD.C0, CF(0,0,0) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(0,-0.1,0.2), 1 / Animation_Speed)
  1129. end
  1130. end
  1131. unanchor()
  1132. Humanoid.MaxHealth = "inf"
  1133. Humanoid.Health = "inf"
  1134. if Rooted == false then
  1135. Disable_Jump = false
  1136. Humanoid.WalkSpeed = Speed
  1137. elseif Rooted == true then
  1138. Disable_Jump = true
  1139. Humanoid.WalkSpeed = 0
  1140. end
  1141. Head:ClearAllChildren()
  1142. Head.Transparency = 1
  1143. for _, c in pairs(Character:GetChildren()) do
  1144. if c.ClassName == "Part" then
  1145. elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1146. c:remove()
  1147. end
  1148. end
  1149. script.Parent = WEAPONGUI
  1150. Humanoid.Name = "Roblox_Studio"
  1151. LOOPED = LOOPED + 1
  1152. if LOOPED == 15 and HITFLOOR then
  1153. LOOPED = 0
  1154. WACKYEFFECT({EffectType = "Ring", Size = VT(0.01,0.01,0.01), Size2 = VT(0.5,0.5,0.01), Transparency = 0.5, Transparency2 = 1, CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(0),RAD(0),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = CYAN, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1155. end
  1156. if LOOPED > 15 then
  1157. LOOPED = 0
  1158. end
  1159. end
  1160.  
  1161. --//=================================\\
  1162. --\\=================================//
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168. --//====================================================\\--
  1169. --|| END OF SCRIPT
  1170. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement