Hey DevForum!
I’ve been having a problem with my script that returns " Expected Identifier when parsing variable name got ‘local’ ", I’m not to sure what’s wrong. Can you help me out here?
local function DisableVR()
if UserInputService.VREnabled then
LocalPlayer:Kick("Virtual Reality isn't optimised for this experience, please disconnect all VR related devices and rejoin.")
end
end
(I’ve obviously declared my variables before hand, but here they are if you want them)
local Chat = game:GetService("Chat")
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
Chat.LoadDefaultChat = true
local LocalPlayer = Players.LocalPlayer