Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Setting Player's position by mouse shows abnormal values when printed. Why?

Asked by
hallmk7 50
4 years ago

Hello everyone! I am working with somewhat teleknesis script which changes other player's position as the initial player drags his/her mouse but it shows abnormal values. This is what i have scripted till now:-

01local player = game.Players.LocalPlayer
02local camera = game.Workspace.CurrentCamera
03local uis = game:GetService("UserInputService")
04local mouse = player:GetMouse()
05local attachedToPlayer = false
06local GotTarget = false
07local Target = nil
08local toggleOfUIS = false
09 
10mouse.Move:Connect(function()
11    if toggleOfUIS == false then
12        if mouse.Target.Parent:FindFirstChild("Humanoid") then
13            Target = mouse.Target
14            GotTarget = true
15        else
View all 38 lines...

Please someone help!!

0
What are the abnormal values zboi082007 270 — 4y
0
like 1245.40845, -105.488304, -2753.35767 hallmk7 50 — 4y
0
Because it is printing the the mouse position (2d) converted into a 3d plane TheDeepH4x0r 20 — 4y

Answer this question