Advertisement
Bennysparky0819

Plane Crazy Crosshair Toggle FPV

Jul 16th, 2022 (edited)
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.60 KB | None | 0 0
  1.  
  2.  
  3. local CrossHair_GUI = Instance.new("ScreenGui")
  4. local crosshair1 = Instance.new("Frame")
  5. local Toggle = Instance.new("TextButton")
  6. local Yoffset = Instance.new("TextBox")
  7. local Add = Instance.new("TextButton")
  8. local Subtract = Instance.new("TextButton")
  9. local Rightsel = Instance.new("TextButton")
  10. local Leftsel = Instance.new("TextButton")
  11. local crosshair2 = Instance.new("Frame")
  12. local Side3 = Instance.new("Frame")
  13. local Side32 = Instance.new("Frame")
  14. local Side4 = Instance.new("Frame")
  15. local Side42 = Instance.new("Frame")
  16. local Side1 = Instance.new("Frame")
  17. local Side12 = Instance.new("Frame")
  18. local Side2 = Instance.new("Frame")
  19. local Side22 = Instance.new("Frame")
  20.  
  21. curselected = crosshair1
  22.  
  23. CrossHair_GUI.Name = "CrossHair_GUI"
  24. CrossHair_GUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  25.  
  26.  
  27. crosshair1.Name = "crosshair1"
  28. crosshair1.Parent = CrossHair_GUI
  29. crosshair1.AnchorPoint = Vector2.new(0.5, 0.5)
  30. crosshair1.BackgroundColor3 = Color3.fromRGB(0,255,0)
  31. crosshair1.BorderColor3 = Color3.fromRGB(0,255,0)
  32. crosshair1.Position = UDim2.new(0.5, 0, 0.5, 0)
  33. crosshair1.Size = UDim2.new(0, 1, 0, 1)
  34. crosshair1.Visible = true
  35.  
  36. Toggle.Name = "Toggle"
  37. Toggle.Parent = CrossHair_GUI
  38. Toggle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  39. Toggle.BackgroundTransparency = 0.600
  40. Toggle.Position = UDim2.new(0.902100801, 0, 0.364656985, 0)
  41. Toggle.Size = UDim2.new(0, 139, 0, 27)
  42. Toggle.Font = Enum.Font.Nunito
  43. Toggle.Text = "Toggle CrossHair"
  44. Toggle.TextColor3 = Color3.fromRGB(170, 170, 170)
  45. Toggle.TextSize = 14.000
  46. Toggle.MouseButton1Click:Connect(function()
  47.     if curselected.Visible == true then
  48.         curselected.Visible = false
  49.     else
  50.         curselected.Visible = true
  51.     end
  52. end)
  53.  
  54. Yoffset.Name = "Yoffset"
  55. Yoffset.Parent = Toggle
  56. Yoffset.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  57. Yoffset.BackgroundTransparency = 0.600
  58. Yoffset.Position = UDim2.new(0.302100807, 0, 1.07000005, 0)
  59. Yoffset.Size = UDim2.new(0, 100, 0, 20)
  60. Yoffset.ClearTextOnFocus = false
  61. Yoffset.Text = "0.5"
  62. Yoffset.Changed:Connect(function()
  63.     curselected.Position = UDim2.new(0.5, 0, tonumber(Yoffset.Text), 0)
  64. end)
  65.  
  66. Add.Name = "Add"
  67. Add.Parent = Yoffset
  68. Add.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  69. Add.BackgroundTransparency = 0.600
  70. Add.Position = UDim2.new(0.302100807, 0, 1.20000005, 0)
  71. Add.Size = UDim2.new(0, 20, 0, 20)
  72. Add.Font = Enum.Font.Nunito
  73. Add.Text = " + "
  74. Add.TextColor3 = Color3.fromRGB(170, 170, 170)
  75. Add.TextSize = 17.000
  76. Add.MouseButton1Click:Connect(function()
  77.     Yoffset.Text = tostring(tonumber(Yoffset.Text)+0.01)
  78. end)
  79.  
  80. Subtract.Name = "Subtract"
  81. Subtract.Parent = Yoffset
  82. Subtract.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  83. Subtract.BackgroundTransparency = 0.600
  84. Subtract.Position = UDim2.new(0.552100778, 0, 1.20000005, 0)
  85. Subtract.Size = UDim2.new(0, 20, 0, 20)
  86. Subtract.Font = Enum.Font.Nunito
  87. Subtract.Text = " - "
  88. Subtract.TextColor3 = Color3.fromRGB(170, 170, 170)
  89. Subtract.TextSize = 17.000
  90. Subtract.MouseButton1Click:Connect(function()
  91.     Yoffset.Text = tostring(tonumber(Yoffset.Text)-0.01)
  92. end)
  93.  
  94. Rightsel.Name = "Rightsel"
  95. Rightsel.Parent = Toggle
  96. Rightsel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  97. Rightsel.BackgroundTransparency = 0.600
  98. Rightsel.Position = UDim2.new(0.301999986, 0, 1.96800005, 0)
  99. Rightsel.Size = UDim2.new(0, 20, 0, 20)
  100. Rightsel.Font = Enum.Font.Nunito
  101. Rightsel.Text = ">"
  102. Rightsel.TextColor3 = Color3.fromRGB(170, 170, 170)
  103. Rightsel.TextSize = 17.000
  104. Rightsel.MouseButton1Click:Connect(function()
  105.     if curselected == crosshair1 then
  106.         curselected = crosshair2
  107.         crosshair2.Visible = true
  108.         crosshair1.Visible = false
  109.     end
  110. end)
  111.  
  112. Leftsel.Name = "Leftsel"
  113. Leftsel.Parent = Toggle
  114. Leftsel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  115. Leftsel.BackgroundTransparency = 0.600
  116. Leftsel.Position = UDim2.new(0.119999997, 0, 1.96800005, 0)
  117. Leftsel.Size = UDim2.new(0, 20, 0, 20)
  118. Leftsel.Font = Enum.Font.Nunito
  119. Leftsel.Text = "<"
  120. Leftsel.TextColor3 = Color3.fromRGB(170, 170, 170)
  121. Leftsel.TextSize = 17.000
  122. Leftsel.MouseButton1Click:Connect(function()
  123.     if curselected == crosshair2 then
  124.         curselected = crosshair1
  125.         crosshair2.Visible = false
  126.         crosshair1.Visible = true
  127.     end
  128. end)
  129.  
  130. crosshair2.Name = "crosshair2"
  131. crosshair2.Parent = CrossHair_GUI
  132. crosshair2.AnchorPoint = Vector2.new(0.5, 0.5)
  133. crosshair2.BackgroundColor3 = Color3.fromRGB(0, 213, 64)
  134. crosshair2.BackgroundTransparency = 1.000
  135. crosshair2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  136. crosshair2.Position = UDim2.new(0.5, 0, 0.5, 0)
  137. crosshair2.Size = UDim2.new(0, 1, 0, 1)
  138. crosshair2.Visible = false
  139.  
  140. Side3.Name = "Side3"
  141. Side3.Parent = crosshair2
  142. Side3.BackgroundColor3 = Color3.fromRGB(0, 213, 64)
  143. Side3.BorderSizePixel = 0
  144. Side3.Position = UDim2.new(-10.3720003, 0, 8.73400021, 0)
  145. Side3.Rotation = 180.000
  146. Side3.Size = UDim2.new(0, 8, 0, 3)
  147. Side3.BorderColor3 = Color3.fromRGB(0, 0, 0)
  148.  
  149. Side32.Name = "Side3.2"
  150. Side32.Parent = Side3
  151. Side32.BackgroundColor3 = Color3.fromRGB(0, 213, 64)
  152. Side32.BorderSizePixel = 0
  153. Side32.Position = UDim2.new(0, 5, 0, 0)
  154. Side32.Size = UDim2.new(0, 3, 0, 8)
  155. Side32.BorderColor3 = Color3.fromRGB(0, 0, 0)
  156.  
  157. Side4.Name = "Side4"
  158. Side4.Parent = crosshair2
  159. Side4.BackgroundColor3 = Color3.fromRGB(0, 213, 64)
  160. Side4.BorderSizePixel = 0
  161. Side4.Position = UDim2.new(4.28999996, 0, 8.73400021, 0)
  162. Side4.Size = UDim2.new(0, 8, 0, 3)
  163. Side4.BorderColor3 = Color3.fromRGB(0, 0, 0)
  164.  
  165. Side42.Name = "Side4.2"
  166. Side42.Parent = Side4
  167. Side42.BackgroundColor3 = Color3.fromRGB(0, 213, 64)
  168. Side42.BorderSizePixel = 0
  169. Side42.Position = UDim2.new(0, 5, 0, -5)
  170. Side42.Size = UDim2.new(0, 3, 0, 8)
  171. Side42.BorderColor3 = Color3.fromRGB(0, 0, 0)
  172.  
  173. Side1.Name = "Side1"
  174. Side1.Parent = crosshair2
  175. Side1.BackgroundColor3 = Color3.fromRGB(0, 213, 64)
  176. Side1.BorderSizePixel = 0
  177. Side1.Position = UDim2.new(-10.2720003, 0, -11, 0)
  178. Side1.Size = UDim2.new(0, 8, 0, 3)
  179. Side1.BorderColor3 = Color3.fromRGB(0, 0, 0)
  180.  
  181. Side12.Name = "Side1.2"
  182. Side12.Parent = Side1
  183. Side12.BackgroundColor3 = Color3.fromRGB(0, 213, 64)
  184. Side12.BorderSizePixel = 0
  185. Side12.Position = UDim2.new(-0.0120000001, 0, 0.538999975, 0)
  186. Side12.Size = UDim2.new(0, 3, 0, 8)
  187. Side12.BorderColor3 = Color3.fromRGB(0, 0, 0)
  188.  
  189. Side2.Name = "Side2"
  190. Side2.Parent = crosshair2
  191. Side2.BackgroundColor3 = Color3.fromRGB(0, 213, 64)
  192. Side2.BorderSizePixel = 0
  193. Side2.Position = UDim2.new(4.28999996, 0, -11, 0)
  194. Side2.Size = UDim2.new(0, 8, 0, 3)
  195. Side2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  196.  
  197. Side22.Name = "Side2.2"
  198. Side22.Parent = Side2
  199. Side22.BackgroundColor3 = Color3.fromRGB(0, 213, 64)
  200. Side22.BorderSizePixel = 0
  201. Side22.Position = UDim2.new(0, 5, 0, 1)
  202. Side22.Size = UDim2.new(0, 3, 0, 8)
  203. Side22.BorderColor3 = Color3.fromRGB(0, 0, 0)
  204.  
  205.  
  206.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement