|
The first parameter of the function connected to the event, assuming you added one, would be the player that clicked it. |
|
|
#game.Teams.TeamNameHere
would be an example. |
|
|
Made a slight error on the other post,
#game.Teams.TeamNameHere:GetChildren()
Would retrieve the amount of children within the table. |
|
|
If you're trying to get it from game.Lighting, you need to specify the path otherwise the engine will consider "Lighting" as a undefined variable equal to nil. |
|
|
Explain the hierarchy of the script. |
|
|
It seems to be working correctly after testing it out, is the hierarchical order of the tool correctly setup?. |
|
|
You could use a loop to use something such as,
for _,v in pairs(game.Players:GetPlayers()) do
v.TeamColor = game.Teams.TeamNameHere.TeamColor
end |
|
|
The character model of the Player would go into Workspace, so you would use,
Workspace.LordOfWaffle.Head
:Remove() is a method, so to use it in this situation you would use,
Workspace.LordOfWaffle.Head:Remove()
|
|
|
It would only run once unless it the script was modified and it was placed within a loop. |
|
|
Workspace.PartNameGoesHere:Destroy() |
|
|
Transparency is a property, use something such as,
game.Workspace.Part.Transparency = 0 |
|
|
|
Referring to my other post. |
|
|
pPos = Vector3.new(pPos) + Vector3.new(0,1,0) |
|
|
Try using,
pPos = pPos + Vector3.new(0,1,0)
Inform us of the result. |
|
|
Hmm, try using this,
local part = script.Parent
pPos = part
while wait(.5) do
pPos.Position = pPos.Position + Vector3.new(0,1,0)
end |
|
|
"game.workspace" would work also. |
|
|
Alive = 0
while true do
for i,v in pairs(game.Players:GetChildren()) do
if v.TeamColor == game.Teams.Alive.TeamColor then
Alive = Alive + i
if Alive == 0 then
local h = Instance.new("Message")
h.Parent = Workspace
h.Text = "Everyone died!"
wait(10)
h:Remove()
end
end
end
Try using this. |
|
|
Try using the "Let's Make A Deal" subforum. |
|
|
|
Enough with starting arguments on every thread already. |
|
|
You could try something such as,
AudioTab = {SoundOne,SoundTwo}
while wait() do
if AudioTab[1].IsPlaying == false then
AudioTab[2]:Play()
end
end
You'll have to modify this however. |
|
|
math.random() requires parenthesis and parameters, an example would be,
math.random(1,10)
As for rotation, you would use Vector3.
An example would be,
game.Workspace.Part.Rotation = Vector3.new(math.random(),math.random(),math.random()) |
|
|
Could you show me how you modified the script?. |
|
|
script.Parent.Rotation =Vector3.new(math.random(MinimumNumberHere,MaximumNumberHere),math.random(MinimumNumberHere,MaximumNumberHere),math.random(MinimumNumberHere,MaximumNumberHere)) |
|