How should I go about making a dodgeball?

I want to make a dodgeball game, but Im not even sure how Im supposed to make a dodge ball.

how should I go about this?

We can’t write entire scripts for you, you can ask for help in fixing bugs in scripts though

For a start, I would recommend looking at the API and look into physics object (ie. VectorForce, LinearVelocity, etc.) for giving the dodgeball a force towards the target.

Then firing the dodgeball, maybe using:

local Mouse = game.Players.LocalPlayer:GetMouse()

Mouse.Button1Down:Connect(function()
     DodgeballRemoteEvent:Fire(Mouse.Hit.Position)
end)

then obviously receiving that on the server with

DodgeballRemoteEvent.OnServerEvent:Connect(function(player, targetposition)
-- Code for creating dodgeball > throwing dodgeball > checking for hits
end)

the API should help with the rest :slight_smile:

1 Like

As I said, how should I go about making, Im asking where should I start first to try to get the players mouse.

But thanks anyway! I’ll take it into consideration.

This uncopylocked experience has a dodgeball minigame which could serve as a useful resource.

1 Like