Advertisement
EnderPlayBro

Studio (FE)

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