SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --[[ |
| 1 | + | --. |
| 2 | - | Script Version 1.4 |
| 2 | + | |
| 3 | ||
| 4 | - | Wand generation A3000, A.K.A. Wanda, was used by novice warlocks and witches to practice/use magic. |
| 4 | + | |
| 5 | - | It was developed by the UMTAWC (United Magical Theory And Wizardry Comittee, abbreviation pronounced "um-talk") |
| 5 | + | script:Destroy() |
| 6 | - | Wood carved and infused with magic properties by DarkShadow6 |
| 6 | + | wait() |
| 7 | - | --]] |
| 7 | + | do |
| 8 | - | --http://www.roblox.com/Asset/?id=22968437 |
| 8 | + | local player = game.Players.LocalPlayer |
| 9 | function Spawn() | |
| 10 | - | if script == nil then return end |
| 10 | + | local tool2 = game:GetService("InsertService"):LoadAsset(90718505):GetChildren()[1]
|
| 11 | tool2.Parent = player.Backpack | |
| 12 | tool2.ExponentialRocketLauncher:Remove() | |
| 13 | - | Player = game.Players.LocalPlayer |
| 13 | + | tool2.GunCursor:Remove() |
| 14 | - | Char = Player.Character |
| 14 | + | tool2.Name = "Shock Cannon" |
| 15 | - | animate = Char:findFirstChild("Animate")
|
| 15 | + | tool2.Handle.MotherRocket:Remove() |
| 16 | - | if animate then |
| 16 | + | local enabled = tool2.Enabled |
| 17 | - | animate:Destroy() |
| 17 | + | local mouse2 |
| 18 | local collided = false | |
| 19 | - | Name = "Wanda" |
| 19 | + | local ready = true |
| 20 | - | selected = false |
| 20 | + | local target |
| 21 | - | Button1Down = false |
| 21 | + | local gui = Instance.new("BillboardGui",player.PlayerGui)
|
| 22 | - | canFire = true |
| 22 | + | gui.Size = UDim2.new(0,25,0,25) |
| 23 | - | spell = 0 |
| 23 | + | gui.AlwaysOnTop = true |
| 24 | - | spellHotkey1 = 0 |
| 24 | + | image = Instance.new("ImageLabel",gui)
|
| 25 | - | spellHotkey2 = 0 |
| 25 | + | image.Size = gui.Size |
| 26 | - | spellHotkey3 = 0 |
| 26 | + | image.Image = "rbxasset://textures\\mouse2LockedCursor.png" |
| 27 | - | spellHotkey1Delay = 0 |
| 27 | + | image.BackgroundTransparency = 1 |
| 28 | - | spellHotkey2Delay = 0 |
| 28 | + | function Shock(orb,charge) |
| 29 | - | spellHotkey3Delay = 0 |
| 29 | + | gui.Size = UDim2.new(0,0,0,0) |
| 30 | - | spellText = "None" |
| 30 | + | target = nil |
| 31 | - | power = 1000000 |
| 31 | + | neworb = orb:clone() |
| 32 | orb:Remove() | |
| 33 | neworb.BodyVelocity:Remove() | |
| 34 | - | spellGui = Instance.new("ScreenGui")
|
| 34 | + | neworb.Anchored = true |
| 35 | - | spellGui.Name = Name |
| 35 | + | cf = neworb.CFrame |
| 36 | - | local frame = Instance.new("Frame")
|
| 36 | + | neworb.Size = Vector3.new(charge/5,charge/5,charge/5) |
| 37 | - | frame.Name = "Frame" |
| 37 | + | neworb.Material = "Plastic" |
| 38 | - | frame.Size = UDim2.new(0, 165, 0, 60) |
| 38 | + | neworb.Mesh:Remove() |
| 39 | - | frame.Position = UDim2.new(0, 0, 1, -60) |
| 39 | + | neworb.CFrame = cf |
| 40 | - | frame.BackgroundColor3 = Color3.new(1, 1, 1) |
| 40 | + | neworb.Transparency = 1 - (charge/500) |
| 41 | - | frame.BorderColor3 = Color3.new(0, 0, 0) |
| 41 | + | neworb.Touched:connect(function(hit) |
| 42 | - | frame.Parent = spellGui |
| 42 | + | hum = hit.Parent:FindFirstChild("Humanoid")
|
| 43 | - | local label = Instance.new("TextLabel")
|
| 43 | + | if hum --[[and hit.Name=="Torso"]] then |
| 44 | - | label.Name = "Weapon" |
| 44 | + | tag = Instance.new("ObjectValue")
|
| 45 | - | label.Text = "Weapon: " ..Name |
| 45 | + | tag.Name = "creator" |
| 46 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 46 | + | tag.Value = player |
| 47 | - | label.Position = UDim2.new(0, 0, 0, 0) |
| 47 | + | tag.Parent = hum |
| 48 | - | label.BackgroundColor3 = Color3.new(1, 0, 0) |
| 48 | + | hum:TakeDamage(charge*(hum.MaxHealth/500)) |
| 49 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
| 49 | + | end |
| 50 | - | label.Parent = frame |
| 50 | + | end) |
| 51 | - | local label = Instance.new("TextLabel")
|
| 51 | + | neworb.Parent = game.Workspace |
| 52 | - | label.Name = "SpellPrefix" |
| 52 | + | game.Debris:AddItem(neworb,1) |
| 53 | - | label.Text = " Spell:" |
| 53 | + | for i=1,5 do |
| 54 | - | label.TextXAlignment = "Left" |
| 54 | + | for i=1,3 do |
| 55 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 55 | + | p = Instance.new("Part",game.Workspace)
|
| 56 | - | label.Position = UDim2.new(0, 0, 0, 20) |
| 56 | + | p.FormFactor = "Custom" |
| 57 | - | label.BackgroundColor3 = Color3.new(1, 1, 1) |
| 57 | + | p.TopSurface = "Smooth" |
| 58 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
| 58 | + | p.BottomSurface = "Smooth" |
| 59 | - | label.Parent = frame |
| 59 | + | p.BrickColor = neworb.BrickColor |
| 60 | - | local label = Instance.new("TextLabel")
|
| 60 | + | p.Size = Vector3.new(0.2,0.2,charge/30) |
| 61 | - | label.Name = "Spell" |
| 61 | + | p.Transparency = neworb.Transparency-0.25 |
| 62 | - | label.Text = "None" |
| 62 | + | p.Anchored = true |
| 63 | - | label.TextXAlignment = "Right" |
| 63 | + | p.CanCollide = false |
| 64 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 64 | + | p2 = p:clone() |
| 65 | - | label.Position = UDim2.new(0, -10, 0, 20) |
| 65 | + | p2.Parent = game.Workspace |
| 66 | - | label.BackgroundTransparency = 1 |
| 66 | + | p3 = p:clone() |
| 67 | - | label.BorderSizePixel = 0 |
| 67 | + | p3.Parent = game.Workspace |
| 68 | - | label.Parent = frame |
| 68 | + | p4 = p:clone() |
| 69 | - | local label = Instance.new("TextLabel")
|
| 69 | + | p4.Parent = game.Workspace |
| 70 | - | label.Name = "PowerPrefix" |
| 70 | + | p.CFrame = neworb.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-math.pi*20,math.pi*20)/10,math.random(-math.pi*20,math.pi*20)/10,math.random(-math.pi*20,math.pi*20)/10) * CFrame.new(0,0,charge/60) |
| 71 | - | label.Text = " Power:" |
| 71 | + | p2.CFrame = p.CFrame * CFrame.new(0,0,charge/60) * CFrame.fromEulerAnglesXYZ(math.random(-30,30)/10,math.random(-30,30)/10,math.random(-30,30)/10) * CFrame.new(0,0,charge/60) |
| 72 | - | label.TextXAlignment = "Left" |
| 72 | + | p3.CFrame = p2.CFrame * CFrame.new(0,0,charge/60) * CFrame.fromEulerAnglesXYZ(math.random(-30,30)/10,math.random(-30,30)/10,math.random(-30,30)/10) * CFrame.new(0,0,charge/60) |
| 73 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 73 | + | p4.CFrame = p3.CFrame * CFrame.new(0,0,charge/60) * CFrame.fromEulerAnglesXYZ(math.random(-30,30)/10,math.random(-30,30)/10,math.random(-30,30)/10) * CFrame.new(0,0,charge/60) |
| 74 | - | label.Position = UDim2.new(0, 0, 0, 40) |
| 74 | + | game.Debris:AddItem(p,0.2) |
| 75 | - | label.BackgroundColor3 = Color3.new(1, 1, 1) |
| 75 | + | game.Debris:AddItem(p2,0.2) |
| 76 | - | label.BorderColor3 = Color3.new(0, 0, 0) |
| 76 | + | game.Debris:AddItem(p3,0.2) |
| 77 | - | label.Parent = frame |
| 77 | + | game.Debris:AddItem(p4,0.2) |
| 78 | - | local label = Instance.new("TextLabel")
|
| 78 | + | end |
| 79 | - | label.Name = "Power" |
| 79 | + | wait(0.2) |
| 80 | - | label.Text = "100" |
| 80 | + | end |
| 81 | - | label.TextXAlignment = "Right" |
| 81 | + | |
| 82 | - | label.Size = UDim2.new(1, 0, 0, 20) |
| 82 | + | function Launch(charge,orb,weld) |
| 83 | - | label.Position = UDim2.new(0, -10, 0, 40) |
| 83 | + | weld:Remove() |
| 84 | - | label.BackgroundTransparency = 1 |
| 84 | + | vel = Instance.new("BodyVelocity",orb)
|
| 85 | - | label.BorderSizePixel = 0 |
| 85 | + | orb.CFrame = CFrame.new(orb.Position,orb.Position+tool2.Handle.CFrame.lookVector) |
| 86 | - | label.Parent = frame |
| 86 | + | orb.Parent = game.Workspace |
| 87 | collided = false | |
| 88 | orb.Touched:connect(function(hit) | |
| 89 | - | function updateGui(format) |
| 89 | + | if hit.Parent==tool2 or hit.Parent==tool2.Parent or hit.Parent:IsA("Hat") or hit.Name=="Handle" then
|
| 90 | - | if selected == false then return end |
| 90 | + | return |
| 91 | - | if Player:FindFirstChild("PlayerGui") == nil then Instance.new("PlayerGui").Parent = Player end
|
| 91 | + | end |
| 92 | - | if Player.PlayerGui:FindFirstChild(Name) == nil then |
| 92 | + | collided = true |
| 93 | - | spellGui:Clone().Parent = Player.PlayerGui |
| 93 | + | Shock(orb,charge) |
| 94 | - | end |
| 94 | + | orb:Remove() |
| 95 | - | Player.PlayerGui[Name].Frame.Spell.Text = spellText |
| 95 | + | end) |
| 96 | - | if power <= 0 then |
| 96 | + | vel.velocity = CFrame.new(orb.Position,mouse2.Hit.p).lookVector * (charge * 1.5) |
| 97 | - | Player.PlayerGui[Name].Frame.Power.Text = "OVERHEAT (" ..math.abs(power).. ")"
|
| 97 | + | game.Debris:AddItem(orb,30) |
| 98 | - | else |
| 98 | + | wait() |
| 99 | - | Player.PlayerGui[Name].Frame.Power.Text = power |
| 99 | + | if target then |
| 100 | - | end |
| 100 | + | waittime = charge/20 |
| 101 | timewaited = 0 | |
| 102 | while true do | |
| 103 | if collided==true or orb.Parent==nil then | |
| 104 | - | function updateSpellText() |
| 104 | + | break |
| 105 | - | if spell == 1 then |
| 105 | + | end |
| 106 | - | spellText = "Arefu Slash (1P)" |
| 106 | + | timewaited = timewaited + 0.1 |
| 107 | - | elseif spell == 2 then |
| 107 | + | if timewaited>=waittime then |
| 108 | - | spellText = "Arefu Metoria (50P)" |
| 108 | + | ready = true |
| 109 | - | elseif spell == 3 then |
| 109 | + | end |
| 110 | - | spellText = "Eccrando Bolt (25P)" |
| 110 | + | part = game.Workspace:FindPartOnRay(Ray.new(orb.Position,target.Position),orb) |
| 111 | - | elseif spell == 4 then |
| 111 | + | if not part or part.Parent==target.Parent or part.Parent:FindFirstChild("Humanoid") then
|
| 112 | - | spellText = "Eccrando Strike (~60P)" |
| 112 | + | vel.velocity = CFrame.new(orb.Position,target.Position).lookVector * (charge * 1.5) |
| 113 | - | elseif spell == 5 then |
| 113 | + | end |
| 114 | - | spellText = "Thius Dae (1P/2ms)" |
| 114 | + | wait() |
| 115 | - | elseif spell == 6 then |
| 115 | + | end |
| 116 | - | spellText = "Thius Heed (1P/2ms)" |
| 116 | + | end |
| 117 | - | elseif spell == 7 then |
| 117 | + | |
| 118 | - | spellText = "Combuscus Phore (75P)" |
| 118 | + | function Clicked() |
| 119 | - | elseif spell == 8 then |
| 119 | + | if ready==false then |
| 120 | - | spellText = "Combuscus Burn (10P)" |
| 120 | + | return |
| 121 | - | elseif spell == 9 then |
| 121 | + | end |
| 122 | - | spellText = "Combuscus Vortex (50P)" |
| 122 | + | enabled = true |
| 123 | - | elseif spell == 10 then |
| 123 | + | ready = false |
| 124 | - | spellText = "C. Phore Nexus (100P)" |
| 124 | + | orb = Instance.new("Part",tool2)
|
| 125 | - | elseif spell == 11 then |
| 125 | + | orb.BrickColor = BrickColor.new("Bright yellow")
|
| 126 | - | spellText = "Kanamla Cysis (2P/1sec)" |
| 126 | + | orb.Shape = 0 |
| 127 | - | elseif spell == 12 then |
| 127 | + | orb.Size = Vector3.new(1,1,1) |
| 128 | - | spellText = "Kanamla Tepidift (50P)" |
| 128 | + | orb.TopSurface = "Smooth" |
| 129 | - | elseif spell == 13 then |
| 129 | + | orb.BottomSurface = "Smooth" |
| 130 | - | spellText = "Kanamla Jump (5P)" |
| 130 | + | orb.CanCollide = false |
| 131 | - | elseif spell == 14 then |
| 131 | + | orb.Material = "Foil" |
| 132 | - | spellText = "Candora Hide (2P/1sec)" |
| 132 | + | orb.Name = "Ball" |
| 133 | - | elseif spell == 15 then |
| 133 | + | weld = Instance.new("Weld",orb)
|
| 134 | - | spellText = "Duraen Control (1P/?ms)" |
| 134 | + | weld.Part0 = tool2.Handle |
| 135 | - | elseif spell == 16 then |
| 135 | + | weld.Part1 = orb |
| 136 | - | spellText = "Duraen Switch (?P)" |
| 136 | + | weld.C0 = CFrame.new(0,0,-1.3) |
| 137 | - | else |
| 137 | + | mesh = Instance.new("SpecialMesh",orb)
|
| 138 | - | spellText = "None" |
| 138 | + | mesh.MeshType = "Sphere" |
| 139 | - | end |
| 139 | + | mesh.Scale = Vector3.new(0.01,0.01,0.01) |
| 140 | charge = 0 | |
| 141 | while true do | |
| 142 | if charge<100 then | |
| 143 | - | function makeParts(format) |
| 143 | + | charge = charge + 1 |
| 144 | - | local model = Instance.new("Model")
|
| 144 | + | end |
| 145 | - | model.Name = Name |
| 145 | + | mesh.Scale = Vector3.new(charge/100,charge/100,charge/100) |
| 146 | - | model.Parent = Player.Character |
| 146 | + | weld.C0 = CFrame.new(0,0,-1.5-(charge/200)) * CFrame.fromEulerAnglesXYZ(math.random(-50,50)/10,math.random(-50,50)/10,math.random(-50,50)/10) |
| 147 | - | local pm = Instance.new("Part")
|
| 147 | + | p = Instance.new("Part",tool2)
|
| 148 | - | pm.Name = "Handle" |
| 148 | + | p.FormFactor = "Custom" |
| 149 | - | pm.FormFactor = "Custom" |
| 149 | + | p.TopSurface = "Smooth" |
| 150 | - | pm.Size = Vector3.new(1, 1, 1) |
| 150 | + | p.BottomSurface = "Smooth" |
| 151 | - | pm.BrickColor = BrickColor.new("Reddish brown")
|
| 151 | + | p.BrickColor = orb.BrickColor |
| 152 | - | pm.Locked = true |
| 152 | + | p.Size = Vector3.new(0.2,0.2,charge/60) |
| 153 | - | pm.TopSurface = 0 |
| 153 | + | p.Transparency = orb.Transparency-0.25 |
| 154 | - | pm.BottomSurface = 0 |
| 154 | + | p.Anchored = true |
| 155 | - | pm.Parent = model |
| 155 | + | p.CanCollide = false |
| 156 | - | local m = Instance.new("SpecialMesh")
|
| 156 | + | p.CFrame = orb.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-math.pi*20,math.pi*20)/10,math.random(-math.pi*20,math.pi*20)/10,math.random(-math.pi*20,math.pi*20)/10) * CFrame.new(0,0,charge/120) |
| 157 | - | m.MeshType = "Head" |
| 157 | + | pm = Instance.new("CylinderMesh",p)
|
| 158 | - | m.Scale = Vector3.new(0.3, 2, 0.3) |
| 158 | + | pm.Scale = Vector3.new(0.6,0.6,1) |
| 159 | - | m.Parent = pm |
| 159 | + | game.Debris:AddItem(p,0.1) |
| 160 | - | if format ~= nil then |
| 160 | + | if enabled==false then |
| 161 | - | local w = Instance.new("Weld")
|
| 161 | + | print(charge) |
| 162 | - | w.Part0 = pm |
| 162 | + | Launch(charge,orb,weld) |
| 163 | - | if format == "hand" then |
| 163 | + | break |
| 164 | - | w.Part1 = Player.Character:FindFirstChild("Right Arm")
|
| 164 | + | end |
| 165 | - | w.C0 = CFrame.new(0, -0.75, 0.9) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0) |
| 165 | + | wait(0.01) |
| 166 | - | w.C1 = CFrame.new() |
| 166 | + | end |
| 167 | - | w.Parent = pm |
| 167 | + | wait(charge/20) |
| 168 | - | elseif format == "holster" then |
| 168 | + | ready = true |
| 169 | - | w.Part1 = Player.Character:FindFirstChild("Right Leg")
|
| 169 | + | |
| 170 | - | w.C0 = CFrame.new(0, 0.1, -0.55) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 170 | + | function Released() |
| 171 | - | w.C1 = CFrame.new() |
| 171 | + | enabled = false |
| 172 | - | w.Parent = pm |
| 172 | + | |
| 173 | - | model.Name = Name.. " (Holstered)" |
| 173 | + | function Moved() |
| 174 | - | else |
| 174 | + | if target and target.Parent then |
| 175 | - | print("Error: Incorrect format string!")
|
| 175 | + | if target.Parent.Humanoid.Health<=0 then |
| 176 | - | end |
| 176 | + | target = nil |
| 177 | - | end |
| 177 | + | end |
| 178 | - | local s = Instance.new("Sound")
|
| 178 | + | end |
| 179 | - | s.Name = "Shine" |
| 179 | + | if mouse2.Target and enabled==true then |
| 180 | - | s.SoundId = "http://www.roblox.com/Asset/?id=2101144" |
| 180 | + | hum = mouse2.Target.Parent:FindFirstChild("Humanoid")
|
| 181 | - | s.Volume = 1 |
| 181 | + | torso = mouse2.Target.Parent:FindFirstChild("Torso")
|
| 182 | - | s.Pitch = 1 |
| 182 | + | if hum and torso and hum.Health>0 then |
| 183 | - | s.Looped = false |
| 183 | + | target = torso |
| 184 | - | s.Parent = pm |
| 184 | + | gui.Adornee = torso |
| 185 | - | local s = Instance.new("Sound")
|
| 185 | + | gui.Size = UDim2.new(0,25,0,25) |
| 186 | - | s.Name = "Bolt" |
| 186 | + | gui.Parent = player.PlayerGui |
| 187 | - | s.SoundId = "http://www.roblox.com/Asset/?id=2974000" |
| 187 | + | end |
| 188 | - | s.Volume = 1 |
| 188 | + | end |
| 189 | - | s.Pitch = 1 |
| 189 | + | |
| 190 | - | s.Looped = false |
| 190 | + | function Equipped(m) |
| 191 | - | s.Parent = pm |
| 191 | + | enabled = false |
| 192 | - | local s = Instance.new("Sound")
|
| 192 | + | mouse2 = m |
| 193 | - | s.Name = "Impact1" |
| 193 | + | mouse2.Button1Down:connect(Clicked) |
| 194 | - | s.SoundId = "http://www.roblox.com/Asset/?id=10209596" |
| 194 | + | mouse2.Button1Up:connect(Released) |
| 195 | - | s.Volume = 1 |
| 195 | + | mouse2.Move:connect(Moved) |
| 196 | - | s.Pitch = 1 |
| 196 | + | mouse2.Icon = "rbxasset://textures\\mouse2LockedCursor.png" |
| 197 | - | s.Looped = false |
| 197 | + | |
| 198 | - | s.Parent = pm |
| 198 | + | function Unequipped() |
| 199 | - | local s = Instance.new("Sound")
|
| 199 | + | gui:Remove() |
| 200 | - | s.Name = "Charge1" |
| 200 | + | |
| 201 | - | s.SoundId = "http://www.roblox.com/Asset/?id=1369158" |
| 201 | + | tool2.Equipped:connect(Equipped) |
| 202 | - | s.Volume = 1 |
| 202 | + | tool2.Unequipped:connect(Unequipped) |
| 203 | - | s.Pitch = 1 |
| 203 | + | |
| 204 | - | s.Looped = false |
| 204 | + | player.CharacterAdded:connect(Spawn) |
| 205 | - | s.Parent = pm |
| 205 | + | Spawn() |
| 206 | - | local s = Instance.new("Sound")
|
| 206 | + |