Advertisement
KvngSkitzo

SwordFighting Gui

Jan 25th, 2020
9,989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.71 KB | None | 0 0
  1. --Sword Fighting Tournament Gui ~Skitzo
  2. --Enjoy ;)
  3. local function CreateInstance(cls,props)
  4. local inst = Instance.new(cls)
  5. for i,v in pairs(props) do
  6. inst[i] = v
  7. end
  8. return inst
  9. end
  10.  
  11. local ScreenGui = CreateInstance('ScreenGui',{DisplayOrder=0,Enabled=true,ResetOnSpawn=true,Name='ScreenGui', Parent=game.CoreGui})
  12. local Frame = CreateInstance('Frame',{Style=Enum.FrameStyle.Custom,Active=false,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(0.32549, 0.32549, 0.32549),BackgroundTransparency=0.30000001192093,BorderColor3=Color3.new(0, 0, 0),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0, 0, 0.323404282, 0),Rotation=0,Selectable=false,Size=UDim2.new(0, 318, 0, 183),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name = 'Frame',Parent = ScreenGui})
  13. local title = CreateInstance('TextLabel',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size24,Text='CyberSec',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=23,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,Active=false,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=1,BorderColor3=Color3.new(0, 0, 0),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.185534596, 0, 0, 0),Rotation=0,Selectable=false,Size=UDim2.new(0, 200, 0, 23),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='title',Parent = Frame})
  14. local pointsb = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='Points',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.534591258, 0, 0.209150434, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 63, 0, 21),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='pointsb',Parent = Frame})
  15. local EnterUsername = CreateInstance('TextBox',{ClearTextOnFocus=true,Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,MultiLine=false,Text='',TextColor3=Color3.new(0, 0, 0), PlaceholderText='', PlaceholderColor3=Color3.new(0.7, 0.7, 0.7),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.0440251604, 0, 0.209150419, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 97, 0, 21),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='EnterUsername',Parent = Frame})
  16. local winsb = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='Wins',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.779874325, 0, 0.209150329, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 65, 0, 21),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='winsb',Parent = Frame})
  17. local Positive = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.349056602, 0, 0.209150434, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 19, 0, 21),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='Positive',Parent = Frame})
  18. local kill = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='Kill All',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.0440251604, 0, 0.397514194, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 65, 0, 20),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='kill',Parent = Frame})
  19. local Noclip = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='NoClip',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.292452842, 0, 0.397514075, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 66, 0, 20),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='Noclip',Parent = Frame})
  20. local Fly = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='Fly Off',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.534591258, 0, 0.397514105, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 64, 0, 20),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='Fly',Parent = Frame})
  21. local admin = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='Admin',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.779874325, 0, 0.397514105, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 65, 0, 20),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='admin',Parent = Frame})
  22. local info = CreateInstance('TextLabel',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='E to toggle noclip',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,Active=false,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=1,BorderColor3=Color3.new(0, 0, 0),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(-0.169811308, 0, 0.86381644, 0),Rotation=0,Selectable=false,Size=UDim2.new(0, 200, 0, 20),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='info',Parent = Frame})
  23. local GhostWalker = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='GhostWalker',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.0440251529, 0, 0.55298394, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 65, 0, 20),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='GhostWalker',Parent = Frame})
  24. local Venom = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='Venom',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.292452842, 0, 0.551912487, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 66, 0, 21),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='Venom',Parent = Frame})
  25. local fb = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='FireBrand',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.534591138, 0, 0.550840974, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 64, 0, 22),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='fb',Parent = Frame})
  26. local darkh = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='DarkHeart',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.779874206, 0, 0.550841033, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 65, 0, 22),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='darkh',Parent = Frame})
  27. local EnterValue = CreateInstance('TextBox',{ClearTextOnFocus=true,Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,MultiLine=false,Text='',TextColor3=Color3.new(0, 0, 0), PlaceholderText='', PlaceholderColor3=Color3.new(0.7, 0.7, 0.7),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.396226466, 0, 0.726775885, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 72, 0, 17),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='EnterValue',Parent = Frame})
  28. local speed = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='Speed',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.622641563, 0, 0.726775885, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 36, 0, 17),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='speed',Parent = Frame})
  29. local jump = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='Jump',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.28930822, 0, 0.726775885, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 34, 0, 17),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='jump',Parent = Frame})
  30. local V1 = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='~V1~',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.0440251529, 0, 0.70598942, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 65, 0, 20),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='V1',Parent = Frame})
  31. local V_V = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='~V1~',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.779874206, 0, 0.716918349, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 65, 0, 20),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='V V',Parent = Frame})
  32. local Close = CreateInstance('TextLabel',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='Q to toggle menu',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,Active=false,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=1,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.67295599, 0, 0.868852377, 0),Rotation=0,Selectable=false,Size=UDim2.new(0, 99, 0, 20),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='Close',Parent = Frame})
  33. local flytoggle = false
  34.  
  35. function onKeyPress(inputObject, gameProcessedEvent)
  36. if inputObject.KeyCode == Enum.KeyCode.Q then
  37. if Frame.Visible == false then
  38. Frame.Visible = true
  39. else
  40. Frame.Visible = false
  41. end
  42. end
  43. end
  44.  
  45. col = Color3.new(0.784314, 0.368627, 0.368627)
  46. loc = Color3.new(0.368627, 0.784314, 0.368627)
  47.  
  48. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  49.  
  50. function shortnames(username) -- Credit Timeless
  51. local nameshort = {}
  52. for i,v in pairs(game.Players:GetPlayers()) do
  53. if v.Name:lower():sub(1, #username) == username:lower() then
  54. table.insert(nameshort,v)
  55. end
  56. end
  57. return nameshort
  58. end
  59.  
  60. negative = false
  61. Positive.MouseButton1Click:connect(function()
  62. negative = not negative
  63. if not negative then
  64. Positive.Text = "+"
  65. Positive.TextColor3 = Color3.new(0.305882, 0.921569, 0.239216)
  66. else
  67. Positive.Text = "-"
  68. Positive.TextColor3 = Color3.new(0.921569, 0.305882, 0.239216)
  69. end
  70. end)
  71.  
  72.  
  73. givepoints = false
  74. pointsb.MouseButton1Click:connect(function()
  75. usertxt = EnterUsername.Text
  76. givepoints = not givepoints
  77. if givepoints then
  78. pointsb.BackgroundColor3 = loc
  79. game:GetService('RunService').Stepped:connect(function()
  80. if givepoints then
  81. for i,v in pairs(shortnames(usertxt))do
  82. if negative then
  83. game.ReplicatedStorage.ChangeOtherAtributeBy:InvokeServer(v.Name, "Points", -3999)
  84. else
  85. game.ReplicatedStorage.ChangeOtherAtributeBy:InvokeServer(v.Name, "Points", 3999)
  86. end
  87. end
  88. end
  89. end)
  90. else
  91. pointsb.BackgroundColor3 = col
  92. end
  93. end)
  94.  
  95. givewins = false
  96. winsb.MouseButton1Click:connect(function()
  97. usertxt = EnterUsername.Text
  98. givewins = not givewins
  99. if givewins then
  100. winsb.BackgroundColor3 = loc
  101. game:GetService('RunService').Stepped:connect(function()
  102. if givewins then
  103. for i,v in pairs(shortnames(usertxt))do
  104. if negative then
  105. game.ReplicatedStorage.ChangeOtherAtributeBy:InvokeServer(v.Name, "Wins", -2)
  106. else
  107. game.ReplicatedStorage.ChangeOtherAtributeBy:InvokeServer(v.Name, "Wins", 2)
  108. end
  109. end
  110. end
  111. end)
  112. else
  113. winsb.BackgroundColor3 = col
  114. end
  115. end)
  116.  
  117. darkh.MouseButton1Click:Connect(function()
  118. game.ReplicatedStorage.GiveSword:InvokeServer("Darkheart", game.Players.LocalPlayer)
  119. end)
  120. Venom.MouseButton1Click:Connect(function()
  121. game.ReplicatedStorage.GiveSword:InvokeServer("Venomshank", game.Players.LocalPlayer)
  122. end)
  123. GhostWalker.MouseButton1Click:Connect(function()
  124. game.ReplicatedStorage.GiveSword:InvokeServer("Ghostwalker", game.Players.LocalPlayer)
  125. end)
  126. fb.MouseButton1Click:Connect(function()
  127. game.ReplicatedStorage.GiveSword:InvokeServer("Firebrand", game.Players.LocalPlayer)
  128. end)
  129. Noclip.MouseButton1Click:Connect(function()
  130. loadstring(game:HttpGet(('https://pastebin.com/raw/Hy7Utjpd'),true))()
  131. end)
  132. speed.MouseButton1Click:connect(function()
  133. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = EnterValue.Text
  134. end)
  135. jump.MouseButton1Click:connect(function()
  136. game.Players.LocalPlayer.Character.Humanoid.JumpPower = EnterValue.Text
  137. end)
  138. admin.MouseButton1Click:connect(function()
  139. loadstring(game:HttpGet(('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'),true))()
  140. end)
  141.  
  142. run = false
  143. kill.MouseButton1Click:connect(function()
  144. run = not run
  145. local function tp()
  146. for i, player in ipairs(game.Players:GetChildren()) do
  147. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  148. player.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 1
  149. end
  150. end
  151. end
  152. if run then
  153. while wait() do
  154. if run then
  155. tp()
  156. end
  157. end
  158. end
  159. end)
  160.  
  161. local speed = 50 -- This is the fly speed. Change it to whatever you like. The variable can be changed while running
  162.  
  163. local c
  164. local h
  165. local bv
  166. local bav
  167. local cam
  168. local flying
  169. local p = game.Players.LocalPlayer
  170. local buttons = {W = false, S = false, A = false, D = false, Moving = false}
  171.  
  172. local startFly = function () -- Call this function to begin flying
  173. if not p.Character or not p.Character.Head or flying then return end
  174. c = p.Character
  175. h = c.Humanoid
  176. h.PlatformStand = true
  177. cam = workspace:WaitForChild('Camera')
  178. bv = Instance.new("BodyVelocity")
  179. bav = Instance.new("BodyAngularVelocity")
  180. bv.Velocity, bv.MaxForce, bv.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
  181. bav.AngularVelocity, bav.MaxTorque, bav.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
  182. bv.Parent = c.Head
  183. bav.Parent = c.Head
  184. flying = true
  185. h.Died:connect(function() flying = false end)
  186. end
  187.  
  188. local endFly = function () -- Call this function to stop flying
  189. if not p.Character or not flying then return end
  190. h.PlatformStand = false
  191. bv:Destroy()
  192. bav:Destroy()
  193. flying = false
  194. end
  195.  
  196. game:GetService("UserInputService").InputBegan:connect(function (input, GPE)
  197. if GPE then return end
  198. for i, e in pairs(buttons) do
  199. if i ~= "Moving" and input.KeyCode == Enum.KeyCode[i] then
  200. buttons[i] = true
  201. buttons.Moving = true
  202. end
  203. end
  204. end)
  205.  
  206. game:GetService("UserInputService").InputEnded:connect(function (input, GPE)
  207. if GPE then return end
  208. local a = false
  209. for i, e in pairs(buttons) do
  210. if i ~= "Moving" then
  211. if input.KeyCode == Enum.KeyCode[i] then
  212. buttons[i] = false
  213. end
  214. if buttons[i] then a = true end
  215. end
  216. end
  217. buttons.Moving = a
  218. end)
  219.  
  220. local setVec = function (vec)
  221. return vec * (speed / vec.Magnitude)
  222. end
  223.  
  224. game:GetService("RunService").Heartbeat:connect(function (step) -- The actual fly function, called every frame
  225. if flying and c and c.PrimaryPart then
  226. local p = c.PrimaryPart.Position
  227. local cf = cam.CFrame
  228. local ax, ay, az = cf:toEulerAnglesXYZ()
  229. c:SetPrimaryPartCFrame(CFrame.new(p.x, p.y, p.z) * CFrame.Angles(ax, ay, az))
  230. if buttons.Moving then
  231. local t = Vector3.new()
  232. if buttons.W then t = t + (setVec(cf.lookVector)) end
  233. if buttons.S then t = t - (setVec(cf.lookVector)) end
  234. if buttons.A then t = t - (setVec(cf.rightVector)) end
  235. if buttons.D then t = t + (setVec(cf.rightVector)) end
  236. c:TranslateBy(t * step)
  237. end
  238. end
  239. end)
  240. function flytogl()
  241. if flytoggle == true then
  242. flytoggle = false
  243. Fly.Text = "Unfly"
  244. else
  245. flytoggle = true
  246. Fly.Text = "Fly"
  247. startFly()
  248. repeat
  249. wait(0.001)
  250. until flytoggle == false
  251. endFly()
  252. end
  253. end
  254. Fly.MouseButton1Click:connect(flytogl)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement