Error: "Cannot find player.userid" What would be the correct format for localscript? I've tried without userid
repeat wait(.1) until game.Players.LocalPlayer.Character ~= nil
repeat wait(.1) until game.Players.LocalPlayer.Character.Humanoid ~= nil
player = game.Players.LocalPlayer
mouse = player:GetMouse()
local char = player.Character
local roll = Instance.new("Animation")
roll.AnimationId = "rbxassetid://3027027786"
local animloader = char.Humanoid:LoadAnimation(roll)
function KeyD(key)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.userid, 6014768) then
key = key:lower()
local hotkey = script.Hotkey
if key == hotkey.Value then
local animloader = char.Humanoid:LoadAnimation(roll)
animloader:Play()
end
end
end
mouse.KeyDown:connect(KeyD)
function Move(key)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.userid, 6014768) then
key = key:lower()
if key == "w" or key == "a" or key == "s" or key == "d" then
animloader:Stop()
end
end
end
mouse.KeyDown:connect(Move)

2 comments
if it works then pls accept answer
That still doesn't work.