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

why players cant click the lightning and water when i click the sun?

Asked by 4 years ago
Sun = "TanjiroSword"
Thunder = "Thunder"
Water = "Water"

function boop(Player)
    if not Player.Backpack:FindFirstChild(Sun) then
        local Tool = game.ServerStorage[Sun]:clone()
        Tool.Parent = Player.Backpack
   if workspace.Lightning or Water then
    workspace.Lightning.ClickDetector:Destroy()
    workspace.Water.ClickDetector:Destroy()



end

    end
        end

script.Parent.ClickDetector.MouseClick:Connect(boop)
0
You're deleting the click detectors on line 10 and 11, without the click detector the item is no longer able to be clicked. Azuc 112 — 4y
0
what do i do to click the players the water and thunder TaTzuto12 1 — 4y
0
Explain to me a little bit what this script is supposed to be doing, right now I see it giving you an item and then destroying two click detectors, whats its purpose? Azuc 112 — 4y
0
im trying to give players a one skill TaTzuto12 1 — 4y

Answer this question