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)

5 comments
dude.... it is suppose to be either newrocket.Name or newrocket.Value
It's newrocket.Value not newrocket.Name.Value
I found out why it isn't working now. There is a string value in the clone called Name but the script is getting confused on which one to go by. But thank you all for your awnsers!
Why make a value in the world if you can just make a variable for the script?
Well I have two scripts that communicate with each other, if I had a variable, the other script wouldn't be able to read it.