I have had some problems with my Script. Can I have some help?
I'm trying to make a window that will slide down with the command ";CloseWindow" and open with the command ";OpenWindow"
Can someone help??
https://cdn.discordapp.com/attachments/692111214775631872/833527617868005396/unkno
wn.png
01 | local GroupId = 5708827 |
03 | Local Window = game.Workspace.Window |
05 | game.Players.PlayerAdded:Connect( function (Player) |
06 | Player.Chatted:Connect( function (Message) |
07 | if .Player:GetRankInGroup(GroupId)> = MinimumRank then |
08 | if Message = = ";CloseWindow" then |
10 | local TweenService = game:GetService( "TweenService" ) |
11 | local blind 1 = script.Parent.WaitForChild( "Blind1" ) |
12 | local blind 2 = script.Parent.WaitForChild( "Blind2" ) |
13 | local blind 3 = script.Parent.WaitForChild( "Blind3" ) |
14 | local tweeningInformation = TweenInfo.new( |
16 | Enum.EasingStyle.Linear, |
17 | Enum.EasingDirection.Out, |
23 | local blind 1 Close = { CFrame = CFrame.new( 7.863 , 6.905 , 0.137 ) } |
24 | local blind 2 Close = { CFrame = CFrame.new( 7.849 , 6.991 , 5.637 ) } |
25 | local blind 3 Close = { CFrame = CFrame.new( 7.827 , 6.887 , 11.1377 ) } |
26 | local tween 1 Close = TweenService:Create(blind 1 ,tweeningInformation, blind 1 Close) |
27 | local tween 2 Close = TweenService:Create(blind 2 ,tweeningInformation, blind 2 Close) |
28 | local tween 3 Close = TweenService:Create(blind 3 ,tweeningInformation, blind 3 Close) |
29 | elseif Message = = ";OpenWindow" then |
31 | local TweenService = game:GetService( "TweenService" ) |
32 | local blind 1 = script.Parent.WaitForChild( "Blind1" ) |
33 | local blind 2 = script.Parent.WaitForChild( "Blind2" ) |
34 | local blind 3 = script.Parent.WaitForChild( "Blind3" ) |
35 | local tweeningInformation = TweenInfo.new( |
37 | Enum.EasingStyle.Linear, |
38 | Enum.EasingDirection.Out, |
43 | local blind 1 Open = { CFrame = CFrame.new( 7.863 , 20.186 , 0.137 ) } |
44 | local blind 2 Open = { CFrame = CFrame.new( 7.885 , 20.271 , 5.637 ) } |
45 | local blind 3 Open = { CFrame = CFrame.new( 7.848 , 20.168 , 11.137 ) } |
46 | local tween 1 Open = TweenService:Create(blind 1 ,tweeningInformation, blind 1 Open) |
47 | local tween 2 Open = TweenService:Create(blind 2 ,tweeningInformation, blind 2 Open) |
48 | local tween 3 Open = TweenService:Create(blind 3 ,tweeningInformation, blind 3 Open) |