Facebook
From why, 5 Months ago, written in Plain Text.
This paste is a reply to Re: Re: Re: Re: skibideez from ezezez - view diff
Embed
Download Paste or View Raw
Hits: 155
  1. local Gyro = GetPartFromPort(1, "Gyro")
  2. local IonRocket = GetPartFromPort(1, "IonRocket")
  3. local Microphone = GetPartFromPort(1, "Microphone")
  4. -- Gets the player's info
  5. function getPlayerInfo(playername)
  6. for i, v in LifeSensor:GetReading do
  7. if i == playername then
  8. return v
  9. end
  10. end
  11. end
  12. -- Set up motor pins
  13. local motorPins = {12, 13, 14} -- {1:Left Motor, 2:Right Motor, 3:Vertical Motor}
  14. -- Set up speed for motors
  15. local speed = 50 -- speed value between 0 and 100
  16.  
  17. -- Target player to follow
  18. local targetPlayer = "Player" -- name of the player to follow
  19.  
  20. -- Function to start targeting a player
  21. function target(playerName)
  22.     targetPlayer = playerName
  23.     print("Now following " .. targetPlayer .. " in leaderboard roblox list.")
  24. end
  25.  
  26. -- Function to stop targeting a player
  27. function stopTargeting()
  28.     targetPlayer = nil
  29.     print("Stopped targetting the player in leaderboard roblox list.")
  30. end
  31.  
  32. -- Main loop
  33. Microphone:Connect("Chatted" function(player ,text)
  34. Gyro:Configure({Seek = text})
  35. end
  36.  
  37.     wait(0.05)
  38. end