Its basically a function in UserInputService that returns a image corresponding to a button: UserInputService | Documentation - Roblox Creator Hub
This is one of Roblox’s recommended ways of getting dualshock/dualsense buttons
Hey, there’s only one slight issue which is the TopBar being covered with chat when you don’t have voice chat enabled. When enabling voice chat it kinds fixes the issue and not overlap.
Is there a way I can enable a Bool Value on the Server-Side?
local BoxingGloves = accessoriesFolder:WaitForChild("BoxingGloves").Value
:bindEvent("selected", function()
if BoxingGloves == false then
print("BoxingGlove is false")
BoxingGloves = true
end
end)
Create a separate Script in ServerScriptService, create a RemoteEvent in ReplicatedStorage then follow:
In the Script located in SeverScriptService write:
local Event = game:GetService("ReplicatedStorage").RemoteEvent
Event.OnServerEvent:Connect(function(Object, Value)
Object.Value == Value
end)
In the LocalScript write:
local Event = game:GetService("ReplicatedStorage").RemoteEvent
local BoxingGloves = accessoriesFolder:WaitForChild("BoxingGloves").Value
:bindEvent("selected", function()
if BoxingGloves == false then
print("BoxingGlove is false")
Event:FireServer(BoxingGloves, true)
end
end)