So I was busy making a Raycast weapon, when I found that it was saying that ToP was a nil value. Has ToP been deprecated? I looked back at some RayCast videos from Feb 2019 and ToP was an official function. Here's the code:
local FireEvent = script.Parent.FireEvent
local Dmg = math.random(15, 20)
FireEvent.OnServerEvent:Connect(function(Player, FromP, ToP)
local RayCast = Ray.new(FromP, (ToP-FromP).unit*100)
local Part = game.Workspace:FindPartOnRay(RayCast, Player.Character, false, true)
if Part then
local Hum = Part.Parent:FindFirstChild("Humanoid")
if Hum then
Hum:TakeDamage(Dmg)
end
end
end)
Any ideas? (I did look in object browser and found no results )

4 comments
Deprecated != Doesn't work
Well I know that. I'm asking if ToP is deprecated?
What is top
I can't find any history on ToP. Not even on the wiki. When I look up all the deprecated functions, the only thing i see is LoadLibrary. No history on ToP whatsoever