Opponent Type Shower
Key Required

Opponent Type Shower

Player or AI? [Beta]paiderby954paiderby954 2.5K views 4 executesUpdated Aug 26, 2025
Unrated
00
Lua Script•70 lines (1952 chars)
local plr = game.Players.LocalPlayer
local rs = game:GetService("ReplicatedStorage")
local gui = Instance.new("ScreenGui", plr:WaitForChild("PlayerGui"))
local f = Instance.new("Frame", gui)

f.Size = UDim2.new(0, 250, 0, 160)
f.Position = UDim2.new(0.5, 0, 0.5, 0)
f.AnchorPoint = Vector2.new(0.5, 0.5)
f.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
f.BackgroundTransparency = 0.1
f.BorderSizePixel = 0
f.Active = true
f.Draggable = true

local x = Instance.new("TextButton", f)
x.Size = UDim2.new(0, 24, 0, 24)
x.Position = UDim2.new(1, -28, 0, 8)
x.Text = "×"
x.Font = Enum.Font.SourceSansBold
x.TextColor3 = Color3.fromRGB(255, 255, 255)
x.TextSize = 18
x.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
x.BorderSizePixel = 0
x.ZIndex = 2

local b = Instance.new("TextButton", f)
b.Size = UDim2.new(0, 200, 0, 40)
b.Position = UDim2.new(0.5, -100, 0.25, 0)
b.Text = "Show Opponent Type"
b.Font = Enum.Font.SourceSansBold
b.TextSize = 14
b.TextColor3 = Color3.fromRGB(255, 255, 255)
b.BackgroundColor3 = Color3.fromRGB(70, 130, 255)
b.BorderSizePixel = 0
b.ClipsDescendants = true

b.MouseEnter:Connect(function()
	b.BackgroundColor3 = Color3.fromRGB(60, 120, 240)
end)
b.MouseLeave:Connect(function()
	b.BackgroundColor3 = Color3.fromRGB(70, 130, 255)
end)

local l = Instance.new("TextLabel", f)
l.Size = UDim2.new(0, 200, 0, 40)
l.Position = UDim2.new(0.5, -100, 0.65, 0)
l.BackgroundTransparency = 0.3
l.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
l.BorderSizePixel = 0
l.Text = "Opponent: ?"
l.TextColor3 = Color3.fromRGB(255, 255, 255)
l.Font = Enum.Font.SourceSansBold
l.TextSize = 15
l.TextWrapped = true

x.MouseButton1Click:Connect(function()
	gui:Destroy()
end)

b.MouseButton1Click:Connect(function()
	l.Text = "Fetching..."
	local success, result = pcall(function()
		return rs.RemoteFunctions.GetOpponentTypeFunction:InvokeServer()
	end)
	if success then
		l.Text = "Opponent: " .. tostring(result)
	else
		l.Text = "Error"
	end
end)

Features & Information

Shows opponent type when u click the show opponent type, invokes a remotefunction that gets opponent type and puts the result in the text

Community Comments (0)

No comments yet for this script.

More Scripts for Player or AI? [Beta]