RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"when you touch my part called l it will fly into the sky"
-- script for part named 'l' local part = game.Workspace.l local function onTouch(otherPart) local partParent = otherPart.Parent local humanoid = partParent:FindFirstChildWhichIsA('Humanoid') if humanoid then part.Position = part.Position + Vector3.new(0, 50, 0) end end part.Touched:Connect(onTouch)