so this script used to work before but it does nothing now its inside a local script
local player = game.Players.LocalPlayer
local remoteEvent = game.ReplicatedStorage:WaitForChild("playertp")
player.Chatted:Connect(function(msg)
if msg:lower():match("tp") then
local targetPlayer = game.Players:FindFirstChild(msg:sub(6))
if targetPlayer and targetPlayer.Character then
player.Character.HumanoidRootPart.CFrame = CFrame.new(targetPlayer.Character.Head.Position)
end
end
end)
player.Chatted:Connect(function(msg)
if msg:lower():match("tphere") then
local targetPlayer = game.Players:FindFirstChild(msg:sub(5))
if targetPlayer and targetPlayer.Character then
remoteEvent:FireServer(targetPlayer.Character)
print("fired"..remoteEvent.Name)
end
end
end)
no output what so ever

1 comment
You need to give more information than that, and please indent your code https://scriptinghelpers.org/help/how-post-good-questions-answers