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

How can i change sizes of Borders?

Asked by 9 years ago
a = game.Workspace.NewName.Value



hitherebuddy = script.Parent.Parent.Parent.Parent.Parent.Parent
Player = game.Players.LocalPlayer
function buy()
local Part = hitherebuddy.Part
Part.BrickColor = BrickColor.new ("Really black")
script.Parent.Parent[a].BorderSizePixel = 0
print "blue border is now 0"
workspace.NewName.Value = script.Parent.Name
script.Parent.BorderSizePixel = 3
end
script.Parent.MouseButton1Down:connect(buy)
a = game.Workspace.NewName.Value



hitherebuddy = script.Parent.Parent.Parent.Parent.Parent.Parent
Player = game.Players.LocalPlayer
function buy()
local Part = hitherebuddy.Part
Part.BrickColor = BrickColor.new ("Really blue")
script.Parent.Parent[a].BorderSizePixel = 0
print "black border is now 0"
workspace.NewName.Value = script.Parent.Name
script.Parent.BorderSizePixel = 3
end
script.Parent.MouseButton1Down:connect(buy)

When the black square is pressed the blue square looses it's border (border is set to 0) and NewName.Value becomes "Black" However when the blue square is pressed the black square does not loose it's border but the Value of NewName does become "Blue" I do not know why this happens and i need help.

0
the only thing i see is your buy functions aren't local. maybe try changing line 07 to "local function buy()" not being local could somehow be causing the problem. johnnygadget 50 — 9y

Answer this question