Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I create a Mouse.Hit where you can hit players with items?

Hello there, I am creating a simulator game but I am wanting a system where if you click down the mouse you can throw Eggs at people and they lose health, I was just curious how I would go about this.

Would I use RayCasting or what?

Thank you!

1 answer

If you are throwing an item, you can use many things to move objects: CFrame lerping, CFrame changing, Body movers, tween, and possibly more I don't know about

https://developer.roblox.com/en-us/api-reference/datatype/CFrame https://developer.roblox.com/en-us/articles/BodyMover https://developer.roblox.com/en-us/api-reference/class/Tween

Also, please do not make the very annoying simulator game where you literally copy paste another game and change the theme, it's just cruel to see people actually play those and the creators making money off of other people's ideas

This discussion is preserved as it was. New answers, comments, and votes are closed.