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: my cutscene script -Needs help-

Previous Thread :: Next Thread 
Epicken is not online. 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 is not online. 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 is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
07 Aug 2011 03:05 PM
What do you mean by 'suddenly ends'?
Report Abuse
Epicken is not online. 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 is not online. Epicken
Joined: 04 Aug 2011
Total Posts: 13
08 Aug 2011 05:49 AM
so could you fix it?
Report Abuse
RoflBread is not online. 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 is not online. 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 is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
08 Aug 2011 07:26 AM
Any luck?
Report Abuse
denty315 is not online. 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 is not online. 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
BlizzardWizzard101 is not online. BlizzardWizzard101
Joined: 26 Oct 2010
Total Posts: 5146
14 Aug 2011 10:12 AM
nope >:O
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
14 Aug 2011 10:22 AM
Dude, why have you dug this up?
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