oyIj
|
  |
| Joined: 08 Jan 2012 |
| Total Posts: 1938 |
|
|
| 29 May 2017 05:45 PM |
local cam = game.Workspace.CurrentCamera local Zindex = script.Zindex local Render = game:GetService("RunService").RenderStepped
function onAdd() if Zindex.Value == 1 then game.Render:connect(function() cam.CFrame = CFrame.new(cam.Position, game.Workspace.One) Zindex.Value = 2 end) elseif Zindex.Value == 2 then game.Render:connect(function() cam.CFrame = CFrame.new(cam.Position, game.Workspace.Two) Zindex.Value = 3 end) elseif Zindex.Value == 3 then game.Render:connect(function() cam.CFrame = CFrame.new(cam.Position, game.Workspace.Three) Zindex.Value = 4 end) end end game.Players.PlayerAdded:connect(onAdd)
r+://684378334 |
|
|
| Report Abuse |
|
|
oyIj
|
  |
| Joined: 08 Jan 2012 |
| Total Posts: 1938 |
|
|
| 29 May 2017 06:56 PM |
I really like it when I get replies
r+://684378334 |
|
|
| Report Abuse |
|
|
|
| 29 May 2017 06:59 PM |
not related but,
swear I just saw u on ot
#code print("oh no an errorz!") |
|
|
| Report Abuse |
|
|
|
| 29 May 2017 07:00 PM |
| .RenderStepped not .Render |
|
|
| Report Abuse |
|
|
Mr_Octree
|
  |
| Joined: 19 May 2008 |
| Total Posts: 333 |
|
| |
|
oyIj
|
  |
| Joined: 08 Jan 2012 |
| Total Posts: 1938 |
|
|
| 29 May 2017 07:07 PM |
@MidasTouched
Did u not look at the top lol
#code print("LeAutism") |
|
|
| Report Abuse |
|
|
oyIj
|
  |
| Joined: 08 Jan 2012 |
| Total Posts: 1938 |
|
|
| 29 May 2017 07:07 PM |
"local Render = game:GetService("RunService").RenderStepped"
#code print("LeAutism") |
|
|
| Report Abuse |
|
|
oyIj
|
  |
| Joined: 08 Jan 2012 |
| Total Posts: 1938 |
|
|
| 29 May 2017 07:08 PM |
@SinisterMemories
Yes, I was.
OT and scripters is my home
#code print("LeAutism") |
|
|
| Report Abuse |
|
|
Mr_Octree
|
  |
| Joined: 19 May 2008 |
| Total Posts: 333 |
|
|
| 29 May 2017 07:09 PM |
| Add in some print()s to help narrow down the problem. |
|
|
| Report Abuse |
|
|
oyIj
|
  |
| Joined: 08 Jan 2012 |
| Total Posts: 1938 |
|
| |
|
oyIj
|
  |
| Joined: 08 Jan 2012 |
| Total Posts: 1938 |
|
|
| 29 May 2017 07:15 PM |
Oh yeah and that script is inside this script so that it gets put in the right place, so maybe there is something wrong with this
function onPlayerEntered(player) repeat wait () until player.Character local new_script = script.LocalScript:clone() new_script.Parent = player.Character new_script.Disabled = false end
game.Players.PlayerAdded:connect(onPlayerEntered) onPlayerEntered(game.Players:WaitForChild("Player1"))
#code print("LeAutism") |
|
|
| Report Abuse |
|
|
|
| 29 May 2017 07:17 PM |
game.Players.PlayerAdded:connect(onPlayerEntered)
Why is this one needed here below onPlayerEntered(game.Players:WaitForChild("Player1"))
|
|
|
| Report Abuse |
|
|