|
| 07 Jul 2014 03:08 AM |
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!
|
|
|
| Report Abuse |
|
|
|
| 07 Jul 2014 03:09 AM |
| Is this in a LocalScript?. |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2014 03:12 AM |
| my god, after all my years coding this is probably the most embarrassing mistake hahaha. it was in a standard script the whole time. thanks Anony! |
|
|
| Report Abuse |
|
|