Advertisement
ERROR_CODE

Click detector beta

Sep 6th, 2023 (edited)
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.92 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local PaperFame1 = Instance.new("Frame")
  3. local PaperButton1 = Instance.new("TextLabel")
  4. ScreenGui.Parent = game.CoreGui
  5.  
  6. PaperFame1.Name = "PaperFame1"
  7. PaperFame1.Parent = ScreenGui
  8. PaperFame1.BackgroundColor3 = Color3.new(255, 255, 255)
  9. PaperFame1.BackgroundTransparency = 1
  10. PaperFame1.Position = UDim2.new(0.105540894, 0, 0.778873265, 0)
  11. PaperFame1.Size = UDim2.new(0, 100, 0, 100)
  12.  
  13. PaperButton1.Name = "PaperButton1"
  14. PaperButton1.Parent = PaperFame1
  15. PaperButton1.BackgroundColor3 = Color3.new(0, 0, 0)
  16. PaperButton1.BorderSizePixel = 0
  17. PaperButton1.Draggable = false
  18. PaperButton1.Position = UDim2.new(2.2, 0, -3.4, 0)
  19. PaperButton1.Size = UDim2.new(0, 350, 0, 400)
  20. PaperButton1.Font = Enum.Font.IndieFlower
  21. PaperButton1.FontSize = Enum.FontSize.Size48
  22. PaperButton1.Text = "1.Find the key\n 2.Find the celler key\n 3.goto celler\n 4.find your friend."
  23. PaperButton1.TextColor3 = Color3.new(155, 0, 0)
  24. PaperButton1.TextSize = 50
  25. PaperButton1.Visible = false
  26.  
  27. ClickDetector1 = Instance.new("ClickDetector")
  28. local PaperPart = Instance.new("Part")
  29. PaperPart.Parent = workspace
  30. PaperPart.Anchored = true
  31. PaperPart.Size = Vector3.new(9099, 58, 9999)
  32. PaperPart.CanCollide = true
  33. PaperPart.Position = Vector3.new(117.61, 1695, -27.15)
  34.  
  35. local PaperPartMesh = Instance.new("SpecialMesh", PaperPart)
  36. PaperPartMesh.Scale = Vector3.new(9099, 58, 9999)
  37. PaperPartMesh.MeshId = "rbxassetid://6714051581"
  38. PaperPartMesh.TextureId = "rbxassetid://6714051634"
  39. ClickDetector1.Parent = PaperPart
  40. ClickDetector1.MouseClick:connect(function()
  41. PaperPart.Position = Vector3.new(9099000, 999999999, 9900099)
  42. Papertool = Instance.new("Tool")
  43. Papertool.RequiresHandle = false
  44. Papertool.Name = "Paper"
  45. Papertool.Equipped:Connect(function()
  46. PaperButton1.Visible = true
  47. end)
  48.  
  49. Papertool.Unequipped:Connect(function()
  50. PaperButton1.Visible = false
  51. end)
  52. Papertool.Parent = game.Players.LocalPlayer.Backpack
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement