I’ve played around with it but I just cant seem to find out where the issue is located.
local traveltime = 1
local r = game:GetService("ReplicatedStorage")
local row = r:WaitForChild("Arrow")
local uis = game:GetService("UserInputService")
local ts = game:GetService("TweenService")
local tweeninfo = TweenInfo.new(traveltime, Enum.EasingStyle.Back, Enum.EasingDirection.In, 0, false, 0)
script.Parent.Activated:Connect(function()
local maus = game.Players.LocalPlayer:GetMouse()
local arow = r.Arrow:Clone()
arow.Parent = workspace
arow.Position = script.Parent.Handle.Position
print(maus.Hit.Position)
local goal = {}
goal.Position = Vector3.new(20,24,21)
local tween = ts:Create(arow, tweeninfo, Vector3.new(5,5,5))
tween:Play()
end)
Error code : Unable to cast to Dictionary - Client - LocalScript:24
but the mouse position always prints