So first off im a builder not a scripter so i’ve been having a hard time figuring this out, how would i make it so if i clicked on a part another part would then move. Ex. clicking a painting would move a rug. Please lmk i dont think its that hard i just dont have the time to learn coding right now
Either use a ClickDetector or ProximityPrompt, use their respective events and connect a function which would move another part in the code, simple.
i’ll look more into it thanks, i have just like almost no script knowledge
Then I recommend you to not start your journey by learning these complex stuffs first. You should start your scripting journey small by small before moving on to big and complex scripting.
i know i just cant focus on scripting bc i need to finish this showcase first thanks for the tips tho!
This is the most basic script i could write for you on how it would work
-- Simply add a click detector to the painting
local Painting: Part --workspace.Painting
local Rug: Part -- = workspace.Rug
local Clickdetector: ClickDetector -- Painting.ClickDetector
Clickdetector.MouseClick:Connect(function(playerWhoClicked)
Rug.Transparency = 1
Rug.CanCollide = false
task.wait(5)
Rug.Transparency = 0
Rug.CanCollide = true
end)
If you want something more advanced hit me up on discord Stylex#6742
thanks a lot omg! means a lot!
you are welcome did it work? If not let me know
i’ll let you know tomorrow! thanks again for the help