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

[Unanswered] Script is not activating?

Asked by 9 years ago

Edited...

Okay, so apparently, the disabling works but for some reason, the script that is being enabled won't work. Here's the script.

player = game.Players.LocalPlayer
char = player.Character
mouse = player:GetMouse()

mouse.KeyDown:connect(function(key)
    key = key:lower()
    if key == "z" then
        local hole = Instance.new("Part", char)
        local holemesh = Instance.new("CylinderMesh", hole)
        hole.FormFactor = "Custom"
        hole.Anchored = true
        hole.CanCollide = false
        hole.BrickColor = BrickColor.new("Really black")
        local script = script.Script:Clone()
        script.Parent = hole
        script.Disabled = false
        char.Torso.Anchored = true
        for i = 1, 100 do
            hole.Size = Vector3.new(i, 0.2, i)
            hole.CFrame = char.Torso.CFrame * CFrame.new(0, -2.8, 0)
            wait(0.025)
        end
        game.Debris:AddItem(hole, 2)
        wait(0.025)
        char.Torso.Anchored = false
    end
end)

And if it matters, the damage script.

script.Parent.Touched:connect(function(toucher)
    local humanoid = toucher.Parent:FindFirstChild("Humanoid")
    if humanoid then
        if toucher.Parent.Name ~= script.Parent.Parent.Name then
            toucher.Parent.Torso.Anchored = true
            toucher.Parent.Torso.CanCollide = false
            toucher.Parent["Right Leg"].CanCollide = false
            toucher.Parent["Left Leg"].CanCollide = false
            for i = 0, 0.5, 0.1 do
                toucher.Parent.Torso.CFrame = toucher.Parent.Torso.CFrame * CFrame.new(0, -i, 0)
                wait(0.5)
            end
            humanoid.Health = humanoid.Health - 25
        end
    end
end)
0
Is Dark-Dark the script? Are you sure the script for the Dark-Dark coding works and their are no errors within that? alphawolvess 1784 — 9y
0
Pretty sure it works. I've tried it in test mode and I've even enabled it for in-game testing... InfraredChasm 35 — 9y
0
Oh wait... Now I see that something's wrong with the script itself... Editing... InfraredChasm 35 — 9y

Answer this question