Hello im trying to make this script better and optimized for security against exploiters can you help me?
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if game.MarketplaceService:PlayerOwnsAsset(player,000000) then
character.Humanoid.WalkSpeed = 25
end
end)
end)
While there isn’t any security concern, it’s probably encouraged to wrap that function in a pcall, since it sends a request to the Roblox website, and can error.