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: Simple script help, please.

Previous Thread :: Next Thread 
latedownload is online. latedownload
Joined: 05 Mar 2010
Total Posts: 2873
04 Jul 2016 09:41 PM
A click door I need to make accessible to only people that are in a certain group.

w = script.Parent.Parent.Parent.Doors.Door1
d = script.Parent.Parent.Parent.Doors.Door2
f = script.Parent.Parent.Parent.Doors.Door3

function onClicked (mouse)

if script.Parent.Moving.Value == 1 then
script.Parent.Moving.Value = 2

for r = 1,50 do
wait()
for r,p in pairs(w:GetChildren()) do if (p.className == "Part" or "Wedge" or "Truss" or "Seat") then p.CFrame = p.CFrame - Vector3.new(-.1,-.1,0) end end
for r,p in pairs(d:GetChildren()) do if (p.className == "Part" or "Wedge" or "Truss" or "Seat") then p.CFrame = p.CFrame - Vector3.new(.1,-.1,0) end end
for r,p in pairs(f:GetChildren()) do if (p.className == "Part" or "Wedge" or "Truss" or "Seat") then p.CFrame = p.CFrame - Vector3.new(0,.2,0) end end

end

wait(5)

for r = 1,50 do
wait()
for r,p in pairs(w:GetChildren()) do if (p.className == "Part" or "Wedge" or "Truss" or "Seat") then p.CFrame = p.CFrame - Vector3.new(.1,.1,0) end end
for r,p in pairs(d:GetChildren()) do if (p.className == "Part" or "Wedge" or "Truss" or "Seat") then p.CFrame = p.CFrame - Vector3.new(-.1,.1,0) end end
for r,p in pairs(f:GetChildren()) do if (p.className == "Part" or "Wedge" or "Truss" or "Seat") then p.CFrame = p.CFrame - Vector3.new(0,-.2,0) end end

end
script.Parent.Moving.Value = 1

else

if script.Parent.Moving.Value == 2 then
print("Patience is a virtue")



end
end

end
script.Parent.ClickDetector.MouseClick:connect(onClicked)





Report Abuse
latedownload is online. latedownload
Joined: 05 Mar 2010
Total Posts: 2873
04 Jul 2016 09:49 PM
b1


Report Abuse
latedownload is online. latedownload
Joined: 05 Mar 2010
Total Posts: 2873
04 Jul 2016 09:53 PM
b2


Report Abuse
latedownload is online. latedownload
Joined: 05 Mar 2010
Total Posts: 2873
04 Jul 2016 09:54 PM
b3


Report Abuse
latedownload is online. latedownload
Joined: 05 Mar 2010
Total Posts: 2873
04 Jul 2016 10:17 PM
b4


Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
04 Jul 2016 10:59 PM
The only fool-proof way to do this would be with FE and client-sided part properties.


"Tell me and I forget. Teach me and I remember. Involve me and I learn." - Benjamin Franklin
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