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: Strange error: "can't get value"

Previous Thread :: Next Thread 
IcanthinkofParticles is not online. IcanthinkofParticles
Joined: 03 May 2014
Total Posts: 14
06 May 2014 05:34 PM
So, I have this local script in my player, and it looks something like this:

player = game.Players.LocalPlayer
cam = workspace.CurrentCamera

local coordFrame = Instance.new("CFrameValue", player)
coordFrame.Name = "CoordinateFrame"

game:GetService("RunService").RenderStepped:connect(function()
coordFrame.Value = cam.CoordinateFrame
end)

and then I have a script in workspace that looks something like this:

repeat
wait(1/60)
print(game.Players.Player1.CoordinateFrame.Value)
until false

Note this isn't the actual code, it should produce the same error: "can't get value." Could someone tell me what is producing this error, and how I may fix it?

Thanks!
2-- I accidentally posted this on a different forum, and roblox won't let me post it again.
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
06 May 2014 05:36 PM
Does it immedieately start looping when the server starts

i'm asian
Report Abuse
IcanthinkofParticles is not online. IcanthinkofParticles
Joined: 03 May 2014
Total Posts: 14
06 May 2014 05:38 PM
Yes.
Report Abuse
IcanthinkofParticles is not online. IcanthinkofParticles
Joined: 03 May 2014
Total Posts: 14
06 May 2014 05:48 PM
Bump
Report Abuse
TheNickmaster21 is not online. TheNickmaster21
Joined: 04 Oct 2008
Total Posts: 9490
06 May 2014 05:49 PM
"Note this isn't the actual code, it should produce the same error: "can't get value.""

Can you atleast give us a copy of the line spitting the error?
Report Abuse
IcanthinkofParticles is not online. IcanthinkofParticles
Joined: 03 May 2014
Total Posts: 14
06 May 2014 05:51 PM
It's basically the same thing. If you really want it, here:

local caminv = camera.CoordinateFrame.Value:inverse()--Error can't get Value
Report Abuse
IcanthinkofParticles is not online. IcanthinkofParticles
Joined: 03 May 2014
Total Posts: 14
06 May 2014 06:00 PM
Bump[2]
Report Abuse
IcanthinkofParticles is not online. IcanthinkofParticles
Joined: 03 May 2014
Total Posts: 14
06 May 2014 06:58 PM
Bump[3] C'mon guys, really?
Report Abuse
TheNickmaster21 is not online. TheNickmaster21
Joined: 04 Oct 2008
Total Posts: 9490
06 May 2014 08:50 PM
local caminv = camera.CoordinateFrame:inverse()--?
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