#exception while signaling: Must be a LuaSourceContainer

1 messages · Page 1 of 1 (latest)

distant lance
#

and also

#

this is the code:

#

local tool = script.Parent
local Input = game:GetService("ContextActionService")
local text = game:GetService("UserInputService")
local slashDB = false
local equipped = false
local player = game:GetService("Players").LocalPlayer
local mouse = game:GetService("Players").LocalPlayer:GetMouse()
local remote = tool:WaitForChild("RemoteEvent", 10)
local clickDB = false

local function slashCut(actionName, inputState, inputObj)
if inputState == Enum.UserInputState.Begin then
remote:FireServer(Enum.KeyCode.Q)
end
end

local function cut(actionName, inputState, inputObj)
if inputState == Enum.UserInputState.Begin then
remote:FireServer(Enum.KeyCode.E, mouse.Hit)
end
end

tool.Activated:Connect(function(mouse)
if clickDB == false then
clickDB = true
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://15713838581"
game:GetService("Debris"):AddItem(anim, 5)
local track = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anim)
track:Play()
tool.Unequipped:Connect(function(mouse)
track:Stop()
end)
wait(3)
clickDB = false
end
end)

tool.Equipped:Connect(function()
equipped = true
Input:BindAction("Slash", slashCut, true, Enum.KeyCode.Q, Enum.KeyCode.ButtonX)
Input:BindAction("Cut", cut, true, Enum.KeyCode.E, Enum.KeyCode.ButtonY)
Input:SetTitle("Slash", "Slash")
Input:SetTitle("Cut", "Cut")
end)

tool.Unequipped:Connect(function()
equipped = false
Input:UnbindAction("Slash")
Input:UnbindAction("Cut")
end)

#

for more information; I was making a knife for a game I'm helping on and it fully worked in my test game, but then when I transferred it, it didn't work at all.

kindred wave
#

There's plenty of servers on discord which have places designed to help you with anything

distant lance
cerulean marten
distant lance
#

ok

#

well I found out it was only a studio issue