Need help with VR Movement

When I move the joystick there are no errors but my movement sphere doesnt move.

Here is the code:

	Run.RenderStepped:Connect(function()
		SG:SetCore("VRLaserPointerMode",0)
		SG:SetCore("VREnableControllerModels", game.ReplicatedStorage.LocalOptions.ControllerModels.Value)
		
		-- Ball --

		UIS.InputEnded:Connect(function(input)
			if input.KeyCode == Enum.KeyCode.Thumbstick1 then
				Sphere.BodyAngularVelocity.AngularVelocity = Vector3.new(0,0,0)
			end
		end)

		UIS.InputChanged:Connect(function(input)
			if input.KeyCode == Enum.KeyCode.Thumbstick1 then
				Sphere:WaitForChild("BodyVelocity").Velocity = ((Head.CFrame.RightVector * ((VRSpeed))) + (Head.CFrame.LookVector * ((VRSpeed/0.75))))
				--print(Sphere:WaitForChild("BodyVelocity").Velocity)
			end
		end)

		UIS.InputBegan:Connect(function(Input)
			if Input.KeyCode == Enum.KeyCode.Thumbstick2 then
				if Input.Position.X >= 0.95 and TurningDebounce == false then
					TurningDebounce = true
					TurnOffset = Head.Orientation + Vector3.new(0,-45,0)
					wait(0.1)
					TurningDebounce = false
				end
			end
			
			if Input.KeyCode == Enum.KeyCode.ButtonA then
				spawn(function()
					JumpingDebounce = true
					wait(0.5)
					JumpingDebounce = false
				end)
				Sphere:WaitForChild("BodyVelocity").Velocity = Vector3.new(Sphere:WaitForChild("BodyVelocity").Velocity.X,(VRJumpPower),Sphere:WaitForChild("BodyVelocity").Velocity.Z)
				
				Sphere:WaitForChild("BodyVelocity").MaxForce += Vector3.new(0,500,0)
				wait(VRJumpPower/1000)
				Sphere:WaitForChild("BodyVelocity").MaxForce -= Vector3.new(0,500,0)
			end
		end)

		Cam.HeadLocked = false
		Cam.CameraType = Enum.CameraType.Scriptable
		local HeadCFrame = VRS:GetUserCFrame(Enum.UserCFrame.Head)
		Cam.CFrame =  CFrame.new(Sphere.Position.X, Sphere.Position.Y + Offset, Sphere.Position.Z) * CFrame.new(HeadCFrame.Position) * CFrame.Angles(HeadCFrame:ToEulerAnglesXYZ())
	end)

Thanks in advance

1 Like

Here is my character

image

1 Like

boosting this because its been like a day i think