Advertisement
BobMe

boop

Nov 12th, 2021
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.89 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local targetplayer
  7. local strr
  8.  
  9. local function findPlayer(plrname)
  10. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  11. print(string.lower(string.sub(tostring(v),1,#plrname)),string.lower(plrname))
  12. if string.lower(string.sub(tostring(v),1,#plrname)) == string.lower(plrname) then
  13. return v
  14. end
  15. end
  16. end
  17.  
  18. dis = owner.Chatted:Connect(function(msg)
  19. local str = string.split(msg,"/")
  20. if string.lower(str[1]) == "notf" then
  21. targetplayer = findPlayer(str[2])
  22. strr = strr[3]
  23. end
  24. end)
  25.  
  26. repeat wait() until targetplayer ~= nil
  27. dis:Disconnect()
  28.  
  29. local currentplayer = targetplayer
  30.  
  31.  
  32. --Properties:
  33.  
  34. local function giveGui(player,strin)
  35. local NotificationGui = Instance.new("ScreenGui")
  36. local Frame = Instance.new("Frame")
  37. local Frame_2 = Instance.new("Frame")
  38. local TextButton = Instance.new("TextButton")
  39. local TextLabel = Instance.new("TextLabel")
  40. local Message = Instance.new("TextLabel")
  41. local ReplyFrame = Instance.new("Frame")
  42. local Namer = Instance.new("TextLabel")
  43. local TextBox = Instance.new("TextBox")
  44. local SendButton = Instance.new("TextButton")
  45. local Audio = Instance.new("Folder")
  46. NotificationGui.Name = "NotificationGui"
  47. NotificationGui.ResetOnSpawn = false
  48. NotificationGui.Parent = player.PlayerGui
  49.  
  50. Frame.Parent = NotificationGui
  51. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  52. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  53. Frame.BackgroundTransparency = 0.500
  54. Frame.BorderSizePixel = 0
  55. Frame.Position = UDim2.new(0.5, 0, -0.5, 0)
  56. Frame.Size = UDim2.new(0.800000012, 0, 0.600000024, 0)
  57.  
  58. Frame_2.Parent = Frame
  59. Frame_2.AnchorPoint = Vector2.new(0, 1)
  60. Frame_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  61. Frame_2.BackgroundTransparency = 0.200
  62. Frame_2.BorderSizePixel = 0
  63. Frame_2.Size = UDim2.new(1, 0, 0.0799999982, 0)
  64.  
  65. TextButton.Parent = Frame_2
  66. TextButton.AnchorPoint = Vector2.new(1, 0.5)
  67. TextButton.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  68. TextButton.BackgroundTransparency = 0.400
  69. TextButton.Position = UDim2.new(1, -5, 0.5, 0)
  70. TextButton.Size = UDim2.new(0.800000012, 0, 0.800000012, 0)
  71. TextButton.SizeConstraint = Enum.SizeConstraint.RelativeYY
  72. TextButton.Font = Enum.Font.SourceSans
  73. TextButton.Text = "X"
  74. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  75. TextButton.TextScaled = true
  76. TextButton.TextSize = 14.000
  77. TextButton.TextWrapped = true
  78.  
  79. TextLabel.Parent = Frame_2
  80. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  81. TextLabel.BackgroundTransparency = 1.000
  82. TextLabel.Size = UDim2.new(0.902651608, 0, 1, 0)
  83. TextLabel.Font = Enum.Font.SourceSans
  84. TextLabel.Text = "Notification from : "
  85. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  86. TextLabel.TextScaled = true
  87. TextLabel.TextSize = 14.000
  88. TextLabel.TextWrapped = true
  89. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  90.  
  91. Message.Name = "Message"
  92. Message.Parent = Frame
  93. Message.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. Message.BackgroundTransparency = 1.000
  95. Message.Size = UDim2.new(1, 0, 0.75, 0)
  96. Message.Font = Enum.Font.SourceSans
  97. Message.Text = ""
  98. Message.TextColor3 = Color3.fromRGB(255, 255, 255)
  99. Message.TextSize = 32.000
  100. Message.TextWrapped = true
  101. Message.TextXAlignment = Enum.TextXAlignment.Left
  102. Message.TextYAlignment = Enum.TextYAlignment.Top
  103.  
  104. ReplyFrame.Name = "ReplyFrame"
  105. ReplyFrame.Parent = Frame
  106. ReplyFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  107. ReplyFrame.BackgroundTransparency = 1.000
  108. ReplyFrame.Position = UDim2.new(0, 0, 0.75, 0)
  109. ReplyFrame.Size = UDim2.new(1, 0, 0.25, 0)
  110.  
  111. Namer.Name = "Namer"
  112. Namer.Parent = ReplyFrame
  113. Namer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  114. Namer.BackgroundTransparency = 1.000
  115. Namer.Size = UDim2.new(0.157000005, 0, 0.25, 0)
  116. Namer.Font = Enum.Font.SourceSans
  117. Namer.Text = "Reply:"
  118. Namer.TextColor3 = Color3.fromRGB(255, 255, 255)
  119. Namer.TextScaled = true
  120. Namer.TextSize = 14.000
  121. Namer.TextWrapped = true
  122. Namer.TextXAlignment = Enum.TextXAlignment.Left
  123.  
  124. TextBox.Parent = ReplyFrame
  125. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  126. TextBox.BackgroundTransparency = 0.500
  127. TextBox.BorderSizePixel = 0
  128. TextBox.Position = UDim2.new(0, 0, 0.299999923, 0)
  129. TextBox.Size = UDim2.new(1, 0, 0.700000226, 0)
  130. TextBox.Font = Enum.Font.SourceSans
  131. TextBox.PlaceholderText = "Enter your reply here..."
  132. TextBox.Text = ""
  133. TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  134. TextBox.TextSize = 25.000
  135. TextBox.TextWrapped = true
  136. TextBox.TextXAlignment = Enum.TextXAlignment.Left
  137. TextBox.TextYAlignment = Enum.TextYAlignment.Top
  138.  
  139. SendButton.Name = "SendButton"
  140. SendButton.Parent = ReplyFrame
  141. SendButton.AnchorPoint = Vector2.new(1, 0)
  142. SendButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  143. SendButton.BorderSizePixel = 0
  144. SendButton.Position = UDim2.new(1, 0, 0, 0)
  145. SendButton.Size = UDim2.new(0.117070489, 0, 0.299999714, 0)
  146. SendButton.Font = Enum.Font.SourceSans
  147. SendButton.Text = "SEND"
  148. SendButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  149. SendButton.TextScaled = true
  150. SendButton.TextSize = 14.000
  151. SendButton.TextWrapped = true
  152.  
  153. Audio.Name = "Audio"
  154. Audio.Parent = NotificationGui
  155.  
  156. local Beep = Instance.new("Sound",NotificationGui)
  157. Beep.SoundId = "rbxassetid://1029495337"
  158. Beep.Volume = 3
  159. Beep.PlaybackSpeed = 1.5
  160. local Beep2 = Beep:Clone()
  161. Beep2.Parent = NotificationGui
  162. Beep2.PlaybackSpeed = 1.75
  163.  
  164. -- Scripts:
  165.  
  166. Frame:TweenPosition(UDim2.new(.5, 0, .5, 0),"Out","Back",0.5)
  167. wait()
  168. Beep:Play()
  169. wait(0.125)
  170. Beep2:Play()
  171. wait()
  172. local antispam = false
  173.  
  174. local donk = false
  175. local remote = Instance.new("RemoteEvent",player)
  176. remote.Name = "James"
  177. local textboxdata = ""
  178. SendButton.MouseButton1Click:Connect((function()
  179. donk = true
  180. end))
  181. TextBox.FocusLost:Connect(function(thing)
  182. if thing == true then
  183. donk = true
  184. end
  185. end)
  186. TextButton.MouseButton1Click:Connect(function()
  187. NotificationGui:Destroy()
  188. remote:Destroy()
  189. end)
  190. remote.OnServerEvent:Connect(function(plr,str)
  191. if str ~= "ready" then
  192. if plr == player then
  193. textboxdata = str
  194. else
  195. plr:Kick("ew no")
  196. end
  197. else
  198. remote:FireClient(plr,TextBox)
  199. end
  200. end)
  201.  
  202. -- LOCALSCRIPT BELOW
  203. local ls = NLS([[
  204. wait(.5)
  205. local remote = game.Players.LocalPlayer:WaitForChild("James")
  206. local gui = nil
  207. remote:FireServer("ready")
  208. local poopoo = remote.OnClientEvent:Connect(function(g)
  209. gui = g
  210. end)
  211. repeat wait(.25) until gui ~= nil
  212. poopoo:Disconnect()
  213. while remote ~= nil and remote.Parent ~= nil do
  214. wait(.25)
  215. remote:FireServer(gui.Text)
  216. end]],NotificationGui)
  217.  
  218. repeat wait(.25) until donk
  219. Frame:TweenPosition(UDim2.new(.5, 0, -.5, 0),"Out","Back",0.5)
  220. wait(.5)
  221. NotificationGui:Destroy()
  222. remote:Destroy()
  223. return textboxdata
  224. end
  225.  
  226. while true do
  227. local text = giveGui(currentplayer,strr)
  228. if currentplayer == targetplayer then
  229. currentplayer = owner
  230. else
  231. currentplayer = targetplayer
  232. end
  233. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement