Josemmoya

Untitled

Feb 14th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. x = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  2. frame = Instance.new("Frame", x)
  3. frame.Size = UDim2.new(0, 200,0, 100)
  4. frame.Position = UDim2.new(0, 0,0, 350)
  5. frame.Active = true
  6. frame.Draggable = true
  7. frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  8. frame.BorderSizePixel = 0
  9. text = Instance.new("TextLabel", frame)
  10. text.Position = UDim2.new(0, 0,0, 0)
  11. text.Size = UDim2.new(0, 200,0, 40)
  12. text.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  13. text.BorderSizePixel = 1
  14. text.BorderColor3 = Color3.fromRGB(255, 0, 0)
  15. text.TextSize = 28
  16. text.TextWrapped = true
  17. text.FontSize = "Size28"
  18. text.Text = "This Player Has Knife"
  19. text.Font = "SciFi"
  20. text.TextColor3 = Color3.fromRGB(255,0,0)
  21. text.TextScaled = true
  22.  
  23.  
  24. players = Instance.new("TextLabel", frame)
  25. players.Position = UDim2.new(0, 0,0, 50)
  26. players.Size = UDim2.new(0, 200,0, 40)
  27. players.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  28. players.BorderSizePixel = 1
  29. players.BorderColor3 = Color3.fromRGB(255, 0, 0)
  30. players.TextSize = 15
  31. players.TextWrapped = true
  32. players.FontSize = "Size18"
  33. players.Text = ""
  34. players.TextColor3 = Color3.fromRGB(255,0,0)
  35. players.TextScaled = true
  36.  
  37. while true do
  38. wait(5)
  39. for i, player in pairs(game.Players:GetChildren()) do
  40. for i, pack in pairs(player.Backpack:GetChildren()) do
  41. if pack.Name == "Knife" then
  42. players.Text = pack.Parent.Parent.Name
  43. end
  44. end
  45. end
  46. end
Add Comment
Please, Sign In to add comment