![]() ![]() ![]() ![]() ![]() HOW TO MAKE A SOUND PLAY OVER AND OVER AGAIN Is there any way to get the vehicle that a player is in? I looked it up, and the only thing I could find was. I am making a game where you can get in and out of a car, but I don’t know how to get a player’s vehicle. I want to make it so that if someone grabs an object that isn’t a part, it doesn’t snap to the machine, but if it is a part, it does snap to the machine. I am making a game where you have to assemble a machine, but I can’t find a way to check if an object is a part or not. Runservice.RenderStepped:Connect(function()Ĭam.CameraType = Ĭam.CFrame = CFrame.new(0,6,0) * CFrame.new(HeadCFrame.Position) * CFrame.Edit: I have figured out how to do this, but I still need a way to know if an object is a part. RS.Events.Move:FireServer(RightHandMathified,LeftHandMathified,HeadMathified) Local LeftHandMathified = CFrame.new() * CFrame.new(()*HeadScale) * omEulerAnglesXYZ(LeftHandCFrame:ToEulerAnglesXYZ()) Local RightHandMathified = CFrame.new() * CFrame.new(()*HeadScale) * omEulerAnglesXYZ(RightHandCFrame:ToEulerAnglesXYZ()) Local HeadCFrame = VRservice:GetUserCFrame() Local LeftHandCFrame = VRservice:GetUserCFrame() Local RightHandCFrame = VRservice:GetUserCFrame() VRservice.UserCFrameChanged:Connect(function(thing,cframe) SG:SetCore("VREnableControllerModels",false) Local Runservice = game:GetService("RunService") Local Head = Character:WaitForChild("Head") Local LeftHand = Character:WaitForChild("LeftHand") Local RightHand = Character:WaitForChild("RightHand") Local RS = game:GetService("ReplicatedStorage") Local VRservice = game:GetService("VRService") Local UIS = game:GetService("UserInputService") So because of the release of roblox on meta qeust 2 ( and i own a headset) i tried to make a vr game using a tutorial however it is client-sided so i used a remoteevent to send it to the server wich caused remote event exhausting because it has to fire so much how can i solve this? local HeadScale = 1 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |