Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- NumberValue3 = Instance.new("NumberValue")
- LocalScript4 = Instance.new("LocalScript")
- Tool0.Name = "Part Spawner"
- Tool0.Parent = mas
- Tool0.Grip = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Tool0.GripPos = Vector3.new(0, 0, 0.5)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(-19.75, 3.5999999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(-19.75, 3.5999999, 0)
- Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part1.Transparency = 0.5
- Part1.Size = Vector3.new(1, 1, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Institutional white")
- Part1.Material = Enum.Material.Neon
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Institutional white")
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.formFactor = Enum.FormFactor.Custom
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshType = Enum.MeshType.Sphere
- NumberValue3.Name = "BlastRadius"
- NumberValue3.Parent = Tool0
- NumberValue3.Value = 1
- LocalScript4.Name = "ToolScript"
- LocalScript4.Parent = NumberValue3
- table.insert(cors,sandbox(LocalScript4,function()
- local BlastRadius = script.Parent
- local Tool = BlastRadius.Parent
- local Mouse = nil
- --local Humanoid = nil
- local function OnEquipped(mouse)
- Mouse = mouse
- --Humanoid = Tool.Parent.Humanoid
- end
- local function OnActivated()
- local magic = Instance.new('Part')
- magic.BackSurface = "SmoothNoOutlines"
- magic.BottomSurface = "Inlet"
- magic.FrontSurface = "SmoothNoOutlines"
- magic.LeftSurface = "SmoothNoOutlines"
- magic.RightSurface = "SmoothNoOutlines"
- magic.TopSurface = "Studs"
- magic.Material = "Plastic"
- magic.Size = Vector3.new(2, 2, 2)
- magic.Transparency = 1
- magic.Anchored = false
- magic.Position = Mouse.Hit.p
- --magic.Position = Humanoid.TargetPoint
- magic.Parent = workspace
- magic.Anchored = true
- wait (.01)
- magic.Transparency = .9
- wait (.01)
- magic.Transparency = .8
- wait (.01)
- magic.Transparency = .7
- wait (.01)
- magic.Transparency = .6
- wait (.01)
- magic.Transparency = .5
- wait (.01)
- magic.Transparency = .4
- wait (.01)
- magic.Transparency = .3
- wait (.01)
- magic.Transparency = .2
- wait (.01)
- magic.Transparency = .1
- wait (.01)
- magic.Transparency = 0
- magic.Anchored = true
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Activated:connect(OnActivated)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement