I tried this but it does not work
local Players = game:GetService("Players")
Players.PlayerAdded:connect(function(player) if player.MembershipType == Enum.MembershipType.Premium then player.CharacterAdded:connect(function(char) local humanoid = char:findFirstChild("Humanoid") if humanoid then humanoid.MaxHealth = 200 humanoid.Health = 200 game.StarterPlayer.EnableMouseLockOption = true end end) end end)
I also gave premium players 200 health but I don't know if this affects the resto fo the script.

1 comment
Ok thanks. Also I don't know how to paste the code like how you did. I copied and pasted it in ti the question box but it would not let me indent.