I keep on getting the bad cast and I don’t know why?
Remote.OnServerEvent:Connect(function(player, Charged, ChargedTime)
local Character = game.Workspace:WaitForChild(player.Name)
print("Recived")
--Click (MouseButton1)
if Charged == false then
local WeldHandle = Instance.new("Weld")
local WeldBlade = Instance.new("Weld")
local Knife = ReplicatedStorage.Knife:Clone()
Knife.Blade.Parent = Character
Knife.Handle.Parent = Character
WeldHandle.Parent = Character.RightHand
wait(0.01)
WeldHandle.Part0 = WeldHandle
WeldHandle.Part1 = Character.RightHand
end
end)