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: Will this work?

Previous Thread :: Next Thread 
spearman2 is not online. spearman2
Joined: 28 May 2010
Total Posts: 2938
28 Aug 2012 03:46 PM
Group ID = 611536
p = game.Workspace.Part

function let through()
if game.Players:FindFirstChild("Humanoid") IsInGroup(611536) then
p.Transparency = 0.8
p.CanCollide = false
wait(1)
p.Transparency = 0
p.CanCollide = true
else
function onTouched(hit)
explosion = Instance.new("Explosion")
explosion.Radius = 12
explosion.BlastPressure = 1000
explosion.Position = script.Parent.Position
explosion.Parent = game.Workspace
script.Parent.Transparency = 0
connect:disconnect()
end

script.Parent.Touched:connect(let through)
script.Parent.Touched:connect(onTouched)

--This is my 1st script so I hope this works
--This is supposed to be a GROUP ONLY wall, if you're not in the group then you'll blow up.
-- So is this ok?
Report Abuse
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
28 Aug 2012 03:47 PM
why not you test it?
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
28 Aug 2012 03:50 PM
I'm telling You now There's Errors....
Report Abuse
spearman2 is not online. spearman2
Joined: 28 May 2010
Total Posts: 2938
28 Aug 2012 03:59 PM
Of course there's errors, it's always been like that for me. Ok what are these errors?

No I did not test them, I just got off my computer a while back.
Report Abuse
spearman2 is not online. spearman2
Joined: 28 May 2010
Total Posts: 2938
28 Aug 2012 04:16 PM
Bump.
Report Abuse
human is not online. human
Joined: 06 May 2007
Total Posts: 2765
28 Aug 2012 04:17 PM
I think this will work, put the script in the door

GroupID = 611536
h = script.Parent
script.Parent.Touched:connect(function(hit)
if hit.Parent == nil then return end
local plr = hit.Parent:findFirstChild("Humanoid")
local check = game.Players:findFirstChild(hit.Parent.Name)
if plr ~= nil then
if check:IsInGroup(GroupID) then
h.Transparency = 0.8
h.CanCollide = false
wait(1)
h.Transparency = 0
h.CanCollide = true
else
explosion = Instance.new("Explosion", h)
explosion.Radius = 12
explosion.BlastPressure = 1000
explosion.Position = h.Position
script.Parent.Transparency = 0
end
end
end)
Report Abuse
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
28 Aug 2012 04:17 PM
check the output.
Report Abuse
human is not online. human
Joined: 06 May 2007
Total Posts: 2765
28 Aug 2012 04:20 PM
*fix

---------------------
GroupID = 611536
h = script.Parent
script.Parent.Touched:connect(function(hit)
if hit.Parent == nil then return end
local plr = hit.Parent:findFirstChild("Humanoid")
local check = game.Players:findFirstChild(hit.Parent.Name)
if plr ~= nil then
if check:IsInGroup(GroupID) then
h.Transparency = 0.8
h.CanCollide = false
wait(1)
h.Transparency = 0
h.CanCollide = true
else
explosion = Instance.new("Explosion", plr.Torso)
explosion.BlastRadius = 12
explosion.BlastPressure = 1000
explosion.Position = plr.Torso.Position
script.Parent.Transparency = 0
end
end
end)
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