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