SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         if self.owner and self.owner.owner and self.owner.owner == getPlayer() then
  2.             sound:setSpatial(0)
  3.          else
  4.             sound:setSpatial(100)
  5.          end
  6.          if localPose == true then
  7.             sound:getPose():setParent(self:getPose())
  8.             sound:getPose():resetLocalPose()
  9.          elseif localPose ~= nil then -- impactPos comes
  10.             sound:getPose():resetParent()
  11.             sound:getPose():resetLocalPose()
  12.             sound:getPose():setPos(localPose)
  13.          end
  14.          if params.speed then
  15.             sound:setSpeed(params.speed)
  16.          end
  17.          sound:play()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top