I want it where when a player clicks without a tool would shoot out a ball from the torso. And it is in a LocalScript in StarterPack
game.Players.LocalPlayer.MouseButton1Click:connect(function() Brick = Instance.new("Part") Brick.Shape = "Ball" Brick.Size = Vector3.new(3,3,3) Brick.BrickColor = BrickColor.Random(3, 5, 9, 1) end)
Thank you.
If you're using a LocalScript you can do this to detect when a player has pressed the left mouse button down:
local player=Game.Players.LocalPlayer local mouse=player:GetMouse() mouse.Button1Down:connect(function() Brick = Instance.new("Part",Workspace) Brick.Position=player.Character:WaitForChild("Torso").Position Brick.Shape = "Ball" Brick.Size = Vector3.new(3,3,3) Brick.BrickColor = BrickColor.Random(3, 5, 9, 1) end)