generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help me with this please! (Minor issue)

Previous Thread :: Next Thread 
dylanman99 is online. dylanman99
Joined: 26 Sep 2008
Total Posts: 169
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
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
07 Jul 2014 03:09 AM
Is this in a LocalScript?.
Report Abuse
dylanman99 is online. dylanman99
Joined: 26 Sep 2008
Total Posts: 169
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image