Sorry if I missed some important info or specifics, this is my first time here. Hand.CFrame = ī) local event = Ĭ) local event = Most of all are the same with minor differences.Ī) local event = Įvent.OnServerEvent:Connect(function(plr, character, RightCFrame, LeftCFrame) RunService.RenderStepped:Connect(rightHandIndicator, leftHandIndicator)Īll the server-sided code. UserInputService.UserCFrameChanged:Connect(handCorrection) ![]() UserInputService.InputEnded:Connect(inputHandling) UserInputService.InputBegan:Connect(inputHandling) ReplicateHands:FireServer(Character, RightSendingCFrame, LeftSendingCFrame) Local headCFrame = VRService:GetUserCFrame()Ĭamera.CFrame = CFrame.new(raycastResult.Position + Vector3.new(0, 5 +, 0) - headCFrame.Position) * cameraAngles Local raycastResult = game.Workspace:Raycast(origin, direction, RaycastParams.new()) Local LeftHand = createHand("LeftVRHand") Local RightHand = createHand("RightVRHand") ![]() StarterGui:SetCore("VREnableControllerModels", 0)Ĭ = true StarterGui:SetCore("VRLaserPointerMode", 0) Camera properties, disable default movement and freeze non-VR character.Ĭamera.CameraType = Ĭamera.CFrame = CFrame.new() Local Players = game:GetService("Players") Local StarterGui = game:GetService("StarterGui") Local UserInputService = game:GetService("UserInputService") Local RunService = game:GetService("RunService") Local VRService = game:GetService("VRService")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |