I am a noob sorry I'm trying to change the properties of some parts within a function:
local function destroy script.Parent.Parts.Part1.Anchored = false end
It underlines the first period in red when I write it and says "void destroy(with the code that I wrote)"
Okay, it solved the problem with the function, and now I'm trying to type an event after the function to trigger the function, but it underlines it in red. Do you know how to fix this?
local function destroy() parts.Anchored = false end script.Parent.InvisibleBlock:Touched:Connect
in the output, it says: "expected '(,' '{' or <string> but got ':' "
add parenthesis next to destroy
local function destroy() script.Parent.Parts.Part1.Anchored = false end
Edit here is how you would do the second part of your problem: script.Parent.InvisibleBlock:Touched:Connect(destroy)
If you want to learn a bit more about functions, you can check out this article: https://developer.roblox.com/en-us/articles/Function