-- Define some values

Players = game:GetService('Players')
Player = Players.LocalPlayer
Backpack = Player:FindFirstChildOfClass('Backpack')
UiFrame = script.Parent.UiFrame
SlotsFolder = script.Parent.Slots
if not Player.Character then -- Ensure the charater has loaded
	Player.CharacterAdded:Wait()
end	
Char = Player.Character
