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: Why doesn't this work (No errors in output)?

Previous Thread :: Next Thread 
oyIj is not online. 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 is not online. 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
SinisterMemories is not online. SinisterMemories
Joined: 21 Mar 2013
Total Posts: 4892
29 May 2017 06:59 PM
not related but,

swear I just saw u on ot


#code print("oh no an errorz!")
Report Abuse
MidasTouched is not online. MidasTouched
Joined: 02 Dec 2016
Total Posts: 242
29 May 2017 07:00 PM
.RenderStepped not .Render
Report Abuse
Mr_Octree is not online. Mr_Octree
Joined: 19 May 2008
Total Posts: 333
29 May 2017 07:05 PM
^Fast learner
Report Abuse
oyIj is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. oyIj
Joined: 08 Jan 2012
Total Posts: 1938
29 May 2017 07:14 PM
Kk


#code print("LeAutism")
Report Abuse
oyIj is not online. 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
InedibleGames is not online. InedibleGames
Joined: 27 Apr 2014
Total Posts: 1140
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
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