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

Can somebody help with this script?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

i am trying to make a script that when you click on a button it makes a decal pop up on a part. I have started it but i can't think of the rest and how it will work.Thanks!

local screen = game.workspace.screen
local button = game.workspace.button

function onClick
0
I answered this before, where is my answer? :( Im_Kritz 334 — 9y

1 answer

Log in to vote
0
Answered by
Im_Kritz 334 Moderation Voter
9 years ago

Don't delete my answer this time man. :(

What this code does is, on click the button creates a decal and puts it on the Screen.

local screen = workspace.screen
local button = workspace.button
local ClickD = Instance.new('ClickDetector', button)

ClickD.MouseClick:connect(function()
local Decal = Instance.new('Decal', screen)
end)
0
Thank you and I don't know what happened to you answer taylorjames112 0 — 9y
Ad

Answer this question