RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Make me a script where when I click the football gets teleported to my hands right away."
-- local script local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local football = game.Workspace.Football local function teleportFootball(input, gameProcessedEvent) if input.UserInputType == Enum.UserInputType.MouseButton1 and not gameProcessedEvent then local attachment = Instance.new("Attachment", character.RightHand) local weld = Instance.new("WeldConstraint", football) weld.Part0 = football weld.Part1 = character.RightHand weld.Attachment0 = football:FindFirstChild("Attachment") weld.Attachment1 = attachment end end UserInputService.InputBegan:Connect(teleportFootball)