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 5 years ago
01Sun = "TanjiroSword"
02Thunder = "Thunder"
03Water = "Water"
04 
05function boop(Player)
06    if not Player.Backpack:FindFirstChild(Sun) then
07        local Tool = game.ServerStorage[Sun]:clone()
08        Tool.Parent = Player.Backpack
09   if workspace.Lightning or Water then
10    workspace.Lightning.ClickDetector:Destroy()
11    workspace.Water.ClickDetector:Destroy()
12 
13 
14 
15end
16 
17    end
18        end
19 
20script.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 — 5y
0
what do i do to click the players the water and thunder TaTzuto12 1 — 5y
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 — 5y
0
im trying to give players a one skill TaTzuto12 1 — 5y

Answer this question