idk but nothing happens when I press E, No errors, nothing.
local uis = game:GetService("UserInputService") local plr = game.Players.LocalPlayer local chatting = false plr.Chatted:connect(function(msg) chatting = false end) uis.InputBegan:connect(function(input) if input == Enum.KeyCode.Slash and game.StarterGui:GetCoreGuiEnabled("Chat") then chatting = true elseif input == Enum.KeyCode.Return then chatting = false end if chatting == false then if input == Enum.KeyCode.E then script.Parent.Parent.LeanBrick.BodyAngularVelocity.angularvelocity = Vector3.new(0,1.88,0) else script.Parent.Parent.LeanBrick.BodyAngularVelocity.angularvelocity = Vector3.new(0,0,0) end end end)
You gotta do input.KeyCode==Enum.KeyCode.Slash