local plr=game.Players.LocalPlayer;
local user;
m=plr:GetMouse'';
local p1=Instance.new('Part',workspace);
p1.Shape='Ball';
p1.BrickColor=BrickColor.new'Really blue';
p1.Size=Vector3.new(2,2,2);
p1.Transparency=.4;
p1.Locked=true;
w=Instance.new('Weld',plr.Character.Head);
w.Part0=plr.Character.Head;
w.Part1=p1;
w.C0=CFrame.new(0,4,0);
ray=Ray.new(p1.CFrame.p,(m.Hit.p-p1.CFrame.p).unit*600);
hit,pos=workspace:FindPartOnRay(ray,user);
h=hit and hit.Parent and hit.Parent:FindFirstChild'Humanoid';
if(h)then print(h); end;
dis=(pos-p1.CFrame.p).magnitude;
rayp=Instance.new'Part';
rayp.Parent=workspace;
rayp.Name='a';
rayp.Anchored=true;
rayp.CanCollide=false;
rayp.Locked=true;
rayp.BrickColor=BrickColor.new'Really blue';
rayp.Transparency=0;
rayp.TopSurface='Smooth';
rayp.BottomSurface='Smooth';
rayp.formFactor=3;
rayp.CFrame=CFrame.new(pos,p1.CFrame.p)*CFrame.new(0,0,-dis/2);
for i=1,.1 do
rayp.Transparency=rayp.Transparency-i;
wait(.1);
rayp:Destroy();
end;
---------------------
it just makes a part in the middle of the baseplate.... wth
11 |