Skip to main content
Discovery icon for MAD STUDIO Discord server

MAD STUDIO

2,861 Online
34,665 Members
# general3 people

scripting accurate raycast abilities

Use UserInputService mouse location and server raycasts to accurately aim projectile abilities while preventing exploiters from shooting through walls.

  • FilteringEnabled restricts exploit scripts primarily to reading and writing client-side data, preventing server-wide map deletions
  • Exploiters can be stopped from wall-shooting by validating hit position, player origin, and distance via server raycast
  • Switching offsets to UserInputService mouse location rather than mouse.Hit prevents unwanted offsets when ignoring walls
  • Directing raycasts from the camera as origin first, then using the head as hit origin, maximizes ability accuracy
Summarized from recent messages, might be inaccurate

More conversations

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App