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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
| |
|
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
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 3029 |
|
|
| 10 Aug 2015 08:32 PM |
| Anyone gonna help me out??? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 3029 |
|
|
| 11 Aug 2015 05:02 PM |
| Not even manually changing the Camera works..... |
|
|
| Report Abuse |
|
|
axelvts
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 3029 |
|
| |
|