Hello! So I am not asking for the difference between the two but rather asking what needs to be added/removed from a server script to make it a local script? Below is a script I put together in a server script but it does not work because I use <LocalPlayer> which cannot be used in a server script. So how would I make this local?
local Button = script.Parent Frame = script.Parent.Parent.Parent EditBlock = script.Parent.Parent.Parent.Parent OldOven = script.Parent.Parent.Parent.Parent.OldOven NewOven = script.Parent.Parent.Parent.Parent.Oven function onClick() if game.Players.LocalPlayer.leaderstats.Money.Value >= 250 then Frame.Enabled = false EditBlock.Transparency = 1 local user = game.Players:GetPlayerFromCharacter(game.Players.LocalPlayer.Character) --get player from touching human local stats = user:findFirstChild("leaderstats") --Find moneyholder local cash = stats:findFirstChild("Money") --Get money cash.Value = cash.Value -250 OldOven:Destroy() NewOven.PartOne.Transparency = 0 NewOven.PartTwo.Transparency = 0 else print("Not enough money!") end end Button.MouseButton1Click:connect(onClick)
You would have to copy all the code into a local script there is no feature to turn a server script directly into a local one.