Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -LEADERSTATS - DO NOT CHANGE-
- game.Players.PlayerAdded:connect(function(plr)
- local f = Instance.new("Folder", plr)
- f.Name = "leaderstats"
- local coins = Instance.new("IntValue", f)
- coins.Name = "Coins"
- coins.Value = 0
- end)
- =COLLECT SCRIPT-
- local db = true
- script.Parent.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if db == true then
- db = false
- script.Parent.Transparency = 1
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 1
- script.Sound:Play()
- wait(1)
- script.Parent:Remove()
- end
- end
- end)
- -FLOAT SCRIPT-
- while true do
- wait(0.1)
- v = script.Parent.Position
- for i = 1,5 do
- wait(0.1)
- script.Parent.Position = script.Parent.Position + Vector3.new(0,i/40,0)
- end
- for i = 4,1,-1 do
- wait(0.1)
- script.Parent.Position = script.Parent.Position + Vector3.new(0,i/40,0)
- end
- for i = 1,5 do
- wait(0.1)
- script.Parent.Position = script.Parent.Position + Vector3.new(0,-i/40,0)
- end
- for i = 4,1,-1 do
- wait(0.1)
- script.Parent.Position = script.Parent.Position + Vector3.new(0,-i/40,0)
- end
- script.Parent.Position = v
- end
- -ROTATE SCRIPT-
- while true do
- wait()
- script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0.1,0,0)
- end
- -SOUND ID FOR COLLECT ADD INTO IT-
- rbxassetid://131323304
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement