Advertisement
13242

Untitled

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