Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why won't this work?

Asked by 10 years ago
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

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

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

a.Name = "DamageTrue"
0
LOL! That's why! My problem... EzraNehemiah_TF2 3552 — 10y
Ad

Answer this question