Why won't this work?
function onTouch() game.Workspace.Player.CFrame game.Workspace.Player.CFrame.new (-6,79,26)--the cframe is an example of the cframe game.Player.onTouch() end
Without debounce:
script.Parent.Touched:connect(function(hit) if hit.Parent and game.Players:GetPlayerFromCharacter(hit.Parent) then p = game.Players:GetPlayerFromCharacter(hit.Parent) p.Character.Humanoid.Jump = true end end)
With debounce:
function debounce(func) local isRunning = false return function(...) if not isRunning then isRunning = true func(...) isRunning = false end end end script.Parent.Touched:connect(debounce(function(hit) if hit.Parent and game.Players:GetPlayerFromCharacter(hit.Parent) then p = game.Players:GetPlayerFromCharacter(hit.Parent) p.Character.Humanoid.Jump = true end end))