i have a custom character model, i turned ur starter character into a sphere
when i did
userinputservice.InputBegan:Connect(function(input,istyping)
print("e")
end)
nothing is printing at all
this is a local script in startercharacterscripts
i have a custom character model, i turned ur starter character into a sphere
when i did
userinputservice.InputBegan:Connect(function(input,istyping)
print("e")
end)
nothing is printing at all
this is a local script in startercharacterscripts
input.KeyCode
is what you are looking for.
You’re missing a closing parenthesis “)” for end
.
cchanged it to my actual issue, but still no errors and nothing is printing
nvm solved, i put it underneath a infinite while loop like a absolute monkey.
-- We must get the UserInputService before we can use it
local UserInputService = game:GetService("UserInputService")
-- A sample function providing one usage of InputBegan
local function onInputBegan(input, gameProcessed)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
print("The left mouse button has been pressed!")
end
end
UserInputService.InputBegan:Connect(onInputBegan)
This is the code that the Roblox developer page gave. If that is what you want.