This is a normal script inside my model It doesn't work though!
function onTouched(hit)
local check = hit.Parent:FindFirstChild("Humanoid")
if check ~= nil then
local user = game.Players:GetPlayerFromCharacter(hit.Parent)
game.Workspace.Model:MoveTo(Vector3.new(0,0,0))
end

1 comment
Do you ever call the function?