Basically when you click a button it saves your name to a String Value but it doesn't
local canspawn = script.Parent.CanSpawn script.Parent.ClickDetector.MouseClick:connect(function(clicked) if canspawn.Value == true then local newrocket = game.ReplicatedStorage["Suicide Rocket"]:Clone() newrocket.Parent = game.Workspace newrocket:MoveTo(Vector3.new(-11.289, 1.092, 4.096)) newrocket.Name.Value = clicked canspawn.Value = false end end)
The error is: Workspace.Spawn A Rocket!.Head.Spawner:8: attempt to index field 'Name' (a string value)
You're trying to access a string value's non-existing string value.
newrocket.Name.Value
Names don't have values or properties. They're just strings. If you only want to access a path to the name just remove .Value
. Otherwise, take off .Name
.
If you want it to put the value as the player's name then set the .Value
not that incorrect way of accessing Value
.