I'm not sure if I'm going about this the right way, but what I'm trying to do is create a BodyVelocity to the player's HumanoidRootPart then clone a script inside of that to destroy it. The code is here:
local replicatedStorage = game:GetService("ReplicatedStorage")
local debounce = false
function onTouched(other)
if debounce == false then
local rootPart = other.Parent:FindFirstChild("HumanoidRootPart")
if rootPart ~= nil then
local vol = Instance.new("BodyVelocity")
vol.Velocity = Vector3.new(200, 0, 0)
local clone = replicatedStorage:FindFirstChild("scripts").destroy:Clone()
clone.Parent = vol
vol.Parent = rootPart
wait(1)
debounce = false
end
end
end
script.Parent.Touched:Connect(onTouched)
It errors when trying to clone from replicatedStorage with: attempt to index function with 'Clone'
I am also completely open to other ways of launching a player.

1 comment
It still says attempt to index function with 'Clone', even when I change the script name to just "remove" or "script"