Advertisement
thatonepuggo

weirdify script

Jan 20th, 2020 (edited)
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. -- weirdify
  2. for _, child in pairs(workspace:GetDescendants()) do
  3. if child:IsA("Part") and not child:FindFirstAncestorOfClass("Model") then
  4. if not child:FindFirstAncestorOfClass("Model"):FindFirstChildWhichIsA("Humanoid") then
  5.  
  6. local oldori = child.Orientation
  7. child.Touched:Connect(function()
  8. wait()
  9. local p = child
  10. local i = TweenInfo.new(1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,2,true,0)
  11. local gy = {Orientation = oldori + Vector3.new(-30, 0, 0)}
  12. game.TweenService:Create(p,i,gy):Play()
  13. wait(6)
  14. child.Orientation = oldori
  15.  
  16. end)
  17. end
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement