local contextActionService = game:GetService("ContextActionService")
local player = game.Players.LocalPlayer
local rp = game:GetService("ReplicatedStorage")
local Spin = rp:WaitForChild("RESpin")
local spinAction = "Spin"
local tool = script.Parent
local debounce = false
local cooldown = 1
local function SpinFunction()
print("works")
--if debounce == false then
--debounce = true
--Spin:FireServer()
end
local function handleAction(actionName, inputState, inputObject)
if actionName == spinAction and inputState == Enum.UserInputState.Begin then
SpinFunction()
end
end
tool.Equipped:Connect(function()
contextActionService:BindAction(spinAction, handleAction, true, Enum.KeyCode.E)
end)
tool.Unequipped:Connect(function()
contextActionService:UnbindAction(spinAction)
end)
--Spin.OnClientEvent:Connect(function()
--wait(cooldown)
--debounce = false
--end)
Some of the code is commented out
local function handleAction(actionName, inputState, inputObject)
print(actionName,inputState.Name,inputObject)
if actionName == spinAction and inputState == Enum.UserInputState.Begin then
SpinFunction()
end
end
Please try this and share the result.
Please share an image of your explorer.
dont listen to the post I made above. I got nothing in the output
this is what my output is there is only module errors