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

hi i need a touch event on my floor to go with my meteors?

Asked by 5 years ago
Edited 5 years ago

this is my code thingy

    local function UnAnchor()
        for _, v in pairs(script.Parent:GetChildren()) do
            if v.ClassName == "Part" then
                v.Anchored = false
            end
        end
    end

    script.Parent.Touched:Connect(function()
        print("Meteor was touched by player")
        UnAnchor()
    end)
0
please elaborate theking48989987 2147 — 5y
0
Not entirely sure what you're asking for? plasmascreen 143 — 5y
0
i need to make it so when the players touch the map the meteors unanchor ihatehackers321123 9 — 5y
0
What is the script's parent? Pojoto 329 — 5y
View all comments (4 more)
0
What is the script's parent? Pojoto 329 — 5y
0
how do i know that ihatehackers321123 9 — 5y
0
we do not know what the 'Map' is, and also, where is your script located? I was assuming in the last script I gave you which you pasted.. script.Parent is the map. greatneil80 2647 — 5y
0
Instead of :Connect(function() just do script.Parent.Touched:Connect(UnAnchor) if the script parent is a part or whatever it is you want ScrubSadmir 200 — 5y

Answer this question