Please help my game is broken

robloxapp-20201125-1529280.wmv (5.9 MB)

please help i cant even press f5 it makes camera fix but cant edit any thing i can only alt f4

game:GetService('Players').LocalPlayer.CameraMode =Enum.CameraMode.LockFirstPerson  
--in starter gui

local Player = game.Players.LocalPlayer

game:GetService("RunService").RenderStepped:connect(function()
	local c = game.Workspace:FindFirstChild(Player.Name)
	if c then
		c["LeftFoot"].LocalTransparencyModifier = 0
		c["LeftHand"].LocalTransparencyModifier = 0
		c["LeftLowerArm"].LocalTransparencyModifier = 0
		c["LeftLowerLeg"].LocalTransparencyModifier = 0
		c["LeftUpperArm"].LocalTransparencyModifier = 0
		c["LeftUpperLeg"].LocalTransparencyModifier =0
		c["RightFoot"].LocalTransparencyModifier = 0 
		c["RightHand"].LocalTransparencyModifier = 0
		c["RightLowerArm"].LocalTransparencyModifier = 0
		c["RightLowerLeg"].LocalTransparencyModifier = 0
		c["RightUpperArm"].LocalTransparencyModifier = 0
		c["RightUpperLeg"].LocalTransparencyModifier = 0
	end
end) --starter character scripts
-- and the kill brick script
script.Parent.Touched:Connect(function(Hit)
	if Hit.Parent:FindFirstChild("Humanoid") then
		local Char = Hit.Parent
		local fire = Instance.new("Fire")
		fire.Parent = Char.HumanoidRootPart
		
		while wait(.5) do 
			Char.Humanoid:TakeDamage(15)
		end
	end
end) --these are all scripts i used

is your game enormously lagging or something? or do you see the idle anim playing and can you not move?

its not lag i can move if u see whole vid i can move fine there is no lag

sorry i have the habit of not downloading videos :>
try adding some prints to the script and see where it stops working

I recommend using https://streamable.com/ to upload small clips. I don’t download videos and I’m sure no one else does. If people don’t have to download a video, they are more likely to help out.

Its probably because your running so many loops on a touched event which is just pain

You should add some sort of debounce. Example:

local deb={}
script.Parent.Touched:Connect(function(Hit)
	if Hit.Parent:FindFirstChild("Humanoid") and not deb[hit.Parent] and hit.Parent==Char then
        deb[hit.Parent]=true
		local Char = Hit.Parent
		local fire = Instance.new("Fire")
		fire.Parent = Char.HumanoidRootPart
		
		repeat wait(.5)
			Char.Humanoid:TakeDamage(15)
		until Char.Humanoid.Health<=0
        wait(game.Players.RespawnTime+1)      
        deb[Hit.Parent]=false
	end
end) --these are all scripts i used

Do game.Workspace.Camera.CameraType = Enum.CamerType.Fixed
(Just realised this post is from last year)