Hello, i want to make a system where i press f when i hover over a item and then that item disapears and i get a new Gui in my backpack which i can then drag around. I also want to press F on clothes and it the player has an item in one of the slots on the sides then the item goes into the backpack but if the slot is empty then the item is equipted.
1 Like
use starterguis make a localscript in startergui and use keydown by getting the mouse of the player
local m = game.Players.LocalPlayer:GetMouse() m.KeyDown:Connect(function(k) if k=="f" then <send a remoteevent to something in replicated storage then have a script make the item dissapear and in the localscript clone a gui and put it in playergui> end end)
2 Likes
You shouldn’t use mouse for keybinds, it’s notoriously buggy. Use UserInputService or ContextActionService instead, both have great documentation on the developer wiki.
2 Likes
I want to have the item dragable and it snaps to a grid in my inventory, my inventory system is a little complecated because i want items which are bigger sizes than other items so they take up more space in my inventory. How would i go about doing this?
1 Like