Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Loading...")
- local ot = tick()
- local plr = game.Players.LocalPlayer
- local char,mouse = plr.Character,plr:GetMouse()
- local mode = "nun"
- local vis = false
- local sens = 150
- local amountParts = 2
- local offsetxd = 3
- local frame = 0
- local oldTick = tick()
- local actualframe = 0
- local whitelist = {"Fet_Cow","Cronizete","Omega_Phoenix","makhail07","0617fire"}
- local mouseMode = false
- local tPos = Vector3.new(0,0,0)
- local speed1 = 5
- local speed = 5
- local mod = 360
- local freezetab = {}
- local Sound=Instance.new("Sound",char.Head); Sound.Volume = 4; Sound.Looped = true; Sound.SoundId='rbxassetid://243920767'; Sound:Play()
- function circlePos(r,d,off) return off + Vector3.new(math.cos(math.rad(r))*d,0,math.sin(math.rad(r))*d) end
- function search(t,tab)
- local searchtab = {}
- if tab then
- searchtab = tab
- end
- for i,v in pairs(t:GetChildren()) do
- table.insert(searchtab,v)
- search(v,searchtab)
- end
- return searchtab
- end
- local r = 255
- local g = 0
- local b = 0
- plr.Chatted:Connect(function(msg)
- local msg = string.lower(msg)
- if string.sub(msg,1,4) == ";pl " then
- local id = string.sub(msg,5)
- Sound:Stop()
- Sound.SoundId = "rbxassetid://"..id
- Sound:Play()
- elseif string.sub(msg,1,5) == ";vol " then
- local sd = string.sub(msg,6)
- Sound.Volume = sd
- elseif string.sub(msg,1,5) == ";sen " then
- local se = string.sub(msg,6)
- sens = se
- end
- end)
- plr.Chatted:connect(function(c)
- if string.lower(string.sub(c,1,8)) == ";amount " then
- amountParts = tonumber(string.sub(c,9,#c))
- end
- if string.lower(string.sub(c,1,5)) == ";mod " then
- mod = tonumber(string.sub(c,6,#c))
- end
- if string.lower(string.sub(c,1,8)) == ";offset " then
- offsetxd = tonumber(string.sub(c,9,#c))
- end
- if string.lower(string.sub(c,1,7)) == ";speed " then
- speed = tonumber(string.sub(c,8,#c))
- speed1 = tonumber(string.sub(c,8,#c))
- end
- if string.lower(string.sub(c,1,12)) == ";mode script" then
- mode = "script"
- warn("Mode: Script Destruction")
- end
- if string.lower(string.sub(c,1,10)) == ";mode kill" then
- mode = "kill"
- warn("Mode: Character Killing")
- end
- if string.lower(string.sub(c,1,4)) == ";vis" then
- warn("Vis Toggled")
- if vis == true then
- Sound:Stop()
- vis = false
- elseif vis == false then
- vis = true
- Sound:Play()
- end
- end
- if string.lower(string.sub(c,1,5)) == ";default" then
- script.Parent = plr
- wait(1)
- script.Parent = char
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "f" then
- if mouseMode == false then
- mouseMode = true
- else
- mouseMode = false
- end
- end
- end)
- coroutine.resume(coroutine.create(function()
- while wait() do
- for i=0,255,10 do g = i wait() end
- for i=255,0,-10 do r = i wait() end
- for i=0,255,10 do b = i wait() end
- for i=255,0,-10 do g = i wait() end
- for i=0,255,10 do r = i wait() end
- for i=255,0,-10 do b = i wait() end
- end
- end))
- game:GetService("RunService").RenderStepped:connect(function()
- spawn(function()
- if vis == true then
- speed = Sound.PlaybackLoudness/sens
- Sound.Volume = 4
- elseif vis == false then
- Sound.Volume = 0
- speed = speed1
- end
- end)
- actualframe = actualframe + 1
- frame = frame + speed
- local offset = offsetxd
- offset = offsetxd -- + math.cos(tick())*3
- if mouseMode == true then
- tPos = mouse.Hit.p + Vector3.new(0,3,0)
- else
- tPos = char:WaitForChild("Torso").Position
- end
- for i=1,360,(360)/amountParts do
- local p = Instance.new("Part")
- p.TopSurface = "Smooth"
- p.BottomSurface = "Smooth"
- p.Color = Color3.fromRGB(r,g,b)
- p.Material = "Neon"
- local dist = (circlePos(i + frame,offset,tPos + Vector3.new(0,math.cos((frame)/mod)*3,0)) - circlePos(i + frame - 1,offset,tPos + Vector3.new(0,math.cos((frame - 1)/mod)*3,0))).Magnitude*speed
- p.Size = Vector3.new(0.2,0.2,dist)
- p.CanCollide = false
- p.Anchored = true
- local m = Instance.new("BlockMesh",p)
- m.Scale = Vector3.new(1,1,1)
- p.CFrame = CFrame.new(circlePos(i + frame,offset,tPos + Vector3.new(0,math.cos((frame)/mod)*3,0)),circlePos(i + frame - 1,offset,tPos + Vector3.new(0,math.cos((frame - 1)/mod)*3,0))) * CFrame.new(0,0,-dist/2)
- p.Parent = workspace
- local update
- local updateframe = 0
- update = game:GetService("RunService").RenderStepped:connect(function()
- updateframe = updateframe + 1
- m.Scale = m.Scale - Vector3.new(0.05,0.05,0)
- if updateframe >= 15 then
- p:Destroy()
- update:disconnect()
- end
- end)
- end
- oldTick = tick()
- if math.floor(actualframe/16) == actualframe/16 then
- for i,c in pairs(game:GetService("Players"):GetChildren()) do
- local isW = false
- for i,v in pairs(whitelist) do
- if c.Name == v then
- isW = true
- end
- end
- if c.Character.Parent == workspace then
- if isW == false then
- for i,v in pairs(search(c.Character)) do
- wait()
- if c ~= plr then
- if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("TrussPart") or v:IsA("UnionOperation") then
- if (v.Position - tPos).Magnitude < offset then
- for i,v in pairs(v.Parent:GetChildren()) do
- if v:IsA("LOLECKSD") or v:IsA("LOLECKSD") then
- v:Destroy()
- elseif v:IsA("Humanoid") then
- if mode == "kill" then
- v.MaxHealth = 1
- v.Health = 0
- v.Parent:BreakJoints()
- end
- end
- end
- if mode == "kill" then
- v:Destroy()
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement