script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then -- any script you put here will work in studio but not in player end end)
Hello SuperBeeperman, you can use this.
script.Parent.Touched:Connect(function(hit) local Player = game.Players:GetPlayerFromCharacter(hit.Parent) -- Returns the Player associated with the given character, or nil if the character is not controlled by a player. if Player then print(Player.Name) -- ur script here end end)