Epicken
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 13 |
|
|
| 07 Aug 2011 02:53 PM |
hello, im making a wow rpg and i have this cutscene and the script is:
h = script.Parent:FindFirstChild("Humanoid") if h then p = Instance.new("Part", h.Parent) p.CFrame = CFrame.new(h.Parent.Torso.Position) p.Transparency = 1 p.CanCollide = false bv = Instance.new("BodyVelocity", p) bv.velocity = Vector3.new(10, 3, 8)
workspace.CurrentCamera.CameraSubject = p wait(10) bv.velocity = Vector3.new(-20, -6, -16) wait(5) workspace.CurrentCamera.CameraSubject = h p:Remove() script:Remove() end
im good with scripts (kind of) but not with velocity's so can someone make it so it zooms out a bit then slowly turns and zooms slowly back into you, because this script does that but suddenly ends when it turns around... Please help! |
|
|
| Report Abuse |
|
|
Epicken
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 13 |
|
|
| 07 Aug 2011 03:02 PM |
| I need this fixed soon, so could I please have some answers soon? |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 07 Aug 2011 03:05 PM |
| What do you mean by 'suddenly ends'? |
|
|
| Report Abuse |
|
|
Epicken
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 13 |
|
|
| 07 Aug 2011 03:50 PM |
| the end function is too soon, to delay it so it can come back to the camerasubject (you), because it turns around then the gui cuts out. |
|
|
| Report Abuse |
|
|
Epicken
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 13 |
|
| |
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 08 Aug 2011 05:52 AM |
| No one else seems to be bothered, ill have a go, but it will be different to yours, considering i don't have the vector3s to work with. |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 08 Aug 2011 06:09 AM |
Can't test this so you're on your own there.
h = game.Players.LocalPlayer.Character.Humanoid if h then p = Instance.new("Part", h.Parent) p.CFrame = CFrame.new(h.Parent.Torso.Position) p.Transparency = 1 p.CanCollide = false bv = Instance.new("BodyVelocity", p) bg = Instance.new("BodyGyro", p) bv.velocity = Vector3.new(p.Position - game.Workspace.TurnPoint.Position) bg.cframe = game.Workspace.TurnPoint.CFrame
workspace.CurrentCamera.CameraSubject = p wait(3) bv.velocity = Vector3.new(h.Parent.Head.Position - p.Position) bg.cframe = h.Parent.Head.CFrame wait(5) workspace.CurrentCamera.CameraSubject = h p:Remove() script:Remove() end
I'm not to confident of it, tbh :L. You will need to create a part in the workspace named 'TurnPoint' which will act as a turn point, kinda' |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
| |
|
denty315
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 16937 |
|
|
| 08 Aug 2011 07:47 AM |
Simple, use a wait() before the camera and script are removed.
h = script.Parent:FindFirstChild("Humanoid") if h then p = Instance.new("Part", h.Parent) p.CFrame = CFrame.new(h.Parent.Torso.Position) p.Transparency = 1 p.CanCollide = false bv = Instance.new("BodyVelocity", p) bv.velocity = Vector3.new(10, 3, 8)
workspace.CurrentCamera.CameraSubject = p wait(10) bv.velocity = Vector3.new(-20, -6, -16) wait(5) workspace.CurrentCamera.CameraSubject = h wait(10) p:Remove() script:Remove() end
|
|
|
| Report Abuse |
|
|
Epicken
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 13 |
|
|
| 08 Aug 2011 08:10 AM |
thanks, both of you :D
problem solved - post closed. |
|
|
| Report Abuse |
|
|
| |
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 14 Aug 2011 10:22 AM |
| Dude, why have you dug this up? |
|
|
| Report Abuse |
|
|