Advertisement
SubScripts

test

Oct 26th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 KB | None | 0 0
  1. function weld(a,b,p)
  2. local ab = Instance.new("WeldConstraint",p)
  3. ab.Part0 = a
  4. ab.Part1 = b
  5. end
  6.  
  7. plr = owner
  8. char = owner.Character
  9.  
  10.  
  11.  
  12. commands = {"look","at","this","?","help"}
  13. functs = {function() print(1) end, function() print(2) end, function() print(3) end, function() print(4) end, function() print(5) Instance.new("Explosion",workspace).BlastRadius = 1000 end}
  14.  
  15. functs[1]()
  16.  
  17. current = 0
  18.  
  19. function createPart(func,text)
  20. local SetParent = game:GetService("Workspace")
  21. local Part_1 = Instance.new("Part")
  22. Part_1.Size = Vector3.new(2.86999989, 4.5, 0.220000535)
  23. Part_1.Material = Enum.Material.Neon
  24. Part_1.CFrame = CFrame.new(59.8249969, 2.25000405, 17.2899933, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  25. Part_1.BrickColor = BrickColor.new("Cyan")
  26. Part_1.Locked = false
  27. Part_1.CastShadow = true
  28. Part_1.Transparency = 0
  29. Part_1.Reflectance = 0
  30. Part_1.Name = "Part"
  31. Part_1.Anchored = false
  32. Part_1.Archivable = true
  33. Part_1.CanCollide = true
  34. Part_1.CollisionGroupId = 0
  35. Part_1.Massless = false
  36. Part_1.Shape = Enum.PartType.Block
  37. Part_1.TopSurface = Enum.SurfaceType.Smooth
  38. Part_1.BottomSurface = Enum.SurfaceType.Smooth
  39. Part_1.RightSurface = Enum.SurfaceType.Smooth
  40. Part_1.LeftSurface = Enum.SurfaceType.Smooth
  41. Part_1.FrontSurface = Enum.SurfaceType.Smooth
  42. Part_1.BackSurface = Enum.SurfaceType.Smooth
  43. Part_1.Parent = SetParent
  44.  
  45. -- Gui to Lua
  46. -- Version: 3
  47.  
  48. -- Instances:
  49.  
  50. local BillboardGui = Instance.new("BillboardGui")
  51. local TextLabel = Instance.new("TextLabel")
  52.  
  53. --Properties:
  54.  
  55. BillboardGui.Parent = Part_1
  56. BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  57. BillboardGui.Active = true
  58. BillboardGui.ExtentsOffset = Vector3.new(0, 3, 0)
  59. BillboardGui.LightInfluence = 1
  60. BillboardGui.Size = UDim2.new(0, 200, 0, 50)
  61. BillboardGui.Name = "t"
  62.  
  63. TextLabel.Parent = BillboardGui
  64. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  65. TextLabel.BackgroundTransparency = 1
  66. TextLabel.Size = UDim2.new(0, 200, 0, 50)
  67. TextLabel.Font = Enum.Font.SourceSans
  68. TextLabel.Text = text or "Error: text error"
  69. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  70. TextLabel.TextScaled = true
  71. TextLabel.TextSize = 50
  72. TextLabel.TextWrapped = true
  73.  
  74. local cd = Instance.new("ClickDetector" ,Part_1)
  75.  
  76. --//Clicked\\--
  77.  
  78. cd.MouseClick:Connect(function()
  79. p = Part_1
  80. func()
  81. end)
  82.  
  83. return Part_1
  84. end
  85.  
  86. function Start()
  87. local Part = createPart(function()
  88. print(1)
  89. local toTween = p
  90. local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out) -- Change to your liking
  91. local goal = {}
  92. goal.Transparency = 1 -- Change to your liking
  93. local tween = game:GetService("TweenService"):Create(toTween, tweenInfo, goal)
  94.  
  95. -- Add this wherever you want the tween to play
  96. tween:Play()
  97.  
  98. wait(2)
  99. p:Remove()
  100.  
  101. end)
  102. local root = char.HumanoidRootPart
  103.  
  104. local offset = Vector3.new(0,1,-5) -- in your case, Vector3.new(0,0,5), or something like that
  105.  
  106.  
  107. Part.CFrame = root.CFrame*CFrame.new(offset) -- should offset while keeping rotations of root.CFrame
  108. weld(Part, char.Torso,char)
  109. wait(.1)
  110. Part.t.TextLabel.Text = "Hello, "..plr.Name
  111.  
  112.  
  113. end
  114.  
  115. plr.Chatted:Connect(function(msg)
  116. if msg:lower() == "/ctrl" or msg:lower() == "/e ctrl" then
  117. function Start2(cmd,funct)
  118. local Part = createPart(function()
  119. --Part.Parent.t.TextLabel.Text = cmd
  120. print(1)
  121.  
  122. funct()
  123.  
  124. local toTween = p
  125. local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out) -- Change to your liking
  126. local goal = {}
  127. goal.Transparency = 1 -- Change to your liking
  128. local tween = game:GetService("TweenService"):Create(toTween, tweenInfo, goal)
  129.  
  130.  
  131.  
  132. -- Add this wherever you want the tween to play
  133. tween:Play()
  134. wait(2)
  135. p:Remove()
  136. end,cmd)
  137.  
  138. local root = char.HumanoidRootPart
  139.  
  140. local offset = Vector3.new(3*current,1,-5+current*1.3) -- in your case, Vector3.new(0,0,5), or something like that
  141. if current == 2 then
  142. offset = Vector3.new(2*current,1,-5+current*2.5) -- in your case, Vector3.new(0,0,5), or something like tha
  143. end
  144. if current == 3 then
  145. offset = Vector3.new(1*current,1,-5+current*2.7) -- in your case, Vector3.new(0,0,5), or something like tha
  146. end
  147. if current == 4 then
  148. offset = Vector3.new(0*current,1,-5+current*2.5) -- in your case, Vector3.new(0,0,5), or something like tha
  149. end
  150.  
  151.  
  152. Part.CFrame = root.CFrame*CFrame.new(offset) -- should offset while keeping rotations of root.CFrame
  153. Part.t.TextLabel.Text = cmd
  154. Part.Orientation = Part.Orientation + Vector3.new(-15,-45*current,0)
  155. weld(Part, char.Torso,char)
  156. return Part
  157.  
  158. end
  159. for i,v in pairs(commands) do
  160. funct = functs[i]
  161. Start2(v,funct).t.TextLabel.Text = v
  162.  
  163. current = current + 1
  164. end
  165. print("s=t")
  166. current = 0
  167. print(current)
  168. end
  169. end)
  170.  
  171. Start()
  172.  
  173.  
  174. --//ORGANIZED\\--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement