Quna
|
  |
| Joined: 15 Jan 2011 |
| Total Posts: 538 |
|
|
| 22 Jun 2012 10:50 AM |
When i post a thread without showing a script, you tell me to post a script, so you can fix it. When i post the script, you just ignored me completely. Help me with this vip door
local door = script.Parent function open() -- This function will open the door. door.CanCollide = false -- Make players able to walk through the door. for transparency = 0, 1, .1 do door.Transparency = transparency wait(.1) endend function close() -- This function will close the door. for transparency = 1, 0, -.1 do door.Transparency = transparency wait(.1) end door.CanCollide = true -- Make players unable to walk through the door. end -- This function returns the player a certain part belongs to. function get_player(part) --iterate over each player for _, player in ipairs (game.Players:GetPlayers()) do --if the part is within the player's character if part:IsDescendantOf(player.Character) then --return the player return player end endend door.Touched:connect(function(part) -- If it isn't a character that touched the door, then we ignore it. local player = get_player(part) if not player then return end local allow = ( player.Name == "MrDoomBringer" or player.Name == "JulienDethurens" or player.Name == "blocco" or player.Name == "NXTBoy" or player:IsInGroup(127081) and player:IsFriendsWith(game.CreatorId) or -- This demonstrates how you can use 'and' to combine two restrictions. game:GetService('BadgeService'):UserHasBadge(player.userId, 83742351) or game.CreatorId == player.userId ) if allow then open() delay(4, close) endend) |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 22 Jun 2012 10:52 AM |
| Dude, the only reason people don't help you with this is because we can barely read it. You need to know when to space stuff and when to indent. I mean, I know I don't(but I should) but I at least make my code clean line by line so people can actually see what I'm doing. Here it looks like a bunch of random words. |
|
|
| Report Abuse |
|
|
Quna
|
  |
| Joined: 15 Jan 2011 |
| Total Posts: 538 |
|
|
| 22 Jun 2012 10:56 AM |
| D SNBF7UWENFVUERWIBFUWEuv durvubresodn bvconiewnf vgujoewds vuoisdx vsufdbn uiocwdskzn jkvfcd bujefdnikvs fcd |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2012 10:58 AM |
D SNBF7UWENFVUERWIBFUWEuv durvubresodn bvconiewnf vgujoewds vuoisdx vsufdbn uiocwdskzn jkvfcd bujefdnikvs fcd
Workspace.Script:1: '=' expected near 'SNBF7UWENFVUERWIBFUWEuv' |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 22 Jun 2012 10:58 AM |
For that reason, I'm done.
I would look at this.
http://wiki.roblox.com/index.php/Writing_Clean_Code |
|
|
| Report Abuse |
|
|