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)
Your problem is that Name is a string value. Therefore, you must set it with a string.
a.Name = "DamageTrue"