Hi DevForum,
I’m trying to create a sample game to test certain moves and combat systems. I saw this video, and took inspiration + wanted to break down the first move, which is right at the very beginning.
Here’s what I broke down so far:
Detecting the hit/radius
- I decided to use RayCasting for the hit detection and radius using the script below:
local rayDirection = HRP.CFrame.LookVector * 40
- I created a data table and transferred the result to a server script through a remote event
- I used UserInputService for input detection
Server Script Handling
- Once I did all of that, I want to make the player teleport kind of behind the character, while still going the same direction, using the code below:
characterHRP.CFrame = targetHRP.CFrame + characterHRP.CFrame.LookVector * 4
From here on out, I plan to make a lot of progress and changes utilizing what I can. What should I do from here that is correct and will help me get a good result? I plan to use particles, vfx, and more.
Help is appreciated, thanks!