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 shaking script

Previous Thread :: Next Thread 
deathrange07 is not online. deathrange07
Joined: 19 Jan 2008
Total Posts: 62674
05 Apr 2016 05:56 PM
I'm trying to get the camera to shake after a variable is changed to a certain value. it is located within both the starterpack and startergui.

---v script v---

HomeGoal = workspace.Variables.HomeGH
local camera = game.Workspace.CurrentCamera
local c = 0.5

HomeGoal.Changed:connect(function()
if (game.Workspace.Variables.HomeGH.Value == 1) then
for i = 1,29 do
wait()
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(c,c,0)
wait()
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,-c*2,0)
wait()
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(-c,c,0)
c = c / 1.5
end
end
end)

"Light travels faster than sound. This is why some people appear bright until they speak." - Unknown ʕ •ᴥ•ʔ
Report Abuse
deathrange07 is not online. deathrange07
Joined: 19 Jan 2008
Total Posts: 62674
05 Apr 2016 07:58 PM
b

"Light travels faster than sound. This is why some people appear bright until they speak." - Unknown ʕ •ᴥ•ʔ
Report Abuse
deathrange07 is not online. deathrange07
Joined: 19 Jan 2008
Total Posts: 62674
06 Apr 2016 10:15 PM
b2

"Light travels faster than sound. This is why some people appear bright until they speak." - Unknown ʕ •ᴥ•ʔ
Report Abuse
DayxDreams is not online. DayxDreams
Joined: 08 Jan 2015
Total Posts: 443
06 Apr 2016 10:16 PM
why are you bumping when you're on the front page




"why are you posting if you don't want to help"
because i was curious



does not compute
Report Abuse
deathrange07 is not online. deathrange07
Joined: 19 Jan 2008
Total Posts: 62674
06 Apr 2016 10:23 PM
i just bumped it to the front page with that post? if you could read the dates you'd notice that the last post was yesterday...

"Light travels faster than sound. This is why some people appear bright until they speak." - Unknown ʕ •ᴥ•ʔ
Report Abuse
DayxDreams is not online. DayxDreams
Joined: 08 Jan 2015
Total Posts: 443
06 Apr 2016 10:30 PM
i can read it tho
i just didn't
meany ):



here
let me put something random that personally bugs me
how long is your wait() for
idk


kgl



does not compute
Report Abuse
deathrange07 is not online. deathrange07
Joined: 19 Jan 2008
Total Posts: 62674
07 Apr 2016 06:08 AM
b3

"Light travels faster than sound. This is why some people appear bright until they speak." - Unknown ʕ •ᴥ•ʔ
Report Abuse
4BJ is not online. 4BJ
Joined: 18 Jun 2014
Total Posts: 215
07 Apr 2016 08:10 AM
Try this:
camera.CoordinateFrame = camera.CoordinateFrame + CFrame.new(c,c,0)

In general the script is fine and should work?


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