#script not working as it should
25 messages · Page 1 of 1 (latest)
can you help me
but it doesnt allow the mouse to move
hello
.
yes
i dont want it in first person while ur on the gui
this was the original script
local function SetCameraSubject(player)
if player and player.Character then
local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
if humanoid then
game:GetService("Workspace").CurrentCamera.CameraSubject = humanoid
end
end
end
local function EnableFirstPerson(player)
if player then
player.CameraMode = Enum.CameraMode.LockFirstPerson
end
end
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid")
EnableFirstPerson(player)
SetCameraSubject(player)
end)
end)
game.Players.PlayerRemoving:Connect(function(player)
player.CameraMode = Enum.CameraMode.Classic
end)
for _, player in ipairs(game.Players:GetPlayers()) do
player.CameraMode = Enum.CameraMode.LockFirstPerson
SetCameraSubject(player)
end
there is some property on GUI that makes it so the mouse can move freely in first person mode whenever the gui with the property set to true is visible
so what do i have to do