|
| 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 |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 23 Dec 2012 01:47 AM |
| Lol, the error is to obvious. |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Dec 2012 01:48 AM |
| Lol I SO see it man. Lol. I love making obvious mistakes lol. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 23 Dec 2012 01:53 AM |
| Just what I was going to say. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 23 Dec 2012 02:01 AM |
| Sorry about that, I just get fired up easily. I: |
|
|
| Report Abuse |
|
|
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 |
|
|