Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Yeah = 0
- local ScreenGui = Instance.new("ScreenGui")
- local TextBox = Instance.new("TextBox")
- local ScreenGui_2 = Instance.new("ScreenGui")
- local TextButton = Instance.new("TextButton")
- local Do = 1
- ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
- TextBox.Parent = ScreenGui
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.BorderSizePixel = 3
- TextBox.Position = UDim2.new(0.583427906, 0, 0.726998508, 0)
- TextBox.Size = UDim2.new(0, 200, 0, 29)
- TextBox.Font = Enum.Font.SourceSansBold
- TextBox.PlaceholderColor3 = Color3.new(0.698039, 0.698039, 0.698039)
- TextBox.Text = "Player name here"
- TextBox.TextSize = 18
- ScreenGui_2.Parent = game.Players.LocalPlayer.PlayerGui
- TextButton.Parent = ScreenGui_2
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.BorderSizePixel = 3
- TextButton.Position = UDim2.new(0.810442686, 0, 0.726998508, 0)
- TextButton.Size = UDim2.new(0, 45, 0, 29)
- TextButton.Font = Enum.Font.SourceSansBold
- TextButton.Text = "Error!"
- TextButton.TextSize = 18
- TextButton.MouseButton1Down:connect(function()
- Yeah = 1
- while Yeah == 1 do
- local name = TextBox.Text
- local player = game.Players:WaitForChild(name,0.1)
- if player == nil then
- warn("Player not found,Did you put the correct username?")
- else
- local HI = Instance.new("ScreenGui",player.PlayerGui)
- local h2 = Instance.new("ImageLabel",HI)
- h2.Image = "http://www.roblox.com/asset/?id=367208302"
- h2.Size = UDim2.new(0, 224,0, 135)
- h2.Position = UDim2.new(math.random(0,743),math.random(0,743),math.random(0,743),math.random(0,743))
- local error2 = Instance.new("Sound",player.Character.Torso)
- error2.SoundId = "rbxassetid://970428619"
- error2.Volume = 10
- error2:Play()
- wait(0.1)
- end
- wait()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement