Advertisement
vallentganteng

studio

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