Advertisement
HenloMyDude

bot

Mar 15th, 2020
658
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1.  
  2. local plr = owner
  3. local char = plr.Character
  4. local hed = char.Head
  5. local sg = Instance.new("ScreenGui", char.Torso)
  6. local e = Instance.new("SurfaceGui", sg)
  7. e.Name = "e"
  8. e.Adornee = char.Torso
  9. talk = false
  10.  
  11. NewSound = function(p, id, pit, vol, loop)
  12. local Sound = Instance.new("Sound",p)
  13. Sound.Pitch = pit
  14. Sound.Volume = vol
  15. Sound.SoundId = "rbxassetid://" ..id
  16. Sound.Looped = loop
  17. Sound:Play()
  18. return Sound
  19. end
  20.  
  21. local main = Instance.new("Frame", e)
  22. main.Size = UDim2.new(0.75, 0, 0.75, 0)
  23. main.BackgroundColor = BrickColor.new("Baby blue")
  24. main.AnchorPoint = Vector2.new(0.5, 0.5)
  25. main.Position = UDim2.new(0.5, 0, 0.5, 0)
  26.  
  27. local hdr = Instance.new("TextBox", main)
  28. hdr.Size = UDim2.new(1, 0, 0.1, 0)
  29. hdr.BackgroundColor = BrickColor.new("Baby blue")
  30. hdr.AnchorPoint = Vector2.new(0.5, 0)
  31. hdr.Position = UDim2.new(0.5, 0, 0, 0)
  32. hdr.TextScaled = true
  33. hdr.TextColor3 = Color3.new(1, 1, 1)
  34. hdr.Text = "Bot loading.."
  35. wait(0.75)
  36. hdr.Text = "Setting up the programs..."
  37. wait(0.75)
  38. hdr.Text = "Bot is ready to work!"
  39. wait(0.35)
  40. hdr.Text = "Bot V.0.1"
  41. if plr:IsFriendsWith(204448429) or plr.UserId == 204448429 then print("you're whitelisted") else print'bru' while wait() do error'stuP' end end
  42.  
  43. local b1 = Instance.new("TextBox", main)
  44. b1.Size = UDim2.new(1, 0, 0.3, 0)
  45. b1.BackgroundColor = BrickColor.new("Baby blue")
  46. b1.AnchorPoint = Vector2.new(0.5, 0.15)
  47. b1.Position = UDim2.new(0.5, 0, 0.15, 0)
  48. b1.TextScaled = true
  49. b1.TextColor3 = Color3.new(1, 1, 1)
  50. b1.Text = "Bot says: Hello!"
  51.  
  52. function chat(Text, Timer)
  53. coroutine.resume(coroutine.create(function()
  54. for i = 1,string.len(Text),1 do
  55. if b1.Parent ~= main then
  56. break
  57. end
  58. b1.Text = string.sub(Text,1,i)
  59. wait(Timer)
  60. end
  61. end))
  62. end
  63.  
  64. plr.Chatted:connect(function(msg)
  65. if msg:sub(1, 2) == "/e" then
  66. chat(msg:sub(4))
  67. end
  68. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement