-
Notifications
You must be signed in to change notification settings - Fork 0
/
RBX 12 fixed amogus
74 lines (54 loc) · 1.88 KB
/
RBX 12 fixed amogus
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
local Players = game:GetService("Players")
playerposx = 0
playerposy = 0
rainchosen = nil
-- DOG AND CAT RAIN
local tower = {"dog", "cat", "amogu"}
local locationt1 = game.Workspace.t1.t1loca.CFrame.Position
local locationt2 = game.Workspace.t2.t2loca.CFrame.Position
local locationt3 = game.Workspace.t3.t3loca.CFrame.Position
local baseplate = game.Workspace.Baseplate
local randlocation = {locationt1, locationt2, locationt3}
x = 0
local function towerain()
while x < 125 do
game.Workspace.t1.t1loca.CanCollide = false
game.Workspace.t2.t2loca.CanCollide = false
game.Workspace.t3.t3loca.CanCollide = false
local dog = game.Workspace.storage.dog
local cat = game.Workspace.storage.cat
local amongus = game.Workspace.storage.amongus
local rain = tower[math.random(1,#tower)]
x += 1
wait(0.1)
if rain == "dog" then
local clonedmodel = dog:clone() --Replace ModelLocation
clonedmodel.Parent = game.Workspace -- rain
clonedmodel.PrimaryPart.CFrame = CFrame.new(randlocation[math.random(1,#randlocation)])
clonedmodel.PrimaryPart.Touched:Connect(function(rains)
if rains == baseplate then
clonedmodel:Destroy()
end
end)
elseif rain == "cat" then
local clonedmodel = cat:clone() --Replace ModelLocation
clonedmodel.Parent = game.Workspace
clonedmodel.PrimaryPart.CFrame = CFrame.new(randlocation[math.random(1,#randlocation)])
clonedmodel.PrimaryPart.Touched:Connect(function(rains)
if rains == baseplate then
clonedmodel:Destroy()
end
end)
elseif rain == "amogu" then
local clonedmodel = amongus:clone() --Replace ModelLocation
clonedmodel.Parent = game.Workspace
clonedmodel.PrimaryPart.CFrame = CFrame.new(randlocation[math.random(1,#randlocation)])
clonedmodel.PrimaryPart.Touched:Connect(function(rains)
if rains == baseplate then
clonedmodel:Destroy()
end
end)
end
end
end
towerain()