|
Just add it under,
Toucher.Parent.Humanoid.PlatformStand = true -- No escape for the driver!
and it should work. |
|
|
InsertService was recently changed so that you can only use models that you've created through the insert tool. |
|
|
Since you want "Anything", I'll give you something so here you go,
Teams = game.Teams:GetChildren()
TeamSelector = math.random[1, #Teams]
TeamChosen = Teams[TeamSelector]
game.Players.PlayerAdded:connect(function(Player)
Player.TeamColor = BrickColor.new(TeamChosen.TeamColor)
end) |
|
|
Once a player joins, it would basically just randomly select a team for them based on the available teams. |
|
|
Place this in something such as a TextButton,
script.Parent.MouseButton1Click:connect(function(Clicker)
Player = game.Players:FindFirstChild(Clicker.Name)
Clicker.TeamColor = BrickColor.new("TeamColorHere)
end) |
|
|
Insert a script into the TextButton and add that inside the script. |
|
|
Yes, that's the correct format, depending on the what "s" is, also,
you could use something such as
print(Part.Position)
and that would print the position. |
|
|
That wouldn't work as the "Hit" event is meant for explosions rather then just simple touching which the "Touched" event would use. |
|
|
Alternatively, you could rotate the hat in studio and get the Vector3 Rotation Value from it's properties and use that within the script. |
|
|
Remove the # because the value is a regular variable rather then a table. |
|
|
for _,v in pairs(game.Players:GetChildren()) do
if v.Character.Hat.ClassName == "Hat" then
Hat:Destroy()
end
end |
|
|
I think that should work without any problems. I personally don't use Vector3 properties very often myself. |
|
|
Show me the altered version of the script. |
|
|
Mouse = game.Players.LocalPlayer:GetMouse()
Mouse.KeyDown:connect(function(Key)
if Key:byte() == "47" then
--Code Here
end
end)
The code above would be the Right-Shift key. |
|
|
Anywhere based on your current script. |
|
|
Here's the special character key list with corresponding numbers,
http://wiki.roblox.com/index.php?title=List_of_special_characters
end. |
|
|
"you're" would be incorrect because it would be equal to "you are". |
|
|
Alright
Part = game.Workspace.Part
--We create a variable which now contains the value of a path leading directly to the brick named "Part" in Workspace.
Part.Touched:connect(function(Toucher) if Toucher.Parent and Toucher.Parent:FindFirstChild("Humanoid") then
Player = game.Players:FindFirstChild(Toucher.Parent.Name)
Player.TeamColor = BrickColor.new(TeamColorHere)
end
end)
--We used the .Touched:connect() event to create a brand new function, we then use if statements to check whether the part... |
|
|
Not a problem at all, if you're tired then it's understandable that you would make some errors, I'm tired as well actually. |
|
|
while true do
local text = script.Parent.Text
local talk = {
"robbery.",
"animal abuse.",
"murder."
}
text = ""script.Parent.Parent.Parent.Parent.Name", you have been accused of talk[math.random(1,#talk)]
wait(3)
text = "This court finds you GUILTY of your crime."
wait(3)
text = "You are sentenced to 3 months at Springcreek Correctional Facility."
wait(3)
text = "That may not a 'long' time, but it will be a HARD time. You'll be lucky if you survive."
wait(3)
script.Parent.Visible = false
script.... |
|
|
No, It will randomly choose one of the strings from the table based on your script, try using it and tell us if it works. |
|
|
for _,v in pairs(game.Workspace:GetChildren()) do
if v.Name == "Part" then
v.BrickColor = BrickColor.new("Magenta")
end
end
--What I basically did was loop through the children of workspace using a generic for loop to get the children and then I used .Name to determine the name of the child. |
|
|
while true do
local text = script.Parent.Text
local talk = {
"1.",
"2.",
"3."
}
text = script.Parent.Parent.Parent.Parent.Name = you have been accused of talk[math.random(1,#talk)]
wait(3)
text = "This court finds you (filter problem :P) of your actions."
wait(3)
text = "You are sentenced to 3 months at Springcreek (filter problem :P) Facility."
wait(3)
text = "That may not a 'long' time, but it will be a (filter problem :P). You'll be lucky if you (filter problem :P)"
wait(3)
script.Parent.Visi... |
|
|
Sorry, made an error,
while true do
local text = script.Parent.Text
local talk = {
"1.",
"2.",
"3."
}
text = script.Parent.Parent.Parent.Parent.Name = "you have been accused of".. talk[math.random(1,#talk)]
wait(3)
text = "This court finds you (filter problem :P) of your actions."
wait(3)
text = "You are sentenced to 3 months at Springcreek (filter problem :P) Facility."
wait(3)
text = "That may not a 'long' time, but it will be a (filter problem :P). You'll be lucky if you (filter problem :P)"
... |
|
|
Now I see,
while true do
local text = script.Parent.Text
local talk = {
"1.",
"2.",
"3."
}
text = script.Parent.Parent.Parent.Parent.Name.."you have been accused of".. talk[math.random(1,#talk)]
wait(3)
text = "This court finds you (filter problem :P) of your actions."
wait(3)
text = "You are sentenced to 3 months at Springcreek (filter problem :P) Facility."
wait(3)
text = "That may not a 'long' time, but it will be a (filter problem :P). You'll be lucky if you (filter problem :P)"
wait(3)
scri... |
|