You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i tried to set the Rotate Label Zero Degrees Because of invalid argument but I got the unexpected errors like that in media
is it me or everyone?
Reproduction Steps
Step 1: Code like This
local RunService = game:GetService('RunService')
local UserInputService = game:GetService('UserInputService')
local connectino
local left = false
local right = false
local Nature2D = require(script.Parent.Nature2D.Engine)
local viewport = workspace.CurrentCamera.ViewportSize
local truckist = nil
local Engine = Nature2D.init(script.Parent)
Engine:CreateCanvas(Vector2.new(0, 0), viewport, script.Parent.Frame)
local tabel = {}
local RigidBodyFrame = script.Parent.Frame.Anchord
local Body = Engine:Create("RigidBody",{
Object = RigidBodyFrame,
Collidable = true,
Anchored = true
})
for i, v in pairs(script.Parent.Frame.NonAnchored:GetChildren()) do
table.insert(tabel, Engine:Create("RigidBody",{
Object = v,
Collidable = true,
Anchored = false
}))
end
local chars = script.Parent.Frame.Character
local player = Engine:Create("RigidBody",{
Object = chars,
Collidable = true,
Anchored = false,
CanRotate = true
})
Engine:Start()
for is, vicc in pairs(script.Parent.Frame.NonAnchored:GetChildren()) do
vicc.UIDragDetector.DragStart:Connect(function()
connectino = RunService.RenderStepped:Connect(function(Times)
local mousepos = UserInputService:GetMouseLocation()
tabel[is]:SetPosition(mousepos.X, mousepos.Y)
end)
vicc.UIDragDetector.DragEnd:Connect(function()
connectino:Disconnect()
end)
end)
end
UserInputService.InputEnded:Connect(function(inp)
if inp.KeyCode == Enum.KeyCode.A then
left = false
elseif inp.KeyCode == Enum.KeyCode.D then
right = false
end
end)
RunService.RenderStepped:Connect(function()
player:Rotate(0)
end)
UserInputService.InputBegan:Connect(function(inp)
if inp.KeyCode == Enum.KeyCode.A then
left = true
while left do
player:ApplyForce(Vector2.new(-0.3, 0))
task.wait()
end
elseif inp.KeyCode == Enum.KeyCode.D then
right = true
while right do
player:ApplyForce(Vector2.new(0.3, 0))
task.wait()
end
elseif inp.KeyCode == Enum.KeyCode.W then
player:ApplyForce(Vector2.new(0,-15))
end
end)
Step 2: Now Got Errors path_to.Nature2D.Physics.RigidBody:494: invalid argument #1 (Vector2 expected, got nil)
in Line 494
Expected Behavior
Actual Behavior
Media
The Example is
Encounters
I got the error bug when i tried to setting rotation to zero.
Lastly
please fix this error
The text was updated successfully, but these errors were encountered:
Hello, i tried to set the Rotate Label Zero Degrees Because of invalid argument but I got the unexpected errors like that in media
is it me or everyone?
Reproduction Steps
Step 1: Code like This
Step 2: Now Got Errors path_to.Nature2D.Physics.RigidBody:494: invalid argument #1 (Vector2 expected, got nil)
in Line 494
Expected Behavior
Actual Behavior
Media
The Example is
Encounters
I got the error bug when i tried to setting rotation to zero.
Lastly
please fix this error
The text was updated successfully, but these errors were encountered: