|
| 28 May 2015 05:04 PM |
Nobody likes a title that says "Please help me with this!" or something similar to that. So i'm re-posting this thread with a more interesting title, hopefully it'll get more clicks.
local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse()
Mouse.Button1Down:connect(function() local c = script:FindFirstChild("Move"):Clone() c.Parent = Player.PlayerGui local pos = Mouse.Hit.p c:FindFirstChild("Walk").Position = UDim2.new(pos) c:FindFirstChild("Walk").Visible = true end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 28 May 2015 05:24 PM |
| A text button, and I figured out my problem, I had to get the x and y/z vaue of mouse.hit.p, now it moves a little bit, but not at where my mouse is. So i'm trying to figure out what I should multiply it by to make it spawn at my mouse |
|
|
| Report Abuse |
|
|
|
| 28 May 2015 05:51 PM |
| You were passing a Vector3 to UDim2.new which will obviously backfire in your face. You have no clue how to handle things atm do you? |
|
|
| Report Abuse |
|
|
|
| 28 May 2015 05:58 PM |
| war, if you read the comments. you'd see that I figured it out. I said I got the x and z's. So I did something like: 0,x,0,z |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|
|
| 28 May 2015 06:01 PM |
| How do we convert vector3 to udim2? |
|
|
| Report Abuse |
|
|