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

Any ideas for this creation I made like what I should make with it?

Asked by
parkgu -7
6 years ago

https://www.roblox.com/games/1316365284/Minefield-IDEA-PHASE

1 answer

Log in to vote
0
Answered by 6 years ago

You should make it onTouch and THEN make it red... then maybe make them smaller, and invisible. You could make them come visible again when you touch it.

debounce = false
local function onTouch(Object)
    local mine = script.Parent -- assuming you inserted the script in the mine
    if (debounce ~= false) then return end

    debounce = true     
    local char = Object.Parent:FindFirstChild("Humanoid")
        if (char ~= nil) then
            local play = game.Players:GetPlayerFromCharacter(Object.Parent)
            if (play ~= nil) then

                mine.Transparency = 0
                mine.BrickColor = BrickColor.new("Really red")
                wait(1)
                -- insert explode script you have in your mines already

            end 
        end
        debounce = false
end

script.Parent.Touched:connect(onTouch)

Good job! Good luck!

0
Thanks but my script isn't in the brick. That one makes it explode non-stop. parkgu -7 — 6y
0
So you could make it in the brick and do the 'explode' on a lower level. Can you give me the explode script? Ozanistheman 2 — 6y
Ad

Answer this question