Advertisement
PiterMosskva_TV

Studio FE

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