SHOW:
|
|
- or go back to the newest paste.
1 | local module = {} | |
2 | local Players = game:GetService("Players") | |
3 | - | local Player = Players:WaitForChild("fusionfriends") |
3 | + | local Player = Players:WaitForChild("TameDoNotClick") |
4 | ||
5 | speed = .4 | |
6 | sine = 1 | |
7 | change = 1 | |
8 | inair = false | |
9 | Action = false | |
10 | ||
11 | Player.Chatted:Connect(function(Message) | |
12 | if Message:sub(1,6) == "Equip/" then | |
13 | local Type = Message:sub(7,#Message) | |
14 | if Type == "Staff" then | |
15 | repeat wait() until Player.Character | |
16 | local Character = Player.Character | |
17 | local Client = script.Client:Clone() | |
18 | local KeyEvent = Client.KeyEvent | |
19 | local Book = script.Wizard.Book:Clone() | |
20 | local Staff = script.Wizard.Staff:Clone() | |
21 | local BookHandle = Book.BookHandle | |
22 | local StaffHandle = Staff.StaffHandle | |
23 | local Pendant = Book.Pendant | |
24 | local Orb = Staff.Orb | |
25 | ||
26 | local Torso = Character.Torso | |
27 | local LeftArm = Torso["Left Shoulder"] | |
28 | local RightArm = Torso["Right Shoulder"] | |
29 | local LeftLeg = Torso["Left Hip"] | |
30 | local RightLeg = Torso["Right Hip"] | |
31 | local Head = Torso.Neck | |
32 | local RootPart = Character.HumanoidRootPart | |
33 | local RootJoint = RootPart.RootJoint | |
34 | local LeftHand = Character["Left Arm"] | |
35 | local RightHand = Character["Right Arm"] | |
36 | ||
37 | local BookWeld = Instance.new("Weld",BookHandle) | |
38 | local StaffWeld = Instance.new("Weld",StaffHandle) | |
39 | ||
40 | local Type = "Fire" | |
41 | ||
42 | Client.Parent = Player.PlayerGui | |
43 | Client.Disabled = false | |
44 | Book.Parent = workspace | |
45 | Staff.Parent = workspace | |
46 | BookWeld.Part1 = BookHandle | |
47 | BookWeld.Part0 = LeftHand | |
48 | BookWeld.C0 = CFrame.new(0,-.75,0)*CFrame.Angles(-300,0,-300) | |
49 | StaffWeld.Part1 = StaffHandle | |
50 | StaffWeld.Part0 = RightHand | |
51 | StaffWeld.C0 = CFrame.new(0,-.75,.25)*CFrame.Angles(-300,0,-300) | |
52 | ||
53 | Character.Humanoid:ClearAllChildren() | |
54 | Character.Animate:Remove() | |
55 | ||
56 | function Cycle() | |
57 | if Type == "Fire" then | |
58 | Type = "Necromancer" | |
59 | Pendant.BrickColor = BrickColor.new("Black") | |
60 | Orb.BrickColor = BrickColor.new("Black") | |
61 | elseif Type == "Necromancer" then | |
62 | Type = "Ice" | |
63 | Pendant.BrickColor = BrickColor.new("Medium blue") | |
64 | Orb.BrickColor = BrickColor.new("Medium blue") | |
65 | elseif Type == "Ice" then | |
66 | Type = "Wind" | |
67 | Pendant.BrickColor = BrickColor.new("White") | |
68 | Orb.BrickColor = BrickColor.new("White") | |
69 | elseif Type == "Wind" then | |
70 | Type = "Ground" | |
71 | Pendant.BrickColor = BrickColor.new("Dirt brown") | |
72 | Orb.BrickColor = BrickColor.new("Dirt brown") | |
73 | elseif Type == "Ground" then | |
74 | Type = "Healing" | |
75 | Pendant.BrickColor = BrickColor.new("Bright green") | |
76 | Orb.BrickColor = BrickColor.new("Bright green") | |
77 | elseif Type == "Healing" then | |
78 | Type = "Fire" | |
79 | Pendant.BrickColor = BrickColor.new("Really red") | |
80 | Orb.BrickColor = BrickColor.new("Really red") | |
81 | end | |
82 | local Woosh = Instance.new("Part",workspace) | |
83 | Woosh.Shape = Enum.PartType.Ball | |
84 | Woosh.CanCollide = false | |
85 | Woosh.Size = Vector3.new(1,1,1) | |
86 | Woosh.Material = Enum.Material.SmoothPlastic | |
87 | Woosh.CFrame = CFrame.new(Pendant.Position) | |
88 | local Woosh2 = Instance.new("Part",workspace) | |
89 | Woosh2.Shape = Enum.PartType.Ball | |
90 | Woosh2.CanCollide = false | |
91 | Woosh2.Size = Vector3.new(1,1,1) | |
92 | Woosh2.Material = Enum.Material.SmoothPlastic | |
93 | Woosh2.CFrame = CFrame.new(Orb.Position) | |
94 | local Weld = Instance.new("Weld",Woosh) | |
95 | Weld.Part1 = Woosh | |
96 | Weld.Part0 = Pendant | |
97 | local Weld2 = Instance.new("Weld",Woosh2) | |
98 | Weld2.Part1 = Woosh2 | |
99 | Weld2.Part0 = Orb | |
100 | for i = 1,10 do | |
101 | wait() | |
102 | Woosh.Size = Vector3.new(Woosh.Size.X+.2,Woosh.Size.Y+.2,Woosh.Size.Z+.2) | |
103 | Woosh.Transparency = Woosh.Transparency+.1 | |
104 | Woosh2.Size = Vector3.new(Woosh2.Size.X+.2,Woosh2.Size.Y+.2,Woosh2.Size.Z+.2) | |
105 | Woosh2.Transparency = Woosh2.Transparency+.1 | |
106 | end | |
107 | Woosh:Destroy() | |
108 | Woosh2:Destroy() | |
109 | end | |
110 | ||
111 | spawn(function() | |
112 | game:GetService("RunService").Heartbeat:Connect(function() | |
113 | sine = sine+change | |
114 | local Velocity = RootPart.Velocity.Magnitude | |
115 | if Velocity > 0.01 then -- Moving | |
116 | if not Action then | |
117 | if not inair then | |
118 | LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0+10*math.sin(sine/10))),speed) | |
119 | RightArm.C0 = RightArm.C0:Lerp(CFrame.new(1,.5,0)*CFrame.Angles(math.rad((50)),math.rad((90)),(math.rad(50))),speed) | |
120 | LeftLeg.C0 = LeftLeg.C0:Lerp(CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed) | |
121 | RightLeg.C0 = RightLeg.C0:Lerp(CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed) | |
122 | RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180)),speed) | |
123 | Head.C0 = Head.C0:Lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180)),speed) | |
124 | end | |
125 | end | |
126 | elseif Velocity < 0.01 then -- Idle | |
127 | if not Action then | |
128 | if not inair then | |
129 | LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed) | |
130 | RightArm.C0 = RightArm.C0:Lerp(CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0-5*math.sin(sine/20)),math.rad(90),math.rad(0-5*math.sin(sine/20))),speed) | |
131 | LeftLeg.C0 = LeftLeg.C0:Lerp(CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed) | |
132 | RightLeg.C0 = RightLeg.C0:Lerp(CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed) | |
133 | RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180)),speed) | |
134 | Head.C0 = Head.C0:Lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90+5*math.sin(sine/20)),math.rad(0),math.rad(180)),speed) | |
135 | end | |
136 | end | |
137 | end | |
138 | end) | |
139 | KeyEvent.OnServerEvent:Connect(function(Player,Input) | |
140 | if Input == Enum.KeyCode.R then | |
141 | Cycle() | |
142 | end | |
143 | end) | |
144 | end) | |
145 | end | |
146 | end | |
147 | end) | |
148 | return module |