Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I start this off?

Asked by 10 years ago

So I really need help with these types of scripts;

I want to make a group only door, right?

How would I start it off? I'm not requesting the whole script, but wouldn't it go something like

local group id = 0000

0
That would result in an Error, instead do [local groupid = 0000], for you can't use spaces between identifiers, if you don't know what an Identifier is, take 'groupid' for example, it identify's '0000' for short so you don't have to keep typing '0000' over and over again. TheeDeathCaster 2368 — 10y
0
By the way, welcome to Scripting Helpers! :D TheeDeathCaster 2368 — 10y

2 answers

Log in to vote
0
Answered by 10 years ago

May contain errors, I based this off of a VipDoorScript for a GamePassID when I was a noob.

01GroupID = --Place ID here
02Door = script.Parent -- Change this to the door (if needed)
03OpenTime = 1 -- Change how long you want the door open
04 
05--There used to be a kill script here where if the user was not in the group, it would execute them, but I removed it. If you would like it, PM me on ROBLOX.
06 
07 
08--Do not touch below--
09Serv = game:GetService("BadgeService")
10MServ = game:GetService("MarketplaceService")
11if not _G.Players then
12    _G.Players = {
13        [GroupID] = {};
14    }
15    print("Players Created")
View all 61 lines...

I hope it works. Like I mentioned above, it is based off of a VIP Shirt door, so it may not work accurately. Best of luck!

Ad
Log in to vote
-1
Answered by 10 years ago
01local groupid = 0000
02 
03script.Parent.Touched:connect(function(hit)
04if hit.Parent:FindFirstChild("Humanoid") ~= nil then
05if game.Players:GetPlayerFromCharacter(hit.Parent):IsInGroup(groupid) then
06script.Parent.CanCollide = false
07wait(1)
08script.Parent.CanCollide = true
09end
10end)

If doesn't work in script try in localscript.

0
This would error. You don't have enough ends. You have a function and 2 if statements, but you only have ends to cover one of the if statements and the function. Discern 1007 — 10y

Answer this question