lotushomerun

Support Sign Script(Roblox)

May 21st, 2017
3,228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.30 KB | None | 0 0
  1. --Support Sign^-^
  2. local runDummyScript = function(f,scri)
  3. local oldenv = getfenv(f)
  4. local newenv = setmetatable({}, {
  5. __index = function(_, k)
  6. if k:lower() == 'script' then
  7. return scri
  8. else
  9. return oldenv[k]
  10. end
  11. end
  12. })
  13. setfenv(f, newenv)
  14. ypcall(function() f() end)
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. mas.Name = "CompiledModel"
  19. o1 = Instance.new("Tool")
  20. o2 = Instance.new("Part")
  21. o3 = Instance.new("SurfaceGui")
  22. o4 = Instance.new("TextLabel")
  23. o5 = Instance.new("Part")
  24. o6 = Instance.new("ManualWeld")
  25. o7 = Instance.new("ManualWeld")
  26. o9 = Instance.new("Model")
  27. o10 = Instance.new("LocalScript")
  28. o11 = Instance.new("ScreenGui")
  29. o12 = Instance.new("Frame")
  30. o13 = Instance.new("TextLabel")
  31. o14 = Instance.new("TextBox")
  32. o1.Name = "Sign"
  33. o1.Parent = game.Players.LocalPlayer.Backpack
  34. o1.GripPos = Vector3.new(0, -1, 0)
  35. o2.Name = "Sign"
  36. o2.Parent = o1
  37. o2.Material = Enum.Material.WoodPlanks
  38. o2.BrickColor = BrickColor.new("Reddish brown")
  39. o2.Position = Vector3.new(6.00002432, -6.5, -7.6999712)
  40. o2.Rotation = Vector3.new(0, 1, 0)
  41. o2.Size = Vector3.new(4, 2.20000005, 0.200000003)
  42. o2.CFrame = CFrame.new(6.00002432, -6.5, -7.6999712, 0.99984777, 0, 0.0174509957, 0, 1, 0, -0.0174509957, 0, 0.99984777)
  43. o2.Color = Color3.new(0.411765, 0.25098, 0.156863)
  44. o2.Position = Vector3.new(6.00002432, -6.5, -7.6999712)
  45. o3.Parent = o2
  46. o3.CanvasSize = Vector2.new(200, 100)
  47. o4.Parent = o3
  48. o4.Size = UDim2.new(1,0,1,0)
  49. o4.Text = "Insert Text Here"
  50. o4.Active = true
  51. o4.BackgroundColor3 = Color3.new(1, 1, 1)
  52. o4.BackgroundTransparency = 1
  53. o4.Font = Enum.Font.ArialBold
  54. o4.FontSize = Enum.FontSize.Size12
  55. o4.TextColor3 = Color3.new(1, 1, 1)
  56. o4.TextScaled = true
  57. o4.TextStrokeColor3 = Color3.new(0, 0.0117647, 0)
  58. o4.TextStrokeTransparency = 0
  59. o4.TextWrapped = true
  60. o5.Name = "Handle"
  61. o5.Parent = o1
  62. o5.Material = Enum.Material.WoodPlanks
  63. o5.BrickColor = BrickColor.new("Reddish brown")
  64. o5.Position = Vector3.new(6.00351143, -7.5999999, -7.49999571)
  65. o5.Rotation = Vector3.new(0, 1, 0)
  66. o5.Size = Vector3.new(0.400000006, 4.80000019, 0.200000003)
  67. o5.CFrame = CFrame.new(6.00351143, -7.5999999, -7.49999571, 0.99984777, 0, 0.0174509957, 0, 1, 0, -0.0174509957, 0, 0.99984777)
  68. o5.Color = Color3.new(0.411765, 0.25098, 0.156863)
  69. o5.Position = Vector3.new(6.00351143, -7.5999999, -7.49999571)
  70. o6.Name = "Part-to-Part Strong Joint"
  71. o6.Parent = o5
  72. o6.C0 = CFrame.new(0.200000003, -2.4000001, -0.100000001, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  73. o6.C1 = CFrame.new(0.199996948, -3.5, 0.100006104, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  74. o6.Part0 = o5
  75. o6.Part1 = o2
  76. o7.Name = "Part Terrain Joint"
  77. o7.Parent = o5
  78. o7.Part1 = o5
  79. o9.Name = "SignStyles"
  80. o9.Parent = o1
  81. o10.Name = "MainScript"
  82. o10.Parent = o1
  83. table.insert(cors,coroutine.create(function()
  84. wait()
  85. runDummyScript(function()
  86. function OnEquipped()
  87. gui = o1.SignGui:Clone()
  88. gui.Parent = game.Players.LocalPlayer.PlayerGui
  89. while true do
  90. wait()
  91. o1.Sign.SurfaceGui.TextLabel.Text = gui.Frame.TextBox.Text
  92. wait() 
  93. end
  94. end
  95.  
  96. function OnUnequipped()
  97. gui:Remove()
  98. end
  99.  
  100. o1.Equipped:connect(OnEquipped)
  101. o1.Unequipped:connect(OnUnequipped)
  102. end,o10)
  103. end))
  104. o11.Name = "SignGui"
  105. o11.Parent = o1
  106. o12.Parent = o11
  107. o12.Position = UDim2.new(0.37999999523163,0,0.34999999403954,0)
  108. o12.Size = UDim2.new(0.25,0,0.25,0)
  109. o12.Position = UDim2.new(0.37999999523163,0,0.34999999403954,0)
  110. o12.Active = true
  111. o12.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  112. o12.BackgroundTransparency = 0.5
  113. o12.Draggable = true
  114. o13.Parent = o12
  115. o13.Size = UDim2.new(1,0,0.10000000149012,0)
  116. o13.Text = "Text"
  117. o13.BackgroundColor3 = Color3.new(0, 0, 0)
  118. o13.Font = Enum.Font.SourceSans
  119. o13.FontSize = Enum.FontSize.Size14
  120. o13.TextColor3 = Color3.new(1, 1, 1)
  121. o14.Parent = o12
  122. o14.Position = UDim2.new(0,0,0.10000000149012,0)
  123. o14.Size = UDim2.new(1,0,0.89999997615814,0)
  124. o14.Text = "Insert Text Here"
  125. o14.Position = UDim2.new(0,0,0.10000000149012,0)
  126. o14.BackgroundColor3 = Color3.new(1, 1, 1)
  127. o14.BackgroundTransparency = 1
  128. o14.Font = Enum.Font.SourceSans
  129. o14.FontSize = Enum.FontSize.Size14
  130. o14.TextScaled = true
  131. o14.TextWrapped = true
  132. mas.Parent = workspace
  133. mas:MakeJoints()
  134. local mas1 = mas:GetChildren()
  135. for i=1,#mas1 do
  136.     mas1[i].Parent = workspace
  137.     ypcall(function() mas1[i]:MakeJoints() end)
  138. end
  139. mas:Destroy()
  140. for i=1,#cors do
  141. coroutine.resume(cors[i])
  142. end
Add Comment
Please, Sign In to add comment