I have this script:
local function levitate()
local mass = module.GetMassOfModel(MyChar)
if not MyHrp:FindFirstChild("Levitater") then
module.levitate(MyHrp, mass)
end
CAS:UnbindAction("Levitate")
end
StartGame.OnClientEvent:Connect(function()
print("game started locally")
levitate()
flyCondition2()
end)
CAS:BindAction("Fly", flyCondition, false, Enum.KeyCode.P)
CAS:BindAction("Levitate", levitate ,false, Enum.KeyCode.L)
when i run the script the function levitate is fired.
However, i do not pres the L keycode and neither StartGame is clientFired.
How can i stop this from happening and why is it happening?
The script is inside starterCharacterScripts