![]() ![]() Local ReplicatedStorage = game:GetService("ReplicatedStorage") In order to go from a hitbox that functions as a radius around the player, to one that is directly in front of the player, depending on where they are facing, I have tried to use :toWorldSpace to change the distance to be relative to where the player is, but this hasn’t worked out, and still keeps the hitbox in a radius-like fashion. I want to get the distance in front of a player using a Magnitude distance calculation so that I can apply damage to a humanoid if it exists in that area.Ĭurrently, when a player clicks with a tool, the player will damage any humanoid in a circular radius around them, but I want the player to only damage other players if they are facing towards, and within a small range of another player, something fitting for a punch. What do you want to achieve? Keep it simple and clear!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |