#script is not working.

2 messages · Page 1 of 1 (latest)

ashen pollen
#

how to fix this.

#

scripts is here

local Play = script.Parent.Play
local Info = script.Parent.Info
local Rule = script.Parent.Rule
local sound = script.Parent.Button
local sound2 = script.Parent.Button2
local txt = script.Parent
local TweenService = game:GetService("TweenService")
local TweenInfo = TweenInfo.new(
    0.1,
    Enum.EasingStyle.Bounce,
    Enum.EasingDirection.Out
)
local Tween = TweenService:Create(Play, TweenInfo, {Rotation = 15})
local Tween2 = TweenService:Create(Play, TweenInfo, {Rotation = 0})
local Tween3 = TweenService:Create(Info, TweenInfo, {Rotation = 15})
local Tween4 = TweenService:Create(Info, TweenInfo, {Rotation = 0})
local Tween5 = TweenService:Create(Rule, TweenInfo, {Rotation =15})
local Tween6 = TweenService:Create(Rule, TweenInfo, {Rotation = 0})

Play.MouseEnter:Connect(function()
    Tween:Play()
    Play.Text = "Play it!"
    Play.TextSize = 50
    sound:Play()
end)

Play.MouseLeave:Connect(function()
    Tween2:Play()
    Play.Text = "Play"
    Play.TextSize = 15
end)

Play.MouseButton1Click:Connect(function()
    txt.Enabled = false
    sound2:Play()
end)
-- ここまでPlay
Info.MouseEnter:Connect(function()
    Tween3:Play()
    Info.Text = "developer"
    Info.TextSize = 50
    sound:Play()
end)

Info.MouseLeave:Connect(function()
    Tween4:Play()
    Info.Text = "Info"
    Info.TextSize = 15
end)

Info.MouseButton1Click:Connect(function()
    txt.Enabled = false
end)
--ここまでInfo
Rule.MouseEnter:Connect(function()
    Tween5:Play()
    Rule.Text = "Read it!"
    Rule.TextSize = 50
    sound:Play()
end)

Rule.MouseLeave:Connect(function()
    Tween6:Play()
    Rule.Text = "Rule"
    Rule.TextSize = 15
end)

Rule.MouseButton1Click:Connect(function()
    txt.Enabled = false
    script.Parent.Parent.Rule2.Frame.Visible = true
end)