I don't know what I'm doing wrong but I can't get this code to work however I do it. Please help!
local player = game:GetService("Players").LocalPlayer.name game:GetService("Workspace").player.Object:Destroy()
No I cannot do game:GetService("Workspace").localplayer
By the looks of this code you're trying to destroy the player's character on the client?
local Players = game:GetService('Players') local Player = Players.LocalPlayer -- getting the character is the same as workspace:WaitForChild(Player.Name) -- but it's a lot more easier and the preferred method local Character = Player.Character or Player.CharacterAdded:Wait() Character:Destroy()