My script wont do all of what I coded it to do, but I see no errors. Please help? I'd like an explanation why it wont work too, please.
script.Parent.Touched:connect(function() script.Parent.Transparency = 0.3 script.Parent.BrickColor = BrickColor.Random() wait(1) script.Parent.Size = Vector3.new("1, 1, 1") if script.Parent.Size == ("1, 1, 1") then wait(1) script.Parent.Size = Vector3.new("2, 2, 2") end end)
Vector3.new()
takes 3 numbers as arguments, not 1 string:
script.Parent.Touched:connect(function() script.Parent.Transparency = 0.3 script.Parent.BrickColor = BrickColor.Random() wait(1) script.Parent.Size = Vector3.new(1, 1, 1) if script.Parent.Size == Vector3.new(1, 1, 1) then wait(1) script.Parent.Size = Vector3.new(2, 2, 2) end end)
I didn't see your first question, but please use the Edit feature rather than repost in the future.