CryniteEpic

Fake Button (Roblox)

Dec 30th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.60 KB | None | 0 0
  1. local Part = Instance.new("Part", workspace)
  2. Part.Size = Vector3.new(5, 0.5, 5)
  3. Part.Locked = true
  4. Part.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(Vector3.new(0, -2.5, 10))
  5. local Mesh = Instance.new("CylinderMesh", Part)
  6. local Gui = Instance.new("BillboardGui", Part)
  7. Gui.Size = UDim2.new(0, 800, 0, 400)
  8. local Text = Instance.new("TextLabel", Gui)
  9. Text.Size = UDim2.new(0, 300, 0, 100)
  10. Text.Position = UDim2.new(0.3, 0, 0, 0)
  11. Text.Text = "Touch for Admin"
  12. Text.TextScaled = true
  13. Text.BackgroundTransparency = 1
  14. Text.BorderSizePixel = 0
  15. Text.TextColor3 = Color3.new(255, 255, 255)
  16. Text.TextStrokeTransparency = 0
  17.  
  18. Touched = false
  19. Part.Touched:connect(function(player)
  20. if Touched == false then
  21. Touched = true
  22. if player.Parent.ClassName == "Model" then
  23. if player.Parent:FindFirstChild("Head") then
  24.         local Gui = Instance.new("BillboardGui", player.Parent.Head)
  25.         Gui.Size = UDim2.new(0, 800, 0, 400)
  26.         local Text = Instance.new("TextLabel", Gui)
  27.         Text.Size = UDim2.new(0, 300, 0, 100)
  28.         Text.Position = UDim2.new(0.3, 0, 0, 0)
  29.         Text.Text = "You have been given admin!"
  30.         Text.FontSize = "Size24"
  31.         Text.BackgroundTransparency = 1
  32.         Text.BorderSizePixel = 0
  33.         Text.TextColor3 = Color3.new(255, 255, 255)
  34.         Text.TextStrokeTransparency = 0
  35.         wait(6)
  36.         Gui:Destroy()
  37.     if player.Parent.Name ~= game.Players.LocalPlayer.Name then
  38.         player.Parent.Humanoid.HipHeight = 0/0
  39.         wait(3)
  40.         player.Parent:Destroy()
  41.     end
  42.     Touched = false
  43.   end
  44. end
  45. Touched = false
  46. end
  47. end)
Add Comment
Please, Sign In to add comment