fbrleudeJoin Date: 2008-07-15 Post Count: 10351 |
...this camera manipulation work?
newplayer = game.Players:playerFromCharacter(script.Parent.Parent)
newplayer.Torso.Anchored = true
wait(2)
while true do
dist=5
f=game.Workspace.Bob.Bob
cam=game.Workspace.CurrentCamera
cam.CameraType="Watch"
cam.CoordinateFrame=CFrame.new(f.CFrame.lookVector*dist+f.CFrame.p,f.CFrame.p)
cam.CameraSubject = game.Workspace.Bob.Bob
wait()
end |
|
fbrleudeJoin Date: 2008-07-15 Post Count: 10351 |
i asked in scripting helpers but they al went... "erm... too hard, it doesnt work because it is too hard" lol. |
|
mattchewyJoin Date: 2008-02-19 Post Count: 7300 |
Is it in a Local Script? |
|
|
"newplayer = game.Players:playerFromCharacter(script.Parent.Parent)
newplayer.Torso.Anchored = true "
What are you thinking? |
|
sncplay42Join Date: 2008-11-27 Post Count: 11891 |
:GetPlayerFromCharacter()
XD |
|
|
newplayer = game.Players:playerFromCharacter(script.Parent.Parent)
newplayer.Torso.Anchored = true
@sncplay42, playerFromCharacter() works.
The problem is, once he gets the player, he's trying to manipulate the Torso (in the players object?) |
|
sncplay42Join Date: 2008-11-27 Post Count: 11891 |
Oh yea... sorry X(
but Player.Torso is definitely a no-no. XD |
|
fbrleudeJoin Date: 2008-07-15 Post Count: 10351 |
newplayer = game.Players:findFirstChild(script.Parent.Parent)
newplayer.Torso.Anchored = true
that still doesnt work and that returns in the output:
Mon Jul 13 17:48:41 2009 - Unable to cast Table to bool
Mon Jul 13 17:48:41 2009 - Players.fbrleude.Backpack.LocalScript, line 1
Mon Jul 13 17:48:41 2009 - stack end
and yes this script is local and in the players backpack. |
|
fbrleudeJoin Date: 2008-07-15 Post Count: 10351 |
Oh Noes i miised at Character on the second line nvm. |
|
sncplay42Join Date: 2008-11-27 Post Count: 11891 |
Wait, hold on, you're getting the player from the character, and then getting the character from the player?
Redundant much? |
|
|
lol, blobby...He did know the errors was the character... |
|
|
Oh, I thought he was saying :GetPlayerFromCharacter() because it was a script fix. You know, most people don't know :playerFromCharacter() unless they look at depreciated objects. =/ |
|
AnaminusTop 100 PosterJoin Date: 2006-11-29 Post Count: 5945 |
I see you're asking for help. Try Scripting Helpers. |
|