#I need help with a script

35 messages · Page 1 of 1 (latest)

lilac spear
#

I am a new developer and i got this script from Roblox ai i want to make it so when i press the text button a part will disappear
This is the script that i got

local button = script.Parent:FindFirstChild("PickUpMushroom")
local part = game.Workspace:FindFirstChild("Important Stuff")

if button and part then
button.MouseButton1Click:Connect(function()
part.Transparency = 1
part.CanCollide = false
end)
end

fathom nexus
#

where did you put this script

#

its not right i think

#

what is part

lilac spear
#

i put the script in billboard ui

lilac spear
round drum
#

Remove it in the script editor and in the workspace itself

lilac spear
#

huh

round drum
#

between the words

lilac spear
#

ok

toxic reefBOT
#

studio** You are now Level 1! **studio

lilac spear
#

i did

round drum
#

now see if it works

lilac spear
#

nope

round drum
#

errors?

toxic reefBOT
#

studio** You are now Level 1! **studio

lilac spear
#

idk

#

im new to developing

round drum
#

Check the output

#

Do you know what it is?

lilac spear
#

no

#

can we go in a call and i sceenshare

round drum
#

I recommend that you watch a roblox studio tutorial before trying to script

lilac spear
#

ok

#

so what does this line do?
local part = game.Workspace:FindFirstChild("ImportantStuff")

fathom nexus
#

it searches the workspace for something called ImportantStuff and assigns it to the variable name part

lilac spear
#

i got it to dissapear finnaly

#

but now i need to make it reappear afer 30 seconds withing 20 studs

#

this is what i have

#

ill play 100 robux in gift card if someone can help me

dawn ember
#

Or take the magnitude of the new pos