My bb script isn't working

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    I need the ball to clone in the player and show up but its glitching

  2. What is the issue?

  3. What solutions have you tried so far?
    Nothing yet

heres the script but its glitched for me
thats why i need help


game.Players.PlayerAdded:Connect(function(Player)
	Player.Chatted:Connect(function(Message) 
		if Message == 'Bb' or Message == 'bb' then
			if not Player.Character:FindFirstChild('Ball')then
				game.ReplicatedStorage.Ball:Clone().Parent = Player.Character
				print("Ball Cloned!")
			end
		end
	end)
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

1 Like

I’m not too experienced with scripting, so if I apologize if make a mistake.

Are you trying to make the player shoot a ball? If so, you could maybe set the parent of the ball’s clone to workspace and set the position of it to where you want the ball to be summoned. Then use physics to launch the ball in the air.

At least, that is what makes sense in my head.

1 Like

No i am trying to make a ball spawn when you say bb

Maybe EquipTool can be used to achieve this.
See more here: Humanoid:EquipTool

Make the ball clone in workspace and set its position to the player. The ball should be unanchored if you want it to roll. Otherwise if you want to hold the ball as a tool, you can do what BloodAlibi said.

If this is incorrect, could you elaborate more on what you want? Thanks. :slight_smile: