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 » Scripters
Home Search
 

Re: Camera not changing back

Previous Thread :: Next Thread 
DJumble is online. DJumble
Joined: 28 Dec 2015
Total Posts: 440
12 Sep 2016 12:39 PM
Script:

function onClicked(plr)
wait()
script.Parent.CFrame = CFrame.new(993.12, -0.4, 37.6)
wait()
script.Parent.CFrame = CFrame.new(993.12, 0.2, 36.6)
wait()
script.Parent.CFrame = CFrame.new(993.12, 0.8, 35.6)
wait()
script.Parent.CFrame = CFrame.new(993.12, 1.4, 34.6)
wait()
script.Parent.CFrame = CFrame.new(993.12, 1.8, 33.6)
wait()
script.Parent.CFrame = CFrame.new(993.12, 2.2, 32.6)
wait()
script.Parent.CFrame = CFrame.new(993.12, 2.4, 31.6)
wait()
script.Parent.CFrame = CFrame.new(993.12, 2.2, 30.6)
wait()
script.Parent.CFrame = CFrame.new(993.12, 1.8, 29.6)
wait()
script.Parent.Parent.Pokemon:Destroy()
script.Parent.ParticleEmitter.Enabled = true
wait(5)
script.Parent.ParticleEmitter.Enabled = false
local player = game.Players[""..plr.Name]
player.PlayerGui.Caught.Caught.Visible = true
wait(5)
player.PlayerGui.Caught:Destroy()
game.Workspace.CurrentCamera.CameraSubject = plr.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
script.Parent.CFrame = CFrame.new(993.12, -1.2, 38.6)
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)


Report Abuse
FlamedSkull is not online. FlamedSkull
Joined: 23 May 2009
Total Posts: 1379
12 Sep 2016 12:56 PM
What are you trying to do...


Report Abuse
DJumble is online. DJumble
Joined: 28 Dec 2015
Total Posts: 440
12 Sep 2016 01:01 PM
after the pokeball catches a pokemon it says caught, and then its supposed to change the camera back, but it only works in studio


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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