local id = 5010007
local Script = game.ServerScriptService.GamePassDoubleJump
local LScript = game.ServerScriptService.GamePassDoubleJump.DoubleJump
local scriptclone = LScript:clone()
game.Players.PlayerAdded:connect(function(player)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, id) then
scriptclone.Parent = game.Players.LocalPlayer.PlayerScripts
end
end)
im confused, it only works in studio.
Error: ServerScriptService.GamePassDoubleJump:7:attempt to index field 'LocalPlayer" (a nil value)

4 comments
you can only use LocalPlayer in a localscript, not a server script. Replace 'game.Players.LocalPlayer' with 'player' since the PlayerAdded event already passes a 'player' arguement.
i tried that :/ i will try it again.
OHHHH Just player
nvm doesnt work