|
| 05 Nov 2011 07:22 PM |
| In a game a player usually views its charater. I want a script that makes the player view something besides itself after a certaint amount of time. I also want it to be a loop (while true do.) Just make the wait time 90 seconds wait(90). Can you help? |
|
|
| Report Abuse |
|
|
| |
|
beeflord
|
  |
| Joined: 06 Jun 2009 |
| Total Posts: 3372 |
|
| |
|
|
| 05 Nov 2011 07:32 PM |
if u mean it looks at player for 90 seconds then try this i guess but it has to be in a local script in the player modle.
wait(90) game.Workspace.CurrentCamera.CameraCoardinate = CFrame.new(10,10,10) game.Workspace.CurrentCamera.CameraSubject = game.Workspace.Base game.Workspace.CurrentCamera.CameraType = "Watch"
this may work, i havn't scripted camera views in a while, and i may have spelled coardinate wrong. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2011 07:36 PM |
| I want it so after 90 second a player will be viewing a brick and not itself. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2011 07:38 PM |
wait(90) while wait() do game.Workspace.CurrentCamera.CameraType = "Custom" game.Workspace.CurrentCamera.CameraSubject = game.Workspace.Part end
|
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Nov 2011 07:51 PM |
It works, but is there a way that it looks at that brick for a certaint amout of time and looks at the player again?
|
|
|
| Report Abuse |
|
|
|
| 05 Nov 2011 07:52 PM |
wait(90) while wait() do game.Workspace.CurrentCamera.CameraType = "Custom" game.Workspace.CurrentCamera.CameraSubject = game.Workspace.Part wait(WANTED TIME) game.Workspace.CurrentCamera.CameraType = "Custom" game.Workspace.CurrentCamera.CameraSubject = script.Parent.Humanoid |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2011 07:52 PM |
| while true do isn't a loop |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2011 07:53 PM |
wait(90) num = 0 while num < 500 and wait() do game.Workspace.CurrentCamera.CameraType = "Custom" game.Workspace.CurrentCamera.CameraSubject = game.Workspace.Part end game.Workspace.CurrentCamera.CameraType = "Custom" game.Workspace.CurrentCamera.CameraSubject = script.Parent.Parent.Character.Humanoid
^ You might need to change how many parents |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2011 07:58 PM |
| Ok thanks. Last favor, (I am trying to make a roblox movie) how would I make Model move? |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2011 07:59 PM |
| Model:MoveTo(Vector3.new(X POSITION, Y POSITION, Z POSITION)) |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Nov 2011 08:07 PM |
| That doesnt work, I think it has to do something with Cframe. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2011 08:14 PM |
ch = script.Parent:GetChildren() ex = 0 --change ex,why, and zee to how far you want it to move why = 0 zee = 0
for i = 1, #ch do if ch[i]:isA("BasePart") then ch[i].CFrame = CFrame.new(ch[i].Position.X,ch[i].Position.Y,ch[i].Position.Z) + Vector3.new(ex,why,zee) end end
I have no idea if this works, I didn't test it, and I never will! >:D |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2011 08:29 PM |
| Umm, what exactly would i change? |
|
|
| Report Abuse |
|
|