Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Workspace = game:GetService("Workspace")
- local Players = game:GetService("Players")
- local IslandOne = Workspace.IslandOne.Base
- local IslandTwo = Workspace.IslandTwo.Base
- local IslandThree = Workspace.IslandThree.Base
- local IslandFour = Workspace.IslandFour.Base
- IslandOne.Touched:Connect(function(otherPart: BasePart)
- local player = Players:GetPlayerFromCharacter(otherPart.Parent)
- if player then
- player.Islands.IslandBoost.Value = 1
- end
- end)
- IslandTwo.Touched:Connect(function(otherPart: BasePart)
- local player = Players:GetPlayerFromCharacter(otherPart.Parent)
- if player then
- player.Islands.IslandBoost.Value = 1.1
- end
- end)
- IslandThree.Touched:Connect(function(otherPart: BasePart)
- local player = Players:GetPlayerFromCharacter(otherPart.Parent)
- if player then
- player.Islands.IslandBoost.Value = 1.2
- end
- end)
- IslandFour.Touched:Connect(function(otherPart: BasePart)
- local player = Players:GetPlayerFromCharacter(otherPart.Parent)
- if player then
- player.Islands.IslandBoost.Value = 1.3
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement