Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- local playerIdToFollow = 3323558881
- local function followPlayer()
- local player = game.Players.LocalPlayer
- if player then
- player:RequestFriendship(playerIdToFollow)
- end
- end
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(0, 200, 0, 50)
- button.Position = UDim2.new(0.5, -100, 0.5, -25)
- button.Text = "Follow Player"
- button.Parent = screenGui
- button.MouseButton1Click:Connect(followPlayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement