Advertisement
DaOMEGAa32

RAINBOW GUI V1.1

Mar 25th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.43 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local ImageLabel = Instance.new("ImageLabel")
  6. local TextBox = Instance.new("TextBox")
  7. local TextButton = Instance.new("TextButton")
  8. local TextButton_2 = Instance.new("TextButton")
  9. local TextButton_3 = Instance.new("TextButton")
  10. local TextButton_4 = Instance.new("TextButton")
  11. local TextButton_5 = Instance.new("TextButton")
  12. --Properties:
  13. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. ImageLabel.Parent = ScreenGui
  17. ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  18. ImageLabel.Position = UDim2.new(0.0878090337, 0, 0.125148982, 0)
  19. ImageLabel.Size = UDim2.new(0, 402, 0, 273)
  20. ImageLabel.Image = "rbxassetid://112645396"
  21.  
  22. TextBox.Parent = ScreenGui
  23. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  24. TextBox.Position = UDim2.new(0.0937766433, 0, 0.125148982, 0)
  25. TextBox.Size = UDim2.new(0, 389, 0, 50)
  26. TextBox.Font = Enum.Font.SourceSans
  27. TextBox.Text = "RAINBOW GUI V1.1"
  28. TextBox.TextColor3 = Color3.new(0, 0, 0)
  29. TextBox.TextSize = 14
  30.  
  31. TextButton.Parent = ScreenGui
  32. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  33. TextButton.Position = UDim2.new(0.151747659, 0, 0.407628119, 0)
  34. TextButton.Size = UDim2.new(0, 62, 0, 36)
  35. TextButton.Font = Enum.Font.SourceSans
  36. TextButton.Text = "DISCO MESH"
  37. TextButton.TextColor3 = Color3.new(0, 0, 0)
  38. TextButton.TextSize = 14
  39.  
  40. TextButton_2.Parent = ScreenGui
  41. TextButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
  42. TextButton_2.Position = UDim2.new(0.0878090337, 0, 0.407628119, 0)
  43. TextButton_2.Size = UDim2.new(0, 65, 0, 36)
  44. TextButton_2.Font = Enum.Font.SourceSans
  45. TextButton_2.Text = "plane"
  46. TextButton_2.TextColor3 = Color3.new(0, 0, 0)
  47. TextButton_2.TextSize = 14
  48.  
  49. TextButton_3.Parent = ScreenGui
  50. TextButton_3.BackgroundColor3 = Color3.new(1, 1, 1)
  51. TextButton_3.Position = UDim2.new(0.213981241, 0, 0.407628119, 0)
  52. TextButton_3.Size = UDim2.new(0, 62, 0, 36)
  53. TextButton_3.Font = Enum.Font.SourceSans
  54. TextButton_3.Text = "DoomScythe"
  55. TextButton_3.TextColor3 = Color3.new(0, 0, 0)
  56. TextButton_3.TextSize = 14
  57.  
  58. TextButton_4.Parent = ScreenGui
  59. TextButton_4.BackgroundColor3 = Color3.new(1, 1, 1)
  60. TextButton_4.Position = UDim2.new(0.284739971, 0, 0.407628119, 0)
  61. TextButton_4.Size = UDim2.new(0, 62, 0, 36)
  62. TextButton_4.Font = Enum.Font.SourceSans
  63. TextButton_4.Text = "MasterHand"
  64. TextButton_4.TextColor3 = Color3.new(0, 0, 0)
  65. TextButton_4.TextSize = 14
  66.  
  67. TextButton_5.Parent = ScreenGui
  68. TextButton_5.BackgroundColor3 = Color3.new(1, 1, 1)
  69. TextButton_5.Position = UDim2.new(0.352941155, 0, 0.407628119, 0)
  70. TextButton_5.Size = UDim2.new(0, 62, 0, 36)
  71. TextButton_5.Font = Enum.Font.SourceSans
  72. TextButton_5.Text = "Eye"
  73. TextButton_5.TextColor3 = Color3.new(0, 0, 0)
  74. TextButton_5.TextSize = 14
  75. -- Scripts:
  76. function SCRIPT_JLDF73_FAKESCRIPT() -- TextButton.LocalScript
  77. local script = Instance.new('LocalScript')
  78. script.Parent = TextButton
  79. function click()
  80. plr = game.Players.LocalPlayer.Name
  81. meshes = {"Brick","Cylinder","Head","Sphere","Torso","Wedge"}
  82. h = game.Workspace[plr].Head.Mesh
  83. t = Instance.new("SpecialMesh",game.Workspace[plr].Torso)
  84. la = Instance.new("SpecialMesh",game.Workspace[plr]["Left Arm"])
  85. ra = Instance.new("SpecialMesh",game.Workspace[plr]["Right Arm"])
  86. ll = Instance.new("SpecialMesh",game.Workspace[plr]["Left Leg"])
  87. rl = Instance.new("SpecialMesh",game.Workspace[plr]["Right Leg"])
  88. while true do
  89. wait(0.1)
  90. h.MeshType = meshes[math.random(1,#meshes)]
  91. h.Parent.BrickColor = BrickColor.Random()
  92. t.MeshType = meshes[math.random(1,#meshes)]
  93. t.Parent.BrickColor = BrickColor.Random()
  94. la.MeshType = meshes[math.random(1,#meshes)]
  95. la.Parent.BrickColor = BrickColor.Random()
  96. ra.MeshType = meshes[math.random(1,#meshes)]
  97. ra.Parent.BrickColor = BrickColor.Random()
  98. ll.MeshType = meshes[math.random(1,#meshes)]
  99. ll.Parent.BrickColor = BrickColor.Random()
  100. rl.MeshType = meshes[math.random(1,#meshes)]
  101. rl.Parent.BrickColor = BrickColor.Random()
  102. end
  103. end
  104.  
  105. script.Parent.MouseButton1Down:connect(click)
  106.  
  107. end
  108. coroutine.resume(coroutine.create(SCRIPT_JLDF73_FAKESCRIPT))
  109. function SCRIPT_XUKT85_FAKESCRIPT() -- TextButton_2.LocalScript
  110. local script = Instance.new('LocalScript')
  111. script.Parent = TextButton_2
  112. function click()
  113. repeat wait() until game:IsLoaded() and game:service("Players").LocalPlayer.Character ~= nil;
  114. wait(0.4)
  115. for i, v in pairs(game:service("Players").LocalPlayer.Character:children()) do
  116. if v ~= script then
  117. v:Destroy()
  118. end
  119. end
  120.  
  121. local player = game:service("Players").LocalPlayer
  122. local mouse = player:GetMouse()
  123. local cam = workspace.CurrentCamera
  124. local char = player.Character
  125. local Torsoz = char:findFirstChild("Torso")
  126. local NV = Vector3.new()
  127. local Main
  128. local W,S = false,false
  129. local DoublePress = {nil,0}
  130. script.Parent = char
  131.  
  132. local TrailParts = {}
  133. local Acceleration = 0.08
  134. local Speed = 0
  135. local MinSpeed = 0
  136. local MaxSpeed = 3.2
  137. local DesiredDirection = cam.CoordinateFrame.lookVector
  138. local Direction = DesiredDirection
  139. local Roll = 0
  140. local AllowTrails = true
  141.  
  142. script.Name = "AdvFlight"
  143.  
  144. local P = Instance.new("Part")
  145. P.Anchored = true
  146. P.CanCollide = false
  147. P.Name = "Part"
  148. P.formFactor = "Custom"
  149. P.Size = Vector3.new(0.2,0.2,0.2)
  150. P.Locked = true
  151. P.TopSurface = 10
  152. P.BottomSurface = 10
  153. P.FrontSurface = 10
  154. P.BackSurface = 10
  155. P.LeftSurface = 10
  156. P.RightSurface = 10
  157. P.Material = "Pebble"
  158. P.BrickColor = BrickColor.new("White")
  159.  
  160. local shipp
  161. local shadow
  162. local campart
  163.  
  164. function RAY(pos, dir, startpos, endpos, distleft, collidedlist)
  165. collidedlist = collidedlist or {char}
  166. startpos = startpos or pos
  167. distleft = distleft or dir.unit * dir.magnitude
  168. endpos = endpos or pos + distleft
  169. local ray = Ray.new(pos, distleft)
  170. local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist)
  171. if hitz ~= nil then
  172. if hitz.CanCollide == false then
  173. table.insert(collidedlist, hitz)
  174. local newpos = enz
  175. local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude)
  176. if newdistleft ~= NV then
  177. return RAY(newpos-(dir*0.01), dir, startpos, endpos, newdistleft+(dir*0.01), collidedlist)
  178. end
  179. end
  180. end
  181. return hitz, enz, ray
  182. end
  183.  
  184. function FindSurface(part, position)
  185. local obj = part.CFrame:pointToObjectSpace(position)
  186. local siz = part.Size/2
  187. for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  188. local vec = Vector3.FromNormalId(v)
  189. local wvec = part.CFrame:vectorToWorldSpace(vec)
  190. local vz = (obj)/(siz*vec)
  191. if (math.abs(vz.X-1) < 0.01 or math.abs(vz.Y-1) < 0.01 or math.abs(vz.Z-1) < 0.01) then
  192. return wvec,vec
  193. end
  194. end
  195. if part.className == "WedgePart" then
  196. return part.CFrame:vectorToWorldSpace(Vector3.new(0,0.707,-0.707)), Vector3.new(0,0.707,-0.707)
  197. end
  198. end
  199.  
  200. function HSV(H,S,V)
  201. H = H % 360
  202. local C = V * S
  203. local H2 = H/60
  204. local X = C * (1 - math.abs((H2 %2) -1))
  205. local color = Color3.new(0,0,0)
  206. if H2 <= 0 then
  207. color = Color3.new(C,0,0)
  208. elseif 0 <= H2 and H2 <= 1 then
  209. color = Color3.new(C,X,0)
  210. elseif 1 <= H2 and H2 <= 2 then
  211. color = Color3.new(X,C,0)
  212. elseif 2 <= H2 and H2 <= 3 then
  213. color = Color3.new(0,C,X)
  214. elseif 3 <= H2 and H2 <= 4 then
  215. color = Color3.new(0,X,C)
  216. elseif 4 <= H2 and H2 <= 5 then
  217. color = Color3.new(X,0,C)
  218. elseif 5 <= H2 and H2 <= 6 then
  219. color = Color3.new(C,0,X)
  220. end
  221. local m = V - C
  222. return Color3.new(color.r + m, color.g + m, color.b + m)
  223. end
  224.  
  225. function Build(shiptype)
  226. AllowTrails = true
  227. for i, v in pairs(char:children()) do
  228. if v.className == "Model" and v.Name == "Ship" then
  229. v:remove()
  230. end
  231. end
  232. for i, v in pairs(TrailParts) do
  233. for _,V in pairs(v[3]) do
  234. V:Destroy()
  235. end
  236. end
  237. local mdl = Instance.new("Model", char)
  238. mdl.Name = "Ship"
  239.  
  240. ------------------------ Speeder Ship Type -----------------------------
  241. if shiptype == "Speeder" then
  242.  
  243. shipp = P:Clone()
  244. shipp.Parent = mdl
  245. shipp.Size = Vector3.new(1,1,2.2)
  246. local shipwing1 = P:Clone()
  247. shipwing1.Parent = mdl
  248. shipwing1.Size = Vector3.new(0.6,1.2,2)
  249. local mesh = Instance.new("SpecialMesh", shipwing1)
  250. mesh.MeshType = "Wedge"
  251. local shipwing2 = shipwing1:Clone()
  252. shipwing2.Parent = mdl
  253. campart = P:Clone()
  254. campart.Transparency = 1
  255. local shipwing21 = P:Clone()
  256. shipwing21.Parent = mdl
  257. shipwing21.Size = Vector3.new(0.32,1.1,2.6)
  258. local mesh = Instance.new("SpecialMesh", shipwing21)
  259. mesh.MeshType = "Wedge"
  260. local shipwing22 = shipwing21:Clone()
  261. shipwing22.Parent = mdl
  262. campart = P:Clone()
  263. campart.Transparency = 1
  264.  
  265. local shipwi = P:Clone()
  266. shipwi.Parent = mdl
  267. shipwi.Size = Vector3.new(1,1,1.2)
  268. local mesh = Instance.new("SpecialMesh", shipwi)
  269. mesh.MeshType = "Wedge"
  270. local shipwi2 = P:Clone()
  271. shipwi2.Parent = mdl
  272. shipwi2.Size = Vector3.new(0.7,0.7,0.84)
  273. shipwi2.Material = "SmoothPlastic"
  274. shipwi2.BrickColor = BrickColor.new("Pastel blue")
  275. shipwi2.Reflectance = 0.6
  276. local mesh = Instance.new("SpecialMesh", shipwi2)
  277. mesh.MeshType = "Wedge"
  278.  
  279. shadow = P:Clone()
  280. shadow.Parent = mdl
  281. shadow.Name = "Shadow"
  282. shadow.Material = "SmoothPlastic"
  283. shadow.BrickColor = BrickColor.new("Really black")
  284. local mesh = Instance.new("SpecialMesh",shadow)
  285. mesh.MeshType = "Sphere"
  286.  
  287. TrailParts = {}
  288. table.insert(TrailParts,{shipp,1,{},cam.CoordinateFrame.p,CFrame.new(0,0,1),0.5,18})
  289. table.insert(TrailParts,{shipwing1,1,{},cam.CoordinateFrame.p,CFrame.new(0,0.45,1),0.3,15})
  290. table.insert(TrailParts,{shipwing2,1,{},cam.CoordinateFrame.p,CFrame.new(0,0.45,1),0.3,15})
  291. for _, V in pairs(TrailParts) do
  292. for i = 1, V[7] do
  293. local p = P:Clone()
  294. local mesh = Instance.new("SpecialMesh", p)
  295. mesh.MeshId = "http://www.roblox.com/asset/?id=9856898"
  296. mesh.TextureId = "http://www.roblox.com/asset/?id=48358980"
  297. p.BrickColor = BrickColor.new("Dark stone grey")
  298. table.insert(V[3],p)
  299. end
  300. end
  301.  
  302. function ReposParts()
  303. shipwing1.CFrame = shipp.CFrame * CFrame.new(-1.1,-0.195,-0.14) * CFrame.Angles(0,0,math.pi/2)
  304. shipwing2.CFrame = shipp.CFrame * CFrame.new(1.1,-0.195,-0.14) * CFrame.Angles(0,0,-math.pi/2)
  305. shipwing21.CFrame = shipp.CFrame * CFrame.new(-1.05,-0.34,-0.45) * CFrame.Angles(0,0,math.pi/2)
  306. shipwing22.CFrame = shipp.CFrame * CFrame.new(1.05,-0.34,-0.45) * CFrame.Angles(0,0,-math.pi/2)
  307. shipwi.CFrame = shipp.CFrame * CFrame.new(0,0,-1.7)
  308. shipwi2.CFrame = shipwi.CFrame * CFrame.new(0,0.015,-0.015)
  309. campart.CFrame = shipp.CFrame + Vector3.new(0,1.5,0)
  310. end
  311. cam.CameraSubject = campart
  312. cam.CameraType = "Track"
  313.  
  314. shipp.CFrame = CFrame.new(NV,Direction) + cam.CoordinateFrame.p
  315. ReposParts()
  316.  
  317. end
  318.  
  319. AllowTrails = true
  320. end
  321. Build("Speeder")
  322.  
  323. function B1D()
  324. Build("Speeder")
  325. end
  326.  
  327. function RollThatSht(direc)
  328. if Roll == 0 then
  329. for i = 1, 50 do
  330. Roll = (-360 + math.cos(math.pi/50*i) * 360) * direc
  331. wait(0.02)
  332. end
  333. Roll = 0
  334. end
  335. end
  336.  
  337. function KD(key)
  338. if key == "w" then
  339. W = true
  340. elseif key == "s" then
  341. S = true
  342. end
  343.  
  344. local rollpls = 0
  345. if key == DoublePress[1] and tick() - DoublePress[2] < 0.32 then
  346. DoublePress = {nil,0}
  347. if key == "a" then
  348. rollpls = -1
  349. elseif key == "d" then
  350. rollpls = 1
  351. end
  352. end
  353.  
  354. DoublePress = {key,tick()}
  355. if rollpls ~= 0 then
  356. RollThatSht(rollpls)
  357. end
  358. end
  359.  
  360. function KU(key)
  361. if key == "w" then
  362. W = false
  363. elseif key == "s" then
  364. S = false
  365. end
  366. end
  367.  
  368. function Equip()
  369. end
  370.  
  371. function Unequip()
  372. end
  373.  
  374. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  375. mouse.Button1Down:connect(B1D)
  376. mouse.KeyDown:connect(KD)
  377. mouse.KeyUp:connect(KU)
  378.  
  379.  
  380.  
  381. local count = 0
  382. local hue = 0
  383. --game:GetService("RunService").Stepped:connect(function()
  384. while wait(0.02) do
  385.  
  386. ------ Speed --------
  387. local valu = (0.002*MaxSpeed) + ((Speed/MaxSpeed)*Acceleration)
  388. if W == true then
  389. Speed = Speed + valu
  390. elseif S == true then
  391. Speed = Speed - valu
  392. end
  393. if Speed > MaxSpeed then
  394. Speed = MaxSpeed
  395. elseif Speed < MinSpeed then
  396. Speed = MinSpeed
  397. end
  398.  
  399. ------ left/right tilt ---------
  400. local target = 180 + math.floor(math.deg(math.atan2(DesiredDirection.x,DesiredDirection.z)))
  401. local current = 180 + math.floor(math.deg(math.atan2(Direction.x,Direction.z)))
  402. local swing = 0
  403. if math.abs(math.abs(current-target) - 360) > math.abs(target-current) then
  404. swing = target-current
  405. else
  406. swing = (current > target and -(math.abs(current-target) - 360)) or (current < target and math.abs(current-target) - 360)
  407. end
  408.  
  409. DesiredDirection = cam.CoordinateFrame.lookVector
  410. ------ direction smoothening ------
  411. local dir = DesiredDirection.unit
  412. if Direction ~= dir then
  413. if (Direction - dir).magnitude < 0.01 then
  414. Direction = dir
  415. else
  416. local dist = ((dir - Direction).unit * (dir - Direction).magnitude) /10
  417. Direction = (Direction + dist).unit
  418. end
  419. end
  420.  
  421. shipp.CFrame = (CFrame.new(NV,Direction) + shipp.Position + (Direction.unit * Speed)) * CFrame.Angles(0,0,math.rad(Roll) + math.rad(swing/2))
  422. ReposParts()
  423.  
  424. ------ shadow ------
  425. local ghitz, genz = RAY(shipp.Position,Vector3.new(0,-26,0))
  426. local angles = CFrame.new()
  427. if ghitz ~= nil and ghitz.className ~= "Terrain" and ((ghitz.className == "Part" and ghitz.Shape == Enum.PartType.Block) or (ghitz.className ~= "Part" and ghitz:IsA("BasePart"))) then
  428. local wvec,vec = FindSurface(ghitz,genz)
  429. angles = CFrame.new(NV,wvec) * CFrame.Angles(-math.pi/2,0,0)
  430. elseif ghitz ~= nil and (ghitz.className == "Part" and ghitz.Shape == Enum.PartType.Ball) then
  431. angles = (CFrame.new(ghitz.Position, genz) - ghitz.Position) * CFrame.Angles(-math.pi/2,0,0)
  432. end
  433. shadow.CFrame = CFrame.new(genz) * angles
  434. shadow.Transparency = 0.5 + (((shipp.Position - genz).magnitude /26)*0.5)
  435. shadow.Mesh.Scale = (Vector3.new(4.4,0.25,4.4) * 5) * (1-(shipp.Position - genz).magnitude /26)
  436.  
  437. ------- Trails -----------------------
  438. if AllowTrails == true then
  439. count = (count+1)%1
  440. hue = (hue+1) % 360
  441. local rgb = HSV(hue,0.65,0.85)
  442. for _,v in pairs(TrailParts) do
  443. local to = (v[1].CFrame * v[5]).p
  444. if Speed > MinSpeed + 0.2 then
  445. v[2] = (v[2]%#v[3]) + 1
  446. v[3][v[2]].CFrame = CFrame.new((v[4] + to)/2,to) * CFrame.Angles(math.pi/2,math.rad(Roll) + math.rad(swing/2),0)
  447. v[3][v[2]].Mesh.Scale = Vector3.new(v[6],(v[4] - to).magnitude*2,v[6])
  448. v[3][v[2]].Mesh.VertexColor = Vector3.new(rgb.r,rgb.g,rgb.b)
  449. v[3][v[2]].Transparency = 0.15
  450. v[3][v[2]].Parent = game.Players.LocalPlayer.Character
  451. else
  452. v[2] = (v[2]%#v[3]) + 1
  453. v[3][v[2]].Parent = nil
  454. end
  455.  
  456. v[4] = to
  457. end
  458. end
  459.  
  460. end
  461. --end)
  462.  
  463. -- 138098590 -- plane destroyed sound
  464. -- 133082569 -- propeller 2
  465. -- 135645246 -- propeller 1
  466. --[[ Possible Game names
  467. Aeroscape
  468. Airbound
  469. Aerialtude
  470. ]]
  471. end
  472.  
  473. script.Parent.MouseButton1Down:connect(click)
  474.  
  475. end
  476. coroutine.resume(coroutine.create(SCRIPT_XUKT85_FAKESCRIPT))
  477. function SCRIPT_ZZQD74_FAKESCRIPT() -- TextButton_3.LocalScript
  478. local script = Instance.new('LocalScript')
  479. script.Parent = TextButton_3
  480. click=false
  481. script.Parent.MouseButton1Up:connect(function() click=false end)
  482. script.Parent.MouseLeave:connect(function() click=false end)
  483. script.Parent.MouseButton1Down:connect(function() click=true
  484. while click==true and wait() do
  485. --[[
  486. Script shared by eletronix ]]
  487.  
  488. me = game.Players.LocalPlayer
  489. char = me.Character
  490. bin = script.Parent
  491. selected = false
  492. attacking = false
  493. hurt = false
  494. deb = true
  495. normdmg = 18
  496. dmg = normdmg
  497. fly = false
  498. firecols = {"Bright violet", "Black", "Really black"}
  499.  
  500. parts = {}
  501.  
  502. if char:findFirstChild("Scythe",true) ~= nil then
  503. char:findFirstChild("Scythe",true).Parent = nil
  504. end
  505.  
  506. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  507. part.Parent = parent
  508. part.formFactor = form
  509. part.CanCollide = collide
  510. part.Transparency = tran
  511. part.Reflectance = ref
  512. part.Size = Vector3.new(x,y,z)
  513. part.BrickColor = BrickColor.new(color)
  514. part.TopSurface = 0
  515. part.BottomSurface = 0
  516. part.Anchored = anchor
  517. part.Locked = true
  518. part:BreakJoints()
  519. end
  520.  
  521. function weld(w, p, p1, a, b, c, x, y, z)
  522. w.Parent = p
  523. w.Part0 = p
  524. w.Part1 = p1
  525. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  526. end
  527.  
  528. function mesh(mesh, parent, x, y, z, type)
  529. mesh.Parent = parent
  530. mesh.Scale = Vector3.new(x, y, z)
  531. mesh.MeshType = type
  532. end
  533.  
  534. function getcharparts(path)
  535. local objs = {}
  536. for _,v in pairs(path:children()) do
  537. if v:IsA("Model") and v.Name ~= name then
  538. for _,k in pairs(v:children()) do
  539. if k.Name == "Torso" then
  540. table.insert(objs,k)
  541. end
  542. end
  543. end
  544. end
  545. return objs
  546. end
  547.  
  548. sword = Instance.new("Model",me.Character)
  549. sword.Name = "Scythe"
  550.  
  551. --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
  552.  
  553. rarm = char:findFirstChild("Right Arm")
  554. larm = char:findFirstChild("Left Arm")
  555. torso = char:findFirstChild("Torso")
  556. hum = char:findFirstChild("Humanoid")
  557.  
  558. main = Instance.new("Part")
  559. prop(main, sword, false, 0, 0, 0.45, 6.4, 0.45, "Really black", false, "Custom")
  560. mme = Instance.new("SpecialMesh")
  561. mesh(mme,main,1,1,1,"Head")
  562. table.insert(parts,main)
  563.  
  564. part1 = Instance.new("Part")
  565. prop(part1, sword, false, 0, 0, 0.45, 1, 0.45, "Really black", false, "Custom")
  566. p1m = Instance.new("SpecialMesh")
  567. mesh(p1m,part1,1,1,1,"Head")
  568. w1 = Instance.new("Weld")
  569. weld(w1, main, part1, 0, 0, -1.1, -0.3, 3.3, 0)
  570.  
  571. part2 = Instance.new("Part")
  572. prop(part2, sword, false, 0, 0, 0.45, 1, 0.45, "Really black", false, "Custom")
  573. p2m = Instance.new("SpecialMesh")
  574. mesh(p2m,part2,1,1,1,"Head")
  575. w2 = Instance.new("Weld")
  576. weld(w2, main, part2, 0, 0, -1.1, 0.3, -3.3, 0)
  577.  
  578. blade1 = Instance.new("Part")
  579. prop(blade1, sword, false, 0, 0, 1.4, 0.8, 0.1, "Dark grey", false, "Custom")
  580. b1m = Instance.new("BlockMesh",blade1)
  581. w3 = Instance.new("Weld")
  582. weld(w3, main, blade1, 0, 0, -0.4, -0.45, -3.4, 0)
  583. table.insert(parts,blade1)
  584.  
  585. blade2 = Instance.new("Part")
  586. prop(blade2, sword, false, 0, 0, 1.1, 0.8, 0.1, "Dark grey", false, "Custom")
  587. b2m = Instance.new("BlockMesh",blade2)
  588. w4 = Instance.new("Weld")
  589. weld(w4, main, blade2, 0, 0, 0, -1.5, -3.66, 0)
  590. table.insert(parts,blade2)
  591.  
  592. blade3 = Instance.new("Part")
  593. prop(blade3, sword, false, 0, 0, 0.1, 0.8, 1.7, "Dark grey", false, "Custom")
  594. b3m = Instance.new("SpecialMesh")
  595. mesh(b3m,blade3,1,1,1,"Wedge")
  596. w5 = Instance.new("Weld")
  597. weld(w5, main, blade3, 0, math.pi/2, 0.4, -2.64, -3.38, 0)
  598. table.insert(parts,blade3)
  599.  
  600. blade1b = Instance.new("Part")
  601. prop(blade1b, sword, false, 0, 0, 1.4, 0.8, 0.1, "Dark grey", false, "Custom")
  602. b1mb = Instance.new("BlockMesh",blade1b)
  603. w6 = Instance.new("Weld")
  604. weld(w6, main, blade1b, 0, 0, -0.4+math.pi, 0.45, 3.4, 0)
  605. table.insert(parts,blade1b)
  606.  
  607. blade2b = Instance.new("Part")
  608. prop(blade2b, sword, false, 0, 0, 1.1, 0.8, 0.1, "Dark grey", false, "Custom")
  609. b2mb = Instance.new("BlockMesh",blade2b)
  610. w7 = Instance.new("Weld")
  611. weld(w7, main, blade2b, 0, 0, math.pi, 1.5, 3.66, 0)
  612. table.insert(parts,blade2b)
  613.  
  614. blade3b = Instance.new("Part")
  615. prop(blade3b, sword, false, 0, 0, 0.1, 0.8, 1.7, "Dark grey", false, "Custom")
  616. b3mb = Instance.new("SpecialMesh")
  617. mesh(b3mb,blade3b,1,1,1,"Wedge")
  618. w8 = Instance.new("Weld")
  619. weld(w8, main, blade3b, 0, math.pi/2, 0.4+math.pi, 2.64, 3.38, 0)
  620. table.insert(parts,blade3b)
  621.  
  622. for i=0.9, 1.6, 0.09 do
  623. hp1 = Instance.new("Part")
  624. prop(hp1, sword, false, 0, 0, 0.48, 0.09, 0.48, "White", false, "Custom")
  625. h1m = Instance.new("SpecialMesh")
  626. mesh(h1m,hp1,1,1,1,"Head")
  627. w9 = Instance.new("Weld")
  628. weld(w9, main, hp1, math.random(-20,20)/100, 0, math.random(-20,20)/100, 0, i, 0)
  629. end
  630.  
  631. for i=0.9, 1.6, 0.09 do
  632. hp2 = Instance.new("Part")
  633. prop(hp2, sword, false, 0, 0, 0.48, 0.09, 0.48, "White", false, "Custom")
  634. h2m = Instance.new("SpecialMesh")
  635. mesh(h2m,hp2,1,1,1,"Head")
  636. w10 = Instance.new("Weld")
  637. weld(w10, main, hp2, math.random(-20,20)/100, 0, math.random(-20,20)/100, 0, -i, 0)
  638. end
  639.  
  640. --Arm joints-----------------------Arm joints-----------------------Arm joints---------------------
  641.  
  642. righthold = Instance.new("Part")
  643. prop(righthold, sword, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  644. w11 = Instance.new("Weld")
  645. weld(w11, rarm, righthold, 0, 0, 0, 0, 1, 0)
  646.  
  647. lefthold = Instance.new("Part")
  648. prop(lefthold, sword, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  649. w12 = Instance.new("Weld")
  650. weld(w12, larm, lefthold, 0, 0, 0, 0, 1, 0)
  651.  
  652. rb = Instance.new("Part")
  653. prop(rb, sword, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  654. w13 = Instance.new("Weld")
  655. weld(w13, torso, rb, 0, 0, 0, -1.5, -0.5, 0)
  656.  
  657. lb = Instance.new("Part")
  658. prop(lb, sword, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  659. w14 = Instance.new("Weld")
  660. weld(w14, torso, lb, 0, 0, 0, 1.5, -0.5, 0)
  661.  
  662. rw = Instance.new("Weld")
  663. weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
  664.  
  665. lw = Instance.new("Weld")
  666. weld(lw, lb, nil, 0, 0, 0, 0, 0.5, 0)
  667.  
  668.  
  669. holdweld = Instance.new("Weld")
  670. weld(holdweld,torso,main,0,0,0.85,0,0,-0.64)
  671.  
  672. rh = Instance.new("Weld")
  673. weld(rh,righthold,nil,math.pi/2,0,math.pi,0,0,1)
  674.  
  675. lh = Instance.new("Weld")
  676. weld(lh,lefthold,nil,math.pi/2,0,0,0,0,0)
  677.  
  678. rightbattle = nil
  679. leftbattle = nil
  680.  
  681. if script.Parent.className ~= "HopperBin" then
  682. h = Instance.new("HopperBin",me.Backpack)
  683. h.Name = "Scythe"
  684. script.Parent = h
  685. end
  686.  
  687. bin = script.Parent
  688.  
  689. function selectmotion()
  690. rw.Part1 = rarm
  691. rh.C0 = CFrame.new(0,0,0)
  692. rw.C0 = CFrame.new(0,0,0)
  693. lw.C0 = CFrame.new(0,0,0)
  694. for i=1, 7 do
  695. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.25,0.13,-0.1)
  696. wait()
  697. end
  698. rh.Part1 = main
  699. holdweld.Part1 = nil
  700. for i=1, 5 do
  701. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.3,0,-0.1)
  702. rh.C0 = rh.C0 * CFrame.new(0,0,0.4) * CFrame.fromEulerAnglesXYZ(0,0,-(math.pi/2)/5)
  703. wait()
  704. end
  705. lw.Part1 = larm
  706. for i=1, 5 do
  707. rw.C0 = rw.C0 * CFrame.new(-0.03,0.05,0.08) * CFrame.fromEulerAnglesXYZ(-0.3,-0.2,0.13)
  708. lw.C0 = lw.C0 * CFrame.new(0.08,0,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0)
  709. wait()
  710. end
  711. rightbattle = rw.C0
  712. leftbattle = lw.C0
  713. rh.Part1 = main
  714. lw.Part1 = larm
  715. rw.C0 = rightbattle
  716. lw.C0 = leftbattle
  717. selected = true
  718. end
  719.  
  720. function deselmotion()
  721. selected = false
  722. rightbattle = rw.C0
  723. leftbattle = lw.C0
  724. rh.Part1 = main
  725. lw.Part1 = larm
  726. rw.Part1 = rarm
  727. rw.C0 = rightbattle
  728. lw.C0 = leftbattle
  729. for i=1, 5 do
  730. rw.C0 = rw.C0 * CFrame.new(0.03,-0.05,-0.08) * CFrame.fromEulerAnglesXYZ(0.3,0.2,-0.13)
  731. lw.C0 = lw.C0 * CFrame.new(-0.08,0,0) * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  732. wait()
  733. end
  734. lw.Part1 = nil
  735. for i=1, 5 do
  736. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.3,0,0.1)
  737. rh.C0 = rh.C0 * CFrame.new(0,0,-0.4) * CFrame.fromEulerAnglesXYZ(0,0,(math.pi/2)/5)
  738. wait()
  739. end
  740. holdweld.Part1 = main
  741. rh.Part1 = nil
  742. for i=1, 7 do
  743. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.25,-0.13,0.1)
  744. wait()
  745. end
  746. rw.Part1 = nil
  747. lw.Part1 = nil
  748. rh.C0 = CFrame.new(0,0,0)
  749. rw.C0 = CFrame.new(0,0,0)
  750. lw.C0 = CFrame.new(0,0,0)
  751. end
  752.  
  753. --Effect------------------Effect------------------Effect------------------Effect------------------Effect----------------
  754.  
  755. function effect()
  756. for _,v in pairs(parts) do
  757. local o = v:clone()
  758. o.Parent = workspace
  759. o.Transparency = 0.6
  760. o.BrickColor = BrickColor.new("Bright violet")
  761. o.Anchored = true
  762. o.CanCollide = false
  763. o.CFrame = v.CFrame
  764. coroutine.resume(coroutine.create(function()
  765. for i=o.Transparency, 1, 0.07 do
  766. wait()
  767. o.Transparency = i
  768. end
  769. o:remove()
  770. end))
  771. end
  772. end
  773.  
  774. --KILL FUNCTION-------------KILL FUNCTION-------------KILL FUNCTION-------------KILL FUNCTION-----------
  775.  
  776.  
  777. function kill(h)
  778. if hurt and deb then
  779. local hu = h.Parent:findFirstChild("Humanoid")
  780. if hu ~= nil and h.Parent.Name ~= name then
  781. deb = false
  782. local dam = math.random(0,dmg)
  783. hu.Health = hu.Health - dam
  784. local p = Instance.new("Part")
  785. prop(p,nil,false,1,0,0.9,0.25,0.9,"Bright red",false,"Custom")
  786. p.CFrame = CFrame.new(blade3b.Position) * CFrame.new(0,2,0)
  787. local bil = Instance.new("BillboardGui",p)
  788. bil.Adornee = bil.Parent
  789. bil.Size = UDim2.new(0,60,0,60)
  790. local txt = Instance.new("TextLabel",bil)
  791. txt.Text = dam
  792. txt.BackgroundTransparency = 1
  793. txt.FontSize = "Size24"
  794. txt.Size = UDim2.new(0,60,0,60)
  795. local bp = Instance.new("BodyPosition",p)
  796. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  797. bp.P = 200000
  798. bp.position = p.Position
  799. local po = bp.position
  800. local cf = CFrame.Angles(0,0,0)
  801. if fly then
  802. local too = h.Parent:findFirstChild("Torso")
  803. if too ~= nil then
  804. coroutine.resume(coroutine.create(function()
  805. hu.PlatformStand = true
  806. wait(0.06)
  807. local c = CFrame.new(torso.Position, too.Position)
  808. too.Velocity = c.lookVector * math.random(30,70)
  809. wait(0.6)
  810. hu.PlatformStand = false
  811. end))
  812. end
  813. end
  814. coroutine.resume(coroutine.create(function()
  815. p.Parent = workspace
  816. for i=0, math.random(16,27), 0.35 do
  817. wait()
  818. cf = CFrame.Angles(0,i/1.3,0) * CFrame.new(0,i/1.7,i/3.2)
  819. bp.position = po + cf.p
  820. end
  821. p:remove()
  822. end))
  823. coroutine.resume(coroutine.create(function()
  824. wait(0.14)
  825. deb = true
  826. end))
  827. end
  828. end
  829. end
  830.  
  831. for _,v in pairs(parts) do
  832. v.Touched:connect(kill)
  833. end
  834.  
  835. --Attacks-----------Attacks----------------Attacks-----------Attacks----------------Attacks-----------Attacks--------------
  836.  
  837. function att()
  838. attacking = true
  839. for i=1,7 do
  840. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.05,-0.2,-0.05)
  841. lw.C0 = lw.C0 * CFrame.new(0.07,-0.08,0) * CFrame.fromEulerAnglesXYZ(0,0,0.12)
  842. wait()
  843. end
  844. for i=1,6 do
  845. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.3,0,0.05)
  846. lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0.1)
  847. wait()
  848. end
  849. hurt = true
  850. for i=1,6 do
  851. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.5,-0.06,0.12)
  852. lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.23,-0.07,0)
  853. effect()
  854. wait()
  855. end
  856. hurt = false
  857. for i=1,6 do
  858. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.13,0.23,-0.2)
  859. lw.C0 = lw.C0 * CFrame.new(-0.08,0.09,0.03) * CFrame.fromEulerAnglesXYZ(-0.1,0.15,-0.15)
  860. effect()
  861. wait()
  862. end
  863. rw.C0 = rightbattle
  864. lw.C0 = leftbattle
  865. attacking = false
  866. end
  867.  
  868. function throw()
  869. attacking = true
  870. for i=1,7 do
  871. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.08,-0.14,-0.2)
  872. wait()
  873. end
  874. for i=1,3 do
  875. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.2,-0,0)
  876. effect()
  877. wait()
  878. end
  879. for i=1,4 do
  880. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.45,-0,0)
  881. effect()
  882. wait()
  883. end
  884. rh.Part1 = nil
  885. local bv = Instance.new("BodyVelocity",main)
  886. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  887. bv.velocity = torso.CFrame.lookVector * 70
  888. local bav = Instance.new("BodyAngularVelocity",main)
  889. bav.P = 10000
  890. bav.angularvelocity = torso.CFrame.lookVector * 40
  891. local lolpos = torso.CFrame
  892. wait(0.4)
  893. hurt = true
  894. dmg = 65
  895. coroutine.resume(coroutine.create(function()
  896. repeat wait() effect() until (main.Position - torso.Position).magnitude < 11
  897. rh.Part1 = main
  898. bv:remove()
  899. bav:remove()
  900. rw.C0 = rightbattle
  901. lw.C0 = leftbattle
  902. attacking = false
  903. hurt = false
  904. dmg = normdmg
  905. end))
  906. wait(3)
  907. bv.velocity = lolpos.lookVector * -180
  908. end
  909.  
  910. function spin()
  911. attacking = true
  912. wait(0.1)
  913. local bg = Instance.new("BodyGyro",torso)
  914. bg.P = 13000
  915. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  916. local cf = CFrame.Angles(0,0,0)
  917. local xd = torso.CFrame
  918. bg.cframe = CFrame.new(torso.Position, xd * cf * CFrame.new(0,0,-90).p)
  919. for i=1,4 do
  920. rw.C0 = rw.C0 * CFrame.new(0,0.1,0) * CFrame.fromEulerAnglesXYZ(0.35,0,-0.07)
  921. lw.C0 = lw.C0 * CFrame.new(0,0.1,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  922. wait()
  923. end
  924. hurt = true
  925. fly = true
  926. for i=0,math.pi*4,math.pi/6 do
  927. wait()
  928. cf = CFrame.Angles(0,-i,0)
  929. bg.cframe = CFrame.new(torso.Position, xd * cf * CFrame.new(0,0,-90).p)
  930. effect()
  931. end
  932. hurt = false
  933. fly = false
  934. bg:remove()
  935. for i=1,4 do
  936. rw.C0 = rw.C0 * CFrame.new(0,-0.1,0) * CFrame.fromEulerAnglesXYZ(-0.35,0,0.07)
  937. lw.C0 = lw.C0 * CFrame.new(0,-0.1,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  938. wait()
  939. end
  940. rw.C0 = rightbattle
  941. lw.C0 = leftbattle
  942. wait(0.2)
  943. attacking = false
  944. end
  945.  
  946. function select(mouse)
  947. repeat wait() until selected == false and attacking == false
  948. if selected == false then
  949. selectmotion()
  950. end
  951. coroutine.resume(coroutine.create(function()
  952. while selected do
  953. wait(0.25)
  954. if torso.RotVelocity.Y < -14 and attacking == false then
  955. spin()
  956. end
  957. end
  958. end))
  959. mouse.Button1Down:connect(function()
  960. if selected and attacking == false then
  961. att()
  962. end
  963. end)
  964. mouse.KeyDown:connect(function(kai)
  965. if attacking == false then
  966. omg = kai:lower()
  967. if omg == "r" then
  968. throw()
  969. end
  970. end
  971. end)
  972. end
  973.  
  974. function desel()
  975. repeat wait() until selected and attacking == false
  976. if selected then
  977. deselmotion()
  978. end
  979. end
  980.  
  981. bin.Selected:connect(select)
  982. bin.Deselected:connect(desel)
  983.  
  984. --mediafire
  985.  
  986. end
  987. end)
  988.  
  989.  
  990. end
  991. coroutine.resume(coroutine.create(SCRIPT_ZZQD74_FAKESCRIPT))
  992. function SCRIPT_HMZD78_FAKESCRIPT() -- TextButton_4.LocalScript
  993. local script = Instance.new('LocalScript')
  994. script.Parent = TextButton_4
  995. script.Parent.MouseEnter:connect(function(e)
  996. local wh = Color3.new(1,1,1)
  997. local gr = Color3.new(0,1,0)
  998. local bt = script.Parent
  999. local cli = script.Sound
  1000. if bt.TextColor3 == gr then
  1001. bt.TextColor3 = wh
  1002. bt.BorderColor3 = wh
  1003. cli:Play()
  1004. end
  1005. end)
  1006.  
  1007. script.Parent.MouseLeave:connect(function(l)
  1008. local wh = Color3.new(1,1,1)
  1009. local gr = Color3.new(0,1,0)
  1010. local bt = script.Parent
  1011. local cli = script.Sound
  1012. if bt.TextColor3 == wh then
  1013. bt.TextColor3 = gr
  1014. bt.BorderColor3 = gr
  1015. cli:Play()
  1016. end
  1017. end)
  1018.  
  1019. function click()
  1020. local all=script:GetChildren()
  1021. for i=1,#all do
  1022. if all[i].ClassName=="LocalScript" then
  1023. local s=all[i]:Clone()
  1024. s.Disabled=false
  1025. s.Parent=game.Players.LocalPlayer.Backpack
  1026. end
  1027. end
  1028. local gr = Color3.new(0,1,0)
  1029. local bt = script.Parent
  1030. bt.TextColor3 = gr
  1031. bt.BorderColor3 = gr
  1032. end
  1033.  
  1034. script.Parent.MouseButton1Down:connect(click)
  1035.  
  1036. end
  1037. coroutine.resume(coroutine.create(SCRIPT_HMZD78_FAKESCRIPT))
  1038. function SCRIPT_MSKR66_FAKESCRIPT() -- TextButton_5.LocalScript
  1039. local script = Instance.new('LocalScript')
  1040. script.Parent = TextButton_5
  1041. script.Parent.MouseEnter:connect(function(e)
  1042. local wh = Color3.new(1,1,1)
  1043. local gr = Color3.new(0,1,0)
  1044. local bt = script.Parent
  1045. local cli = script.Sound
  1046. if bt.TextColor3 == gr then
  1047. bt.TextColor3 = wh
  1048. bt.BorderColor3 = wh
  1049. cli:Play()
  1050. end
  1051. end)
  1052.  
  1053. script.Parent.MouseLeave:connect(function(l)
  1054. local wh = Color3.new(1,1,1)
  1055. local gr = Color3.new(0,1,0)
  1056. local bt = script.Parent
  1057. local cli = script.Sound
  1058. if bt.TextColor3 == wh then
  1059. bt.TextColor3 = gr
  1060. bt.BorderColor3 = gr
  1061. cli:Play()
  1062. end
  1063. end)
  1064.  
  1065. function click()
  1066. local all=script:GetChildren()
  1067. for i=1,#all do
  1068. if all[i].ClassName=="LocalScript" then
  1069. local s=all[i]:Clone()
  1070. s.Disabled=false
  1071. s.Parent=game.Players.LocalPlayer.Backpack
  1072. end
  1073. end
  1074. local gr = Color3.new(0,1,0)
  1075. local bt = script.Parent
  1076. bt.TextColor3 = gr
  1077. bt.BorderColor3 = gr
  1078. end
  1079.  
  1080. script.Parent.MouseButton1Down:connect(click)
  1081.  
  1082. end
  1083. coroutine.resume(coroutine.create(SCRIPT_MSKR66_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement