Advertisement
TeoMessiKing

sadasdwadergerthqw465u846

Feb 24th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. mshopdoor = game.Workspace.mshopoutside.mshopoutside
  2. mshopinside = game.Workspace.mshopinside.mshopinsidedoor
  3. local debounce = false
  4.  
  5. mshopdoor.Touched:Connect(function()
  6. if not debounce then
  7. debounce = true
  8. print("This is laggy")
  9.  
  10. script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.Visible = true
  11.  
  12. for i = 1,10 do
  13.  
  14.  
  15. script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.BackgroundTransparency = script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.Transparency - 0.1
  16. wait(0.01)
  17.  
  18.  
  19. end
  20. script.Parent.Parent.Character.HumanoidRootPart.CFrame = game.Workspace.mshopinside.tppart.CFrame
  21.  
  22. for i = 1,10 do
  23.  
  24.  
  25. script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.BackgroundTransparency = script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.Transparency + 0.1
  26. wait(0.01)
  27.  
  28. end
  29. script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.Visible = false
  30. debounce = false
  31.  
  32. end
  33. end)
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. mshopinside.Touched:Connect(function()
  42. if not debounce then
  43. debounce = true
  44. print("This is laggy")
  45.  
  46. script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.Visible = true
  47.  
  48. for i = 1,10 do
  49.  
  50.  
  51. script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.BackgroundTransparency = script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.Transparency - 0.1
  52. wait(0.01)
  53.  
  54.  
  55. end
  56. script.Parent.Parent.Character.HumanoidRootPart.CFrame = game.Workspace.mshopoutside.mshopoutsidepart.CFrame
  57.  
  58. for i = 1,10 do
  59.  
  60.  
  61. script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.BackgroundTransparency = script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.Transparency + 0.1
  62. wait(0.01)
  63.  
  64. end
  65. script.Parent.Parent.PlayerGui:WaitForChild("shopscreen").shopframe.Visible = false
  66. debounce = false
  67.  
  68. end
  69. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement