Advertisement
MemeBlox

Roblox Script Pack 1 2018

Mar 23rd, 2018
9,707
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. Keycard Door:
  2.  
  3. Select Part
  4. Scale it
  5. Make it anchored
  6. put this script
  7.  
  8. script.Parent.Touched:Connect(function(hit)
  9. if hit.Parent.Name == "Keycard" then
  10. script.Parent.CanCollide = false
  11. script.Parent.Transparency = 0.5
  12. wait(2)
  13. script.Parent.CanCollide = true
  14. script.Parent.Transparency = 0
  15. end
  16. end)
  17.  
  18. ----------------------------------------------------------------------
  19. Job Making
  20.  
  21. Right click the world
  22. insert object
  23. script
  24.  
  25. game.Players.PlayerAdded:connect(function(plr)
  26.  
  27. local stats = Instance.new("IntValue",plr)
  28. stats.Name = 'leaderstats'
  29.  
  30. local job = Instance.new("StringValue",stats)
  31. job.Name = 'Job'
  32. job.Value = 'Unemployed'
  33.  
  34. end)
  35.  
  36. ----------------------------------------------------------------------
  37. Leader Board
  38.  
  39. RIght click ServerScriptService
  40. click script
  41.  
  42. game.Players.PlayerAdded:connect(function(plr)
  43. local stats = Instance.new("BoolValue",plr)
  44. stats.Name = "leaderstats"
  45.  
  46. local cash = Instance.new("IntValue",stats)
  47. cash.Name = "Cash"
  48. cash.Value = 0
  49. end)
  50.  
  51. -----------------------------------------------------------------------
  52. Money increaser (You can change the amount of money per time and the timedelay)
  53.  
  54. amount = 2 -- This variable is the amount of cash we will give each time.
  55. timedelay = 2 -- This variable is the amount of seconds inbetween each time the cash is rewarded
  56. currencyname = "Cash" -- This is the name of our Currency
  57.  
  58. while true do
  59. wait(timedelay)
  60. for i,v in pairs(game.Players:GetPlayers()) do
  61. if v:FindFirstChild("leaderstats") and v then
  62. v.leaderstats[currencyname].Value = v.leaderstats[currencyname].Value + amount
  63. end
  64. end
  65. end
  66. ----------------------------------------------------------------------
  67. pets!
  68.  
  69. -- Created by MemeBlox. Follow me in roblox (iiOmq_MemesxX)
  70. local plr = game.Players.LocalPlayer
  71. wait(2)
  72. local part = Instance.new('Part', workspace[plr.Name].Torso)
  73. part.CanCollide = false
  74. part.Anchored = true
  75. part.Size = Vector3.new(1,1,1)
  76. local mesh = game.ReplicatedStorage.DogeMesh -- Change DogeMesh to the name of your mesh
  77. mesh:Clone().Parent = part
  78. local direction = CFrame.new(part.Position, plr.Character['Left Leg'].Position).lookVector
  79. local increment = direction * 4
  80. while true do
  81. wait()
  82. part.CFrame = game.Workspace[plr.Name]['Torso'].CFrame + (direction * increment) + Vector3.new(-5,0,0)
  83. part.Rotation = game.Workspace[plr.Name]['Torso'].Rotation + (direction * increment) + Vector3.new(-1,-2,increment)
  84. end
  85. -----------------------------------------------------------------------
  86. animation
  87.  
  88. script.Parent.MouseButton1Click:Connect(function()
  89. game.ReplicatedStorage.RemoteEvent:FireServer("00000000") -- Change 0000000 to your animation ID. KEEP THE SPEECH MARKS!
  90. end)
  91.  
  92. --Server Script
  93.  
  94. game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player,animationID)
  95. local animation = Instance.new("Animation")
  96. animation.AnimationId = "http://www.roblox.com/Asset?ID=%22..animationID
  97.  
  98. local loadedAnimation = game.Workspace[player.Name].Humanoid:LoadAnimation(animation)
  99. loadedAnimation:Play()
  100. end)
  101. -----------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement