Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Keycard Door:
- Select Part
- Scale it
- Make it anchored
- put this script
- script.Parent.Touched:Connect(function(hit)
- if hit.Parent.Name == "Keycard" then
- script.Parent.CanCollide = false
- script.Parent.Transparency = 0.5
- wait(2)
- script.Parent.CanCollide = true
- script.Parent.Transparency = 0
- end
- end)
- ----------------------------------------------------------------------
- Job Making
- Right click the world
- insert object
- script
- game.Players.PlayerAdded:connect(function(plr)
- local stats = Instance.new("IntValue",plr)
- stats.Name = 'leaderstats'
- local job = Instance.new("StringValue",stats)
- job.Name = 'Job'
- job.Value = 'Unemployed'
- end)
- ----------------------------------------------------------------------
- Leader Board
- RIght click ServerScriptService
- click script
- game.Players.PlayerAdded:connect(function(plr)
- local stats = Instance.new("BoolValue",plr)
- stats.Name = "leaderstats"
- local cash = Instance.new("IntValue",stats)
- cash.Name = "Cash"
- cash.Value = 0
- end)
- -----------------------------------------------------------------------
- Money increaser (You can change the amount of money per time and the timedelay)
- amount = 2 -- This variable is the amount of cash we will give each time.
- timedelay = 2 -- This variable is the amount of seconds inbetween each time the cash is rewarded
- currencyname = "Cash" -- This is the name of our Currency
- while true do
- wait(timedelay)
- for i,v in pairs(game.Players:GetPlayers()) do
- if v:FindFirstChild("leaderstats") and v then
- v.leaderstats[currencyname].Value = v.leaderstats[currencyname].Value + amount
- end
- end
- end
- ----------------------------------------------------------------------
- pets!
- -- Created by MemeBlox. Follow me in roblox (iiOmq_MemesxX)
- local plr = game.Players.LocalPlayer
- wait(2)
- local part = Instance.new('Part', workspace[plr.Name].Torso)
- part.CanCollide = false
- part.Anchored = true
- part.Size = Vector3.new(1,1,1)
- local mesh = game.ReplicatedStorage.DogeMesh -- Change DogeMesh to the name of your mesh
- mesh:Clone().Parent = part
- local direction = CFrame.new(part.Position, plr.Character['Left Leg'].Position).lookVector
- local increment = direction * 4
- while true do
- wait()
- part.CFrame = game.Workspace[plr.Name]['Torso'].CFrame + (direction * increment) + Vector3.new(-5,0,0)
- part.Rotation = game.Workspace[plr.Name]['Torso'].Rotation + (direction * increment) + Vector3.new(-1,-2,increment)
- end
- -----------------------------------------------------------------------
- animation
- script.Parent.MouseButton1Click:Connect(function()
- game.ReplicatedStorage.RemoteEvent:FireServer("00000000") -- Change 0000000 to your animation ID. KEEP THE SPEECH MARKS!
- end)
- --Server Script
- game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player,animationID)
- local animation = Instance.new("Animation")
- animation.AnimationId = "http://www.roblox.com/Asset?ID=%22..animationID
- local loadedAnimation = game.Workspace[player.Name].Humanoid:LoadAnimation(animation)
- loadedAnimation:Play()
- end)
- -----------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement