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

Rock dropper script for a minigame isn't working. Where is my error?

Asked by 4 years ago

So I was making a rock dropping script for when a player goes up the mountain, a rock will fall and maybe kill that player. When I was testing it, there was no error on my output but it didn't work. Is there any error on my script that I should fix? (Script Below)

Script:

01local rock = game.ReplicatedStorage.RockFaller
02 
03rock.Touched:Connect(function(hit)
04 
05    if hit.Parent:FindFirstChild("Humanoid") then
06 
07        hit.Parent.Humanoid.Health = 0
08 
09    end
10 
11    local temple = game.Workspace.DesertTemple
12 
13    temple.Touched:Connect(function(hit)
14 
15        if hit.Parent:FindFirstChild("Humanoid") then
View all 32 lines...
0
wait: so does the rock spawn? idk if it seems like it in this script so speedyfox66 237 — 4y
0
no the rock does not spawn FilipinoWrld 22 — 4y

Answer this question