I'm trying to do a 2x XP thing, But I cant use MarketPlaceService because I always get an error when I try to use it so I started using GamePassService but now I cant get the mouse of the player... The reason I need the mouse is because of the keybind so I'm kinda stuck? can anyone help me out??
This is what I'm working with:
local MP = game:GetService("GamePassService")
local mouse = Player:GetMouse()
mouse.KeyDown:Connect(function(key)
local Train = math.random(1,3)
if key == "t" then
if db == false then
db = true
--your code

1 comment
No. Learn to use RemoteEvents and RemoteFunctions.