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 » Scripting Helpers
Home Search
 

Help

Previous Thread :: Next Thread 
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
23 Dec 2012 01:39 AM
local camera = game.Workspace.CurrentCamera
--local partstoadd = {"Gate"}
local partstoadd = game.Lighting.Gate
local player = game.Players.LocalPlayer

for i = 1,#partstoadd do
local part = partstoadd[i]:clone()
if player.leaderstats.Level >= 10 then
part.Transparency = 1
part.Parent = camera
else
part.Transparency = 0
part.Parent = camera
end
end

It won't make it show when the player's level is not equal to 10. I can walk though the spot it is supposed to block low levels at.
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
23 Dec 2012 01:40 AM
This is local bricks btw.
Report Abuse
Tenal is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
23 Dec 2012 01:42 AM
Since you posted 'umad' on my thread, why would I bother helping you?
I see the problem by the way.
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
23 Dec 2012 01:44 AM
It was a joke man. I mean seriously, does anyone have some humor anymore? I always do that to people when they get a error and they laugh. It's nothing to take personal bruh.
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
23 Dec 2012 01:47 AM
Lol, the error is to obvious.
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
23 Dec 2012 01:47 AM
Bump.
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
23 Dec 2012 01:48 AM
Lol I SO see it man. Lol. I love making obvious mistakes lol.
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
23 Dec 2012 01:52 AM
This is right, right?

local camera = game.Workspace.CurrentCamera
local partstoadd = game.Lighting.Gate
local player = game.Players.LocalPlayer

for i = 1,#partstoadd do
local part = partstoadd:clone()
if player.leaderstats.Level >= 10 then
part.Transparency = 1
part.Parent = camera
else
part.Transparency = 0
part.Parent = camera
end
end
Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
23 Dec 2012 01:52 AM
Why don'ts you fire up Studio and test it real fast?
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
23 Dec 2012 01:53 AM
Just what I was going to say.
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
23 Dec 2012 01:54 AM
local camera = game.Workspace.CurrentCamera
local partstoadd = game.Lighting.Gate

game.Players.ChildAdded:connect(function(player)
local part = partstoadd:clone()
if player.leaderstats.Level >= 10 then
part.Transparency = 1
part.Parent = camera
else
part.Transparency = 0
part.Parent = camera
end
end)


Above is wrong script. So is this right? This is in local script.
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
23 Dec 2012 01:55 AM
Before you all start "lolol why don't you test it," guess what, I DID!!! How else would I say this doesn't work? Hmmm... MAGICKA!
Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
23 Dec 2012 01:59 AM
"This is right, right?"
"So this is right?"

You're asking us if you've fixed the error, implying that you haven't tested it yourself.

What I would suggest doing is to set up status checks throughout the script (A simple 'print("check01")' would do.) to figure out where it's breaking and go from there.

You could also open the http://wiki.roblox.com/index.php/Output window, and see what error you're getting.
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
23 Dec 2012 01:59 AM
Now, since that test run didn't work, here's the new script.

local camera = game.Workspace.CurrentCamera
local partstoadd = game.Lighting.Gate

game.Players.ChildAdded:connect(function(player)
local part = partstoadd:clone()

while true do
if player.leaderstats.Level >= 10 then
part.Transparency = 1
part.Parent = camera
else
part.Transparency = 0
part.Parent = camera
end
end
end)
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
23 Dec 2012 02:00 AM
adark, if you looked at the post after that quote, you would see I ACTUALLY TESTED IT. If I didn't I wouldn't have changed it.
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
23 Dec 2012 02:01 AM
Sorry about that, I just get fired up easily. I:
Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
23 Dec 2012 02:04 AM
"If I didn't I wouldn't have changed it."

Good skill for you to have; not everybody posses it.

Be careful about how you say things. I'm not a good example because it's 2 A.M. and I'm hopped up on sleep deprivation, but your words are going to be taken literally. Asking if something is correct when you've changed something implies that you haven't tested it yourself.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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