generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

MoveTo equivalent for tools?

Previous Thread :: Next Thread 
AgentL3r is not online. AgentL3r
Joined: 14 Jan 2013
Total Posts: 1671
10 Oct 2015 04:36 AM
I have this script which creates a part, sort of like RayCasting. It says MoveTo is not a valid member of Tool, so is there any thing else I could use?

Script:

local p = Instance.new("Part")
p.Size = Vector3.new(1,1,1)
p.formFactor = "Symmetric"
p.Transparency = 1
p.CanCollide = false
p.Name = "CableRemove"

db = false
function onTouched(hit)
local h = hit.Parent:FindFirstChild("Handle")
if h ~= nil and
db == false then
db = true
local P = p:clone()
P.Parent = hit.Parent
local Weld = Instance.new("Weld")
Weld.Part0 = hit.Parent.extend
Weld.Part1 = P
Weld.C0 = CFrame.new(0, -4, 0)
Weld.Parent = hit.Parent.extend
h.Parent:MoveTo(script.Parent.Parent.Pos.Position)
local cable = script.Parent.Cable:clone()
cable.Parent = hit.Parent.extend
cable.Handle = h
cable.Part = script.Parent.Parent.Cable
local bv = script.Parent.BV:clone()
bv.Script.Disabled = false
bv.Parent = hit.Parent.CableRemove
bv.maxForce = Vector3.new(0,50000,0)
bv.velocity = Vector3.new(0,-25,0)
hit.Parent.CableRemove:Destroy()
wait(3)
db = false
end
end
connection = script.Parent.Touched:connect(onTouched)

#code for i,v in pairs dont
Report Abuse
AgentL3r is not online. AgentL3r
Joined: 14 Jan 2013
Total Posts: 1671
10 Oct 2015 04:40 AM
Oh wait, I need a SelectionPartLasso nvm

#code for i,v in pairs dont
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image