Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function weld(a,b,p)
- local ab = Instance.new("WeldConstraint",p)
- ab.Part0 = a
- ab.Part1 = b
- end
- plr = owner
- char = owner.Character
- commands = {"look","at","this","?","help"}
- 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}
- functs[1]()
- current = 0
- function createPart(func,text)
- local SetParent = game:GetService("Workspace")
- local Part_1 = Instance.new("Part")
- Part_1.Size = Vector3.new(2.86999989, 4.5, 0.220000535)
- Part_1.Material = Enum.Material.Neon
- Part_1.CFrame = CFrame.new(59.8249969, 2.25000405, 17.2899933, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part_1.BrickColor = BrickColor.new("Cyan")
- Part_1.Locked = false
- Part_1.CastShadow = true
- Part_1.Transparency = 0
- Part_1.Reflectance = 0
- Part_1.Name = "Part"
- Part_1.Anchored = false
- Part_1.Archivable = true
- Part_1.CanCollide = true
- Part_1.CollisionGroupId = 0
- Part_1.Massless = false
- Part_1.Shape = Enum.PartType.Block
- Part_1.TopSurface = Enum.SurfaceType.Smooth
- Part_1.BottomSurface = Enum.SurfaceType.Smooth
- Part_1.RightSurface = Enum.SurfaceType.Smooth
- Part_1.LeftSurface = Enum.SurfaceType.Smooth
- Part_1.FrontSurface = Enum.SurfaceType.Smooth
- Part_1.BackSurface = Enum.SurfaceType.Smooth
- Part_1.Parent = SetParent
- -- Gui to Lua
- -- Version: 3
- -- Instances:
- local BillboardGui = Instance.new("BillboardGui")
- local TextLabel = Instance.new("TextLabel")
- --Properties:
- BillboardGui.Parent = Part_1
- BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BillboardGui.Active = true
- BillboardGui.ExtentsOffset = Vector3.new(0, 3, 0)
- BillboardGui.LightInfluence = 1
- BillboardGui.Size = UDim2.new(0, 200, 0, 50)
- BillboardGui.Name = "t"
- TextLabel.Parent = BillboardGui
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = text or "Error: text error"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 50
- TextLabel.TextWrapped = true
- local cd = Instance.new("ClickDetector" ,Part_1)
- --//Clicked\\--
- cd.MouseClick:Connect(function()
- p = Part_1
- func()
- end)
- return Part_1
- end
- function Start()
- local Part = createPart(function()
- print(1)
- local toTween = p
- local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out) -- Change to your liking
- local goal = {}
- goal.Transparency = 1 -- Change to your liking
- local tween = game:GetService("TweenService"):Create(toTween, tweenInfo, goal)
- -- Add this wherever you want the tween to play
- tween:Play()
- wait(2)
- p:Remove()
- end)
- local root = char.HumanoidRootPart
- local offset = Vector3.new(0,1,-5) -- in your case, Vector3.new(0,0,5), or something like that
- Part.CFrame = root.CFrame*CFrame.new(offset) -- should offset while keeping rotations of root.CFrame
- weld(Part, char.Torso,char)
- wait(.1)
- Part.t.TextLabel.Text = "Hello, "..plr.Name
- end
- plr.Chatted:Connect(function(msg)
- if msg:lower() == "/ctrl" or msg:lower() == "/e ctrl" then
- function Start2(cmd,funct)
- local Part = createPart(function()
- --Part.Parent.t.TextLabel.Text = cmd
- print(1)
- funct()
- local toTween = p
- local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out) -- Change to your liking
- local goal = {}
- goal.Transparency = 1 -- Change to your liking
- local tween = game:GetService("TweenService"):Create(toTween, tweenInfo, goal)
- -- Add this wherever you want the tween to play
- tween:Play()
- wait(2)
- p:Remove()
- end,cmd)
- local root = char.HumanoidRootPart
- local offset = Vector3.new(3*current,1,-5+current*1.3) -- in your case, Vector3.new(0,0,5), or something like that
- if current == 2 then
- offset = Vector3.new(2*current,1,-5+current*2.5) -- in your case, Vector3.new(0,0,5), or something like tha
- end
- if current == 3 then
- offset = Vector3.new(1*current,1,-5+current*2.7) -- in your case, Vector3.new(0,0,5), or something like tha
- end
- if current == 4 then
- offset = Vector3.new(0*current,1,-5+current*2.5) -- in your case, Vector3.new(0,0,5), or something like tha
- end
- Part.CFrame = root.CFrame*CFrame.new(offset) -- should offset while keeping rotations of root.CFrame
- Part.t.TextLabel.Text = cmd
- Part.Orientation = Part.Orientation + Vector3.new(-15,-45*current,0)
- weld(Part, char.Torso,char)
- return Part
- end
- for i,v in pairs(commands) do
- funct = functs[i]
- Start2(v,funct).t.TextLabel.Text = v
- current = current + 1
- end
- print("s=t")
- current = 0
- print(current)
- end
- end)
- Start()
- --//ORGANIZED\\--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement