local Player = game:GetService'Players'.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Head = Character:WaitForChild("Head")
local nono = workspace.Them.Head
local Them = workspace.Them
local humanoid = Them.Humanoid
---------------------------------
function onTouched(hit)
local G = humanoid:LoadAnimation(nono.Die)
local anim = Player.Humanoid:LoadAnimation(Head.ShotByShotgun)
wait(.01)
G:Play()
anim:Play()
workspace.Touch.CFrame = CFrame.new(-27.385, -2.785, -5.89)
wait(3)
workspace.SHOTGUN:Play()
end
--------------------------------------
script.Parent.Touched:connect(onTouched)
Error: Workspace.Touch.Script:2: attempt to index nil with 'Character'
I don't understand.

1 comment
Yes I had this question before, but I changed things up with some help and getting some errors.