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 BODYPOS

Previous Thread :: Next Thread 
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
18 Jul 2015 09:19 AM
I wanted to make a script that if I click on an union named "worker" and that if I click somewhere else while I am the "master" of the union it would move the part. Can anyone help please?

--Here the script

Worker = script.Parent
BodyPos = Worker:FindFirstChild("BodyPosition")

Lock = 0

local Player = game.Players.findFirstChild(Master.Value)
local Mouse = Player:GetMouse()


Worker.ClickDetector.MouseClick:connect(function (click)
Master = Worker:FindFirstChild("Master")
wait(0.1)
Play = game.Players:FindFirstChild(Master.Value)
wait(0.1)
Stats = game.Players.Play:FindFirstChild("UserStats")
wait(0.1)
Name = game.Players.Play.Stats:FindFirstChild("Name")
wait(0.1)
if Name.Value == Master.Value then
if Lock == 0 then
Lock = 1
wait(0.5)
Mouse.Button1Down:connect(function(clickdown)
local ClickBox = Instance.new("Part")
ClickBox.Name = ClickBox
ClickBox.Parent = Worker
ClickBox.CFrame = CFrame.new(Mouse.Hit.p)
BodyPos.Position = ClickBox.Position
wait(0.1)
Lock = 0
ClickBox:Destroy()
end)

end
end
end)
Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
18 Jul 2015 09:47 AM
BUMP HELPPPPP
Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
18 Jul 2015 09:55 AM
STOP IGNORING AND ANSWER PLEASE -BUMP-
Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
18 Jul 2015 09:59 AM
ANSWER PLZ
Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
18 Jul 2015 10:09 AM
BUMPP BUMP DODGE BUMP
Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
18 Jul 2015 10:23 AM
BUMP BUMP BUMP
Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
18 Jul 2015 10:28 AM
I GOTTTA BUMP HOW MANY TIME
Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
18 Jul 2015 10:43 AM
BUMP BUMP BUMP TILL THEY ANSWER BUMP BUMP BUMP
Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
18 Jul 2015 10:47 AM
GOTTA BUMP THIS UP TILL THEY ANSWER BUMP BUMP BUMP OH YEAH YOU BUMP
Report Abuse
SectionOne is not online. SectionOne
Joined: 12 Mar 2010
Total Posts: 3783
18 Jul 2015 10:53 AM
game.Workspace.ColonySimulator:remove()
Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
18 Jul 2015 10:58 AM
ah ah very funny
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