|
Well, assuming you already have a mesh/welded parts and you just want it to instantly disappear once you've activated the tool then,
script.Parent.Activated:connect(function()
script.Parent.Parent = nil
end) |
|
|
The direction that you would want the door to slide in, for instance,
Vector3.new(0,1,0)
The first 0 is the X axis
The first 1 is the Y axis
and the second and last number, which is zero, is the Z axis. |
|
|
Well, I would suggest using the information you've found that has helped you, compiling it together and then combining it to extend your range of ideas, then comparing your ideas to the ideas from the Roblox Wiki to see if there's a better alternative for that situation, if you think there is, work on developing your own alternatives and try to experiment to develop new methods to perform things that you have little to no problem doing the regular method you would use.
That's just a suggestion ... |
|
|
|
The problem indicates that the variable "PlayerWhoClicked" isn't defined. |
|
|
Player = game.Players.LocalPlayer
Player.PlayerGui.ScreenGui.TextButton.MouseButton1Click:connect(function()
print(Player.Name)
end)
Interestingly, when this was tested within a LocalScript within the StarterGui, it worked correctly, while this won't directly set a variable, although you could, it will enable you to clientsidedly detect changes. |
|
|
Well, you'll have to make a TextBox for each player. And you can use if statements to detect whether the TextBox actually has a player's name or not. |
|
|
|
Did you wait a few seconds for it to reappear?. |
|
|
Try anchoring the brick and inform me of the result. |
|
|
Try removing the first wait(). |
|
|
Yes, the "PlayerModel" is placed in workspace because the PlayerModel holds all of the limbs clothing data and the "Humanoid" and various other things,
anyway, try something like this,
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
Character.Humanoid.WalkSpeed = NumberHere
end)
end)
More information on these can be found here:
http://wiki.roblox.com/index.php?title=WalkSpeed_%28Property%29
http://wiki.roblox.com/index.php?title=PlayerAdded_%28... |
|
|
It's no problem, good to see that you resolved it. |
|
|
script.Parent.Touched:connect(function(Toucher)
if Toucher.Parent and Toucher.Parent:FindFirstChild("Humanoid") then
Player = game.Players:FindFirstChild(Toucher.Parent.Name)
end
end)
--This script assumes that it's parent is a "Part" |
|
|
Place this inside of a LocalScript and place the LocalScript in the starterpack,
Player = game.Players.LocalPlayer
if Player.TeamColor == BrickColor.new("Bright blue") then
print("Yes")
elseif Player.TeamColor == BrickColor.new("Bright red") then
print("No")
else
print("nil")
end |
|
|
Also, when you're checking the TeamColor of a team you have to use something like,
if Player.TeamColor == BrickColor.new("TeamColorHere") to check properly.
Additionally, the game didn't understand who "localp" is, I would suggest you read the article on loops and use game.Players:GetChildren() to get the players. |
|
|
Inform us of what's appearing in output. |
|
|
game.Workspace.EB.Touched:connect(function(GetHit)
amnt = 1
script.Parent.Touched:connect(function(part)
local h = part.Parent:findFirstChild("Humanoid")
if (h~=nil) then
local thisplr = game.Players:findFirstChild(h.Parent.Name)
if (thisplr~=nil) then
local stats = thisplr:findFirstChild("leaderstats")
if (stats~=nil) then
local score = stats:findFirstChild("Points")
if (score~=nil) then
score.Value = score.Value + amnt
script.Disabled = true
script.Parent.Transparency = 0.1
wait(0.05)
script.P... |
|
|
Stay calm, first insert a ClickDetector into the part you want to use to activate the lights, then add this.
for _,v in pairs(Workspace.LightBar:GetChildren()) do
if v.Name == "Light" then
v.BrickColor = BrickColor.new()
end
end
Modify this to work with your script. |
|
|
Create the script, then
ScriptClone = script:clone()
game.Workspace.ChildAdded:connect(function(Child)
if Child.ClassName == "Part" then
ScriptClone.Parent = v
end
end) |
|
|
function addNumbers (a,b)
return a + b
end
answer = addNumbers(2,2)
print("The answer is "..answer.."!")
|
|
|
Alright, tell me the name of the bricks and the models. |
|
|
By "Stacks up, do you mean one on top of the other or one covering another?. |
|
|
Modify it so that the new TextLabel is a child of the original one and change the Udim2.new() to move it down if it's a child of it. |
|
|
Nevermind, don't do that, change the ZIndex value. |
|