This is what i had
m = Instance.new("Message")
m.Text = "hello"
This is what i had
m = Instance.new("Message")
m.Text = "hello"
You need to parent your newly created instance(:
You can do this with the second argument of the Instance.new function, which is the parent the created instance will go into.
--This would make the message go into workspace.
m = Instance.new("Message",workspace)
m.Text = "hello"
Alternatively, you can set the Parent property of the m to workspace
m = Instance.new('Message')
m.Text = 'Hello'
m.Parent = workspace
You can use Instance.new To make new parts,messages,scripts,etc. You can set parent to send to the root thats a part thats the propety belongs to workspace and to itself.
Heres a script: Problem:You want to make a part thats transpeceny is 0.5 and you want to make it propety of workspace.
Part = Instance.new("Part",Workspace)
Part.Transpency = 0.5
Part.Parent = Workspace
end
Now your happy?This is the basics of scripting in roblox.Use it.Its FREAKING important.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
P.S Sorry of my english