llaserxJoin Date: 2011-12-10 Post Count: 53069 |
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
wait(2)
local fake = Instance.new("Part")
fake.Anchored = true
fake.Parent = player.Character["Left Arm"]
fake.CFrame = fake.Parent.CFrame
fake.Name = "fakeArm"
fake.CanCollide = false
local mouse = player:GetMouse()
if player.Character["Left Arm"] ~= nil then
for i =1,math.huge do
wait()
local X = mouse.Hit.p.X
local Y = mouse.Hit.p.Y
local Z = mouse.Hit.p.Z
player.Character["Left Arm"].fakeArm.CFrame = CFrame.new(player.Character["Left Arm"].Position)*CFrame.Angles(X,Y,Z)
script.Parent.Touched:connect(function(hit)
local larm = hit.Parent:FindFirstChild("Left Arm").fakeArm
if larm then
local la = hit.Parent['Left Arm']
local w = Instance.new("Weld")
w.Part0 = la
w.Part1 = script.Parent
script.Parent.Anchored = false
end
end)
end
end
end)
end)
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$639 Tx1,808 |
|
|
"local mouse = player:GetMouse()"
huh |
|
llaserxJoin Date: 2011-12-10 Post Count: 53069 |
To end confusion this was the orginal script
game.Players.PlayerAdded:connect(function(player)
wait(2)
local fake = Instance.new("Part")
fake.Anchored = true
fake.Parent = player.Character["Left Arm"]
fake.CFrame = fake.Parent.CFrame
fake.Name = "fakeArm"
fake.CanCollide = false
local mouse = player:GetMouse()
if player.Character["Left Arm"] ~= nil then
for i =1,math.huge do
wait()
local X = mouse.Hit.p.X
local Y = mouse.Hit.p.Y
local Z = mouse.Hit.p.Z
player.Character["Left Arm"].fakeArm.CFrame = CFrame.new(player.Character["Left Arm"].Position)*CFrame.Angles(X,Y,Z)
end
end
end)
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$639 Tx1,808 |
|
|
you cant get mouse server side... |
|
|