Advertisement
samuelrichter66

STUDio

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