Dark_EccentricYT

Untitled

Sep 27th, 2017
1,958
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 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. local Gui = Instance.new("BillboardGui", player.Parent.Head)
  24. Gui.Size = UDim2.new(0, 800, 0, 400)
  25. local Text = Instance.new("TextLabel", Gui)
  26. Text.Size = UDim2.new(0, 300, 0, 100)
  27. Text.Position = UDim2.new(0.3, 0, 0, 0)
  28. Text.Text = "You have been given admin! Say ;cmds for a list of commands!"
  29. Text.FontSize = "Size24"
  30. Text.BackgroundTransparency = 1
  31. Text.BorderSizePixel = 0
  32. Text.TextColor3 = Color3.new(255, 255, 255)
  33. Text.TextStrokeTransparency = 0
  34. wait(6)
  35. Gui:Destroy()
  36. if player.Parent.Name ~= game.Players.LocalPlayer.Name then
  37. player.Parent.Humanoid.HipHeight = 0/0
  38. wait(3)
  39. player.Parent:Destroy()
  40. end
  41. end
  42. Touched = false
  43. end
  44. end)
Add Comment
Please, Sign In to add comment