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

Can you help me with these two questions?

Asked by 4 years ago

Question 1: How do I make a clickable GUI?

Question 2: How do I make said clickable GUI affect a part/union?

0
1)with a textbutton or an imagebutton aprilsfooled 29 — 4y
0
use event:FireServer() to fire a remote event and event.OnServerEvent(function()) to detect the event ProjectInfiniti 192 — 4y
0
You need to do research before you ask questions like these on scriptinghelpers. Learn the basics and hopefully you'll understand how lots of things work. But just coming on here and asking for us to tell you what to do/make a script is not going to teach you anything. AntiWorldliness 868 — 4y
0
LoveSpeaksOutTruth, that attitude wont teach you anything. BadPiggie411 47 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

make a event in replicated storage called buttonclicked or something

in your gui button


local repstorage = game.replicatedstorage local buttonevent = repstorage.FindFirstChild("buttonclicked") function buttonClicked() buttonevent:FireServer() end button.Activated:Connect(buttonClicked())

and then in your part

local repstorage = game.replicatedstorage
local buttonevent = repstorage.FindFirstChild("buttonclicked")

function changePart()
    part = script.Parent
    part.Transparency = 1
    part.Size = Vector3(1000,1000,1000)
    print("resized part")
end

buttonevent.OnServerEvent:Connect(changePart())

i havent actually tested this so if it works im a genius

0
It would be Vector3.new(1000,1000,1000) Shawnyg 4330 — 4y
0
when I put in the first script, button on the bottom had a red line is that supposed to be buttonclicked? BadPiggie411 47 — 4y
Ad

Answer this question