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
 

Re: Help with repeat

Previous Thread :: Next Thread 
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
15 May 2015 09:16 PM
local Part = workspace.Part
script.Parent.Selected:connect(function(mouse)
local PartClone = Part:Clone()
PartClone.Parent = workspace
repeat
PartClone.Position = mouse.Hit.p
until mouse.Button1Down
end)
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
15 May 2015 09:16 PM
Sorry its not good, but i just sperated this as it came out in one line, so i coudnt indent.

Also because this is just a little template for what im gonna be making.
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
15 May 2015 09:19 PM
i made this but it doesnt work

local Part = workspace.Part

local on = false

script.Parent.Selected:connect(function(mouse)
local PartClone = Part:Clone()

mouse.Button2Down:connect(function()
on = false
end)
PartClone.Parent = workspace
spawn(function()
while wait() do
if on == true then
PartClone.CFrame = mouse.Hit.p*CFrame.new(0,Part.Size.Y/2,0)
end
end
end)
end)
Report Abuse
DevConsole is not online. DevConsole
Joined: 02 Jun 2008
Total Posts: 460
15 May 2015 09:27 PM
local Part = workspace.Part

local on = false

script.Parent.Selected:connect(function(mouse)
local PartClone = Part:Clone()

mouse.Button2Down:connect(function()
on = false

PartClone.Parent = workspace
spawn(function()
while wait() do
if on == true then
PartClone.CFrame = mouse.Hit.p*CFrame.new(0,Part.Size.Y/2,0)
end
end
end)
end)
end)
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