So this script works in studio mode, however it doesn't work in a normal roblox test. I have tested it seeing if FilteringEnabled was the problem (it wasn't) i'm very unsure as to what the problem could be any help is appreciated! No Errors appear in the console
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local tor = hit.Parent:FindFirstChild("HumanoidRootPart")
tor.Velocity = script.Parent.CFrame.lookVector * 100
end
end)
Thank you in advance!

13 comments
Is this in a script or local?
It's a server-side script
connect is deprecated, use Connect
nevermind didn't work
Any errors? Change "UpperTorso" to "HumanoidRootPart" since R6 and R15 characters both have that. Try increasing the 100 to something like 1000.
Yeah, errors?
No Errors, I will try the humanoidrootpart now
i also only use R15
Still doesn't work
try using :FindFirstChildOfClass("Humanoid")
Nope still doesn't work
If there are no errors it's either working (but not as intended) or not running. You can print something on line 1 to see if it is. If it's not it's either disabled or misplaced. Check the wiki for the script types to see where they can run.
I have tested print, it prints everything. The script type is server script and it is inside the right part