Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local TextButton = Instance.new("TextButton")
  10.  
  11. --Properties:
  12.  
  13. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. Frame.Parent = ScreenGui
  17. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  18. Frame.BackgroundTransparency = 0.5
  19. Frame.BorderSizePixel = 0
  20. Frame.Size = UDim2.new(0, 284, 0, 378)
  21.  
  22. TextLabel.Parent = Frame
  23. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  24. TextLabel.BackgroundTransparency = 1
  25. TextLabel.Size = UDim2.new(0, 284, 0, 50)
  26. TextLabel.Font = Enum.Font.SourceSans
  27. TextLabel.Text = "ADMIN"
  28. TextLabel.TextColor3 = Color3.new(1, 0, 0.0156863)
  29. TextLabel.TextSize = 50
  30.  
  31. TextButton.Parent = Frame
  32. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  33. TextButton.Position = UDim2.new(0, 0, 0.158730164, 0)
  34. TextButton.Size = UDim2.new(0, 284, 0, 50)
  35. TextButton.Font = Enum.Font.SourceSans
  36. TextButton.Text = "Arrow"
  37. TextButton.TextColor3 = Color3.new(0, 0, 0)
  38. TextButton.TextSize = 50
  39.  
  40. -- Scripts:
  41.  
  42. local function FJCIOV_fake_script() -- TextButton.LocalScript
  43. local script = Instance.new('LocalScript', TextButton)
  44.  
  45. script.Parent.MouseButton1Click:Connect(function()
  46. script.Parent.RemoteEvent:FireServer()
  47. end)
  48. end
  49. coroutine.wrap(FJCIOV_fake_script)()
  50. local function ZCGK_fake_script() -- TextButton.Script
  51. local script = Instance.new('Script', TextButton)
  52.  
  53. script.Parent.RemoteEvent.OnServerEvent:Connect(function()
  54. game.ServerStorage.Arrow:Clone().Parent = game.Players.LocalPlayer.Backpack
  55. end)
  56. end
  57. coroutine.wrap(ZCGK_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement