So i got my camera intro and GUI when i test it in ROBLOX Studio 2013 play solo it works but when i test it going with Play button it doesn't work heres the script and local script
Camera Script
game.Players.PlayerAdded:connect(function(player) script.LocalScript:clone().Parent = player.CharacterAdded:wait() end)
Camera local script
local target = workspace.IntCam.Head local camera = workspace.CurrentCamera camera.CameraSubject = target local angle = 5 while wait() do camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0,angle,0) * CFrame.new(0,0,-30) angle = angle + math.rad(.3) end
Now the first GUI script
function onButton1Down() game.Workspace.CurrentCamera:remove() wait(.1) game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid game.Workspace.CurrentCamera.CameraType = "Camera" end script.Parent.MouseButton1Down:connect(onButton1Down)
And now the last script in the GUI
script.Parent.MouseButton1Click:connect(function() script.Parent.Visible = false end)
So i posted my rotating camera script at the start and now the GUI's script so when i click Play button in my ROBLOX studio it works. When i test it at my profile clicking "Play" going to game then the intro rotates bla bla bla then i click Play button to skip the intro boom it doesn't work the GUI button just dissappears. Same in ROBLOX studio when running server with test and 1 player... Pls help!
P.S I can make a video if you don't understand what i mean :)
Well I noticed to things, You remove the currentcamera, and then try to access it again once its removed. And you clone the LocalScript in an odd way?
Player.CharacterAdded:connect(function(Character) --Cloning here end)
Alright, let's try something like this. At line 5 of your camera local script add:
game.Workspace.CurrentCamera.CameraType = "Scriptable"
Then at line 6 of that script:
-- Change: while wait() do -- To: while wait() and game.Workspace.CurrentCamera.CameraType == "Scriptable" do
Now, when the CameraType changes from Scriptable to something else it will stop the loop. Then at your first GUI script remove line 2:
game.Workspace.CurrentCamera:remove()
Edit your last 2 scripts so it will look like this:
function onButton1Down() game.Workspace.CurrentCamera:remove() wait(.1) game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid game.Workspace.CurrentCamera.CameraType = "Camera" end script.Parent.MouseButton1Click:connect(function() script.Parent.Visible = false onButton1Down() end)