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 » Scripters
Home Search
 

Re: How do I set player Camera on spawn?

Previous Thread :: Next Thread 
axelvts is not online. axelvts
Joined: 27 Apr 2008
Total Posts: 3029
10 Aug 2015 05:33 PM
I've tried multiple times, and I just can't get it to work...
Help?
Report Abuse
Darkggod0 is not online. Darkggod0
Joined: 08 Jan 2013
Total Posts: 2946
10 Aug 2015 05:34 PM
local player camera


camera.CoordinateFrame = workspace.whereverthepartinthepositionyouwantis

~Darkggod~ - Glory To Vaktovia -
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
10 Aug 2015 05:36 PM
have you read this?
http://wiki.roblox.com/index.php?title=Camera_manipulation
Report Abuse
axelvts is not online. axelvts
Joined: 27 Apr 2008
Total Posts: 3029
10 Aug 2015 06:00 PM
Yes. However, it doesn't seem to want to work...
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
10 Aug 2015 06:08 PM
then there's nothing for us to do if we can't correct your script
Report Abuse
axelvts is not online. axelvts
Joined: 27 Apr 2008
Total Posts: 3029
10 Aug 2015 08:06 PM
game.Players.CharacterAutoLoads = false
local character = game.ServerStorage.Char

local function LoadCharacter(player)
player:LoadCharacter()
player.Character:Destroy()
local newCharacter = character:Clone()
newCharacter.Parent = workspace
newCharacter.Name = player.Name
player.Character = newCharacter
newCharacter.Humanoid.Died:connect(function()
wait(1)
LoadCharacter(player)
workspace.CurrentCamera.CameraType = 'Follow'
workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
end)
end
game.Players.PlayerAdded:connect(function(player)
LoadCharacter(player)
workspace.CurrentCamera.CameraType = 'Follow'
workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
end)


I've tried using local scripts, but nothing's working..... It loads the new character body and such, but the camera still doesn't focus on the player.
Report Abuse
Darkggod0 is not online. Darkggod0
Joined: 08 Jan 2013
Total Posts: 2946
10 Aug 2015 08:07 PM
"I'm using local scripts"

Where are you putting them because it has to go in the players Backpack, or PlayerGui for it to work


~Darkggod~ - Glory To Vaktovia -
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
10 Aug 2015 08:08 PM
or charactr
Report Abuse
axelvts is not online. axelvts
Joined: 27 Apr 2008
Total Posts: 3029
10 Aug 2015 08:13 PM
local cam = workspace.CurrentCamera

cam.CameraType = 'Follow'
cam.CameraSubject = script.parent.Humanoid


This into the new character- but it may be wrong, I dunno.
Report Abuse
axelvts is not online. axelvts
Joined: 27 Apr 2008
Total Posts: 3029
10 Aug 2015 08:32 PM
Anyone gonna help me out???
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
10 Aug 2015 08:39 PM
Do this as follows:

Workspace
--Script
-->Local script (goes inside script)

Script code:
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
script.LocalScript:clone().Parent = character
end)
end)

Local script code:


game.Players.PlayerAdded:connect(function(player)
script.LocalScript:clone().Parent = player.CharacterAdded:wait()

end)
local cam = workspace.CurrentCamera
cam.CameraType = Enum.CameraType.Scriptable
cam.CoordinateFrame = CFrame.new(36,17.5,82) -- put whatever you want for CFrame
Report Abuse
axelvts is not online. axelvts
Joined: 27 Apr 2008
Total Posts: 3029
11 Aug 2015 04:56 PM
This still isn't working out for me- could someone please give me their Skype so we could talk there? You can just PM me to not make it public.
Report Abuse
axelvts is not online. axelvts
Joined: 27 Apr 2008
Total Posts: 3029
11 Aug 2015 05:02 PM
Not even manually changing the Camera works.....
Report Abuse
axelvts is not online. axelvts
Joined: 27 Apr 2008
Total Posts: 3029
11 Aug 2015 05:15 PM
I am sorry, but- *Bump*
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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