Advertisement
scriptingtales

Testing Script

Mar 24th, 2024
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.16 KB | None | 0 0
  1. WorldModel = Instance.new("WorldModel")
  2. BillGui = Instance.new("BillboardGui", WorldModel)
  3. Part1 = Instance.new("Part")
  4. SpecialMesh2 = Instance.new("SpecialMesh")
  5. char = owner.Character
  6. HighLight = Instance.new("Highlight")
  7. llerp = CFrame.Angles(0,0,0)
  8. rlerp = CFrame.Angles(0,0,0)
  9. Hum = char.Humanoid
  10. orien = CFrame.new(0,0,0)
  11. sin = 5
  12. Part3 = Instance.new("Part")
  13. Part4 = Instance.new("Part")
  14. Part5 = Instance.new("Part")
  15. Part6 = Instance.new("Part")
  16. ParticleEmitter7 = Instance.new("ParticleEmitter")
  17. SurfaceGui8 = Instance.new("SurfaceGui")
  18. TextLabel9 = Instance.new("TextLabel")
  19. WorldModel.Parent = script
  20. HighLight.FillTransparency = 1
  21. HighLight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  22. HighLight.Parent = WorldModel
  23. pos = char.HumanoidRootPart.CFrame
  24. --WorldModel.PrimaryPart = owner.Character.Torso
  25. Part1.Name = "Handle"
  26. Part1.Parent = WorldModel
  27. Part1.CFrame = CFrame.new(70.1109924, 3.70699978, 43.8660011, 0.763127089, -0.64034456, 0.0871551633, 0.642790556, 0.766042054, 3.15712356e-07, -0.0667647198, 0.0560222715, 0.996194839)
  28. Part1.Orientation = Vector3.new(0, 5, 40)
  29. Part1.Rotation = Vector3.new(0, 5, 40)
  30. Part1.Size = Vector3.new(1, 1, 1)
  31. Part1.Anchored = true
  32. Part1.BottomSurface = Enum.SurfaceType.Smooth
  33. Part1.CanCollide = false
  34. Part1.TopSurface = Enum.SurfaceType.Smooth
  35. SpecialMesh2.Name = "SpecialMesh"
  36. SpecialMesh2.Parent = Part1
  37. SpecialMesh2.MeshId = "rbxassetid://5355486008"
  38. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=6815179122"
  39. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  40. Part3.Parent = WorldModel
  41. Part3.CFrame = CFrame.new(70.1119232, 0.316749007, 43.9393806, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  42. Part3.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  43. Part3.Size = Vector3.new(5.954044342041016, 0.21115493774414062, 5.073566436767578)
  44. Part3.Anchored = true
  45. Part3.BottomSurface = Enum.SurfaceType.Smooth
  46. Part3.BrickColor = BrickColor.new("Burnt Sienna")
  47. Part3.Material = Enum.Material.Wood
  48. Part3.TopSurface = Enum.SurfaceType.Smooth
  49. Part3.brickColor = BrickColor.new("Burnt Sienna")
  50. Part4.Parent = WorldModel
  51. Part4.CFrame = CFrame.new(70.1126175, 0.527921021, 43.9210892, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  52. Part4.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  53. Part4.Size = Vector3.new(5.6991071701049805, 0.21115493774414062, 4.799654960632324)
  54. Part4.Anchored = true
  55. Part4.BottomSurface = Enum.SurfaceType.Smooth
  56. Part4.BrickColor = BrickColor.new("Burnt Sienna")
  57. Part4.Material = Enum.Material.Wood
  58. Part4.TopSurface = Enum.SurfaceType.Smooth
  59. Part4.brickColor = BrickColor.new("Burnt Sienna")
  60. Part5.Parent = WorldModel
  61. Part5.CFrame = CFrame.new(70.1395645, 0.105577469, 43.9530144, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  62. Part5.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  63. Part5.Size = Vector3.new(6.2868804931640625, 0.21115493774414062, 5.327659606933594)
  64. Part5.Anchored = true
  65. Part5.BottomSurface = Enum.SurfaceType.Smooth
  66. Part5.BrickColor = BrickColor.new("Burnt Sienna")
  67. Part5.Material = Enum.Material.Wood
  68. Part5.TopSurface = Enum.SurfaceType.Smooth
  69. Part5.brickColor = BrickColor.new("Burnt Sienna")
  70. Part6.Parent = WorldModel
  71. Part6.CFrame = CFrame.new(70.1126175, 3.94891024, 43.9210892, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  72. Part6.Color = Color3.new(0.415686, 0.415686, 0.415686)
  73. Part6.Transparency = 0.75
  74. Part6.Size = Vector3.new(5.6991071701049805, 6.62999963760376, 4.799654960632324)
  75. Part6.Anchored = true
  76. Part6.BottomSurface = Enum.SurfaceType.Smooth
  77. Part6.BrickColor = BrickColor.new("Dark grey")
  78. Part6.Material = Enum.Material.Glass
  79. Part6.TopSurface = Enum.SurfaceType.Smooth
  80. Part6.brickColor = BrickColor.new("Dark grey")
  81. ParticleEmitter7.Parent = Part6
  82. ParticleEmitter7.LightInfluence = 1
  83. ParticleEmitter7.Lifetime = NumberRange.new(0.25, 0.25)
  84. SurfaceGui8.Parent = WorldModel
  85. SurfaceGui8.LightInfluence = 1
  86. SurfaceGui8.ClipsDescendants = true
  87. SurfaceGui8.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  88. SurfaceGui8.Adornee = Part6
  89. TextLabel9.Parent = SurfaceGui8
  90. TextLabel9.Position = UDim2.new(0, 500, 0, 550)
  91. TextLabel9.Size = UDim2.new(0, 200, 0, 50)
  92. TextLabel9.BackgroundColor = BrickColor.new("Institutional white")
  93. TextLabel9.BackgroundColor3 = Color3.new(1, 1, 1)
  94. TextLabel9.BackgroundTransparency = 1
  95. TextLabel9.Font = Enum.Font.Gotham
  96. TextLabel9.FontSize = Enum.FontSize.Size28
  97. TextLabel9.Text = "- just a sword nothing else"
  98. TextLabel9.TextColor = BrickColor.new("Institutional white")
  99. TextLabel9.TextColor3 = Color3.new(1, 0, 0)
  100. TextLabel9.TextSize = 14
  101. TextLabel9.TextSize = 28
  102. char.Parent = owner
  103.  
  104. local remote1 = Instance.new("RemoteEvent", owner.Character)
  105. remote1.Name = "owo"
  106.  
  107. local function replicate1()
  108.     local part12 = Instance.new("Part", workspace)
  109.     part12.Size = Vector3.new(5,5,5)
  110.     part12.Shape = Enum.PartType.Ball
  111.     part12.Anchored = true
  112.     part12.Position = Part3.Position + Vector3.new(0,0,3)
  113. end
  114.  
  115. remote1.OnServerEvent:Connect(replicate1)
  116.  
  117. NLS([[
  118.     local inputService = game:GetService("UserInputService")
  119.     local mouse = owner:GetMouse()
  120.     local remote = owner.Character:WaitForChild("owo")
  121.  
  122.     inputService.InputBegan:Connect(function(input, gameProcess)
  123.       if gameProcess then
  124.         return
  125.       end
  126.       if input.UserInputType == Enum.UserInputType.Keyboard then
  127.         if input.KeyCode.Name == "Z" then
  128.           remote:FireServer()
  129.         end
  130.       end
  131.     end)
  132.     ]], owner.Character)
  133.  
  134. spawn(function()
  135.     while wait() do
  136.         Part1.Locked = true
  137.         Part3.Locked = true
  138.         Part4.Locked = true
  139.         Part5.Locked = true
  140.         Part6.Locked = true
  141.  
  142.         sin = sin + .5
  143.  
  144.         if Hum.MoveDirection.Magnitude > 0 then
  145.             orien = CFrame.new(Vector3.new(0,0,0), Hum.MoveDirection)
  146.             orien = orien-orien.Position
  147.             llerp = llerp:Lerp(CFrame.Angles(math.rad(math.sin(sin)*35),0,0), .55)
  148.             rlerp = rlerp:Lerp(CFrame.Angles(math.rad(-math.sin(sin)*35),0,0), .55)
  149.         else
  150.             llerp = llerp:Lerp(CFrame.Angles(0,0,0), .25)
  151.             rlerp = rlerp:Lerp(CFrame.Angles(0,0,0), .25)
  152.         end
  153.  
  154.         Part6.CFrame = CFrame.new(Part6.Position - Vector3.new(0,0,0) + (Hum.MoveDirection/5))*orien
  155.         Part5.CFrame = CFrame.new(Part5.Position + (Hum.MoveDirection/5))*orien
  156.         Part4.CFrame = CFrame.new(Part4.Position + (Hum.MoveDirection/5))*orien
  157.         Part3.CFrame = CFrame.new(Part3.Position + (Hum.MoveDirection/5))*orien
  158.         Part1.CFrame = CFrame.new(Part1.Position + (Hum.MoveDirection/5))*orien
  159.         pos = pos:Lerp(Part6.CFrame, .5)
  160.         char:SetPrimaryPartCFrame(pos)
  161.     end
  162. end)
  163.  
  164. owner.Chatted:Connect(function(message)
  165.  
  166.     local TextDial = Instance.new("TextBox", BillGui)
  167.  
  168.     BillGui.Size = UDim2.new(0, 200, 0, 50)
  169.     BillGui.Adornee = Part6
  170.     BillGui.AlwaysOnTop = true
  171.     BillGui.MaxDistance = math.huge
  172.     BillGui.StudsOffset = Vector3.new(0,3,0)
  173.  
  174.     TextDial.Text = message
  175.     TextDial.TextEditable = false
  176.     TextDial.Font = Enum.Font.Gotham
  177.     TextDial.BackgroundTransparency = 0
  178.     TextDial.BackgroundColor3 = Color3.new(0, 0, 0)
  179.     TextDial.TextColor = BrickColor.Yellow()
  180.     TextDial.BorderColor = BrickColor.White()
  181.     TextDial.Position = UDim2.new(0, 0, 0, 0)
  182.     TextDial.Size = UDim2.new(0, 200, 0, 50)
  183.     TextDial.TextColor3 = Color3.new(255, 255, 255)
  184.     TextDial.TextScaled = true
  185.  
  186.     local text = message
  187.     for i=1 , #text do
  188.         TextDial.Text = string.sub(text,1,i)
  189.         wait(0.2)   -- detemines how slow text should be typed
  190.     end
  191.     repeat TextDial:Destroy() wait(15) until message
  192. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement