|
| 01 Mar 2014 06:16 PM |
Similar to the one in Welcome to Roblox Building. Here is what I have so far. It does not work the way I want it to. -- player = game.Players.LocalPlayer mouse = player:GetMouse() tool = script.Parent parts = script.Parent.Parts current = nil
tool.Selected:connect(function() wait() p = parts.Basic.Grass:clone() current = p p.Parent = game.Workspace p.Transparency = .5 p.CanCollide = false mouse.Move:connect(function() if mouse.Hit then x = math.floor(mouse.Hit.p.X) y = math.floor(mouse.Hit.p.Y) z = math.floor(mouse.Hit.p.Z) p.Position = Vector3.new(x,y,z) end end) end)
tool.Deselected:connect(function() if current then current:destroy() end end) -- Any help/ |
|
|
| Report Abuse |
|
|
ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
|
| 01 Mar 2014 06:23 PM |
1st off, make sure everything is right so no errors will be found in the script.
2nd off, when you put "current:destroy()" I think that messed the whole script up because I'm guessing in LUA, when you destroy something, it doesn't come back unless you clone. But I don't know what you would clone if you deleted it. So I'm guessing put "current:remove()" and if that doesn't work, try anything besides destroy and remove. |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Mar 2014 06:25 PM |
@zombie Get out. Why do people who don't know how to script always post on my help threads? |
|
|
| Report Abuse |
|
|
hcs19
|
  |
| Joined: 27 May 2010 |
| Total Posts: 5325 |
|
|
| 01 Mar 2014 06:27 PM |
| Hi. Can you help me. I m terrible at scripting and i dont know how to put new blocks into the stamper tool. or remove and replaace them!! |
|
|
| Report Abuse |
|
|
ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
| |
|
LemmJuice
|
  |
| Joined: 23 Feb 2014 |
| Total Posts: 866 |
|
|
| 01 Mar 2014 06:29 PM |
| In what way is it not working? |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 06:33 PM |
@Lemm It does exactly what the code tells it to do. I need help with making it like the stamper tool. Currently, whenever you move your mouse, the part will go through the air. I want it to only be able to be placed against other parts. I don't know if that makes sense or not. |
|
|
| Report Abuse |
|
|
LemmJuice
|
  |
| Joined: 23 Feb 2014 |
| Total Posts: 866 |
|
|
| 01 Mar 2014 06:46 PM |
Try replacing p.Position = Vector3.new () with p.CFrame = CFrame.new ()
From what it seems the blocks are going above the zone? Cframe allows it to go inside other blocks |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 06:49 PM |
The problem has nothing to do with CFrame/Position. The issue is that mouse.Hit.p is not only on top of other parts. It is the position of where the mouse is pointing, which can be in the middle of the air. I'm making a tool similar to the building tool in Sandbox and Welcome to Roblox Building. |
|
|
| Report Abuse |
|
|
ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
|
| 01 Mar 2014 06:51 PM |
Search up "Sandbox Uncopylocked"
click the first uncopylocked one you see and then when you click there stamper tool scripts 2 times, you will see your mistake. |
|
|
| Report Abuse |
|
|
ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
|
| 01 Mar 2014 06:52 PM |
| And if your just going to have an attitude then get out. |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 06:55 PM |
@Zombie 1. I have been helping people on Scripting Helpers for a long time. 2. You do not know how to script, ergo you don't belong here. Get out. |
|
|
| Report Abuse |
|
|
LemmJuice
|
  |
| Joined: 23 Feb 2014 |
| Total Posts: 866 |
|
|
| 01 Mar 2014 06:58 PM |
| My last suggestion would be to make 4x4 plates instead one big plate, so then you can get which plate the mouse is pointing at and then you can get the position of that plate etc. |
|
|
| Report Abuse |
|
|
ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
|
| 01 Mar 2014 07:00 PM |
Hmm, hey.. What's that word you need to learn... hmm.. what was it.... Oh yeah! A beginner scripter!
People like you are ruining the world with your bullying. If someone didn't do your script right, you don't tell them they don't belong here or to get out. I even bet your one of the rude people at the school thinking there all that. So what about you slap that fact in your face. |
|
|
| Report Abuse |
|
|
ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
|
| 01 Mar 2014 07:13 PM |
You say nothing because you know it's true.
Next time you want to act like a god and tell people to get out, look at the world kid. Bullying is written all over your face. |
|
|
| Report Abuse |
|
|
LemmJuice
|
  |
| Joined: 23 Feb 2014 |
| Total Posts: 866 |
|
|
| 01 Mar 2014 07:15 PM |
| Why do you keep trying to get an argument out of him? Just let it rest... |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 07:16 PM |
@zombie I will not participate in your childish game. Get out and come back when you grow up. |
|
|
| Report Abuse |
|
|
LemmJuice
|
  |
| Joined: 23 Feb 2014 |
| Total Posts: 866 |
|
|
| 01 Mar 2014 07:19 PM |
| @Eternal You shouldn't reply to him, it's just feeding the troll. |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 09:58 PM |
Bump Actual help would be nice. |
|
|
| Report Abuse |
|
|
ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
|
| 04 Mar 2014 10:35 PM |
lol, you got to admit, everything I said made no sense.
dey see me trollin dey hatin |
|
|
| Report Abuse |
|
|