heres the script:
function OnMouseHover()
game.Workspace.CurrentCamera.CameraType = "Scriptable"
game.Workspace.CurrentCamera.FieldOfView = 60
Workspace.CurrentCamera.CoordinateFrame = CFrame.new(game.Workspace.AK47Cam.Position)
end
script.Parent.MouseEnter:connect(OnMouseHover)
function OnMouseNotHover()
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
end
script.Parent.MouseLeave:connect(OnMouseNotHover)
----------------------------------
heres the output:
01:07:27.621 - Plugin_142731176._Char:365: attempt to index global 'character' (a nil value)
01:07:27.622 - Stack Begin
01:07:27.622 - Script 'Plugin_142731176._Char', Line 365 - field setupPlayer
01:07:27.622 - Script 'Plugin_142731176._Char', Line 514
01:07:27.624 - Stack End
thanks!
|