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

Why wont this work?!!!

Asked by 9 years ago

I'm EXTREMELY frustrated because a double-jump script JUST REFUSES to work in online mode! PLEASE SOMEONE explain why this darn FREAKIN SCRIPT wont work?!!

The error i get is: "Humanoid is not a valid member of model"

WTF... HOWWWWWWWWWWWWWWWWWWWWWW

repeat wait() until script.Parent.Parent.Character and script.Parent.Parent.Character.Humanoid  ~= nil
wait()
print("loaded")
--Made by FromLegoUniverse
--Super easy script
--Put this in StarterGui or StarterPack

--The "Creative" option makes it so you can jump infinitly (True if yes, False if no)
--Note: I modified a decent amount of this. So the update function and "Creative" option do nothing.
local FirstJump = false
local MidJump = false
local Mouse = script.Parent.Parent:GetMouse()
local animation = script.db
debounce = false

function onKeyDown(key)
    Mouse.KeyDown:connect(function(Key)
    if string.byte(Key) == 101 and debounce == false then
        debounce = true
        MidJump = true
    local animPLAY = script.Parent.Parent.Character.Humanoid:LoadAnimation(animation)
    animPLAY:Play()
        script.Parent.Parent.Character.Torso.Velocity = Vector3.new(0,90,0)
        wait(3)
        debounce = false
        end
    end)
end

function Update()
    if script.Parent.Parent.Character.Humanoid.Jump == true then
        FirstJump = true
    else
        FirstJump = false
        MidJump = false
    end
end


--Mouse.KeyDown:connect(onKeyDown)
wait()
script.Parent.Parent.Character.Humanoid.Jumping:connect(onKeyDown)
--script.Parent.Parent.Character.Humanoid.Jumping:connect(Update)

1 answer

Log in to vote
0
Answered by
Marios2 360 Moderation Voter
9 years ago

You need more information, such as, where does that script go? Did you place that in the workspace? If you placed it in the workspace, of course it won't work. Basically, you did not tell us ANYTHING about the address, which would be important.

0
He placed it in the Backpack. Or StarterGui, either way. fireboltofdeath 635 — 9y
0
If you read the script you would know the address. That's why its there. RobloxHelper49 55 — 9y
0
Oopsie Marios2 360 — 9y
Ad

Answer this question