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
 

Re: THANK YOU for helping -.-

Previous Thread :: Next Thread 
Quna is not online. 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 is not online. 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 is not online. 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
HilariousDwarf is not online. HilariousDwarf
Joined: 20 Aug 2010
Total Posts: 2020
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 is not online. 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
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