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

help me?problem with my script?(howcan i make it so a part becomes visible when you say .cake) [closed]

Asked by
worklok -24
6 years ago
Edited 6 years ago

i want it so if you say cake, a part that was following you the whole time become visible and unanchored?

my script doesn't seem to work..

local Prefix = "."
local head = script.Parent:WaitForChild("Head")





if msg:lower() == Prefix .. "cake" then
   head.Anchored = false
   head.Transparency = 0



script.Parent.Touched:connect(onTouched)
    local h = part.Parent:findFirstChild("Humanoid") 
    if h then
        h.Health = h.MaxHealth

            wait(2)
             game.Workspace.Cake:Destroy()
end
    end
end)

  end
 end)
end
0
which part of it does not work? The cake destroying? Also is there any errors you can check this by pressing f9 outlook1234567890 115 — 6y
0
the whole script doesnt even work worklok -24 — 6y

Closed as Not Constructive by Griffi0n, User#20388, Thundermaker300, and User#21908

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?