Well, i was trying to make my Tool work on R15 Version but i got this error:
"C0 is not a valid member of Attachment".
If anybody can help me, Thanks!
Here is the script code:
----------------------------------------------------------------------------------------
bin = script.Parent
me = script.Parent.Parent.Parent
enabled = true
function onButton1Down(mouse)
if not enabled then
return
end
local player = game.Players.LocalPlayer
if player == nil then return end
enabled = false
RightShoulder = me.Character.UpperTorso["RightShoulderRigAttachment"]
LeftShoulder = me.Character.UpperTorso["LeftShoulderRigAttachment"]
Run = game:GetService("RunService")
for i = 1, 2 do
for i = 1, 12 do
LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -0.08)
RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0.08)
RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0.05, 0)
LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -0.05, 0)
Run.Stepped:wait(0.01)
end
end
for i = 1, 12 do
Run.Stepped:wait(0)
end
game:GetService("Chat"):Chat(me.Character.Head, "Water Power.", "Blue")
x = Instance.new("Part")
x.BrickColor = BrickColor.new("Really blue")
x.Size = Vector3.new(1,1,1)
x.TopSurface = "Smooth"
x.BottomSurface = "Smooth"
x.Shape = "Ball"
x.Name = "Water"
x.CanCollide = true
x.Transparency = .8
x.Anchored = true
t = script.tools:clone()
d = script.damage:clone()
d.Parent = x
t.Parent = x
y = Instance.new("BodyVelocity")
y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
y.velocity = me.Character.UpperTorso.CFrame.lookVector*100
x.Parent = Workspace
x.CFrame = me.Character.UpperTorso.CFrame*CFrame.new(0, 2, -35)
for i = 1,##5##o##
# x.###### #.###### #ector3.new(2,2,2)
wait()
end
x.Anchored = false
y.Parent = x
x.CFrame = me.Character.UpperTorso.CFrame*CFrame.new(0, 2, -30)
d.Disabled = false
t.Disabled = false
game.Debris:AddItem(x, 10)
for i = 1, 12 do
LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0.1, 0)
RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, -0.1, 0)
LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0.16)
RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -0.16)
Run.Stepped:wait(0.01)
end
wait(30)
enabled = true
end
--You can keep all this below i guess
enabled = true
function onS(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onS)
----------------------------------------------------------------------------------------
|