|
Yes, as long as it's a string. |
|
|
You could try using StringValue's to store the name of the LocalPlayer that used the weapon. |
|
|
Scripting is essentially telling the engine to perform a series of task following a pattern of logic. When you begin to understand and interpret this logic, you'll realize that some concepts are easier for you to understand then others will be if you really desire to learn,
http://wiki.roblox.com/index.php?title=AllTutorials
This link might be able to help you understand Rbx.Lua and Lua in general better. |
|
|
game.Workspace.Nations.Nation_1.Attack.Start.Value = workspace.Eh.Head.Position |
|
|
Have you tried using a "BrickColorValue" or do you specifically need a "StringValue"?. |
|
|
If you're referring to the position of a Part then an example would be something such as,
if game.Workspace.One.Position == game.Workspace.Two.Position then
print("Correct")
end |
|
|
Try using something such,
StringValue.Value = tostring(Part.BrickColor) |
|
|
Try using something such as,
Model:MoveTo(Vector3.new(X,Y,Z)) |
|
|
I would suggest using a for loop to check each brick individually then. |
|
|
As an example,
t.Text = bricks[i].Name
Would print the name of each "Part" in order. |
|
|
Or to explain more in-depth,
"bricks" would be a table since ":GetChildren()" returns the entire table.
bricks[i] would choose the position of the "Children" of the table in order. |
|
|
Take this line,
t = Instance.new("Message",game.Workspace)
Outside of the numerical for loop. |
|
|
Place that line outside of the loop. |
|
|
bricks = script.Parent:GetChildren()
t = Instance.new("Message",game.Workspace)
for i = 1,#bricks do
end
t.Text = bricks[i].Name
|
|
|
Oops, that would place it outside of the loops "scope",
bricks = script.Parent:GetChildren()
t = Instance.new("Message",game.Workspace)
for i = 1,#bricks do
t.Text = bricks[i].Name
end |
|
|
Try adding a wait() inside of the loop and inform me of the result. |
|
|
Alright just use something such as,
Message = Instance.new("Message",Workspace)
bricks = script.Parent:GetChildren()
Message.Text = bricks[1].Name..bricks[2].Name..bricks[3].Name |
|
|
An example would be something such as,
GUI.Size = UDim2.new(X,Y) |
|
|
The problem is that "firescript" was never defined within the script. |
|
|
The loop is creating a new Instance for each time it increases until it reaches the ending number because the Instance was defined within the loop's scope. |
|
|
Try using,
part.Position = mouse.Hit.p
Also, is it inside of a LocalScript?. |
|
|
Show us the script please. |
|
|
|
You could try using something such as,
if members[v.Name] ~= nil then
--More Code Here
end |
|
|
Where is the script located?. |
|