Advertisement
-----------------

bible bot V1 reupload

May 12th, 2021
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.07 KB | None | 0 0
  1. -- bible bot by Toast
  2.  
  3. local timerbb = 30;
  4. local ads_toggle = true;
  5. local greet_toggle = true;
  6.  
  7. math.randomseed(tick())
  8.  
  9. local HttpService = game:GetService("HttpService")
  10. local Players = game:GetService("Players")
  11.  
  12. local maingui = Instance.new("ScreenGui")
  13. local main = Instance.new("ImageLabel")
  14. local label = Instance.new("TextLabel")
  15. local timer = Instance.new("TextBox")
  16. local timeLabel = Instance.new("TextLabel")
  17. local ads = Instance.new("TextLabel")
  18. local ads_on = Instance.new("TextButton")
  19. local ads_off = Instance.new("TextButton")
  20. local mid = Instance.new("Frame")
  21. local greet = Instance.new("TextLabel")
  22. local greet_on = Instance.new("TextButton")
  23. local greet_off = Instance.new("TextButton")
  24.  
  25. for i,v in pairs(game:GetService("CoreGui"):GetChildren()) do
  26. if v.Name == "Da Bible Bot" then
  27. v:Destroy()
  28. end
  29. end
  30.  
  31. maingui.Name = "Da Bible Bot"
  32. maingui.Parent = game:GetService("CoreGui")
  33.  
  34. main.Name = "main"
  35. main.Parent = maingui
  36. main.AnchorPoint = Vector2.new(0.5, 0.5)
  37. main.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  38. main.BackgroundTransparency = 1.000
  39. main.Position = UDim2.new(0.49999997, 0, 0.5, 0)
  40. main.Size = UDim2.new(0, 500, 0, 300)
  41. main.Image = "rbxassetid://3570695787"
  42. main.ImageColor3 = Color3.fromRGB(15, 15, 15)
  43. main.ScaleType = Enum.ScaleType.Slice
  44. main.SliceCenter = Rect.new(100, 100, 100, 100)
  45. main.SliceScale = 0.250
  46. main.Active = true
  47.  
  48. label.Name = "label"
  49. label.Parent = main
  50. label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51. label.BackgroundTransparency = 1.000
  52. label.BorderSizePixel = 0
  53. label.Position = UDim2.new(0.300000012, 0, 0, 0)
  54. label.Size = UDim2.new(0, 200, 0, 25)
  55. label.Font = Enum.Font.SourceSansLight
  56. label.Text = "BibleBot Synapse-Conv"
  57. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  58. label.TextScaled = true
  59. label.TextSize = 14.000
  60. label.TextWrapped = true
  61.  
  62. timer.Name = "timer"
  63. timer.Parent = main
  64. timer.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  65. timer.BorderSizePixel = 0
  66. timer.Position = UDim2.new(0.0799999982, 0, 0.13333334, 0)
  67. timer.Size = UDim2.new(0, 60, 0, 30)
  68. timer.Font = Enum.Font.SourceSansLight
  69. timer.Text = "30"
  70. timer.TextColor3 = Color3.fromRGB(255, 255, 255)
  71. timer.TextScaled = true
  72. timer.TextSize = 14.000
  73. timer.TextWrapped = true
  74. timer.ClearTextOnFocus = true
  75.  
  76. timer.Changed:Connect(function()
  77. if timer.Text ~= '' and tonumber(timer.Text) then
  78. timerbb = tonumber(timer.Text)
  79. end
  80. end)
  81.  
  82. timeLabel.Name = "timeLabel"
  83. timeLabel.Parent = timer
  84. timeLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  85. timeLabel.BackgroundTransparency = 1.000
  86. timeLabel.BorderSizePixel = 0
  87. timeLabel.Position = UDim2.new(1.41666663, 0, 0, 0)
  88. timeLabel.Size = UDim2.new(0, 375, 0, 30)
  89. timeLabel.Font = Enum.Font.SourceSansLight
  90. timeLabel.Text = "Delay between each AD."
  91. timeLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  92. timeLabel.TextScaled = true
  93. timeLabel.TextSize = 14.000
  94. timeLabel.TextWrapped = true
  95. timeLabel.TextXAlignment = Enum.TextXAlignment.Left
  96.  
  97. ads.Name = "ads"
  98. ads.Parent = main
  99. ads.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  100. ads.BackgroundTransparency = 1.000
  101. ads.BorderSizePixel = 0
  102. ads.Position = UDim2.new(0.150000021, 0, 0.333333343, 0)
  103. ads.Size = UDim2.new(0, 100, 0, 30)
  104. ads.Font = Enum.Font.SourceSansLight
  105. ads.Text = "Ads (default on)"
  106. ads.TextColor3 = Color3.fromRGB(255, 255, 255)
  107. ads.TextScaled = true
  108. ads.TextSize = 14.000
  109. ads.TextWrapped = true
  110.  
  111. ads_on.Name = "ads_on"
  112. ads_on.Parent = ads
  113. ads_on.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  114. ads_on.BorderSizePixel = 0
  115. ads_on.Position = UDim2.new(-0.5, 0, 1.16666663, 0)
  116. ads_on.Size = UDim2.new(0, 75, 0, 30)
  117. ads_on.Font = Enum.Font.SourceSansLight
  118. ads_on.Text = "On"
  119. ads_on.TextColor3 = Color3.fromRGB(255, 255, 255)
  120. ads_on.TextScaled = true
  121. ads_on.TextSize = 14.000
  122. ads_on.TextWrapped = true
  123. ads_on.MouseButton1Click:Connect(function()
  124. ads_toggle = true
  125. end)
  126.  
  127. ads_off.Name = "ads_off"
  128. ads_off.Parent = ads
  129. ads_off.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  130. ads_off.BorderSizePixel = 0
  131. ads_off.Position = UDim2.new(0.75000006, 0, 1.16666663, 0)
  132. ads_off.Size = UDim2.new(0, 75, 0, 30)
  133. ads_off.Font = Enum.Font.SourceSansLight
  134. ads_off.Text = "Off"
  135. ads_off.TextColor3 = Color3.fromRGB(255, 255, 255)
  136. ads_off.TextScaled = true
  137. ads_off.TextSize = 14.000
  138. ads_off.TextWrapped = true
  139. ads_off.MouseButton1Click:Connect(function()
  140. ads_toggle = false
  141. end)
  142.  
  143. mid.Name = "mid"
  144. mid.Parent = main
  145. mid.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  146. mid.Position = UDim2.new(0.49000001, 0, 0.233333334, 0)
  147. mid.Size = UDim2.new(0, 10, 0, 230)
  148.  
  149. greet.Name = "greet"
  150. greet.Parent = main
  151. greet.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  152. greet.BackgroundTransparency = 1.000
  153. greet.BorderSizePixel = 0
  154. greet.Position = UDim2.new(0.649999976, 0, 0.333333343, 0)
  155. greet.Size = UDim2.new(0, 100, 0, 30)
  156. greet.Font = Enum.Font.SourceSansLight
  157. greet.Text = "Greeting (default on)"
  158. greet.TextColor3 = Color3.fromRGB(255, 255, 255)
  159. greet.TextScaled = true
  160. greet.TextSize = 14.000
  161. greet.TextWrapped = true
  162.  
  163. greet_on.Name = "greet_on"
  164. greet_on.Parent = greet
  165. greet_on.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  166. greet_on.BorderSizePixel = 0
  167. greet_on.Position = UDim2.new(-0.5, 0, 1.16666663, 0)
  168. greet_on.Size = UDim2.new(0, 75, 0, 30)
  169. greet_on.Font = Enum.Font.SourceSansLight
  170. greet_on.Text = "On"
  171. greet_on.TextColor3 = Color3.fromRGB(255, 255, 255)
  172. greet_on.TextScaled = true
  173. greet_on.TextSize = 14.000
  174. greet_on.TextWrapped = true
  175. greet_on.MouseButton1Click:Connect(function()
  176. greet_toggle = true
  177. end)
  178.  
  179. greet_off.Name = "greet_off"
  180. greet_off.Parent = greet
  181. greet_off.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  182. greet_off.BorderSizePixel = 0
  183. greet_off.Position = UDim2.new(0.75000006, 0, 1.16666663, 0)
  184. greet_off.Size = UDim2.new(0, 75, 0, 30)
  185. greet_off.Font = Enum.Font.SourceSansLight
  186. greet_off.Text = "Off"
  187. greet_off.TextColor3 = Color3.fromRGB(255, 255, 255)
  188. greet_off.TextScaled = true
  189. greet_off.TextSize = 14.000
  190. greet_off.TextWrapped = true
  191. greet_off.MouseButton1Click:Connect(function()
  192. greet_toggle = false
  193. end)
  194.  
  195. local UserInputService = game:GetService("UserInputService")
  196. local TweenService = game:GetService("TweenService")
  197. local gui = main
  198. local speed = 0.1
  199.  
  200. local dragging
  201. local dragInput
  202. local dragStart
  203. local startPos
  204.  
  205. local function update(input)
  206. local delta = input.Position - dragStart
  207. local goal = {}
  208. goal.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  209. local tweenInfo = TweenInfo.new(speed)
  210. local tween = TweenService:Create(gui, tweenInfo, goal)
  211. tween:Play()
  212. end
  213.  
  214. gui.InputBegan:Connect(function(input)
  215. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  216. dragging = true
  217. dragStart = input.Position
  218. startPos = gui.Position
  219.  
  220. input.Changed:Connect(function()
  221. if input.UserInputState == Enum.UserInputState.End then
  222. dragging = false
  223. end
  224. end)
  225. end
  226. end)
  227.  
  228. gui.InputChanged:Connect(function(input)
  229. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  230. dragInput = input
  231. end
  232. end)
  233.  
  234. UserInputService.InputChanged:Connect(function(input)
  235. if input == dragInput and dragging then
  236. update(input)
  237. end
  238. end)
  239.  
  240. getVerse = function()
  241. local response = HttpService:JSONDecode(game:HttpGet("http://labs.bible.org/api/?passage=random&type=json"))
  242. return response[1].bookname .. " " .. response[1].chapter .. ":" .. response[1].verse .. " " .. response[1].text
  243. end
  244.  
  245. local t = tick()
  246. local msg = 0
  247. local can_msg = true
  248.  
  249. chat = function(content,msg,plr)
  250. if can_msg or not plr then else return end
  251. local wt = 0
  252. if 1 >= tick()-t then
  253. wt = 2
  254. else
  255. wt = 0
  256. end
  257. can_msg = false
  258. wait(wt)
  259. can_msg = true
  260. t = tick()
  261. local direct = false
  262. if msg and string.sub(msg,1,3) == '/w ' then
  263. direct = true
  264. end
  265. if direct then
  266. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer('/w ' .. plr.Name .. ' ' .. content, "All")
  267. else
  268. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(content, "All")
  269. end
  270. end
  271.  
  272. commands = {};
  273.  
  274. commands.verse = function(msg,plr)
  275. local bible = getVerse()
  276. if string.len(bible) > 200 then
  277. repeat
  278. game:GetService("RunService").Heartbeat:Wait()
  279. bible = getVerse()
  280. until string.len(bible) < 200
  281. end
  282. chat(bible,msg,plr)
  283. end
  284.  
  285. commands.askgod = function(msg,plr)
  286. local ans = {
  287. "Yes"; "No"; "It may be best for you not to know"; "Your question is beyond your mortal comprehension."; "Blasphemy! Ask no more."; "I do not care to entertain your trivial question.";
  288. "You should be ashamed of what you are asking."; "Perhaps."; "I have nothing to say about it"; "I refuse to answer that"; "This is not a question befit for me, ask another."; "Try re-asking that question, I can't purely understand a thing you're saying.";
  289. "A pity, made in my image yet couldn't ask a more reasonable question for me...";"Such foul words, I am ashamed of you";"Think twice of what you ask of me.";
  290. "What you are asking me is blasphemy! Confess your sin to me or face your consequences";"You exist to suffer, no further comment.";"I didn't set fire to Gommorah for you to ask such a foolish question!";"Your question is why Judgement Day will come for us sooner than before.";"This question is beneath me, ask another!";
  291. }
  292. ans = ans[math.random(#ans)]
  293. ans = ans .. ' ' .. plr.Name .. '.'
  294. chat(ans,msg,plr)
  295. end
  296.  
  297. commands.help = function(msg,plr)
  298. local ans = "!askgod [question] | !verse | !help | !confess [sin] | !pray [prayer] | !commandment [1-10]"
  299. chat(ans,msg,plr)
  300. end
  301.  
  302. commands.confession = function(msg,plr)
  303. local ans = {"Your sin has been forgiven, rejoice!";"I am overjoyed you have acknowledged your sin, God shall forgive you.";"You are forgiven, be glad Jesus died for your sake.";"I can see your sin weighs heavily on you, God has forgiven you!";"This is a sin that can not be easily forgiven, I demand you say Glory To God 20 times!";"Your sin mocks the commandments put forth by Our Almighty God, 20 Holy Mary's!";"Your blasphemy ends here, pray Our Father and Holy Mary 30 times each right now!";"Your actions disgust our Lord";"Satan, smite " .. Player.Name .. " down for " .. Player.Name .. " has dared to defy God himself."};
  304. ans = ans[math.random(#ans)]
  305. chat(ans,msg,plr)
  306. end
  307.  
  308. commands.pray = function(msg,plr)
  309. local ans = {"Amen";"Your greed terrifies me, confess your sin so that I may judge you by typing !confess [describe your foul actions here]";"Your prayer will be answered, Hallelujah!";"Your prayer has been rejected for blasphemy! type !confess [your sin here] for judgement.";"I understand your feelings, it shall be done soon";"What you ask will be done, be patient my son";"Your prayer will be granted, when the time comes."}
  310. ans = ans[math.random(#ans)]
  311. ans = ans .. ' ' .. plr.Name .. '.'
  312. chat(ans,msg,plr)
  313. end
  314.  
  315. commands.commandment = function(msg,plr)
  316. local ans = {
  317. "You shall have no other Gods before me";
  318. "You shall not make for yourselves an idol";
  319. "You shall not misuse the name of the LORD your God";
  320. "Remember the Sabbath day by keeping it holy";
  321. "Honor your father and your mother";
  322. "You shall not murder";
  323. "You shall not commit adultery";
  324. "You shall not steal";
  325. "You shall not give false testimony";
  326. "You shall not covet";
  327. }
  328. local choice = string.sub(msg,string.len(msg)-1,string.len(msg))
  329. choice = tonumber(choice)
  330. if choice then else
  331. choice = math.random(1,#ans)
  332. end
  333. ans = choice .. ': ' .. ans[choice]
  334. chat(ans,msg,plr)
  335. end
  336.  
  337. if not _G['sid'] then
  338. _G['sid'] = 0
  339. end
  340. _G['sid'] = _G['sid'] + 1
  341. local sid = _G['sid']
  342.  
  343. onPlayerChat = function(chat_type,recipient,message)
  344. if sid == _G['sid'] then else return end
  345. message = string.lower(message)
  346. if message:match(".*!askgod.*") or message:match(".*!ask.*") then
  347. commands.askgod(message,recipient)
  348. elseif message:match(".*!verse.*") or message:match(".!bible.*") then
  349. commands.verse(message,recipient)
  350. elseif message:match(".*!help.*") or message:match(".*!cmds.*") then
  351. commands.help(message,recipient)
  352. elseif message:match(".*!pray.*") then
  353. commands.pray(message,recipient)
  354. elseif message:match(".*!confess.*") then
  355. commands.confession(message,recipient)
  356. elseif message:match(".*!shut.*") then
  357. --commands.shut_up(message,recipient)
  358. elseif message:match(".*!commandment.*") or message:match(".*!command.*") or message:match(".*!rule.*") then
  359. commands.commandment(message,recipient)
  360. end
  361. end
  362.  
  363. Players.PlayerChatted:Connect(onPlayerChat)
  364.  
  365. Players.PlayerAdded:Connect(function(NewPlayer)
  366. if sid == _G['sid'] then else return end
  367. local welcomeSentence = {
  368. "Greetings " .. NewPlayer.Name .. ", study the bible to further your blossoming faith by chatting !verse πŸ”";
  369. "Welcome " .. NewPlayer.Name .. "! to Bibleblox! Study the bible with upmost vigor by chatting !verse πŸ™‚";
  370. "Hello " .. NewPlayer.Name .. "! Bible bot is here to guide you. Start by chatting !help 😊";
  371. "Welcome to the most holy place in Roblox " .. NewPlayer.Name .. ". Study the bible as soon as possible by chatting !verse πŸ™‚";
  372. "Feel free to ask any question to Our Almighty God by chatting !askgod [question] 😁";
  373. "Welcome to the most Christian place in Roblox " .. NewPlayer.Name .. ". β›ͺ";
  374. function()
  375. if os.date("*t").hour > 12 and os.date("*t").hour < 18 then
  376. return "Welcome " .. NewPlayer.Name .. " to the afternoon bible study session. Open your bible by chatting !verse. πŸ“–"
  377. elseif os.date("*t").hour > 18 or os.date("*t").hour < 5 then
  378. return "Welcome " .. NewPlayer.Name .. " to the night bible study session. Open your bible by chatting !verse. πŸ“–"
  379. elseif os.date("*t").hour > 5 and os.date("*t").hour < 12 then
  380. return "Welcome " .. NewPlayer.Name .. " to the morning bible study session. Open your bible by chatting !verse. πŸ“–"
  381. end
  382. end;
  383. function()
  384. if os.date("*t").hour > 12 and os.date("*t").hour < 18 then
  385. return "Gosh! " .. NewPlayer.Name .. " you're late to the afternoon bible study session! Open your bible by chatting !verse quickly!! πŸ“–"
  386. elseif os.date("*t").hour > 18 or os.date("*t").hour < 5 then
  387. return NewPlayer.Name .. " I can't believe you are, ahem, THIS late to the night bible study! Open the bible ASAP(chat !verse) πŸ“–"
  388. elseif os.date("*t").hour > 5 and os.date("*t").hour < 12 then
  389. return "Oh my! " .. NewPlayer.Name .. " You are late to the morning bible study session! Chat !verse to open the bible πŸ“–"
  390. end
  391. end;
  392. function()
  393. if os.date("*t").hour > 12 and os.date("*t").hour < 18 then
  394. return NewPlayer.Name .. ", God will give you a second chance for making him wait " .. 18 - os.date("*t").hour .. " hours to listen your question(Chat !askgod to ask question) ⌚"
  395. elseif os.date("*t").hour > 18 or os.date("*t").hour < 5 then
  396. return NewPlayer.Name .. ", God will give you a second chance for making him wait " .. os.date("*t").hour - 5 .. " hours to listen your question(Chat !askgod to ask question) ⌚"
  397. elseif os.date("*t").hour > 5 and os.date("*t").hour < 12 then
  398. return NewPlayer.Name .. ", God will give you a second chance for making him wait " .. os.date("*t").hour - 5 .. " hours to listen your question(Chat !askgod to ask question) ⌚"
  399. end
  400. end;
  401. }
  402. for cycle,sentence in next,welcomeSentence do
  403. if greet_toggle == true then
  404. if cycle == math.random(#welcomeSentence) then
  405. if type(sentence) == "function" then
  406. chat(sentence())
  407. else
  408. chat(sentence)
  409. end
  410. break
  411. end
  412. end
  413. end
  414. end)
  415.  
  416. ad = {
  417. "Greetings all, I am Bible bot! And I guide the masses towards realizing the true faith. Chat !help to know all the available commands for me";
  418. "I have come forth to bring the good news to all! Chat !verse to hear of it";
  419. "You can start believing as soon as now! Type !verse to start";
  420. "Stay connected! Keep having faith by catching the next verse using !verse";
  421. "Forgot the commandments? No problem! You can get one of them by chatting !commandment [1-10]";
  422. "For a good refresher, type !commandment [1-10] to get one";
  423. "Pray before bed and before eating. God is watching! Type !help if you're lost";
  424. "Do not live in sin or suffer for eternity in hell! Chat !help to know the available commands for bible bot";
  425. "Always remember to pray to God. Chat !pray [someone or something you want] to learn what He has in store for your prayer";
  426. "Remember to study the bible and praise Our Lord God to further your love for Him. type !verse to study a verse of the bible, Chat !help to know other commands";
  427. "Submit to the divine authority of God and learn more of the one true faith by typing !help to know all the available commands of bible bot"
  428. }
  429.  
  430. local lplr = game:GetService("Players").LocalPlayer
  431.  
  432. lplr.Idled:connect(function()
  433. if sid == _G['sid'] then else
  434. return
  435. end
  436. game:GetService("VirtualUser"):CaptureController()
  437. game:GetService("VirtualUser"):ClickButton2(Vector2.new())
  438. end)
  439.  
  440. while sid == _G['sid'] do
  441. if ads_toggle then
  442. chat(ad[math.random(#ad)])
  443. local t = tick()
  444. repeat
  445. wait(0.1)
  446. until tick()-t > timerbb
  447. end
  448. wait()
  449. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement