Advertisement
bmrx13

vr

Feb 5th, 2020
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.71 KB | None | 0 0
  1. print("vr script yay")
  2. warn("does not work with vr so h")
  3.  
  4.  
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player = owner
  7. local Mouse = owner
  8. local mouse = owner
  9. local UserInputService = owner
  10. local ContextActionService = owner
  11. local RealPlayer = Player
  12. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  13.  
  14. msh = Instance.new("SpecialMesh",nil)
  15. msh.MeshId = "rbxassetid://1532314169"
  16. msh.TextureId = "rbxassetid://1532316153"
  17. msh.Scale = Vector3.new(0.02, 0.02, 0.02)
  18.  
  19. plr = owner
  20. char = plr.Character
  21. ra = char["Right Arm"]
  22. la = char["Left Arm"]
  23. rl = char["Right Leg"]
  24. ll = char["Left Leg"]
  25. root = char.HumanoidRootPart
  26. hed = char.Head
  27. tors = char.Torso
  28. hum = char.Humanoid
  29. local ChatService = game:GetService("Chat")
  30.  
  31. function ezweld(p, a, b, cf)
  32. local weld = Instance.new("Weld",p)
  33. weld.Part0 = a
  34. weld.Part1 = b
  35. weld.C0 = cf
  36. return weld
  37. end
  38.  
  39. function Swait(number)
  40. if number == 0 or number == nil then
  41. game:GetService("RunService").Heartbeat:Wait()
  42. else
  43. for i = 1,number do
  44. game:GetService("RunService").Heartbeat:Wait()
  45. end
  46. end
  47. end
  48.  
  49. clerp = function(toclerp, cf, number)
  50. local joint = toclerp
  51. joint.C0 = joint.C0:Lerp(cf, number)
  52. end
  53.  
  54. clerp2 = function(toclerp, cf)
  55. local joint = toclerp
  56. joint.C0 = cf
  57. end
  58.  
  59. clerp3 = function(toclerp, cf, number)
  60. local joint = toclerp
  61. joint.C1 = joint.C1:Lerp(cf, number)
  62. end
  63.  
  64. anim = "Idle"
  65. attack = false
  66. local RS = char.Torso["Right Shoulder"]
  67. local LS = char.Torso["Left Shoulder"]
  68. local RH = char.Torso["Right Hip"]
  69. local LH = char.Torso["Left Hip"]
  70. local neck = char.Torso["Neck"]
  71. local anim = "Idle"
  72. local root = char.HumanoidRootPart
  73. local rootj = root.RootJoint
  74. local timepos = 0
  75. local sine = 0
  76. local RSnor = RS.C0
  77. local LSnor = LS.C0
  78. local RHnor = RH.C0
  79. local LHnor = LH.C0
  80. local RSnor2 = RS.C1
  81. local LSnor2 = LS.C1
  82. local RHnor2 = RH.C1
  83. local LHnor2 = LH.C1
  84. local rootjnor = rootj.C0
  85. local necknor = neck.C0
  86. local tors = char.Torso
  87. local playstealanim = false
  88. hold = false
  89. mouse = plr:GetMouse()
  90. hold = false
  91. Debris = game:GetService("Debris")
  92.  
  93. IT = Instance.new
  94. Rad = math.rad
  95. Cos = math.cos
  96. Sin = math.sin
  97. BrickC = BrickColor.new
  98. C3 = Color3.new
  99. VT = Vector3.new
  100.  
  101. function addcontroller(part)
  102. local control1 = Instance.new("Part",char)
  103. control1.CanCollide = false
  104. control1.Anchored = false
  105. control1.Name = "controller"
  106. control1.Size = Vector3.new(0.1, 0.1, 0.1)
  107. local mesh1 = msh:Clone()
  108. mesh1.Parent = control1
  109. local weld1 = ezweld(char, part, control1, CFrame.new(0, -part.Size.y / 2.45, -0.15) * CFrame.Angles(Rad(-90), 0, 0))
  110. return control1
  111. end
  112.  
  113. local control1 = addcontroller(ra)
  114. local control2 = addcontroller(la)
  115.  
  116. --hed is Head
  117. --tors is Torso
  118. --la is Left Arm
  119. --HEADLERP is already added for u
  120.  
  121. local HEADLERP = Instance.new("ManualWeld")
  122. HEADLERP.Parent = hed
  123. HEADLERP.Part0 = hed
  124. HEADLERP.Part1 = hed
  125. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  126.  
  127. MseGuide = true
  128. OrgnC0 = neck.C0
  129. local movelimbs = coroutine.wrap(function()
  130. while game:GetService("RunService").RenderStepped:wait() do
  131. TrsoLV = tors.CFrame.lookVector
  132. Dist = nil
  133. Diff = nil
  134. if not MseGuide then
  135. print("Failed to recognize")
  136. else
  137. local _, Point = workspace:FindPartOnRay(Ray.new(hed.CFrame.p, mouse.Hit.lookVector), workspace, false, true)
  138. Dist = (hed.CFrame.p-Point).magnitude
  139. Diff = hed.CFrame.Y-Point.Y
  140. local _, Point2 = workspace:FindPartOnRay(Ray.new(la.CFrame.p, mouse.Hit.lookVector), workspace, false, true)
  141. Dist2 = (la.CFrame.p-Point).magnitude
  142. Diff2 = la.CFrame.Y-Point.Y
  143. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  144. neck.C0 = OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1.5), 0, (((hed.CFrame.p-Point).Unit):Cross(tors.CFrame.lookVector)).Y*1.5)
  145. end
  146. end
  147. end)
  148.  
  149. movelimbs()
  150.  
  151. NLS([[
  152.  
  153. function Swait(number)
  154. if number == 0 or number == nil then
  155. game:GetService("RunService").Heartbeat:Wait()
  156. else
  157. for i = 1,number do
  158. game:GetService("RunService").Heartbeat:Wait()
  159. end
  160. end
  161. end
  162.  
  163. while true do
  164. Swait()
  165. for i,v in pairs (owner.Character:GetChildren()) do
  166. if v:IsA("Part") and v.Name == "controller" then
  167. v.LocalTransparencyModifier = 0
  168. end
  169. end
  170. owner.Character["Right Arm"].LocalTransparencyModifier = 0
  171. owner.Character["Left Arm"].LocalTransparencyModifier = 0
  172. owner.Character["Right Leg"].LocalTransparencyModifier = 0
  173. owner.Character["Left Leg"].LocalTransparencyModifier = 0
  174. owner.Character["Torso"].LocalTransparencyModifier = 0
  175. end
  176.  
  177. ]],char)
  178.  
  179. Grabbing = false
  180. local CameraCFrame = CFrame.new(0, 0, 0)
  181. local PushGrabbingPart = true
  182.  
  183. local CamCFrame = Instance.new("RemoteEvent",char)
  184. CamCFrame.Name = "CamCFrame"
  185.  
  186. NLS([[
  187.  
  188. plr = owner
  189. char = plr.Character
  190. RootPart = char.HumanoidRootPart
  191. cam = workspace.CurrentCamera
  192. mu = plr:GetMouse()
  193.  
  194. while true do
  195. game:GetService("RunService").stepped:wait()
  196. char.CamCFrame:FireServer(cam.CFrame)
  197. RootPart.CFrame = CFrame.new(RootPart.Position,Vector3.new(mu.Hit.p.X,RootPart.Position.Y,mu.Hit.p.Z))
  198. end
  199.  
  200. ]],char)
  201.  
  202. CamCFrame.OnServerEvent:Connect(function(_,CAMCF)
  203. CameraCFrame = CAMCF
  204. end)
  205.  
  206. function nograv(PART)
  207. local bodyForced = Instance.new('BodyForce', PART)
  208. bodyForced.Name = 'ANTGR'
  209. bodyForced.Force = Vector3.new(0, PART:GetMass() * game.Workspace.Gravity, 0)
  210. return bodyForced
  211. end
  212.  
  213. Range = 5
  214.  
  215. function CreatePart(PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  216. local NEWPART = Instance.new("Part",PARENT)
  217. NEWPART.Reflectance = REFLECTANCE
  218. NEWPART.Transparency = TRANSPARENCY
  219. NEWPART.CanCollide = false
  220. NEWPART.Locked = true
  221. if ANCHOR == true then
  222. NEWPART.Anchored = true
  223. end
  224. NEWPART.BrickColor = BrickColor.new(BRICKCOLOR)
  225. NEWPART.Name = NAME
  226. NEWPART.Size = SIZE
  227. NEWPART.Position = tors.Position
  228. NEWPART.Material = MATERIAL
  229. return NEWPART
  230. end
  231.  
  232. local function weldBetween(a, b)
  233. local weldd = Instance.new("ManualWeld")
  234. weldd.Part0 = a
  235. weldd.Part1 = b
  236. weldd.C0 = CFrame.new()
  237. weldd.C1 = b.CFrame:inverse() * a.CFrame
  238. weldd.Parent = a
  239. return weldd
  240. end
  241.  
  242. function spawnsword(cf)
  243. local sword = Instance.new("Part",workspace)
  244. sword.Size = Vector3.new(1, 0.8, 4)
  245. sword.CFrame = cf
  246. sword.Anchored = false
  247. sword.Touched:connect(function(hit)
  248. for i,v in pairs (hit.Parent:children()) do
  249. if v:IsA("Humanoid") and v.Parent ~= char then
  250. v.Health = v.Health - 5
  251. end
  252. end
  253. end)
  254. local mesh = Instance.new("SpecialMesh",sword)
  255. mesh.MeshId = "rbxasset://fonts/sword.mesh"
  256. mesh.TextureId = "rbxasset://textures/SwordTexture.png"
  257. return sword
  258. end
  259.  
  260. function spawnsponge(cf)
  261. local sponge = Instance.new("Part",workspace)
  262. local spongesound = Instance.new("Sound",sponge)
  263. spongesound.MaxDistance = 100
  264. spongesound.SoundId = "rbxassetid://867302537"
  265. spongesound.Volume = 7.5
  266. spongesound.TimePosition = 2
  267. spongesound.Playing = false
  268. sponge.Size = Vector3.new(2.5, 1.125, 4.25)
  269. sponge.CFrame = cf
  270. sponge.Anchored = false
  271. sponge.Touched:connect(function(hit)
  272. for i,v in pairs (hit:children()) do
  273. if v:IsA("Decal") and not v:FindFirstChild("cantclean") then
  274. v.Transparency = v.Transparency + 0.05
  275. if spongesound.Playing == false then
  276. spongesound.Playing = true
  277. elseif spongesound.Playing == true then
  278. --nothing xd
  279. end
  280. local cantclean = Instance.new("NumberValue",v)
  281. cantclean.Name = "cantclean"
  282. Debris:AddItem(cantclean, 0.25)
  283. if spongesound.Playing == false then
  284. --nothing xd
  285. elseif spongesound.Playing == true then
  286. wait(1.5)
  287. spongesound.Playing = false
  288. spongesound.TimePosition = 2
  289. end
  290. end
  291. end
  292. end)
  293. local mesh = Instance.new("SpecialMesh",sponge)
  294. mesh.MeshId = "rbxassetid://551373055"
  295. mesh.TextureId = "rbxassetid://551373057"
  296. mesh.Scale = Vector3.new(0.1, 0.1, 0.1)
  297. return sponge
  298. end
  299.  
  300. function yes()
  301. ChatService:Chat(workspace.howells.Head,"yes", "White")
  302. end
  303.  
  304. function sayhello()
  305. ChatService:Chat(workspace.howells.Head,"hi", "White")
  306. end
  307.  
  308. function no()
  309. ChatService:Chat(workspace.howells.Head,"no", "White")
  310. end
  311.  
  312. function maybe()
  313. ChatService:Chat(workspace.howells.Head,"maybe", "White")
  314. end
  315.  
  316. function ok()
  317. ChatService:Chat(workspace.howells.Head,"ok", "White")
  318. end
  319.  
  320. function fat()
  321. ChatService:Chat(workspace.howells.Head,"fat", "White")
  322. end
  323.  
  324. function skid()
  325. ChatService:Chat(workspace.howells.Head,"skid", "White")
  326. end
  327.  
  328. function ew()
  329. ChatService:Chat(workspace.howells.Head,"ew", "White")
  330. end
  331.  
  332. function AAA()
  333. ChatService:Chat(workspace.howells.Head,"AAA", "White")
  334. end
  335.  
  336. function immaheadout()
  337. ChatService:Chat(workspace.howells.Head,"ight imma head out", "White")
  338. end
  339.  
  340. function DADADADAAAA()
  341. local chestsound = Instance.new("Sound",workspace.howells.Torso)
  342. chestsound.MaxDistance = 100
  343. chestsound.Volume = 10
  344. chestsound.TimePosition = 8.107590097060892731
  345. chestsound.SoundId = "rbxassetid://131276327"
  346. wait()
  347. chestsound:Play()
  348. wait(5)
  349. chestsound:Destroy()
  350. end
  351.  
  352. function fight()
  353. local poison = Instance.new("Sound",workspace.howells.Torso)
  354. poison.MaxDistance = 100
  355. poison.EmitterSize = 100
  356. poison.SoundId = "rbxassetid://4654299269"
  357. --poison.TimePosition = 3.5
  358. poison.Volume = 10
  359. poison.Looped = true
  360. poison.Playing = true
  361. wait(1.25)
  362. ChatService:Chat(workspace.howells.Head,"A MAN HAS FALLEN INTO THE RIVER IN LEGO CITY", "White")
  363. wait(2)
  364. ChatService:Chat(workspace.howells.Head,"START THE NEW RESCUE HELICOPTER", "White")
  365. wait(3)
  366. ChatService:Chat(workspace.howells.Head,"HEY!", "Red")
  367. wait(1)
  368. ChatService:Chat(workspace.howells.Head,"BUILD THE HELICOPTER", "White")
  369. wait(1.5)
  370. ChatService:Chat(workspace.howells.Head,"BUILD THE HIGH SPEED POLICE BOAT", "White")
  371. wait(1.5)
  372. ChatService:Chat(workspace.howells.Head,"BUILD THE CRANE", "White")
  373. wait(1)
  374. ChatService:Chat(workspace.howells.Head,"BUILD THE TRANSPORTER", "White")
  375. wait(1.5)
  376. ChatService:Chat(workspace.howells.Head,"BUILD THE ROCKET", "White")
  377. wait(1.25)
  378. ChatService:Chat(workspace.howells.Head,"BUILD THE GIANT MINING TRUCK", "White")
  379. wait(1.5)
  380. ChatService:Chat(workspace.howells.Head,"BUILD THE SHUTTLE", "White")
  381. wait(1.25)
  382. ChatService:Chat(workspace.howells.Head,"BUILD THE NEW STUD JETS", "White")
  383. wait(1.35)
  384. ChatService:Chat(workspace.howells.Head,"BUILD THE CARGO TRUCK", "White")
  385. wait(1.75)
  386. ChatService:Chat(workspace.howells.Head,"BUILD THE HUGE CARGO TRAIN", "White")
  387. wait(1.5)
  388. ChatService:Chat(workspace.howells.Head,"BUILD THE NEW MOBILE POLICE COMMAND CENTER", "Blue")
  389. wait(2)
  390. ChatService:Chat(workspace.howells.Head,"BUILD THE GIANT CRANE", "White")
  391. wait(1.5)
  392. ChatService:Chat(workspace.howells.Head,"BUILD THE POWERFUL SUB", "White")
  393. wait(1.5)
  394. ChatService:Chat(workspace.howells.Head,"BUILD THE HEAVY CRANE", "White")
  395. wait(1.5)
  396. ChatService:Chat(workspace.howells.Head,"BUILD THE NEW TOW TRUCK", "White")
  397. wait(1.25)
  398. ChatService:Chat(workspace.howells.Head,"BUILD THE NEW 4x4 OFFROADER", "White")
  399. wait(1.5)
  400. ChatService:Chat(workspace.howells.Head,"BUILD THE ARCTIC HELICOPTER", "White")
  401. wait(1.4)
  402. ChatService:Chat(workspace.howells.Head,"BUILD THE TRUCK", "White")
  403. wait(1.25)
  404. ChatService:Chat(workspace.howells.Head,"BUILD THE TRACTOR", "White")
  405. wait(1.25)
  406. ChatService:Chat(workspace.howells.Head,"BUILD THE *HUGE* HELICOPTER (NOT CLICKBAIT)", "White")
  407. wait(3)
  408. poison:Destroy()
  409. end
  410.  
  411. function toasted(cf)
  412. local a = 0.0025
  413. local bread = Instance.new("Part",workspace) bread.CanCollide = true bread.Anchored = false bread.CFrame = cf bread.Size = Vector3.new(1.045, 1.015, 0.101) bread.Orientation = Vector3.new(90, 180, 0)
  414. local bmesh = Instance.new("SpecialMesh",bread) bmesh.MeshType = "FileMesh" bmesh.MeshId = "rbxassetid://1614924885" bmesh.TextureId = "rbxassetid://1614940093" bmesh.Scale = Vector3.new(a, a, a)
  415. return bread
  416. end
  417.  
  418. function grab(Tag)
  419. local GrabbingBall = CreatePart(char,"Neon",0,1,"White","GrabbingBall",VT(0.1,0.1,0.1),false)
  420. GrabbingBall.Shape = "Ball"
  421. local xs,ys,zs = CameraCFrame:ToEulerAnglesXYZ()
  422. local starterrot = CFrame.new(0,0,0) * CFrame.Angles(Rad(math.deg(xs)),Rad(math.deg(ys)),Rad(math.deg(zs)))
  423. local TagMass = Tag.Massless
  424. local OldVelocity = Tag.Velocity
  425. Tag.Velocity = VT(0,0,0)
  426. Tag.Massless = false
  427. local AntiGrav = nograv(Tag)
  428. GrabbingBall.CFrame = CFrame.new(mouse.Hit.p,hed.Position)
  429. weldBetween(GrabbingBall,Tag)
  430. nograv(GrabbingBall)
  431. repeat
  432. Swait()
  433. if Grabbing == true then
  434. GrabbingBall.Velocity = VT(0,0,0)
  435. Tag.Velocity = VT(0,0,0)
  436. GrabbingBall.RotVelocity = VT(0,0,0)
  437. Tag.RotVelocity = VT(0,0,0)
  438. local NewPos = CameraCFrame.lookVector * Range
  439. NewPos = hed.Position + NewPos
  440. GrabbingBall.CFrame = CFrame.new(NewPos,hed.Position)
  441. if Tag.Name == "shov" then
  442. game.Workspace.Terrain:FillBall(Tag.Base.Position,3.5,"Air")
  443. end
  444. if Tag.Name == "Furniture" then
  445. Tag.Anchored = false
  446. end
  447. end
  448. until Grabbing == false or PushGrabbingPart == true
  449. GrabbingBall:Destroy()
  450. AntiGrav:Destroy()
  451. Tag.Velocity = OldVelocity
  452. Tag.Massless = TagMass
  453. if PushGrabbingPart == true then
  454. Tag.Velocity = CameraCFrame.lookVector * 100
  455. PushGrabbingPart = false
  456. end
  457. end
  458.  
  459. mouse.Button2Down:Connect(function()
  460. if mouse.Target then
  461. if mouse.Target.Name ~= "Base" then
  462. if (mouse.Target.Position - hed.Position).Magnitude < 15 then
  463. Grabbing = true
  464. grab(mouse.Target)
  465. end
  466. end
  467. end
  468. end)
  469.  
  470. mouse.Button2Up:Connect(function()
  471. if Grabbing == true then
  472. Grabbing = false
  473. Range = 5
  474. end
  475. end)
  476.  
  477. mouse.KeyDown:connect(function(key)
  478. if key == "e" then
  479. spawnsword(tors.CFrame)
  480. end
  481. if key == "one" then
  482. sayhello()
  483. end
  484. if key == "two" then
  485. yes()
  486. end
  487. if key == "three" then
  488. no()
  489. end
  490. if key == "four" then
  491. immaheadout()
  492. end
  493. if key == "five" then
  494. maybe()
  495. end
  496. if key == "six" then
  497. ok()
  498. end
  499. if key == "seven" then
  500. fat()
  501. end
  502. if key == "eight" then
  503. skid()
  504. end
  505. if key == "nine" then
  506. ew()
  507. end
  508. if key == "zero" then
  509. AAA()
  510. end
  511. if key == "p" then
  512. fight()
  513. end
  514. if key == "q" then
  515. DADADADAAAA()
  516. end
  517. if key == "t" then
  518. toasted(tors.CFrame)
  519. end
  520. if key == "r" then
  521. spawnsponge(tors.CFrame)
  522. end
  523. end)
  524.  
  525. mouse.Button1Down:connect(function()
  526. PushGrabbingPart = true
  527. end)
  528.  
  529. local wld1 = ezweld(char, tors, ra, RS.C0)
  530. wld1.C1 = RS.C1
  531.  
  532. local wld2 = ezweld(char, tors, la, LS.C0)
  533. wld2.C1 = LS.C1
  534.  
  535. while true do
  536. Swait()
  537. tframe = char.Torso.CFrame
  538. taim = mouse.Hit.p -( tframe.p )
  539. wld1.C0 = CFrame.Angles(Rad(90), 0, 0) * (CFrame.new(Vector3.new(),tframe:vectorToObjectSpace(taim))*CFrame.Angles(0,math.pi/2,0))+Vector3.new( 1, 0.5, 0 ),1
  540. wld2.C0 = CFrame.Angles(Rad(90), 0, 0) * (CFrame.new(Vector3.new(),tframe:vectorToObjectSpace(taim))*CFrame.Angles(0,-math.pi/2,0))+Vector3.new( -1, 0.5, 0 ),1
  541. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement