modifique esse script que a o inves de um sar um weldcostranit, use um weld normal…
- User
modifique esse script que a o inves de um sar um weldcostranit, use um weld normal ligando a ball e a RightHand do player : -- Script dentro da Bola (Ball) local ProximityPrompt = Instance.new("ProximityPrompt") ProximityPrompt.ActionText = "Pegar Bola" ProximityPrompt.ObjectText = "Bola de Basquete" ProximityPrompt.RequiresLineOfSight = false ProximityPrompt.MaxActivationDistance = 5 ProximityPrompt.RequiresLineOfSight = false ProximityPrompt.Parent = workspace:WaitForChild("Ball")
local ball = workspace:WaitForChild("Ball") -- Referência à bola ball.Anchored = true -- A bola inicia ancorada ball:SetAttribute("InitialPosition", ball.Position) -- Armazena a posição inicial
ProximityPrompt.Triggered:Connect(function(player) local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid") if humanoid and not ball:IsDescendantOf(player.Character) then -- Desancora a bola e anexa ao jogador ball.CanCollide = false ball.Anchored = false ball.Massless = true ball.Parent = player.Character
codelocal weld = Instance.new("WeldConstraint") weld.Part0 = ball weld.Part1 = player.Character:WaitForChild("RightHand") -- Ajuste se necessário weld.Parent = ball -- Desativa o ProximityPrompt enquanto o jogador segura a bola ProximityPrompt.Enabled = false -- Envia evento para mostrar a linha de trajetória game.ReplicatedStorage.ShowTrajectory:FireClient(player, ball) endend)
- Assistant