Advertisement
IMAKESCRIPTSATSCHOOL

Extra Functions Addon (Guide)

Feb 28th, 2022 (edited)
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.20 KB | None | 0 0
  1. --Extra Functions Guide
  2.  
  3. --[[
  4.  
  5. setSize(Part, x,y,z)  |  Sets the size of a specific part   (Returns nothing)
  6.  
  7. setOrientation(Part, x,y,z)  |  Sets the orientation/rotation of a specific part   (Returns nothing)
  8.  
  9. setPosition(Part, x,y,z)  |  Sets the position of a specific part   (Returns nothing)
  10.  
  11. -------------------------------------------------------------------------
  12.  
  13. changeSize(Part, x,y,z)  |  Changes the size of a specific part   (Returns nothing)
  14.  
  15. changeOrientation(Part, x,y,z)  |  Changes the orientation of a specific part   (Returns nothing)
  16.  
  17. changePosition(Part, x,y,z)  |  Changes the position of a specific part   (Returns nothing)
  18.  
  19. -------------------------------------------------------------------------
  20.  
  21. setHealth(player, Health)  |  Sets the health of a player   (Returns nothing)
  22.  
  23. setWalkSpeed(player, speed)  |  Sets the walkspeed of a player   (Returns nothing)
  24.  
  25. setJumpPower(player, jumpPower)  |  Sets the jumppower of a player   (Returns nothing)
  26.  
  27. kill(player)  |  Kills a player   (Returns nothing)
  28.  
  29. killAll()  |  Kills every player in the server   (Returns nothing)
  30.  
  31. kickPlayer(player, message)  |  Kicks a player, message is optional   (Returns nothing)
  32.  
  33. kickAll(Message)  |  Kicks everyone in the server, message is optional   (Returns nothing)
  34.  
  35. -------------------------------------------------------------------------
  36.  
  37. findInstance(name)  |  Finds an instance   (Returns instance)
  38.  
  39. createExplosion(x,y,z, blastPressure, blastRadius)  |  Creates an explosion at a position    (Returns explosion)
  40.  
  41. createInstance(Class, Parent)  |  Creates and instance    (Returns instance)
  42.  
  43. loadModel(Id, Parent)  |  Loads a model into the game    (Returns model)
  44.  
  45. function delete(instance)  |  Deletes an instance    (Returns nothing)
  46.  
  47. -------------------------------------------------------------------------
  48.  
  49. RNG(min, max)  |  Picks a random number between min and max.   (Returns number)
  50.  
  51. -------------------------------------------------------------------------
  52.  
  53. playSound(Id, looped)  |  Plays an audio id, and sets looped to false/true   (Returns nothing)
  54.  
  55. --]]
  56.  
  57. warn("This is a guide to Extra Functions, if you want the actual code, go to https://pastebin.com/KsH6MH3C")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement