Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why won't this work?

script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Parent.Frame1.Visible = true
script.Parent.Parent.Parent.Frame1.TextLabel.Script.Disabled = true
a = Instance.new("ObjectValue")
a.Name = DamageTrue
a.Parent = game.Workspace
script.Parent.Parent:Destroy()
end)

1 answer

✓ Accepted answer

Your problem is that Name is a string value. Therefore, you must set it with a string.

a.Name = "DamageTrue"

1 comment

0

LOL! That's why! My problem...

This discussion is preserved as it was. New answers, comments, and votes are closed.