#Commands
1 messages · Page 1 of 1 (latest)
return function(Vargs)
local server, service = Vargs.Server, Vargs.Service
server.Commands.spawnthing = {
Prefix = server.Settings.Prefix;
Commands = {"thecommandname"};
Args = {};
Description = "command for wild";
Hidden = false;
Fun = false;
AdminLevel = "Admins";
Function = function(plr,args)
game.Workspace:WaitForChild('Parts').thepart.Transparency=1
game.Workspace:WaitForChild('Parts').thepart.CanCollide=false
end
}
server.Commands.unspawnthing = {
Prefix = server.Settings.Prefix;
Commands = {"theothercommandname"};
Args = {};
Description = "command for wild";
Hidden = false;
Fun = false;
AdminLevel = "Admins";
Function = function(plr,args)
game.Workspace:WaitForChild('Parts').thepart.Transparency=0
game.Workspace:WaitForChild('Parts').thepart.CanCollide=true
end
}
end
Something like that
Name of plugin should be Server-Spawn Or Server: Spawn
Thank you so much
No Problem.
But like now the name on game.workspace:waitforchild(„Parts“) should i rename it to the part i want or? / and .thepart. Should i rename it too?
A
So i should create a folder of it?
And .thepart. Should i reaname it too?
So like i insert the part and rename thge part and runn the command?
"spawnthing" - Command Name
"thecommandname" - Command Name that's displayed in Adonis, ex: (prefix)thecommandname
"game.Workspace:WaitForChild("Parts") - Folder "Parts" in Workspace
"thepart" - Part (name) in the Parts folder
So if your part is called "Part1" it would be Parts.Part1
Ok
but i wanna group the parts as a model but if i group it it comes a error how do i fix it?
?
Like?
so if i have many parts right?
Yes?
and i want to group them as model
Ah
so i dont have to write every single part
but its says error every time i group it
aas model
one sec
game.Workspace:WaitForChild('Parts').Part1.Transparency=1 game.Workspace:WaitForChild('Parts').Part1.CanCollide=false
game.Workspace:WaitForChild('Parts').Part2.Transparency=1
game.Workspace:WaitForChild('Parts').Part2.CanCollide=false
game.Workspace:WaitForChild('Parts').Part3.Transparency=1
game.Workspace:WaitForChild('Parts').Part3.CanCollide=false
game.Workspace:WaitForChild('Parts').Part4.Transparency=1
game.Workspace:WaitForChild('Parts').Part4.CanCollide=false
game.Workspace:WaitForChild('Parts').Part5.Transparency=1
game.Workspace:WaitForChild('Parts').Part5.CanCollide=false
game.Workspace:WaitForChild('Parts').Part6.Transparency=1
game.Workspace:WaitForChild('Parts').Part6.CanCollide=false
it would look like this
it would be easier to do as model
Are all of them going to be called "Part"?
yea
return function(Vargs)
local server, service = Vargs.Server, Vargs.Service
server.Commands.spawnthing = {
Prefix = server.Settings.Prefix;
Commands = {"thecommandname"};
Args = {};
Description = "command for wild";
Hidden = false;
Fun = false;
AdminLevel = "Admins";
Function = function(plr,args)
for i, v in pairs(game.Workspace:WaitForChild("Parts"):GetChildren()) do
v.Transparency = 0
v.CanCollide = true
end
end
}
server.Commands.unspawnthing = {
Prefix = server.Settings.Prefix;
Commands = {"theothercommandname"};
Args = {};
Description = "command for wild";
Hidden = false;
Fun = false;
AdminLevel = "Admins";
Function = function(plr,args)
for i, v in pairs(game.Workspace:WaitForChild("Parts"):GetChildren()) do
v.Transparency = 1
v.CanCollide = false
end
end
}
end
try that
alr
The "Parts" should be a Model
The name of the parts can be anything, since it uses :GetChildren()
It doesn't matter if all of them are named "Part(num)" or "Part"
Ok thanks it worked
yea
how do i do like if you join the game and a notification pops up?
thats my last one
@tawny wigeon sorry for the ping if i annoy you right now
There should be something in Adonis called "OnJoin"
settings.OnJoin = {":notify all MessageHere"}
Oh ok
OnJoin ignores admin level, meaning whenever someone joins regardless of level, it will run that command
yea but on the default one not on aero
uh
if you dont know its fine
I don't, but im sure others do
what gui?
Ok