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

Need help with this Inventory Script. Help?

Asked by 9 years ago

I recently found a new inventory script from my last one but it says it has errors in the output. i cant figure out the problems with the script can someone please help!?

Heres The Script

local player = Game.Players.LocalPlayer

function onClicked()
    local iframe = script.Parent.Parent.InventoryFrame 
    local controls = script.Parent.Parent.Controls
    local options = script.Parent.Parent.Options
    local statistics = script.Parent.Parent.Statistics
    if not player.Character.Humanoid.Sit then
        if not iframe.Visible then
            player.Backpack.GlobalFunctions.invopen.Value = 1
            iframe.Visible = true
            controls.Visible = false
            options.Visible = false
            statistics.Visible = false
            script.Parent.Text = "Close Inventory"
            script.Parent.Modal = true
            player.Character.Humanoid.WalkSpeed = 0
        else
            player.Backpack.GlobalFunctions.invopen.Value = 0
            iframe.Visible = false
            script.Parent.Modal = false
            script.Parent.Text = "Open Inventory"
            player.Character.Humanoid.WalkSpeed = 16
        end
    end 
end

script.Parent.MouseButton1Click:connect(onClicked)

0
PS I Fips i fixed the game in first line Skyfall106GamingMLG 0 — 9y

Answer this question