So I have been scripting quite a while now when I came across a problem, I cannot access a two lined name. Such as a weapon named Redcliff Sword. How would you access that simply like using
game.StarterPack.Redcliff Sword:clone()
Any help?
It's very simple.
game.StarterPack["Redcliff Sword"]:Clone() --Notice the lack of a period after 'StarterPack'
Or, alternatively, if you're not certain it exists:
game.StarterPack:FindFirstChild("Redcliff Sword"):Clone()
s = game.StarterPack["Redcliff Sword"]:clone() s.Parent = --Wherever you want to put it.