Advertisement
DaOMEGAa32

fe studio

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