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 » Scripting Helpers
Home Search
 

Re: Change player view

Previous Thread :: Next Thread 
borninggoku911 is not online. borninggoku911
Joined: 07 Jul 2010
Total Posts: 879
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
borninggoku911 is not online. borninggoku911
Joined: 07 Jul 2010
Total Posts: 879
05 Nov 2011 07:31 PM
bump?
Report Abuse
beeflord is not online. beeflord
Joined: 06 Jun 2009
Total Posts: 3372
05 Nov 2011 07:32 PM
No requests :o
Report Abuse
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
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
borninggoku911 is not online. borninggoku911
Joined: 07 Jul 2010
Total Posts: 879
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
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
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
borninggoku911 is not online. borninggoku911
Joined: 07 Jul 2010
Total Posts: 879
05 Nov 2011 07:39 PM
I'll try that. Thanks
Report Abuse
borninggoku911 is not online. borninggoku911
Joined: 07 Jul 2010
Total Posts: 879
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
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
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
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
05 Nov 2011 07:52 PM
while true do isn't a loop
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
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
borninggoku911 is not online. borninggoku911
Joined: 07 Jul 2010
Total Posts: 879
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
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
05 Nov 2011 07:59 PM
Model:MoveTo(Vector3.new(X POSITION, Y POSITION, Z POSITION))
Report Abuse
borninggoku911 is not online. borninggoku911
Joined: 07 Jul 2010
Total Posts: 879
05 Nov 2011 08:02 PM
*models
Report Abuse
borninggoku911 is not online. borninggoku911
Joined: 07 Jul 2010
Total Posts: 879
05 Nov 2011 08:07 PM
That doesnt work, I think it has to do something with Cframe.
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
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
borninggoku911 is not online. borninggoku911
Joined: 07 Jul 2010
Total Posts: 879
05 Nov 2011 08:29 PM
Umm, what exactly would i change?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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