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

What am i doing wrong?

Asked by 10 years ago

ok so i have a clickdetector and a script inside a part. now i never renamed anything. so keep that in mind. so i made a screengui-frame and the frame is size (0,100 0.01 0) and everything else is defalt. inside the script of the part is this

start = 0.01
script.Parent.MouseButton1Down:connect(function()
start = start + 0.01
gui.Size = UDim2.new(0,100,start,0)
end)

now renember. i didnt name anything. or rename. i have a part on the baseplate. with a script and clickdetector. the script is above me. theres a screengui and a frame in startergui. do i name something between the part and the script? please help me with this

1 answer

Log in to vote
0
Answered by
Nifer2 174
10 years ago
start = 0.01
script.Parent.MouseButton1Down:connect(function()
start = start + 0.01
gui.Size = UDim2.new(0,100,start,0) -- Where did you get gui.Size from? Did you make a variable?
end)

You wrote "gui.Size" but you never defined a variable for gui.

0
what could the variable be? legoson7 70 — 10y
0
You would have to find the location of the GUI. Try finding the player and then the GUI somehow. Not sure how to do this. Sorry. Nifer2 174 — 10y
Ad

Answer this question