Im trying to make a shooter game with vr guns, the guns are fine when i tested them on pc however on vr the bullets just kinda go on the ground without going forward. I use the Nexus VR Character Model.
Video:
The Code:
local debounce = false
script.Parent.Activated:Connect(function()
debounce = true
if debounce == true then
--[[ Create Bullet ]]--
local bullet = game:GetService("ReplicatedStorage").VRBullet:Clone()
bullet.Parent = game.Workspace
bullet.CFrame = script.Parent.FirePart.CFrame
--[[ Shoot ]]--
bullet.bvel.Velocity = script.Parent.FirePart.CFrame.LookVector * 200
--[[ Cleaning Up ]]--
game:GetService("Debris"):AddItem(bullet, 1.5)
wait(.5)
debounce = false
end
end)
Thank you!