|
| 29 Nov 2012 01:57 PM |
i'm stuck at this please help
while true do
local q = Instance.new ("Hint", game.Workspace)
for i = 1,15 do q.Text = "Intermission: ".. 16-i .." " wait(1) end end
function shake() local camera = game.Workspace.CurrentCamera for i = 1,35 do wait() camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(2,0,0) wait() camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(-2,0,0) end end
while true do wait(.5) shake() end
|
|
|
| Report Abuse |
|
|
|
| 29 Nov 2012 02:05 PM |
| it doesn't start shaking thats the problem |
|
|
| Report Abuse |
|
|
zoomypie2
|
  |
| Joined: 25 Oct 2011 |
| Total Posts: 8050 |
|
|
| 29 Nov 2012 03:08 PM |
| "Shake" is not a function. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2012 03:12 PM |
I don't know what you are talking about zoomy, he declared the function a few lines up. Lol.
- thedestroyer115 |
|
|
| Report Abuse |
|
|
Monkey727
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 969 |
|
|
| 29 Nov 2012 03:12 PM |
Lol.
Possibly to do with the waits being too short? |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2012 03:13 PM |
local q = Instance.new ("Hint", game.Workspace)
for i = 1,15 do q.Text = "Intermission: ".. 16-i .." " wait(1) end end
function shake() local camera = game.Workspace.CurrentCamera for i = 1,35 do wait() camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(2,0,0) wait() camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(-2,0,0) end end
while true do wait(.5) shake() end
You for some reason put while true do at the top of your script.
- thedestroyer115
|
|
|
| Report Abuse |
|
|
|
| 29 Nov 2012 03:18 PM |
function inter() local q = Instance.new ("Hint", game.Workspace) for i = 1,15 do q.Text = "Intermission: ".. 16-i .." " wait(1) end q:Destroy() end
function shake() local camera = game.Workspace.CurrentCamera for i = 1,35 do wait() camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(2,0,0) wait() camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(-2,0,0) end end
while true do inter() wait(.5) shake() end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|