how would one make a system that when you challenge a player a gui would be sent to them, and a somewhat of a duel would begin?
i Started with this:
local Players = game.Players:GetChildren()
function click()
for i, v in pairs(Players) do
if v.Name == script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name then
game.ReplicatedStorage.DuelGui:Clone().Parent = v
end
end
end
script.Parent.MouseButton1Click:connect(click)`

1 comment
Please use a code block