Although I have not fully learned LUA coding, I am kinda grasping the concept. I have been working hours on a single line of code that, no matter what, brings up as " 18:47:07.519 - attempt to call a nil value" I cannot STAND this single error code. To attempt to solve the problem, I have set up two print lines; one in the local script and one in the normal script. The local print works but the normal script doesn't print.
--local
local UIS = game:GetService('UserInputService')
local plr = game.Players.LocalPlayer
local Char = plr.Character or plr.CharacterAdded:Wait()
local key = 'L'
local Anim = Instance.new("Animation")
Anim.AnimationId = 'rbxassetid://4906894017'
local Debounce = true
UIS.InputBegan:Connect (function(Input, IsTyping)
if IsTyping then return end
local KeyPressed = Input.KeyCode
if KeyPressed == Enum.KeyCode.L and Debounce then
Debounce = false
local LoadAnimation = Char.Humanoid:LoadAnimation(Anim)
LoadAnimation:play()
print("The Crimson God Has Been Summoned; Run...")
game.ReplicatedStorage.Summon:FireServer(print"Event Has Fired")
end
end)
--Script (In Workspace if that helps)
game.ReplicatedStorage.Summon.OnServerEvent:Connect(print"Message has been received")

1 comment
if you want someone to help specify what line the error is on