0_0CCR
(AxisBlessMePls)
May 30, 2024, 6:54am
#1
Greetings Delevopers. I’m pretty decent at lua, and i having some issues with learning UIS. I literally couldnt understand it. Could someone explain it? Appreciate your help.
RainyBora
(RainyBora)
May 30, 2024, 7:20am
#2
Have you tried reading the documentation?
Devforum posts are also pretty good.
Here, this should work
local uis = game:GetService("UserInputService")
local rp = game:GetService("ReplicatedStorage")
local attack = rp:WaitForChild("attack")
uis.InputBegan:Connect(function(input)
if (uis:GetFocusedTextBox()) then
return; -- make sure player's not chatting!
end
if input.KeyCode == Enum.KeyCode.F then
attack:FireServer()
end
end)
attack.OnClientEvent:Connect(function(HumanoidRootPart)
local OneTimeConnection = nil
local function inputBegan(object,gamePr…
0_0CCR
(AxisBlessMePls)
May 30, 2024, 7:23am
#4
I will look into this post, thank you
system
(system)
Closed
June 13, 2024, 7:23am
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.