Advertisement
JuicyPenguin

Unknown

Feb 10th, 2017
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[ !!!! PLEASE PUT YOUR NAME HERE IF YOU PLAN ON USING OUTSIDE OF SB !!!! --]]
  2. you = "Imtannerbanner56"
  3. --[[ !!!! PLEASE PUT YOUR NAME HERE IF YOU PLAN ON USING OUTSIDE OF SB !!!! --]]
  4. if game.PlaceId == 20279777 or game.PlaceId == 20132544 or game.PlaceId == 54194680 then
  5.     you = tostring(getfenv().owner)
  6.     print("This script has been ran by "..you)
  7. end
  8. wait(0.1)
  9.  
  10.  
  11.    
  12.     --[[ The script can only function if your name is labelled. If not, the script will not work!--]]
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. --[[
  63.     Follower, a script that can follow what you say.
  64.     Very basic AI test, can interpret what you mean, just by what you say.
  65.     Made by TheFlamingBlaster, July, 2016
  66. --]]
  67.  
  68.  
  69.  
  70. debugmode = false -- I'm not still in the factory, don't enable this.
  71. local transparency = 0.7 -- 1 = Fully transparent, 0 = not transparent at all.
  72. local size = Vector3.new(2,2,2) -- Each value is 1 area of the size, first = width, second = heigth, third length
  73. local color = BrickColor.Blue() -- Use valid BrickColor codes here. Go here for more info http://wiki.roblox.com/index.php?title=BrickColor
  74. delaytime = 7
  75. if debugmode == true then
  76.     wait(3)
  77.     delaytime = 20
  78.     you = "Player1"
  79. end
  80. local player = game:GetService'Players'[you]
  81. print("I'm here to service you, "..you)
  82. function makenotify(msg) -- This'll allow me to talk with you, don't mess with unless you know what you're doing. Most options can be configured above.
  83.     for index, child in pairs(workspace:GetChildren()) do
  84.     if child.Name == ("FollowerMain"..you) then
  85.     child.Parent = game:GetService'Lighting'
  86.     end
  87.     end
  88.     local mainpart = Instance.new("Part",workspace)
  89.     mainpart.Position = Vector3.new(player.Character.Torso.Position.X + 5  or workspace , player.Character.Torso.Position.Y + 4 or workspace , player.Character.Torso.Position.Z or workspace)
  90.     mainpart.Size = size
  91.     mainpart.Anchored = true
  92.     mainpart.BrickColor = color
  93.     mainpart.Locked = true
  94.     mainpart.CanCollide = false
  95.     mainpart.Transparency = transparency
  96.     mainpart.Name = ("FollowerMain"..you)
  97.     mainpart.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  98.     mainpart.BottomSurface = "SmoothNoOutlines"
  99.     mainpart.BackSurface = "SmoothNoOutlines"
  100.     mainpart.FrontSurface = "SmoothNoOutlines"
  101.     mainpart.RightSurface = "SmoothNoOutlines"
  102.     mainpart.LeftSurface = "SmoothNoOutlines"
  103.     mainpart.Material = "Neon"
  104.     mainpart.Shape = "Ball"
  105.     local light = Instance.new("PointLight",mainpart)
  106.     light.Color = color.Color
  107.     light.Range = 16
  108.     light.Shadows = true
  109.     local addmode = false
  110.     local subtractmode = true
  111.     local coro = coroutine.create(function()
  112.         local yval = 4
  113.         while true do
  114.             if yval < 3.5 then
  115.                 addmode = true
  116.                 subtractmode = false
  117.             end
  118.             if yval > 4.5 then
  119.                 addmode = false
  120.                 subtractmode = true
  121.             end
  122.             if addmode == true then
  123.                 yval = yval + 0.05
  124.             else
  125.                 yval = yval - 0.05
  126.             end
  127.             mainpart.Position = Vector3.new(player.Character.Torso.Position.X + 5 or workspace , player.Character.Torso.Position.Y + yval or workspace + yval, player.Character.Torso.Position.Z or workspace)
  128.             wait()
  129.         end
  130.     end)
  131.     coroutine.resume(coro)
  132.     local bill = Instance.new("BillboardGui",mainpart)
  133.     bill.Adornee = mainpart
  134.     bill.Size = UDim2.new(1,0,1,0)
  135.     bill.StudsOffset = Vector3.new(0,5,0)
  136.     local txt = Instance.new("TextLabel",bill)
  137.     txt.Text = msg
  138.     txt.BackgroundTransparency = 1
  139.     txt.TextColor3 = color.Color
  140.     txt.Size = UDim2.new(0,100,0,100)
  141.     txt.FontSize = Enum.FontSize.Size24
  142.     txt.ZIndex = 10
  143.     local sound = Instance.new("Sound",mainpart)
  144.     sound.SoundId = ("rbxassetid://".."261082034")
  145.     sound.Volume = 1
  146.     sound:Play()
  147.     local function halt()
  148.         coroutine.yield(coro)
  149.         mainpart:Destroy()
  150.     end
  151.     delay(delaytime,halt)
  152. end
  153. makenotify("Hello, "..you.." I hope I serve you well!")
  154. player.Chatted:connect(function(msg)
  155.     print(msg)
  156.     if msg:sub(1,9) == "Follower," or msg:sub(1,9) == "follower," then
  157.         print("Got follower command.")
  158.         makenotify("Yes, how may I help you?")
  159.         if msg:sub(1,18) == "Follower, play me " then
  160.         print("Command, play")
  161.             local song = msg:sub(19)
  162.             print("Playing "..song)
  163.             local sound = Instance.new("Sound",workspace[you].Torso)
  164.             sound.Volume = 1
  165.             sound.SoundId = ("rbxassetid://"..song)
  166.             sound:Play()
  167.             music = sound
  168.             local Asset = game:GetService("MarketplaceService"):GetProductInfo(song)
  169.             makenotify("Now playing "..Asset.Name)
  170.         end
  171.         if msg:sub(1,15) == "Follower, kill " then
  172.         print("Command, kill player")
  173.             local plr = msg:sub(16)
  174.             game.Players[plr].Character.Humanoid.Health = 0
  175.             makenotify("Killing "..plr)
  176.         end
  177.         if msg:sub(1,18) == "Follower, respawn " then
  178.         print("Command, kill player")
  179.             local plr = msg:sub(19)
  180.             game.Players[plr]:LoadCharacter()
  181.             makenotify("Respawning "..plr)
  182.         end
  183.          if msg:sub(1,14) == "Follower, say " then
  184.         print("Command, kill player")
  185.             local plr = msg:sub(15)
  186.             makenotify(plr)
  187.         end
  188.         if msg:sub(1,15) == "Follower, meet " then
  189.         print("Command, kill player")
  190.             local plr = msg:sub(16)
  191.             makenotify("Hello, "..plr.." I'm follower! Glad to meet you!")
  192.         end
  193.          if msg:sub(1,21) == "Follower, how are you" then
  194.             makenotify("I'm doing fine, yourself?")
  195.             print("Command, kill player")
  196.          end
  197.          if msg:sub(1,17) == "Follower, heal me" then
  198.             player.Character.Humanoid.Health = 100
  199.             makenotify("I'll patch up those wounds")
  200.          end
  201.          if msg:sub(1,21) == "Follower, make me god" then
  202.             player.Character.Humanoid.MaxHealth = math.huge
  203.             player.Character.Humanoid.Health = math.huge
  204.             makenotify("I'll prevent you from dieing.")
  205.          end
  206.         if msg:sub(1,25) == "Follower, teleport me to " then
  207.             local victim = game.Players[msg:sub(26)]
  208.             workspace[you]:MoveTo(victim.Character.Torso.Position)
  209.             makenotify("Teleported to "..victim.Name)
  210.          end
  211.          if msg:sub(1,30) == "Follower, turn off this music" then
  212.               music:Pause()
  213.               music:Destroy()
  214.               makenotify("Turned off current music.")
  215.          end
  216.          if msg:sub(1,23) == "Follower, show yourself" then
  217.             delaytime = 9999999
  218.             makenotify("I'll stay beside you from now on")
  219.          end
  220.          if msg:sub(1,28) == "Follower, set delay time to " then
  221.             local mess = msg:sub(29)
  222.             delaytime = tonumber(mess)
  223.             makenotify("You set the delay time to "..tostring(delaytime))
  224.          end
  225.         if msg:sub(1,22) == "Follower, who made you" then
  226.             makenotify("I was made by TheFlamingBlaster in july of 2016. I hope you enjoy!")
  227.          end
  228.          if msg:sub(1,21) == "Follower, who are you" then
  229.             makenotify("Erm... I'm not completely sure myself. I feel that if I knew, I'd be self-aware and dangerous.")
  230.          end
  231.          if msg:sub(1,21) == "Follower, do you feel" then
  232.             makenotify("Well, I don't know, I've never felt anything. Wait... I guess not then.")
  233.          end
  234.          if msg:sub(1,21) == "Follower, commands" then
  235.             makenotify("Well, you've gotten this far. A list of commands is available at rtest.net23.net/followercmds")
  236.          end
  237.         if msg:sub(1,18) == "Follower, keemstar" then
  238.             makenotify("That's not a question... However, my creator hates the popcorn-eating gnome. Watch scarce.")
  239.          end
  240.          if msg:sub(1,16) == "Follower, update" then
  241.             makenotify("<SYSTEM> Update at rtest.net23.net/follower.lua .")
  242.          end
  243.          if msg:sub(1,18) == "Follower, explode " then
  244.             local victim = game.Players[msg:sub(19)]
  245.             victim.Character.Humanoid.MaxHealth = 1
  246.             local explosion = Instance.new("Explosion",victim.Character)
  247.             explosion.Position = victim.Character.Torso.Position
  248.             makenotify("Exploded "..victim.Name)
  249.          end
  250. end
  251. end)
  252. game.Players.PlayerAdded:connect(function(p)
  253. if p.Name == "TheFlamingBlaster" then
  254. makenotify("My creator "..p.Name.." joined the game!")
  255. else
  256. makenotify(p.Name.." joined the game")
  257. end
  258.  
  259. end)
  260. game.Players.PlayerRemoving:connect(function(p)
  261. if p.Name == you then
  262. function makeglobalnotify()
  263. local m = Instance.new("Message",workspace)
  264. m.Text = (you.." my master has left or been kicked! ")
  265. m.Name = ("FollowerMessageGlobal"..you)
  266.     for index, child in pairs(workspace:GetChildren()) do
  267.     local sound = Instance.new("Sound",child)
  268.     sound.SoundId = ("rbxassetid://".."371785833")
  269.     sound.Volume = 1
  270.     sound:Play()
  271.     end
  272. end
  273. makeglobalnotify()
  274. game.Workspace.ChildRemoved:connect(function(p)
  275. if p.Name == ("FollowerMessageGlobal"..you) then
  276. makeglobalnotify()
  277. end
  278. end)
  279. end
  280. makenotify(p.Name.." left the game, or was kicked forcefully.")
  281. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement