Guys this problem is driving me crazy!
I always get this error when I'm trying to get the ServerScriptService from a LocalScript.
RemoveEvent is in ServerScriptService
Here's the code: It's a LocalScript
script.Parent.MouseButton1Click:connect(function()
local player = game.Players.LocalPlayer
local ThePlayerName = script.Parent.Parent:WaitForChild("PlayerNameHere").Text
game.ServerScriptService:WaitForChild("UnBanPlayer"):FireServer(ThePlayerName)
print(ThePlayerName.."'s the player name that got sent!")
end)
When I use a LocalScript it gives me that error. But when I use a ServerScript I get the following error:
FireServer can only be called from Client.
What do I do?
I'm getting confused!

1 comment
I did a ton of changings and followed ur tips and made it all on the workspace using remote events and everything is working! I've been trying so long! Hallelujah i'm free. Thank you my friend!