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: CurrentCamera

Previous Thread :: Next Thread 
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 02:10 PM
When a player enters the camera is supposed to rotate around a local brick inside of current camera. But it's not working and I have no idea what the problem could be. Here is the script:

game.Players.PlayerAdded:connect(function(player)
wait(2)
repeat wait() until player ~= nil
script.LocalScript:Clone().Parent = player.Character
gui = game.Lighting.SwordGui:clone()
gui.Parent = player.PlayerGui
end)

And here is the local script inside of the script above:
local camera = game.Workspace.CurrentCamera
local target = camera.SwordModel:findFirstChild("Main")
camera.CameraSubject = target
local angle = 0
while wait() do
camera.CoordinateFrame = CFrame.new(target.Position)
* CFrame.Angles(0,angle,0)
* CFrame.new(0,0,-6)
angle = angle + math.rad(.3)
end
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 02:23 PM
Bump. Please help. :c
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 02:43 PM
Bump, waiting... :c
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 03:19 PM
Hellur? ._.
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 03:29 PM
Are you guys at church or something? ._.
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 03:51 PM
Bump please..
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
22 Sep 2013 03:53 PM
Isn't that from the wiki?
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 03:55 PM
Modified.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
22 Sep 2013 03:56 PM
Give tye Output.
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 03:57 PM
No output, I would expect it to work but it doesn't.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
22 Sep 2013 03:59 PM
Are you doing this in solo? Is the LocalScript Disabled?
Report Abuse
ReplicatedStorage is not online. ReplicatedStorage
Joined: 21 Sep 2013
Total Posts: 19
22 Sep 2013 03:59 PM
[ Content Deleted ]
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 04:02 PM
Both enabled, and already tried it in-game.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
22 Sep 2013 04:03 PM
Try repeat wait() until game.Players.LocalPlayer at the top of the LocalScript and modify it to make it signal that it successfully went through.
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 04:08 PM
What? o3o
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 04:19 PM
Hello? I'm confused.
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 04:29 PM
Bump.
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 04:54 PM
This is madness.
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
22 Sep 2013 04:56 PM
local camera = game.Workspace.CurrentCamera
camera.CameraType = 6
local target = camera.SwordModel:findFirstChild("Main")
camera.CameraSubject = target
local angle = 0
while wait() do
camera.CoordinateFrame = CFrame.new(target.Position)
* CFrame.Angles(0,angle,0)
* CFrame.new(0,0,-6)
angle = angle + math.rad(.3)
end
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
22 Sep 2013 04:57 PM
"local target = camera.SwordModel:findFirstChild("Main")"

what.

~rekt get
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 05:06 PM
Still no. D;
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
22 Sep 2013 05:08 PM
local meme = Instance.new("Message",workspace)
local camera = game.Workspace.CurrentCamera
camera.CameraType = 6
local target = camera.SwordModel:findFirstChild("Main")
meme.Text = "Main"
camera.CameraSubject = target
local angle = 0
meme.Text = 0
while wait() do
camera.CoordinateFrame = CFrame.new(target.Position)
* CFrame.Angles(0,angle,0)
* CFrame.new(0,0,-6)
angle = angle + math.rad(.3)
meme.Text = angle
end
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
22 Sep 2013 05:14 PM
I went in-game and no message popped up. :T
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
22 Sep 2013 05:19 PM
Is the LocalScript disabled? If it isn't, maybe you could try disabling it and then enabling it with the regular script after the clone gets parented.
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