Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tool = Instance.new("Tool",owner.Backpack)
- part = Instance.new("Part",tool)
- tool.Name = "feddy"
- part.Name = "Handle"
- part.Size = Vector3.new(1.14114,1.45761,0.76587)
- tool.Grip = CFrame.new(0,-0.25,0.25)
- local Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = part
- Mesh.MeshId = "http://www.roblox.com/asset/?id=511715966"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=511716115"
- Mesh.Scale = Vector3.new(0.07,0.07,0.07)
- part.Reflectance = 0.125
- local march = Instance.new("RemoteEvent", tool)
- march.Name = "march"
- local music = Instance.new("Sound",part)
- music.SoundId = "rbxassetid://1838457617"
- music.Volume = 4
- music.Name = "music"
- local db = false
- tool.Activated:Connect(function()
- if not db then
- db = true
- music:Play()
- music.Ended:Wait()
- db = false
- end
- end)
- NLS([[
- local sizeevent = owner.Backpack.feddy:WaitForChild("march")
- local music = owner.Backpack.feddy.Handle:WaitForChild("music")
- while true do
- local Amplitude = math.clamp(music.PlaybackLoudness / 70, 1, 2)
- local Amplituder = math.clamp(70 / math.clamp(music.PlaybackLoudness,1,math.huge), 0.3, 1)
- local siz = Vector3.new(Amplituder, Amplitude, Amplituder)
- sizeevent:FireServer(siz,math.clamp(music.PlaybackLoudness / 10, 0.1, 8))
- wait()
- end
- ]],owner.PlayerGui)
- local light = Instance.new("PointLight",part)
- light.Shadows = false
- light.Brightness = 1.5
- light.Color = Color3.fromRGB(222, 240, 250)
- light.Range = 0.1
- march.OnServerEvent:Connect(function(_, size,range)
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.0125
- local object = Mesh
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Scale = Vector3.new(size.X * 0.07,size.Y * 0.07,size.Z * 0.07)
- local shot = tweenService:Create(object, tweenInfo, goal)
- shot:Play()
- local object2 = light
- local goal2 = {}
- goal2.Range = range
- local shot2 = tweenService:Create(object2, tweenInfo, goal2)
- shot2:Play()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement