|
| 04 Mar 2014 05:16 PM |
local DZ = script.Parent.Parent.DraxoriamZ local cam = game.Workspace.CurrentCamera local Activated = false
script.Parent.MouseButton1Click:connect(function (mouse) if (DZ==true) then script.Parent.Parent.Parent.LocalScript.Disabled = true for i=1,202 do cam.CoordinateFrame = CFrame.new(0.1) wait(0.001) if i == 2400 then DZ = false script.Parent.Parent.Parent.LocalScript.Disabled = false Activated = true script.Parent.Visible = false while Activated do cam.CoordinateFrame = Cframe.new (21.2, 29, -4.6) wait() end end end end end)
What it should do here is, when you click the button, your camers moves to the right and this button disapears, but when i click the button, it doesnt work. |
|
|
| Report Abuse |
|
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 04 Mar 2014 05:20 PM |
| Set cam's CameraType to Scriptable. |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2014 05:23 PM |
| not working, it was on fixed though. And this gui is inside a Image button thats inside StarterGui |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 04 Mar 2014 05:26 PM |
Actually that isnt even close to the solution..
cam.CoordinateFrame = CFrame.new(0.1) -wat. |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Mar 2014 05:37 PM |
| Well this is a really advanced script |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 04 Mar 2014 05:38 PM |
This isnt that advanced
for i=1,202 do cam.CoordinateFrame = CFrame.new(0.1) --Why is there only 1 argument wait(0.001) if i == 2400 then --When will i ever equal 2400 |
|
|
| Report Abuse |
|
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
| |
|
|
| 04 Mar 2014 05:41 PM |
@2Above, oh thx for noticing another error @Above, no, this is to make the camera go right when you click the button |
|
|
| Report Abuse |
|
|
| |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 04 Mar 2014 05:44 PM |
| Get out and dont come back. |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2014 05:45 PM |
| @BL get out and learn actual scripting |
|
|
| Report Abuse |
|
|