Getting Over It Clone Hammer Collisions

  1. So, I decided to try and recreate Getting Over It for the fun of it, I’ve got the camera movement, the hammer movement using CFrames, and honestly it’s coming along very well.

  2. The issue is that I’m setting the CFrame of the ‘hammer’ on RenderStepped, and I can’t achieve collisions on the hammer whatsoever. I’m thinking my best solution if I want to keep my current code is to make my own collisions.

  3. I attempted to try using Motors, tweenservice, different constraints as well, none of which worked.
    This is my method of setting the CFrame of the hammer

     local Delta = getDelta()
     local DX = Delta.X
     local DY = Delta.Y
     
     PLAYER.Cursor.Position += Vector3.new(
     	DX/Sens,
     	-DY/Sens,
     	0
     )
    
     
     PLAYER.Hammer:SetPrimaryPartCFrame(
     	CFrame.new(
     		Vector3.new(
     			PLAYER.CharObject.Position.X, 
     			PLAYER.CharObject.Position.Y,
     			PLAYER.CharObject.Position.Z
     		), 
     		
     		PLAYER.Cursor.Position)
     	
     )
    

Would appreciate some help. :slight_smile:

1 Like

Few things :slight_smile:

  1. Try setting it on Stepped rather than RenderStepped. See here.

  2. Consider using constraints or body movers rather than directly setting CFrames. It will play much nicer with the physics engine.

    • SetPrimaryPartCFrame has issues
    • With your current method, you could just do CFrame.new(PLAYER.CharObject.Position, PLAYER.Cursor.Position) instead of creating a new position object
  3. You can set the cursor image with Mouse.Icon - no need to move a GUI around.

  4. You’ll probably need to implement some sort of custom collisions if you really want to emulate the feel of Getting Over It – ROBLOX physics will probably feel too “slippery”

1 Like