Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
|
| 30 Nov 2012 10:55 PM |
game.Players.PlayerAdded:connect(function(player) script.LocalScript:clone().Parent = player.CharacterAdded:wait() end)
In Local:
local camera=workspace.CurrentCamera camera.CameraSubject = Workspace.Part1 camera.CameraType = "Attach" end
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid game.Workspace.CurrentCamera.CameraType = "Custom"
Camera Manipulation yay |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2012 11:08 PM |
game.Players.PlayerAdded:connect(function(player) script.LocalScript:clone().Parent = player.CharacterAdded:wait() end) Nu. local Orig = script.LocalScript:clone() --Cause of that weird LS glitch game:service("Players").PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) coroutine.wrap(function() repeat wait() until Character:findFirstChild("Head") ~= nil local Derp = Orig:clone() Derp.Parent = Character.Head end)() end) end) |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2012 11:12 PM |
| Pretty sure that LocalScripts don't work inside the Character, since the Character isn't local to your client. Just put it in the Player and wait for the character to load before doing anything. |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2012 11:45 PM |
| @crazy, then explain why the Animation localscript works in your character. |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2012 11:52 PM |
| my mistake, apparently it does work in the character. i haven't been on this site in a while, so i forgot a few things. sorry :) |
|
|
| Report Abuse |
|
|