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: Is not a valid member of frame?

Previous Thread :: Next Thread 
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
01 Oct 2013 01:11 AM
it works fine on solo, although in a server it says "Current_Map is not a valid member of frame" in the output.

local player = game.Players.LocalPlayer
local character = player.Character
local camera = workspace.CurrentCamera
local map = script.Parent.Current_Map
local target = Workspace[map.Value]
camera.CameraSubject = target

local angle = 0
 
while wait() do
camera.CoordinateFrame = CFrame.new(target.Map_Cam.Position)
* CFrame.Angles(0, angle, -5)
* CFrame.new(0, 0, -10)
camera.Focus = CFrame.new(target.Map_Focus.Position)
angle = angle + math.rad(1)
if script.Parent.Player_Spawned.Value == true then game.Workspace.CurrentCamera.CameraType = "Custom" game.Workspace.CurrentCamera.CameraSubject = character.Humanoid break
end
end

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
01 Oct 2013 01:20 AM
bump

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
01 Oct 2013 01:41 AM
bump

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
01 Oct 2013 01:49 AM
bump

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
01 Oct 2013 02:06 AM
.-.

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
av83r is online. av83r
Joined: 28 Jul 2009
Total Posts: 2580
01 Oct 2013 02:44 AM
local map = script.Parent.Current_Map--here is Current_Map, everything not related is rubbish

you said the output is saying Current_Map is not a part of frame.

Here you have made 2 very critical noob mistakes that are preventing you from getting help.

1.) we do not have knowledge of the important parts of the script

2.) you did not post the output as was written, but instead, as was incorrectly interpreted.

So lets start from square 1 so you don't waste anyone elses time. THE OUTPUT. NOW.
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
01 Oct 2013 07:33 AM
First, you've made 1 'critica noob mistake' on understanding what a noob is. It works like this:

Newbie = Newb = Noob = Nub

and a newbie is a new person.
This account isn't new, and my first account was in 09.

Next, the output wrote

    08:31:36.298 - Current_Map is not a valid member of Frame
    08:31:36.298 - Script 'Players.Player1.PlayerGui.Spawn_Menu.Gui_Holder.Spawn_Cam', Line 4
    08:31:36.298 - stack end
    08:31:36.299 - Running Script "Players.Player1.PlayerGui.Spawn_Menu.Gui_Holder.Enter_Map_Button.Enter_Map"
    08:31:36.299 - Current_Map is not a valid member of Frame
    08:31:36.299 - Script 'Players.Player1.PlayerGui.Spawn_Menu.Gui_Holder.Enter_Map_B', Line 3
    08:31:36.299 - stack end

What it seems to think is "Current_Map" is a part of the properties of the frame.


When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
01 Oct 2013 07:40 AM
and if you need the other script:

local player = game.Players.LocalPlayer
local character = player.Character
local map = script.Parent.Parent.Current_Map
local target = Workspace[map.Value]

script.Parent.MouseButton1Click:connect(function(onClick)
print "clicked"
script.Parent.Parent.Player_Spawned.Value = true
game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
print "test"
if player.TeamColor == "Really red" then
    player.character.Torso.CFrame = CFrame.new(Vector3.new(Workspace[target].Team_1_Spawn.Position))
print "test"
elseif player.TeamColor == "Really blue"
    then player.character.Torso.CFrame = CFrame.new(Vector3.new(Workspace[target].Team_2_Spawn.Position))
print "test"
end
end)

script.Parent.MouseButton1Down:connect(onClick)

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
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