local button = script.Parent
local click = script.Parent.ClickDetector
local function omikuji()
click.MaxActivationDistance = 0
local random = math.random(1,100) --1~100の中から一つの数字を選ぶ
if random <= 5 then--大吉
game:GetService("Chat"):Chat(button,"運勢:大吉")
elseif random >= 6 and random <= 30 then --中吉
game:GetService("Chat"):Chat(button,"運勢:中吉")
elseif random >= 31 and random <= 65 then --吉
game:GetService("Chat"):Chat(button,"運勢:吉")
elseif random >= 66 and random <= 80 then --小吉
game:GetService("Chat"):Chat(button,"運勢:小吉")
elseif random >= 81 and random <= 95 then --末吉
game:GetService("Chat"):Chat(button,"運勢:末吉")
elseif random >= 96 and random <= 100 then --凶
game:GetService("Chat"):Chat(button,"運勢:凶")
else
end
wait(3)
if random <= 5 then--大吉
game:GetService("Chat"):Chat(button,"皆が君にひれ伏す!ラッキーアイテムは漢字辞典!")
elseif random >= 6 and random <= 30 then --中吉
game:GetService("Chat"):Chat(button,"今日は穏やかな一日になるよ!ラッキーアイテムは紙せっけん!")
elseif random >= 31 and random <= 65 then --吉
game:GetService("Chat"):Chat(button,"運動すると良いことが起る?ラッキーアイテムはなわとび!")
elseif random >= 66 and random <= 80 then --小吉
game:GetService("Chat"):Chat(button,"残り物には福がある!ラッキーアイテムはいい匂いのハンドクリーム!")
elseif random >= 81 and random <= 95 then --末吉
game:GetService("Chat"):Chat(button,"置き引きに注意!ラッキーアイテムは特になし!")
elseif random >= 96 and random <= 100 then --凶
game:GetService("Chat"):Chat(button,"うしろに気を付けて!ラッキーアイテムは盾!")
else
end
click.MaxActivationDistance = 32 --元に戻す!
end
click.MouseClick:Connect(omikuji)
ご自由にお使いください。