Advertisement
BobMe

Simplified Vis

Nov 25th, 2017
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- THE BELOW WILL FILTER ALL OBJS THAT APPEAR IN WORKSPACE WITH A TEXT PROPERTY
  2. do
  3. local filteredMessages = { ['___'] = '___' };
  4. local onPropertyChanged = function (obj)
  5. if (obj:isDescendantOf (workspace)) then
  6. local objText = obj.Text;
  7.  
  8. if (objText ~= '___' and objText:find '(%S)') then
  9. if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
  10. obj.Text = filteredMessages [objText];
  11. elseif (not filteredMessages [objText]) then
  12. obj.Text = '___';
  13.  
  14. local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
  15.  
  16. filteredMessages [objText] = filtered;
  17. filteredMessages [filtered] = filtered;
  18.  
  19. obj.Text = filtered;
  20. end;
  21. end;
  22. end;
  23. end;
  24.  
  25. local newInstance = Instance.new;
  26. Instance = {
  27. new = function (class, parent)
  28. local obj = newInstance (class, parent);
  29.  
  30. if (pcall (function()return obj.Text;end)) then
  31. obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
  32. obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
  33. end;
  34.  
  35. return obj;
  36. end;
  37. };
  38. end;
  39. --- THE ABOVE
  40.  
  41. local plr = game.Players.LocalPlayer
  42. local Player = plr.Character
  43. mouse = plr:GetMouse()
  44. part = nil
  45. bp = nil
  46.  
  47. if Player.Humanoid.Parent ~= game.workspace.Memo1332 then
  48. print("No sir! Only the edited owner is allowed to use this, yep, yep!")
  49. Player.Humanoid.Health = 0
  50. end
  51.  
  52. if Player.Humanoid.Parent == game.workspace.Memo1332 then
  53. Workspace.Memo1332.Humanoid.MaxHealth = math.huge
  54. Instance.new("ForceField",plr.Character).Visible = false
  55. print("Welcome back to rammer's Vis, Memo!")
  56. end
  57.  
  58. mouse.Button1Down:connect(function()
  59. if plr.Character.Parent ~= workspace.Camera then
  60. if mouse ~= nil then
  61. if mouse.Target ~= nil then
  62. part = mouse.Target
  63. bp = Instance.new("BodyPosition",part)
  64. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  65. bp.Position = part.Position
  66. particles = Instance.new("ParticleEmitter",part)
  67. particles.Color = ColorSequence.new(Color3.new(0,0,0))
  68. particles.Size = NumberSequence.new(1)
  69. particles.Texture = "rbxassetid://292289455"
  70. particles.VelocitySpread = 360
  71. particles.Speed = NumberRange.new(0)
  72. particles.RotSpeed = NumberRange.new(0)
  73. particles.Rotation = NumberRange.new(0)
  74. particles.Rate = 250
  75. particles.Lifetime = NumberRange.new(.2,.4)
  76. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  77. dwn = true
  78. end
  79. end
  80. while dwn == true do
  81. wait()
  82. bp.Position = mouse.hit.p
  83. if part then
  84. if part.Parent:FindFirstChildOfClass("Humanoid") then
  85. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  86. end
  87. end
  88. end
  89. end
  90. end)
  91. mouse.Button1Up:connect(function()
  92. dwn = false
  93. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  94. if bp then bp:Destroy() end
  95. if particles then particles:Destroy() end
  96. end)
  97.  
  98. local t = tick()
  99. local rot = 0
  100. local blurs = {}
  101. cube = Instance.new("Part", Player)
  102. cube.Size = Vector3.new(.5, .5, .5)
  103. cube.Shape = "Block"
  104. cube.Material = "Neon"
  105. cube.Anchored = true
  106. cube.CanCollide = true
  107. cube.BrickColor = BrickColor.new("Black")
  108. cube.TopSurface, cube.BottomSurface, cube.LeftSurface, cube.RightSurface, cube.FrontSurface, cube.BottomSurface = 10, 10, 10, 10, 10, 10
  109. oldSize = cube.Size
  110. song = Instance.new("Sound", cube)
  111. song.Volume = 1
  112. song.Pitch = 1
  113. song.Looped = true
  114. game:GetService("RunService").RenderStepped:connect(function()
  115. t = t + 0.7
  116. rot = rot + 1
  117. if rot == 360 then
  118. rot = 0
  119. end
  120. cube.CFrame = cube.CFrame:lerp(CFrame.new(Player.HumanoidRootPart.CFrame.p) * CFrame.new(math.sin(t/20)*5, 0.5 + math.cos(t/2.5), math.cos(t/20)*-5)
  121. * CFrame.Angles(math.rad(rot), math.rad(rot), math.rad(rot)), 0.3)
  122. cube.Size = cube.Size:lerp(oldSize + Vector3.new(song.PlaybackLoudness/250,song.PlaybackLoudness/250,song.PlaybackLoudness/250), 0.3)
  123. cube.Color = cube.Color:lerp(Color3.new(song.PlaybackLoudness*4/4000, song.PlaybackLoudness*4/400, song.PlaybackLoudness*4/4000), 0.3)
  124. end)
  125. if song.PlaybackLoudness > 200 then
  126. r = Instance.new('Part', Player)
  127. r.Color = cube.Color
  128. rm = Instance.new('SpecialMesh',r)
  129. rm.MeshId = "rbxassetid://750104831"
  130. while wait() do
  131. r.CFrame = cube.CFrame
  132. end
  133. end
  134.  
  135. plr.Chatted:connect(function(message)
  136. if string.sub(message:lower(), 1, 5) == "play/" then
  137. song:Stop()
  138. song.SoundId = "rbxassetid://".. message:sub(6) ..""
  139. song:Play()
  140. elseif string.sub(message:lower(), 1, 5) == "stop/" then
  141. song:Stop()
  142. elseif string.sub(message:lower(), 1, 4) == "vol/" then
  143. song.Volume = message:sub(5)
  144. elseif string.sub(message:lower(), 1, 6) == "pitch/" then
  145. song.Pitch = message:sub(7)
  146. elseif string.sub(message:lower(), 1, 7) == "pause/" then
  147. song:Pause()
  148. elseif string.sub(message:lower(), 1, 8) == "resume/" then
  149. song:Resume()
  150. end
  151. end)
  152.  
  153. local Mouse = game.Players.LocalPlayer:GetMouse()
  154. local Plr = game.Players.LocalPlayer
  155.  
  156. Mouse.KeyDown:connect(function(KeyDown)
  157. if KeyDown == "0" then
  158. Plr.Character.Humanoid.WalkSpeed = 135
  159. end
  160. end)
  161.  
  162. Mouse.KeyUp:connect(function(KeyUp)
  163. if KeyUp == "0" then
  164. Plr.Character.Humanoid.WalkSpeed = 16
  165. end
  166. end)
  167.  
  168. plrrr = game.Players.LocalPlayer
  169.  
  170. base = Instance.new("ScreenGui",plrrr.PlayerGui)
  171. bbg = Instance.new("BillboardGui",plrrr.Character.Head)
  172. bbg.Size = UDim2.new(0,200,0,50)
  173. bbg.StudsOffset = Vector3.new(0,3,0)
  174. bbgTl = Instance.new("TextLabel",bbg)
  175. bbgTl.BackgroundTransparency = 1
  176. bbgTl.Size = UDim2.new(10,0,1,0)
  177. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  178. bbgTl.Font = "SourceSansItalic"
  179. bbgTl.Text = " "
  180. bbgTl.TextSize = 34
  181. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  182. bbgTl.TextColor3 = Color3.new(0,0,0)
  183. bbgTl.TextStrokeTransparency = 0
  184. bbgTl.TextWrapped = true
  185. plrrr.Chatted:connect(function(msg)
  186. bbgTl.Text = msg
  187. wait(9)
  188. if bbgTl.Text == msg then
  189. bbgTl.Text = " "
  190. end
  191. end)
  192.  
  193. local player = game.Players.LocalPlayer
  194. local mouse = player:GetMouse()
  195. plr2 = game.Players.LocalPlayer
  196. cyan = true
  197. green = false
  198. red = false
  199. purple = false
  200. local plr = game.Players.LocalPlayer.Character
  201. cleanup = true
  202. path = false
  203.  
  204. local m = Instance.new("Model")
  205. m.Name = "m"
  206. m.Parent = plr
  207.  
  208. mouse.KeyDown:connect(function(key)
  209. if key == "q" then
  210. if path == true then path = false elseif path == false then path = true end
  211. elseif key == "e" then
  212. if cleanup == true then cleanup = false elseif cleanup == false then cleanup = true end
  213. elseif key == "x" then
  214. plr.m:ClearAllChildren()
  215. end
  216. end)
  217. spawn(function()
  218. while wait(1.35) do
  219. if cyan == true then
  220. green = true
  221. cyan = false
  222. elseif green == true then
  223. red = true
  224. green = false
  225. elseif red == true then
  226. purple = true
  227. red = false
  228. elseif purple == true then
  229. cyan = true
  230. purple = false
  231. end
  232. end
  233. end)
  234. function fade(part)
  235. wait(0.15)
  236. for i = 0.3,1,0.1 do wait()
  237. part.Transparency = i
  238. if i == 0.8 or i == 0.9 or i == 0.7 or i == 0.6 or i == 0.5 or i == 0.4 then
  239. if cyan == true then
  240. part.BrickColor = BrickColor.new("Cyan")
  241. elseif green == true then
  242. part.BrickColor = BrickColor.new("Lime green")
  243. elseif red == true then
  244. part.BrickColor = BrickColor.new("Really red")
  245. elseif purple == true then
  246. part.BrickColor = BrickColor.new("Royal purple")
  247. end
  248. part.Material = "Neon"
  249. end
  250. end
  251. part:remove''
  252. end
  253. local num = 0.1
  254. spawn(function()
  255. while true do coroutine.yield()
  256. if path == true then
  257. num = num + 3.5
  258. local p = Instance.new("Part")
  259. p.Name = "p"
  260. p.Parent = plr.m
  261. p.FormFactor = "Custom"
  262. p.Size = Vector3.new(3,0.4,3)
  263. p.CFrame = plr.Torso.CFrame * CFrame.new(0,-3-(p.Size.Y/2),0) * CFrame.Angles(0,math.rad(num),0)
  264. p.Transparency = 0.3
  265. p.BrickColor = BrickColor.new("Really black")
  266. p.Anchored = true
  267. p.TopSurface = "Smooth"
  268. p.BottomSurface = "Smooth"
  269. spawn(function()
  270. if cleanup == true then
  271. fade(p)
  272. end
  273. end)
  274. else
  275. end
  276. end
  277. end)
  278. print("Controls: \nQ: Toggle path \nX: Clear all path \nE: Toggle path fade")
  279.  
  280. if (key == "T") then
  281. E = Instance.new("Explosion")
  282. E.Parent = game.Workspace
  283. E.BlastRadius = 12
  284. E.Position = Mouse.hit.p
  285. E.BlastPressure = 1000
  286. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement